Forums / Developer / EZ Unit Tests / Comment51070
Marouane Mighri
Monday 04 May 2009 6:24:49 am
@Ole - thanks for your response.
@RussAt the beginning i tried to extend the unit tests of EZ. The trouble may be related to the files "share/db_data.dba" and "share/db_schema.dba" because i added my own tables. The tests use these files to fill the database.
When I launch “runtests.php” I obtain this error message:
root@marouane# php tests/runtests.php -D mysql://login:password@localhost/wa_devmarouane PHPUnit 3.3.16 by Sebastian Bergmann. .....F....F........ Fatal error: Call to a member function attribute() on a non-object in .../marouane/tests/toolkit/extras/kernelwrapper/classes/node.php on line 34
the tests starts correctly but it stops after the creation of a node of id (62) (Folder)
After i tried to start directly from PHPUnits by writing my own files but it was necessary to load EZ classes like eZDB and eZMail… to be able to test my functions. Then i launched the tests in a “plain_site” except that each time i use the eZDB class i obtain a white page !
Maecia