mirror of
https://github.com/stan220/WildcardEventDispatcher.git
synced 2026-09-08 15:28:37 +00:00
Add PHPUnit dev dependency and remove HHVM test env
This commit is contained in:
+11
-20
@@ -1,31 +1,22 @@
|
||||
language: php
|
||||
|
||||
dist: trusty
|
||||
sudo: false
|
||||
|
||||
php:
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- php: hhvm
|
||||
fast_finish: true
|
||||
include:
|
||||
- php: 5.3
|
||||
dist: precise
|
||||
env: COMPOSER_FLAGS="--prefer-lowest"
|
||||
|
||||
include:
|
||||
- php: 5.3
|
||||
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
|
||||
before_script:
|
||||
- composer update --no-interaction --no-progress --no-suggest ${COMPOSER_FLAGS}
|
||||
|
||||
|
||||
before_install:
|
||||
- travis_retry composer self-update
|
||||
|
||||
install:
|
||||
- composer update ${COMPOSER_FLAGS} --no-interaction
|
||||
script:
|
||||
- vendor/bin/phpunit -v
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
"php": ">=5.3.2",
|
||||
"symfony/event-dispatcher": "^2.3 || ^3.0 || ^4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.36 || ^6.4"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": { "Jmikola": "src/" }
|
||||
},
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
namespace Jmikola\Tests\WildcardEventDispatcher;
|
||||
|
||||
use Jmikola\WildcardEventDispatcher\LazyListenerPattern;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class LazyListenerPatternTest extends \PHPUnit_Framework_TestCase
|
||||
class LazyListenerPatternTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException InvalidArgumentException
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
namespace Jmikola\Tests\WildcardEventDispatcher;
|
||||
|
||||
use Jmikola\WildcardEventDispatcher\ListenerPattern;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ListenerPatternTest extends \PHPUnit_Framework_TestCase
|
||||
class ListenerPatternTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider providePatternsAndMatches
|
||||
|
||||
+2
-1
@@ -4,8 +4,9 @@ namespace Jmikola\Tests\WildcardEventDispatcher;
|
||||
|
||||
use Jmikola\WildcardEventDispatcher\WildcardEventDispatcher;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class WildcardEventDispatcherFunctionalTest extends \PHPUnit_Framework_TestCase
|
||||
class WildcardEventDispatcherFunctionalTest extends TestCase
|
||||
{
|
||||
const coreRequest = 'core.request';
|
||||
const coreException = 'core.exception';
|
||||
|
||||
@@ -4,8 +4,9 @@ namespace Jmikola\Tests\WildcardEventDispatcher;
|
||||
|
||||
use Jmikola\WildcardEventDispatcher\WildcardEventDispatcher;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class EventDispatcherTest extends \PHPUnit_Framework_TestCase
|
||||
class EventDispatcherTest extends TestCase
|
||||
{
|
||||
private $dispatcher;
|
||||
private $innerDispatcher;
|
||||
|
||||
Reference in New Issue
Block a user