Skip to content

Commit

Permalink
Merge dc4f911 into e054418
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k authored Dec 30, 2019
2 parents e054418 + dc4f911 commit 7ed9feb
Show file tree
Hide file tree
Showing 16 changed files with 38 additions and 19 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,29 @@ branches:
matrix:
fast_finish: true
include:
- php: 7.3
- php: 7.2
- php: 7.1
- php: 7.0
- php: 5.6
- php: 5.5
- php: 5.5
dist: trusty
env: SYMFONY_VERSION=2.7.*
- php: 5.5
dist: trusty
env: SYMFONY_VERSION=2.8.*
- php: 5.5
dist: trusty
env: SYMFONY_VERSION=3.0.*
- php: 5.5
dist: trusty
env: PREDIS_VERSION=1.0.*
- php: 5.5
dist: trusty
env: PREDIS_VERSION=1.1.*
- php: 5.6
env: PUBSUB_PREDIS_VERSION=2.0.*
- php: hhvm
sudo: required
dist: trusty
group: edge

before_install:
- if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then echo 'xdebug.enable = on' >> /etc/hhvm/php.ini; fi
Expand Down
3 changes: 2 additions & 1 deletion tests/Command/Bus/HandlerLocatedCommandBusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
use GpsLab\Component\Command\Bus\HandlerLocatedCommandBus;
use GpsLab\Component\Command\Command;
use GpsLab\Component\Command\Handler\Locator\CommandHandlerLocator;
use PHPUnit\Framework\TestCase;

class HandlerLocatedCommandBusTest extends \PHPUnit_Framework_TestCase
class HandlerLocatedCommandBusTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|CommandHandlerLocator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
use GpsLab\Component\Tests\Fixture\Command\CreateContact;
use GpsLab\Component\Tests\Fixture\Command\Handler\CreateContactHandler;
use Psr\Container\ContainerInterface;
use PHPUnit\Framework\TestCase;

class ContainerCommandHandlerLocatorTest extends \PHPUnit_Framework_TestCase
class ContainerCommandHandlerLocatorTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|ContainerInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

use GpsLab\Component\Command\Handler\Locator\DirectBindingCommandHandlerLocator;
use GpsLab\Component\Command\Command;
use PHPUnit\Framework\TestCase;

class DirectBindingCommandHandlerLocatorTest extends \PHPUnit_Framework_TestCase
class DirectBindingCommandHandlerLocatorTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|Command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
use GpsLab\Component\Tests\Fixture\Command\Handler\RenameContactHandler;
use GpsLab\Component\Tests\Fixture\Command\RenameContactCommand;
use Symfony\Component\DependencyInjection\ContainerInterface;
use PHPUnit\Framework\TestCase;

class SymfonyContainerCommandHandlerLocatorTest extends \PHPUnit_Framework_TestCase
class SymfonyContainerCommandHandlerLocatorTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|ContainerInterface
Expand Down
3 changes: 2 additions & 1 deletion tests/Command/Queue/Pull/MemoryPullCommandQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
use GpsLab\Component\Command\Queue\Pull\MemoryPullCommandQueue;
use GpsLab\Component\Tests\Fixture\Command\CreateContact;
use GpsLab\Component\Tests\Fixture\Command\RenameContactCommand;
use PHPUnit\Framework\TestCase;

