示例#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());
 }