Add PHPUnit dev dependency and remove HHVM test env

This commit is contained in:
Jeremy Mikola
2018-04-12 09:34:50 -04:00
parent fe0da3a28b
commit 8733d7382b
6 changed files with 22 additions and 24 deletions
+11 -20
View File
@@ -1,31 +1,22 @@
language: php language: php
dist: trusty
sudo: false sudo: false
php: php:
- 5.4 - 5.4
- 5.5 - 5.5
- 5.6 - 5.6
- 7.0
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures: include:
- php: hhvm - php: 5.3
dist: precise
env: COMPOSER_FLAGS="--prefer-lowest"
include: before_script:
- php: 5.3 - composer update --no-interaction --no-progress --no-suggest ${COMPOSER_FLAGS}
env: COMPOSER_FLAGS="--prefer-lowest"
dist: precise
- php: 7.0
before_script:
- curl -sSfL -o ~/.phpenv/versions/7.0/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
- php: hhvm
before_script:
- curl -sSfL -o ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
script:
before_install: - vendor/bin/phpunit -v
- travis_retry composer self-update
install:
- composer update ${COMPOSER_FLAGS} --no-interaction
+3
View File
@@ -12,6 +12,9 @@
"php": ">=5.3.2", "php": ">=5.3.2",
"symfony/event-dispatcher": "^2.3 || ^3.0 || ^4.0" "symfony/event-dispatcher": "^2.3 || ^3.0 || ^4.0"
}, },
"require-dev": {
"phpunit/phpunit": "^4.8.36 || ^6.4"
},
"autoload": { "autoload": {
"psr-0": { "Jmikola": "src/" } "psr-0": { "Jmikola": "src/" }
}, },
@@ -3,8 +3,9 @@
namespace Jmikola\Tests\WildcardEventDispatcher; namespace Jmikola\Tests\WildcardEventDispatcher;
use Jmikola\WildcardEventDispatcher\LazyListenerPattern; use Jmikola\WildcardEventDispatcher\LazyListenerPattern;
use PHPUnit\Framework\TestCase;
class LazyListenerPatternTest extends \PHPUnit_Framework_TestCase class LazyListenerPatternTest extends TestCase
{ {
/** /**
* @expectedException InvalidArgumentException * @expectedException InvalidArgumentException
@@ -3,8 +3,9 @@
namespace Jmikola\Tests\WildcardEventDispatcher; namespace Jmikola\Tests\WildcardEventDispatcher;
use Jmikola\WildcardEventDispatcher\ListenerPattern; use Jmikola\WildcardEventDispatcher\ListenerPattern;
use PHPUnit\Framework\TestCase;
class ListenerPatternTest extends \PHPUnit_Framework_TestCase class ListenerPatternTest extends TestCase
{ {
/** /**
* @dataProvider providePatternsAndMatches * @dataProvider providePatternsAndMatches
@@ -4,8 +4,9 @@ namespace Jmikola\Tests\WildcardEventDispatcher;
use Jmikola\WildcardEventDispatcher\WildcardEventDispatcher; use Jmikola\WildcardEventDispatcher\WildcardEventDispatcher;
use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\Event;
use PHPUnit\Framework\TestCase;
class WildcardEventDispatcherFunctionalTest extends \PHPUnit_Framework_TestCase class WildcardEventDispatcherFunctionalTest extends TestCase
{ {
const coreRequest = 'core.request'; const coreRequest = 'core.request';
const coreException = 'core.exception'; const coreException = 'core.exception';
@@ -4,8 +4,9 @@ namespace Jmikola\Tests\WildcardEventDispatcher;
use Jmikola\WildcardEventDispatcher\WildcardEventDispatcher; use Jmikola\WildcardEventDispatcher\WildcardEventDispatcher;
use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use PHPUnit\Framework\TestCase;
class EventDispatcherTest extends \PHPUnit_Framework_TestCase class EventDispatcherTest extends TestCase
{ {
private $dispatcher; private $dispatcher;
private $innerDispatcher; private $innerDispatcher;