Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix namespace organisation in tests #75

Merged
merged 1 commit into from
Oct 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"autoload-dev": {
"psr-4": {
"Prooph\\ServiceBusTest\\": "tests/"
"ProophTest\\ServiceBus\\": "tests/"
}
}
}
12 changes: 6 additions & 6 deletions tests/CommandBusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
* Date: 08/02/15 - 8:17 PM
*/

namespace Prooph\ServiceBusTest;
namespace ProophTest\ServiceBus;

use Prooph\Common\Event\ActionEvent;
use Prooph\Common\Event\DefaultActionEvent;
use Prooph\ServiceBus\CommandBus;
use Prooph\ServiceBus\Exception\MessageDispatchException;
use Prooph\ServiceBus\MessageBus;
use Prooph\ServiceBus\QueryBus;
use Prooph\ServiceBusTest\Mock\CustomMessage;
use Prooph\ServiceBusTest\Mock\DoSomething;
use Prooph\ServiceBusTest\Mock\ErrorProducer;
use Prooph\ServiceBusTest\Mock\MessageHandler;
use ProophTest\ServiceBus\Mock\CustomMessage;
use ProophTest\ServiceBus\Mock\DoSomething;
use ProophTest\ServiceBus\Mock\ErrorProducer;
use ProophTest\ServiceBus\Mock\MessageHandler;

/**
* Class CommandBusTest
* @package Prooph\ServiceBusTest
* @package ProophTest\ServiceBus
*/
final class CommandBusTest extends TestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Container/BusFactoriesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Date: 08/16/15 - 9:34 PM
*/

namespace Prooph\ServiceBusTest\Factory;
namespace ProophTest\ServiceBus\Factory;

use Interop\Container\ContainerInterface;
use Prooph\Common\Event\ActionEventEmitter;
Expand All @@ -23,13 +23,13 @@
use Prooph\ServiceBus\Container\QueryBusFactory;
use Prooph\ServiceBus\Plugin\Router\RegexRouter;
use Prooph\ServiceBus\QueryBus;
use Prooph\ServiceBusTest\TestCase;
use ProophTest\ServiceBus\TestCase;
use Prophecy\Argument;

/**
* Class BusFactoriesTest
*
* @package Prooph\ServiceBusTest\Container
* @package ProophTest\ServiceBus\Container
* @author Alexander Miertsch <alexander.miertsch.extern@sixt.com>
*/
final class BusFactoriesTest extends TestCase
Expand Down
4 changes: 2 additions & 2 deletions tests/Container/Plugin/Guard/FinalizeGuardFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Date: 09/13/15 -7:47 PM
*/

namespace Prooph\ServiceBusTest\Container\Plugin\Guard;
namespace ProophTest\ServiceBus\Container\Plugin\Guard;

use Interop\Container\ContainerInterface;
use PHPUnit_Framework_TestCase as TestCase;
Expand All @@ -19,7 +19,7 @@

/**
* Class FinalizeGuardFactoryTest
* @package Prooph\ServiceBusTest\Container\Plugin\Guard
* @package ProophTest\ServiceBus\Container\Plugin\Guard
*/
final class FinalizeGuardFactoryTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Container/Plugin/Guard/RouteGuardFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Date: 09/13/15 -7:47 PM
*/

namespace Prooph\ServiceBusTest\Container\Plugin\Guard;
namespace ProophTest\ServiceBus\Container\Plugin\Guard;

use Interop\Container\ContainerInterface;
use PHPUnit_Framework_TestCase as TestCase;
Expand All @@ -19,7 +19,7 @@

