public getDirectory ( ) : string | ||
Результат | string | the directory to be checked |
public function testDirectoryName() { $directory = realpath(dirname(__FILE__) . '/temp'); $dependency = new TDirectoryCacheDependency(dirname(__FILE__) . '/temp'); $this->assertEquals($dependency->getDirectory(), $directory); try { $dependency = new TDirectoryCacheDependency(dirname(__FILE__) . '/temp2'); $this->fail("Expected exception is not raised"); } catch (TInvalidDataValueException $e) { } }