Skip to content

Commit 977904f

Browse files
committed
Fix paths in test
1 parent 1c45801 commit 977904f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PhpArrayToXmlTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PhpArrayToXmlTest extends TestCase
1111
*/
1212
protected function getXmlStub($name)
1313
{
14-
return file_get_contents('stubs' . DIRECTORY_SEPARATOR . $name . '.xml');
14+
return file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . $name . '.xml');
1515
}
1616

1717
/**
@@ -20,7 +20,7 @@ protected function getXmlStub($name)
2020
*/
2121
protected function getArrayStub($name)
2222
{
23-
return include('stubs' . DIRECTORY_SEPARATOR . $name . '.php');
23+
return include(__DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . $name . '.php');
2424
}
2525

2626
/** @test */

0 commit comments

Comments
 (0)