Fix test file relative for AppVeyor

This commit is contained in:
Yonel Ceruto 2018-07-18 12:45:36 -04:00
parent ce73293532
commit 186a7a9824

View File

@ -25,7 +25,7 @@ class CodeExtensionTest extends TestCase
public function testFileRelative()
{
$this->assertEquals('path/to/file.ext', $this->getExtension()->getFileRelative('/root/path/to/file.ext'));
$this->assertEquals('CodeExtensionTest.php', $this->getExtension()->getFileRelative(__FILE__));
}
/**
@ -69,6 +69,6 @@ class CodeExtensionTest extends TestCase
protected function getExtension()
{
return new CodeExtension(new FileLinkFormatter('proto://%f#&line=%l&'.substr(__FILE__, 0, 5).'>foobar'), '/root', 'UTF-8', '/root');
return new CodeExtension(new FileLinkFormatter('proto://%f#&line=%l&'.substr(__FILE__, 0, 5).'>foobar'), '/root', 'UTF-8', __DIR__);
}
}