Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 186a7a9

Browse files
committed
Fix test file relative for AppVeyor
1 parent ce73293 commit 186a7a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testFormatFile()
2525

2626
public function testFileRelative()
2727
{
28-
$this->assertEquals('path/to/file.ext', $this->getExtension()->getFileRelative('/root/path/to/file.ext'));
28+
$this->assertEquals('CodeExtensionTest.php', $this->getExtension()->getFileRelative(__FILE__));
2929
}
3030

3131
/**
@@ -69,6 +69,6 @@ public function testGetName()
6969

7070
protected function getExtension()
7171
{
72-
return new CodeExtension(new FileLinkFormatter('proto://%f#&line=%l&'.substr(__FILE__, 0, 5).'>foobar'), '/root', 'UTF-8', '/root');
72+
return new CodeExtension(new FileLinkFormatter('proto://%f#&line=%l&'.substr(__FILE__, 0, 5).'>foobar'), '/root', 'UTF-8', __DIR__);
7373
}
7474
}

0 commit comments

Comments
 (0)