From: Michael Wallner Date: Wed, 2 Sep 2015 15:46:44 +0000 (+0200) Subject: fix tests X-Git-Tag: v4.1.0~13 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=76847a186d4960506c2e6607bc44e922a69a68b1;p=pharext%2Fpharext fix tests --- diff --git a/tests/autoload.php b/tests/autoload.php index 116defa..341def0 100644 --- a/tests/autoload.php +++ b/tests/autoload.php @@ -1,5 +1,5 @@ PHP installation prefix if phpize is not in \$PATH, e.g. /opt/php7 -n|--common-name PHP common program name, e.g. php5 or zts-php [php] - -c|--configure Additional extension configure flags, e.g. -c --with-flag + -c|--configure Additional extension configure flags, e.g. -c --with-flag (MULTIPLE) -s|--sudo [] Installation might need increased privileges [sudo -S %s] diff --git a/tests/src/pharext/TaskTest.php b/tests/src/pharext/TaskTest.php index cb11377..247b2e5 100644 --- a/tests/src/pharext/TaskTest.php +++ b/tests/src/pharext/TaskTest.php @@ -57,10 +57,10 @@ class TaskTest extends \PHPUnit_Framework_TestCase "name" => "json_post", "release" => "1.0.0", "license" => file_get_contents($src->getBaseDir()."/LICENSE"), - "stub" => "pharext_installer.php", "type" => "extension", ]; - $pkg = (new Task\PharBuild($src, $inf))->run(); + $stb = __DIR__."/../../../src/pharext_installer.php"; + $pkg = (new Task\PharBuild($src, $stb, $inf))->run(); $gzp = (new Task\PharCompress($pkg, \Phar::GZ))->run(); $pkg = (new Task\PharRename($pkg, ".", "json_post-1.0.0"))->run(); $gzp = (new Task\PharRename($gzp, ".", "json_post-1.0.0"))->run();