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