Пример #1
0
 public function testAbsolutizeOutsideOfDocRoot()
 {
     $path = './../images/image.png';
     $existingPath = __DIR__ . '/../../Compiler.php';
     $this->assertEquals($path, $this->object->absolutizeUrl($path, '\'', $existingPath));
 }
Пример #2
0
 public function __construct($docRoot, IRequest $httpRequest)
 {
     parent::__construct($docRoot, $httpRequest->getUrl()->getBasePath());
 }