location = $this->createTempDir( 'ezcCacheTest' ); } /** * tearDown * * @access public */ public function tearDown() { $this->removeTempDir(); } /** * suite * * @static * @access public */ public static function suite() { return new ezcTestSuite( "ezcCacheManagerTest" ); } public function testManagerCreate() { foreach ( $this->data as $id => $class ) { ezcCacheManager::createCache( $id, $this->location, $class ); $realCache = ezcCacheManager::getCache( $id ); $fakeCache = new $class( $this->location ); $this->assertTrue( ( $realCache == $fakeCache ), 'Invalid object created from ezcCacheManager. Expected "' . get_class( $realCache ) . '", found "'. get_class( $fakeCache ) .'".' ); unset( $realCache ); unset( $fakeCache ); } $this->assertTrue( true ); } } ?>