From: Michael Wallner Date: Mon, 9 Mar 2015 08:09:40 +0000 (+0100) Subject: fix tests X-Git-Tag: v2.0.0~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=2bdc45a990e7f16107252539a0cf51b486b43f76;p=pharext%2Fpharext fix tests --- diff --git a/tests/autoload.php b/tests/autoload.php index d914f3f..116defa 100644 --- a/tests/autoload.php +++ b/tests/autoload.php @@ -1,4 +1,5 @@ source = new GitSourceDir(new Cmd, "."); + $this->source = new SourceDir\Git(new Cmd, "."); } public function testGetBaseDir() { @@ -30,7 +33,7 @@ class GitSourceDirTest extends \PHPUnit_Framework_TestCase } public function testIterator() { - $git_files = `git ls-files | xargs -I{} -n1 echo \$(pwd)/{}`; + $git_files = `git ls-tree --name-only -r HEAD | xargs -I{} -n1 echo \$(pwd)/{}`; $dir_files = implode("\n", iterator_to_array($this->source->getIterator()))."\n"; $this->assertSame($git_files, $dir_files); } diff --git a/tests/src/pharext/Version.php b/tests/src/pharext/Version.php new file mode 120000 index 0000000..39773a5 --- /dev/null +++ b/tests/src/pharext/Version.php @@ -0,0 +1 @@ +../../../src/pharext/Version.php \ No newline at end of file