class MemoryPullCommandQueueTest extends \PHPUnit_Framework_TestCase
class MemoryPullCommandQueueTest extends TestCase
{
/**
* @var MemoryPullCommandQueue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
use GpsLab\Component\Command\Queue\Pull\MemoryUniquePullCommandQueue;
use GpsLab\Component\Tests\Fixture\Command\CreateContact;
use GpsLab\Component\Tests\Fixture\Command\RenameContactCommand;
use PHPUnit\Framework\TestCase;

class MemoryUniquePullCommandQueueTest extends \PHPUnit_Framework_TestCase
class MemoryUniquePullCommandQueueTest extends TestCase
{
/**
* @var MemoryUniquePullCommandQueue
Expand Down
3 changes: 2 additions & 1 deletion tests/Command/Queue/Pull/PredisPullCommandQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
use GpsLab\Component\Tests\Fixture\Command\RenameContactCommand;
use Predis\Client;
use Psr\Log\LoggerInterface;
use PHPUnit\Framework\TestCase;

class PredisPullCommandQueueTest extends \PHPUnit_Framework_TestCase
class PredisPullCommandQueueTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
use GpsLab\Component\Tests\Fixture\Command\RenameContactCommand;
use Predis\Client;
use Psr\Log\LoggerInterface;
use PHPUnit\Framework\TestCase;

class PredisUniquePullCommandQueueTest extends \PHPUnit_Framework_TestCase
class PredisUniquePullCommandQueueTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|Client
Expand Down
3 changes: 2 additions & 1 deletion tests/Command/Queue/Serializer/SymfonySerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
use GpsLab\Component\Command\Command;
use GpsLab\Component\Command\Queue\Serializer\SymfonySerializer;
use Symfony\Component\Serializer\SerializerInterface;
use PHPUnit\Framework\TestCase;

class SymfonySerializerTest extends \PHPUnit_Framework_TestCase
class SymfonySerializerTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|SerializerInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

use GpsLab\Component\Command\Command;
use GpsLab\Component\Command\Queue\Subscribe\ExecutingSubscribeCommandQueue;
use PHPUnit\Framework\TestCase;

class ExecutingSubscribeCommandQueueTest extends \PHPUnit_Framework_TestCase
class ExecutingSubscribeCommandQueueTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|Command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
use GpsLab\Component\Command\Queue\Subscribe\PredisSubscribeCommandQueue;
use Psr\Log\LoggerInterface;
use Superbalist\PubSub\Redis\RedisPubSubAdapter;
use PHPUnit\Framework\TestCase;

class PredisSubscribeCommandQueueTest extends \PHPUnit_Framework_TestCase
class PredisSubscribeCommandQueueTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|Command
Expand Down Expand Up @@ -181,6 +182,7 @@ public function testSubscribeHandlerFailure()
$handler = function ($command) use ($exception) {
$this->assertInstanceOf(Command::class, $command);
$this->assertEquals($this->command, $command);

throw $exception;
};

Expand Down
3 changes: 2 additions & 1 deletion tests/Query/Bus/HandlerLocatedQueryBusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
use GpsLab\Component\Query\Bus\HandlerLocatedQueryBus;
use GpsLab\Component\Query\Query;
use GpsLab\Component\Query\Handler\Locator\QueryHandlerLocator;
use PHPUnit\Framework\TestCase;

class HandlerLocatedQueryBusTest extends \PHPUnit_Framework_TestCase
class HandlerLocatedQueryBusTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|QueryHandlerLocator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
use GpsLab\Component\Tests\Fixture\Query\ContactByIdentity;
use GpsLab\Component\Tests\Fixture\Query\Handler\ContactByIdentityHandler;
use Psr\Container\ContainerInterface;
use PHPUnit\Framework\TestCase;

class ContainerQueryHandlerLocatorTest extends \PHPUnit_Framework_TestCase
class ContainerQueryHandlerLocatorTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|ContainerInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

use GpsLab\Component\Query\Handler\Locator\DirectBindingQueryHandlerLocator;
use GpsLab\Component\Query\Query;
use PHPUnit\Framework\TestCase;

class DirectBindingQueryHandlerLocatorTest extends \PHPUnit_Framework_TestCase
class DirectBindingQueryHandlerLocatorTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|Query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
use GpsLab\Component\Tests\Fixture\Query\ContactByNameQuery;
use GpsLab\Component\Tests\Fixture\Query\Handler\ContactByNameHandler;
use Symfony\Component\DependencyInjection\ContainerInterface;
use PHPUnit\Framework\TestCase;

class SymfonyContainerQueryHandlerLocatorTest extends \PHPUnit_Framework_TestCase
class SymfonyContainerQueryHandlerLocatorTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|ContainerInterface
Expand Down

0 comments on commit 7ed9feb

Please sign in to comment.