Hello folks,

i try to start using PhpUnit and therefor first wanted to get a
unchanged Oxid shop and unit-test setup to run. Now I got it working so
far, that a 4.4.8 with tests runs ... until ... it ends "Terminated". I
first tried to get a 4.5.2 to run - on my dev-Server and on the
VM-Image. Both ended with Fatal error: Call to a member function getId()
on a non-object in /var/www/oxid_tests/unit/core/oxarticlelistTest.php
on line 1713 after displaying lots of "F"s throuout the run. On my
server i did not even print a callstack. The VM-Image at least printed
the callstack.
After switching to 4.4.8 the tests first seemed to run flawlessly. After
some time (no Fs) the run suddenly stopped with the notification
"Terminated".

This is the cut down aoutput:

/var/www/web12/html/4-4-8/UNIT# oxPATH=/var/www/web12/html/4-4-8/OXID/
oxADMIN_PASSWD='PASSWORDCHANGED' \php -d 'memory_limit=1024M' -d
'include_path=.:/usr/share/php/PHPUnit/PHPUnit:/usr/share/php/PHPUnit'
\/usr/share/php/PHPUnit/phpunit.php --verbose --bootstrap bootstrap.php
\AllTestsUnit.php
db Dumptime: 0.225285053253
=========
running php version 5.2.6-1+lenny13

============
Adding unit tests from unit/*Test.php
Adding unit tests from unit/core/*Test.php
Adding unit tests from unit/maintenance/*Test.php
Adding unit tests from unit/views/*Test.php
Adding unit tests from unit/admin/*Test.php
Adding unit tests from unit/setup/*Test.php
PHPUnit 3.4.3 by Sebastian Bergmann.


[...]

Unit_Core_oxDeliverySetTest
...
709M (720M)

Unit_Core_oxDeliverysetListTest
..Terminated

The test ran on an virtual box with 1 GB of Ram. I tried to run it with
memory_limit=512M to check if it was lack of php memory. But this ends
with a fatal error allowed memory size of 536870912 bytes exhausted ...

Any Ideas why there are these problems and how i can get the test to run
properly?

Regards,

Kai Gazmaga
VektorDesign - Online-Shops und Programmierung
Kai Gazmaga
Katharinenstraße 57
73 728 Esslingen        Tel.: +49 711 - 25516226
Fax: +49 711 - 25518078
        Mail: [email protected]
Web: www.vektordesign.de

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to