|
From: Marcus B. <ma...@la...> - 2003-11-29 03:16:20
|
Hi... Jason Sweat wrote: > Might have to make a web server writeable directory somewhere and configure the > define in DataCacheDaoFile.php to point to it. (or comment out all of the tests > that use the live version of DataCache). OK, with SimpleTest Beta1 I get... ----------------------------------------------- Dashboard Tests Fail: TestPlant.php->testplant->testgetinvt->Inventory list has values Fail: TestPlant.php->testplant->testgetinvt->Equal expectation fails as key list [0, 1, 2] does not match key list [] Exception: TestPlant.php->testplant->testgetinvt->Unexpected PHP error [array_keys() [<a href='http://www.php.net/function.array-keys'>function.array-keys</a>]: The first argument should be an array] severity [E_WARNING] in [/var/www/html/simpletest/expectation.php] line [228] Exception: TestPlant.php->testplant->testgetinvt->Unexpected PHP error [array_keys() [<a href='http://www.php.net/function.array-keys'>function.array-keys</a>]: The first argument should be an array] severity [E_WARNING] in [/var/www/html/simpletest/expectation.php] line [231] Exception: TestPlant.php->testplant->testgetinvt->Unexpected PHP error [implode() [<a href='http://www.php.net/function.implode'>function.implode</a>]: Bad arguments.] severity [E_WARNING] in [/var/www/html/simpletest/expectation.php] line [231] 3/3 test cases complete: 126 passes, 2 fails and 3 exceptions. ------------------------------------------------- The exceptions are caused by a bug in SimpleTest Beta1 itself. They should be ignored or use the UnitTestCase::swallowErrors() within the test method to hide them. I am adding test cases to trap this in future. With the upcoming Beta2... ------------------------------------------------- Dashboard Tests Fail: TestPlant.php->testplant->testgetinvt->Inventory list has values Fail: TestPlant.php->testplant->testgetinvt->Equal expectation fails as Array: 3 items] differs from [NULL] 3/3 test cases complete: 124 passes, 2 fails and 0 exceptions. ------------------------------------------------- It seems to boil down to a null array rather than an empty array as indicated by Beta1. Without picking apart a lot of code I cannot really go much further without a slimmed down test case. Beta2 is out in a couple of days. The message display is now much cleaner code in general, but if there are any more problems I'll publish a patch straight away. Is this progress? yours, Marcus p.s. I will look at your presentation in a couple of days. Snowed under with family issues right now. -- Marcus Baker, ma...@la..., no...@ap... |