From: Jesse M. <jm...@us...> - 2005-05-13 04:46:31
|
Update of /cvsroot/gallery/gallery2/modules/icons/test/phpunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18074 Modified Files: IconsSiteAdminControllerTest.class Log Message: Added error descriptions to the two asserts. This doesn't help the case where the factory implementation goes awry, but it might help us troubleshoot. Index: IconsSiteAdminControllerTest.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/icons/test/phpunit/IconsSiteAdminControllerTest.class,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IconsSiteAdminControllerTest.class 8 May 2005 06:55:17 -0000 1.2 +++ IconsSiteAdminControllerTest.class 13 May 2005 04:46:22 -0000 1.3 @@ -97,8 +97,9 @@ if ($ret->isError()) { return array($ret->wrap(__FILE__, __LINE__), null); } - $this->assert(isset($iconpack)); - $this->assert(GalleryUtilities::isA($iconpack, 'IconsImpl')); + $this->assert(isset($iconpack), 'Icon pack was not set'); + $this->assert(GalleryUtilities::isA($iconpack, 'IconsImpl'), + 'The factory instance was not an IconsImpl'); } function testSetupTemplateNone() { |