Todo List
Gallery specific version of PHPUnit's TestCase class.
Located in /lib/tools/phpunit/GalleryTestCase.class [line 33]
TestCase | --GalleryTestCase
Properties
Methods
static void DeepCompare( $obj1, $obj2, [ $context = null] )
static EntityCounterEventListener &getEntityCounter( )
Get the entity counter listener which contains the types and number of elements deleted.
Usage: $counter =& GalleryTestCase::getEntityCounter();
GalleryTestCase GalleryTestCase( $methodName )
void assert( $boolean, [ $message = null] )
void assertEquals( $expected, $actual, [ $message = null] )
void assertErrorEquals( int $errorCode, GalleryStatus $ret, [bool $exactMatch = false], [string $message = null] )
Fail if the provided GalleryStatus object does not contain the given error code.
void assertEventFired( string $eventName, [GalleryEntity $eventEntity = null], [array $eventData = null] )
Fail if the provided event name was not fired.
void assertEventNotFired( string $eventName )
Fail if the provided event name was fired
void failWithStatus( $ret )
This is deprecated in Gallery 2.3 -- now tests should just return $ret and let the framework generate the right failure message.
void setUp( )