/**
  * 
  */
 public function testGetPath()
 {
     $expected = dirname(__FILE__);
     $this->assertTrue(Inspekt::getPath('./') == $expected);
     $expected = dirname(dirname(dirname(__FILE__)));
     $this->assertTrue(Inspekt::getPath('./../../') == $expected);
 }
Exemple #2
0
 /**
  * Returns realpath(value).
  *
  * @param mixed $key
  * @return mixed
  *
  * @tag filter
  */
 function getPath($key)
 {
     if (!$this->keyExists($key)) {
         return false;
     }
     return Inspekt::getPath($this->_getValue($key));
 }
Exemple #3
0
 /**
  * Returns realpath(value).
  *
  * @param mixed $key
  * @return mixed
  * @throws Exception
  * @tag filter
  */
 public function getPath($key)
 {
     return Inspekt::getPath($this->getValue($key));
 }