/**
* Class RouteGuardFactoryTest
* @package Prooph\ServiceBusTest\Container\Plugin\Guard
* @package ProophTest\ServiceBus\Container\Plugin\Guard
*/
final class RouteGuardFactoryTest extends TestCase
{
Expand Down
12 changes: 6 additions & 6 deletions tests/EventBusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
* Date: 08/02/15 - 8:17 PM
*/

namespace Prooph\ServiceBusTest;
namespace ProophTest\ServiceBus;

use Prooph\Common\Event\ActionEvent;
use Prooph\Common\Event\DefaultActionEvent;
use Prooph\ServiceBus\EventBus;
use Prooph\ServiceBus\Exception\MessageDispatchException;
use Prooph\ServiceBus\MessageBus;
use Prooph\ServiceBusTest\Mock\CustomMessage;
use Prooph\ServiceBusTest\Mock\ErrorProducer;
use Prooph\ServiceBusTest\Mock\MessageHandler;
use Prooph\ServiceBusTest\Mock\SomethingDone;
use ProophTest\ServiceBus\Mock\CustomMessage;
use ProophTest\ServiceBus\Mock\ErrorProducer;
use ProophTest\ServiceBus\Mock\MessageHandler;
use ProophTest\ServiceBus\Mock\SomethingDone;

/**
* Class EventBusTest
* @package Prooph\ServiceBusTest
* @package ProophTest\ServiceBus
*/
final class EventBusTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/CustomMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* Date: 08/02/15 - 8:35 PM
*/

namespace Prooph\ServiceBusTest\Mock;
namespace ProophTest\ServiceBus\Mock;

/**
* Class CustomMessage
* @package Prooph\ServiceBusTest\Mock
* @package ProophTest\ServiceBus\Mock
*/
final class CustomMessage
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/CustomMessageCommandHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* Date: 08/02/15 - 8:38 PM
*/

namespace Prooph\ServiceBusTest\Mock;
namespace ProophTest\ServiceBus\Mock;

/**
* Class CustomMessageCommandHandler
* @package Prooph\ServiceBusTest\Mock
* @package ProophTest\ServiceBus\Mock
*/
final class CustomMessageCommandHandler
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/DoSomething.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* Date: 08/02/15 - 8:19 PM
*/

namespace Prooph\ServiceBusTest\Mock;
namespace ProophTest\ServiceBus\Mock;

use Prooph\Common\Messaging\Command;
use Prooph\Common\Messaging\PayloadConstructable;
use Prooph\Common\Messaging\PayloadTrait;

/**
* Class DoSomething
* @package Prooph\ServiceBusTest\Mock
* @package ProophTest\ServiceBus\Mock
*/
final class DoSomething extends Command implements PayloadConstructable
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/ErrorProducer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* Date: 08/02/15 - 8:40 PM
*/

namespace Prooph\ServiceBusTest\Mock;
namespace ProophTest\ServiceBus\Mock;

/**
* Class ErrorProducer
* @package Prooph\ServiceBusTest\Mock
* @package ProophTest\ServiceBus\Mock
*/
final class ErrorProducer
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/FetchSomething.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* Date: 08/02/15 - 9:55 PM
*/

namespace Prooph\ServiceBusTest\Mock;
namespace ProophTest\ServiceBus\Mock;

use Prooph\Common\Messaging\PayloadConstructable;
use Prooph\Common\Messaging\PayloadTrait;
use Prooph\Common\Messaging\Query;

/**
* Class FetchSomething
* @package Prooph\ServiceBusTest\Mock
* @package ProophTest\ServiceBus\Mock
*/
final class FetchSomething extends Query implements PayloadConstructable
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* Date: 08/02/15 - 9:31 PM
*/

namespace Prooph\ServiceBusTest\Mock;
namespace ProophTest\ServiceBus\Mock;

/**
* Class Finder
* @package Prooph\ServiceBusTest\Mock
* @package ProophTest\ServiceBus\Mock
*/
final class Finder
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/MessageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* Date: 08/02/15 - 8:38 PM
*/

namespace Prooph\ServiceBusTest\Mock;
namespace ProophTest\ServiceBus\Mock;

/**
* Class MessageHandler
* @package Prooph\ServiceBusTest\Mock
* @package ProophTest\ServiceBus\Mock
*/
final class MessageHandler
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/SomethingDone.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* Date: 08/02/15 - 9:46 PM
*/

namespace Prooph\ServiceBusTest\Mock;
namespace ProophTest\ServiceBus\Mock;

use Prooph\Common\Messaging\DomainEvent;
use Prooph\Common\Messaging\PayloadConstructable;
use Prooph\Common\Messaging\PayloadTrait;

/**
* Class SomethingDone
* @package Prooph\ServiceBusTest\Mock
* @package ProophTest\ServiceBus\Mock
*/
final class SomethingDone extends DomainEvent implements PayloadConstructable
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Plugin/Guard/FinalizeGuardTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Prooph\ServiceBusTest\Plugin\Guard;
namespace ProophTest\ServiceBus\Plugin\Guard;

use PHPUnit_Framework_TestCase as TestCase;
use Prooph\Common\Event\ActionEvent;
Expand All @@ -13,7 +13,7 @@

/**
* Class FinalizeGuardTest
* @package Prooph\ServiceBusTest\Plugin\Guard
* @package ProophTest\ServiceBus\Plugin\Guard
*/
final class FinalizeGuardTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Plugin/Guard/RouteGuardTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Prooph\ServiceBusTest\Plugin\Guard;
namespace ProophTest\ServiceBus\Plugin\Guard;

use PHPUnit_Framework_TestCase as TestCase;
use Prooph\Common\Event\ActionEvent;
Expand All @@ -12,7 +12,7 @@

/**
* Class RouteGuardTest
* @package Prooph\ServiceBusTest\Plugin\Guard
* @package ProophTest\ServiceBus\Plugin\Guard
*/
final class RouteGuardTest extends TestCase
{
Expand Down
5 changes: 2 additions & 3 deletions tests/Plugin/InvokeStrategy/AbstractInvokeStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
* Date: 08/29/15 - 13:59
*/

namespace Prooph\ServiceBusTest\Plugin\InvokeStrategy;
namespace ProophTest\ServiceBus\Plugin\InvokeStrategy;

use PHPUnit_Framework_TestCase as TestCase;
use Prooph\Common\Event\ActionEvent;
use Prooph\Common\Event\ActionEventEmitter;
use Prooph\Common\Event\ListenerHandler;
use Prooph\Common\Messaging\Message;
use Prooph\ServiceBus\MessageBus;
use Prooph\ServiceBus\Plugin\InvokeStrategy\AbstractInvokeStrategy;

/**
* Class AbstractInvokeStrategyTest
* @package Prooph\ServiceBusTest\Plugin\InvokeStrategy
* @package ProophTest\ServiceBus\Plugin\InvokeStrategy
*/
final class AbstractInvokeStrategyTest extends TestCase
{
Expand Down
8 changes: 4 additions & 4 deletions tests/Plugin/InvokeStrategy/FinderInvokeStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
* Date: 05/23/15 - 6:07 PM
*/

namespace Prooph\ServiceBusTest\Plugin\InvokeStrategy;
namespace ProophTest\ServiceBus\Plugin\InvokeStrategy;

use Prooph\Common\Event\DefaultActionEvent;
use Prooph\ServiceBus\Plugin\InvokeStrategy\FinderInvokeStrategy;
use Prooph\ServiceBus\QueryBus;
use Prooph\ServiceBusTest\Mock\CustomMessage;
use Prooph\ServiceBusTest\Mock\Finder;
use ProophTest\ServiceBus\Mock\CustomMessage;
use ProophTest\ServiceBus\Mock\Finder;
use React\Promise\Deferred;

/**
* Class FinderInvokeStrategyTest
*
* @package Prooph\ServiceBusTest\InvokeStrategy
* @package ProophTest\ServiceBus\Plugin\InvokeStrategy
* @author Alexander Miertsch <alexander.miertsch.extern@sixt.com>
*/
final class FinderInvokeStrategyTest extends \PHPUnit_Framework_TestCase
Expand Down
12 changes: 6 additions & 6 deletions tests/Plugin/InvokeStrategy/HandleCommandStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
* Date: 03/09/14 - 21:45
*/

namespace Prooph\ServiceBusTest\Plugin\InvokeStrategy;
namespace ProophTest\ServiceBus\Plugin\InvokeStrategy;

use Prooph\ServiceBus\Plugin\InvokeStrategy\HandleCommandStrategy;
use Prooph\ServiceBusTest\Mock\CustomMessage;
use Prooph\ServiceBusTest\Mock\CustomMessageCommandHandler;
use Prooph\ServiceBusTest\Mock\MessageHandler;
use Prooph\ServiceBusTest\TestCase;
use ProophTest\ServiceBus\Mock\CustomMessage;
use ProophTest\ServiceBus\Mock\CustomMessageCommandHandler;
use ProophTest\ServiceBus\Mock\MessageHandler;
use ProophTest\ServiceBus\TestCase;

/**
* Class HandleCommandStrategyTest
*
* @package Prooph\ServiceBusTest\InvokeStrategy
* @package ProophTest\ServiceBus\Plugin\InvokeStrategy
* @author Alexander Miertsch <contact@prooph.de>
*/
class HandleCommandStrategyTest extends TestCase
Expand Down
10 changes: 5 additions & 5 deletions tests/Plugin/InvokeStrategy/OnEventStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
* Date: 03/11/14 - 21:51
*/

namespace Prooph\ServiceBusTest\Plugin\InvokeStrategy;
namespace ProophTest\ServiceBus\Plugin\InvokeStrategy;

use Prooph\ServiceBus\Plugin\InvokeStrategy\OnEventStrategy;
use Prooph\ServiceBusTest\Mock\CustomMessage;
use Prooph\ServiceBusTest\Mock\MessageHandler;
use Prooph\ServiceBusTest\TestCase;
use ProophTest\ServiceBus\Mock\CustomMessage;
use ProophTest\ServiceBus\Mock\MessageHandler;
use ProophTest\ServiceBus\TestCase;

/**
* Class OnEventStrategyTest
*
* @package Prooph\ServiceBusTest\InvokeStrategy
* @package ProophTest\ServiceBus\Plugin\InvokeStrategy
* @author Alexander Miertsch <contact@prooph.de>
*/
class OnEventStrategyTest extends TestCase
Expand Down
Loading