/** * */ public function testGetPath() { $expected = dirname(__FILE__); $this->assertTrue(Inspekt::getPath('./') == $expected); $expected = dirname(dirname(dirname(__FILE__))); $this->assertTrue(Inspekt::getPath('./../../') == $expected); }
/** * 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)); }
/** * Returns realpath(value). * * @param mixed $key * @return mixed * @throws Exception * @tag filter */ public function getPath($key) { return Inspekt::getPath($this->getValue($key)); }