Prado\Caching\TDirectoryCacheDependency::getDirectory PHP Method

getDirectory() public method

public getDirectory ( ) : string
return string the directory to be checked
    public function getDirectory()
    {
        return $this->_directory;
    }

Usage Example

 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) {
     }
 }