Skip to content
This repository was archived by the owner on Apr 5, 2020. It is now read-only.

Commit 1ea5f0a

Browse files
committed
Use absolute path to Test.class.php
1 parent c7f4167 commit 1ea5f0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/runners/xp6-runner-test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
},
1818

1919
'run test class from file' => function() use($path, $proc) {
20+
$dir= $path->compose(__DIR__, 'classes');
2021
$this->assertEquals(
2122
[0 => ['Hello World']],
22-
$proc->execute($this->exe, ['-cp', __DIR__.'/classes', 'classes/Test.class.php'], $this->env, $this->tmp)
23+
$proc->execute($this->exe, ['-cp', $dir, $path->compose($dir, 'Test.class.php')], $this->env, $this->tmp)
2324
);
2425
},
2526

0 commit comments

Comments
 (0)