1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00

Only cache dist files on Travis and use --prefer-dist

This commit is contained in:
Niklas Keller 2017-03-25 21:40:22 +01:00
parent 9def47e50d
commit c838a0ae8f
2 changed files with 6 additions and 5 deletions

View File

@ -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:
@ -63,4 +63,4 @@ after_script:
cache:
directories:
- $HOME/.composer/cache
- $HOME/.composer/cache/files

View File

@ -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;