Skip to content

Commit

Permalink
Merge pull request #17 from open-source-contributions/test_enhancement
Browse files Browse the repository at this point in the history
Test enhancement
  • Loading branch information
peter-gribanov committed Dec 23, 2019
2 parents 0fffb95 + 779fc13 commit afa1ee7
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 15 deletions.
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -35,11 +35,12 @@
"symfony/serializer": "~2.3|~3.0|~4.0",
"predis/predis": "~1.0|~1.1",
"php-amqplib/php-amqplib": "^2.9",
"phpunit/phpunit": "4.8.*",
"phpunit/phpunit": "^4.8.36",
"scrutinizer/ocular": "~1.5",
"satooshi/php-coveralls": "^2.0"
"php-coveralls/php-coveralls": "^2.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "2.2-dev"
Expand Down
3 changes: 2 additions & 1 deletion tests/Aggregator/AggregateEventsRaiseInSelfTest.php
Expand Up @@ -12,8 +12,9 @@
use GpsLab\Domain\Event\Event;
use GpsLab\Domain\Event\Tests\Fixture\DemoAggregatorRaiseInSelf;
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCreatedEvent;
use PHPUnit\Framework\TestCase;

class AggregateEventsRaiseInSelfTest extends \PHPUnit_Framework_TestCase
class AggregateEventsRaiseInSelfTest extends TestCase
{
/**
* @var DemoAggregatorRaiseInSelf
Expand Down
3 changes: 2 additions & 1 deletion tests/Aggregator/AggregateEventsTest.php
Expand Up @@ -11,8 +11,9 @@

use GpsLab\Domain\Event\Event;
use GpsLab\Domain\Event\Tests\Fixture\DemoAggregator;
use PHPUnit\Framework\TestCase;

class AggregateEventsTest extends \PHPUnit_Framework_TestCase
class AggregateEventsTest extends TestCase
{
/**
* @var DemoAggregator
Expand Down
3 changes: 2 additions & 1 deletion tests/Bus/ListenerLocatedEventBusTest.php
Expand Up @@ -16,8 +16,9 @@
use GpsLab\Domain\Event\Tests\Fixture\Listener\PurchaseOrderCreatedEventListener;
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCompletedEvent;
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCreatedEvent;
use PHPUnit\Framework\TestCase;

class ListenerLocatedEventBusTest extends \PHPUnit_Framework_TestCase
class ListenerLocatedEventBusTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|EventListenerLocator
Expand Down
3 changes: 2 additions & 1 deletion tests/Bus/QueueEventBusTest.php
Expand Up @@ -14,8 +14,9 @@
use GpsLab\Domain\Event\Bus\QueueEventBus;
use GpsLab\Domain\Event\Event;
use GpsLab\Domain\Event\Queue\EventQueue;
use PHPUnit\Framework\TestCase;

class QueueEventBusTest extends \PHPUnit_Framework_TestCase
class QueueEventBusTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|EventQueue
Expand Down
3 changes: 2 additions & 1 deletion tests/Listener/Locator/ContainerEventListenerLocatorTest.php
Expand Up @@ -16,8 +16,9 @@
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCreatedEvent;
use GpsLab\Domain\Event\Tests\Fixture\Subscriber\PurchaseOrderSubscriber;
use Psr\Container\ContainerInterface;
use PHPUnit\Framework\TestCase;

class ContainerEventListenerLocatorTest extends \PHPUnit_Framework_TestCase
class ContainerEventListenerLocatorTest extends TestCase
{
/**
* @var ContainerEventListenerLocator
Expand Down
Expand Up @@ -16,8 +16,9 @@
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCompletedEvent;
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCreatedEvent;
use GpsLab\Domain\Event\Tests\Fixture\Subscriber\PurchaseOrderSubscriber;
use PHPUnit\Framework\TestCase;

class DirectBindingEventListenerLocatorTest extends \PHPUnit_Framework_TestCase
class DirectBindingEventListenerLocatorTest extends TestCase
{
/**
* @var DirectBindingEventListenerLocator
Expand Down
Expand Up @@ -16,8 +16,9 @@
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCreatedEvent;
use GpsLab\Domain\Event\Tests\Fixture\Subscriber\PurchaseOrderSubscriber;
use Symfony\Component\DependencyInjection\ContainerInterface;
use PHPUnit\Framework\TestCase;

class SymfonyContainerEventListenerLocatorTest extends \PHPUnit_Framework_TestCase
class SymfonyContainerEventListenerLocatorTest extends TestCase
{
/**
* @var SymfonyContainerEventListenerLocator
Expand Down
3 changes: 2 additions & 1 deletion tests/Queue/Pull/MemoryPullEventQueueTest.php
Expand Up @@ -13,8 +13,9 @@
use GpsLab\Domain\Event\Queue\Pull\MemoryPullEventQueue;
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCompletedEvent;
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCreatedEvent;
use PHPUnit\Framework\TestCase;

class MemoryPullEventQueueTest extends \PHPUnit_Framework_TestCase
class MemoryPullEventQueueTest extends TestCase
{
/**
* @var MemoryPullEventQueue
Expand Down
3 changes: 2 additions & 1 deletion tests/Queue/Pull/PredisPullEventQueueTest.php
Expand Up @@ -16,8 +16,9 @@
use GpsLab\Domain\Event\Tests\Fixture\PurchaseOrderCreatedEvent;
use Predis\ClientInterface;
use Psr\Log\LoggerInterface;
use PHPUnit\Framework\TestCase;

class PredisPullEventQueueTest extends \PHPUnit_Framework_TestCase
class PredisPullEventQueueTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|ClientInterface
Expand Down
3 changes: 2 additions & 1 deletion tests/Queue/Serializer/SymfonySerializerTest.php
Expand Up @@ -13,8 +13,9 @@
use GpsLab\Domain\Event\Event;
use GpsLab\Domain\Event\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
3 changes: 2 additions & 1 deletion tests/Queue/Subscribe/AMQPSubscribeEventQueueTest.php
Expand Up @@ -16,8 +16,9 @@
use PhpAmqpLib\Channel\AMQPChannel;
use PhpAmqpLib\Message\AMQPMessage;
use Psr\Log\LoggerInterface;
use PHPUnit\Framework\TestCase;

class AMQPSubscribeEventQueueTest extends \PHPUnit_Framework_TestCase
class AMQPSubscribeEventQueueTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|Event
Expand Down
3 changes: 2 additions & 1 deletion tests/Queue/Subscribe/ExecutingSubscribeEventQueueTest.php
Expand Up @@ -12,8 +12,9 @@

use GpsLab\Domain\Event\Event;
use GpsLab\Domain\Event\Queue\Subscribe\ExecutingSubscribeEventQueue;
use PHPUnit\Framework\TestCase;

class ExecutingSubscribeEventQueueTest extends \PHPUnit_Framework_TestCase
class ExecutingSubscribeEventQueueTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|Event
Expand Down
3 changes: 2 additions & 1 deletion tests/Queue/Subscribe/PredisSubscribeEventQueueTest.php
Expand Up @@ -15,8 +15,9 @@
use GpsLab\Domain\Event\Queue\Subscribe\PredisSubscribeEventQueue;
use Psr\Log\LoggerInterface;
use Superbalist\PubSub\Redis\RedisPubSubAdapter;
use PHPUnit\Framework\TestCase;

class PredisSubscribeEventQueueTest extends \PHPUnit_Framework_TestCase
class PredisSubscribeEventQueueTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject|Event
Expand Down

0 comments on commit afa1ee7

Please sign in to comment.