Skip to content

Commit 3c2214f

Browse files
committed
Use absolute paths for referenced test files
1 parent 4615b7f commit 3c2214f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ApiTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public function testImportMissing(){
2626

2727
public function testImportCustomCallback(){
2828
$this->scss->addImportPath(function($path) {
29-
return 'inputs/' . str_replace('.css','.scss',$path);
29+
return __DIR__.'/inputs/' . str_replace('.css','.scss',$path);
3030
});
3131

3232
$this->assertEquals(
3333
$this->compile('@import "variables.css";'),
34-
trim(file_get_contents('outputs/variables.css')));
34+
trim(file_get_contents(__DIR__.'/outputs/variables.css')));
3535
}
3636

3737
public function compile($str) {

0 commit comments

Comments
 (0)