From c838a0ae8fe775bc50bf77341f9b6ffb091a8832 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sat, 25 Mar 2017 21:40:22 +0100 Subject: [PATCH] Only cache dist files on Travis and use --prefer-dist --- .travis.yml | 8 ++++---- test/PromiseMapTest.php | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3f53501..b2329df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ install: make install; popd; echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"; - + - curl -LS https://pecl.php.net/get/ev | tar -xz; pushd ev-*; phpize; @@ -48,7 +48,7 @@ install: popd; echo "extension=event.so" >> "$(php -r 'echo php_ini_loaded_file();')"; - - composer update -n --prefer-source + - composer update -n --prefer-dist - composer show script: @@ -60,7 +60,7 @@ script: after_script: - composer require satooshi/php-coveralls dev-master - php vendor/bin/coveralls -v - + cache: directories: - - $HOME/.composer/cache + - $HOME/.composer/cache/files diff --git a/test/PromiseMapTest.php b/test/PromiseMapTest.php index a91f0ca..d9a128d 100644 --- a/test/PromiseMapTest.php +++ b/test/PromiseMapTest.php @@ -8,8 +8,9 @@ use Amp\Loop; use Amp\Pause; use Amp\Promise; use Amp\Success; +use PHPUnit\Framework\TestCase; -class PromiseMapTest extends \PHPUnit\Framework\TestCase { +class PromiseMapTest extends TestCase { public function testEmptyArray() { $values = []; $invoked = false;