mirror of
https://github.com/stan220/WildcardEventDispatcher.git
synced 2026-09-08 16:28:35 +00:00
Add PHPUnit dev dependency and remove HHVM test env
This commit is contained in:
+7
-16
@@ -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:
|
|
||||||
- php: hhvm
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- php: 5.3
|
- php: 5.3
|
||||||
env: COMPOSER_FLAGS="--prefer-lowest"
|
|
||||||
dist: precise
|
dist: precise
|
||||||
- php: 7.0
|
env: COMPOSER_FLAGS="--prefer-lowest"
|
||||||
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:
|
script:
|
||||||
- travis_retry composer self-update
|
- vendor/bin/phpunit -v
|
||||||
|
|
||||||
install:
|
|
||||||
- composer update ${COMPOSER_FLAGS} --no-interaction
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
+2
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user