generateIdentifier( 'contentstructuremenu/show_content_structure-2 file:foobar' ); $this->assertEquals( '/tmp/contentstructuremenu/show_content_structure-2_file:foobar.cache', $id ); } public function testGenerateIdentifier2() { $obj = new ezcCacheStorageFileArray( '/tmp' ); $id = $obj->generateIdentifier( 'contentstructuremenu\show_content_structure-2 file:foobar' ); $this->assertEquals( '/tmp/contentstructuremenu/show_content_structure-2_file:foobar.cache', $id ); } public function testGenerateIdentifier3() { $obj = new ezcCacheStorageFileArray( '/tmp', array( 'extension' => '.c' ) ); $id = $obj->generateIdentifier( 'contentstructuremenu\show_content_structure-2 file:foobar' ); $this->assertEquals( '/tmp/contentstructuremenu/show_content_structure-2_file:foobar.c', $id ); } public function testInvalidConfigurationOption() { try { $obj = new ezcCacheStorageFileArray( '/tmp', array( 'eXtEnSiOn' => '.c' ) ); $this->fail( 'Expected exception was not thrown' ); } catch ( ezcBaseSettingNotFoundException $e ) { $this->assertTrue( true ); } } public static function suite() { return new ezcTestSuite( "ezcCacheStorageFileTest" ); } } ?>