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 #13

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
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@
"autoload": {
"psr-4": {
"Prooph\\EventSourcing\\": "src/"

}
},
"suggest" : {
"prooph/event-store" : "^6.0 - Use prooph/event-store to persist recorded events in event streams"
},
"autoload-dev": {
"psr-4": {
"Prooph\\EventSourcingTest\\": "tests/"
"ProophTest\\EventSourcing\\": "tests/"
}
}
}
4 changes: 2 additions & 2 deletions tests/AggregateChangedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* Date: 04/17/14 - 21:45
*/

namespace Prooph\EventSourcingTest;
namespace ProophTest\EventSourcing;

use Prooph\EventSourcing\AggregateChanged;

/**
* Class AggregateChangedTest
*
* @package Prooph\EventSourcingTest\EventSourcing
* @package ProophTest\EventSourcing\EventSourcing
* @author Alexander Miertsch <[email protected]>
*/
class AggregateChangedTest extends TestCase
Expand Down
10 changes: 5 additions & 5 deletions tests/AggregateRootTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
* Date: 04/18/14 - 00:03
*/

namespace Prooph\EventSourcingTest;
namespace ProophTest\EventSourcing;

use Prooph\EventSourcing\EventStoreIntegration\AggregateRootDecorator;
use Prooph\EventSourcingTest\Mock\BrokenUser;
use Prooph\EventSourcingTest\Mock\User;
use ProophTest\EventSourcing\Mock\BrokenUser;
use ProophTest\EventSourcing\Mock\User;

/**
* Class AggregateRootTest
*
* @package Prooph\EventSourcingTest\EventSourcing
* @package ProophTest\EventSourcing\EventSourcing
* @author Alexander Miertsch <[email protected]>
*/
class AggregateRootTest extends TestCase
Expand Down Expand Up @@ -68,7 +68,7 @@ public function it_applies_event_by_calling_appropriate_event_handler()
/**
* @test
* @expectedException RuntimeException
* @expectedExceptionMessage Missing event handler method whenUserCreated for aggregate root Prooph\EventSourcingTest\Mock\BrokenUser
* @expectedExceptionMessage Missing event handler method whenUserCreated for aggregate root ProophTest\EventSourcing\Mock\BrokenUser
*/
public function it_throws_exception_when_no_handler_on_aggregate()
{
Expand Down
6 changes: 3 additions & 3 deletions tests/EventStoreIntegration/AggregateRootDecoratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
* Date: 08/26/15 - 20:32
*/

namespace Prooph\EventSourcingTest\EventStoreIntegration;
namespace ProophTest\EventSourcing\EventStoreIntegration;

use PHPUnit_Framework_TestCase as TestCase;
use Prooph\EventSourcing\EventStoreIntegration\AggregateRootDecorator;
use Prooph\EventSourcingTest\Mock\ExtendedAggregateRootDecorator;
use ProophTest\EventSourcing\Mock\ExtendedAggregateRootDecorator;

/**
* Class AggregateRootDecoratorTest
*
* @package Prooph\EventSourcingTest\EventStoreIntegration
* @package ProophTest\EventSourcing\EventStoreIntegration
*/
class AggregateRootDecoratorTest extends TestCase
{
Expand Down
10 changes: 5 additions & 5 deletions tests/EventStoreIntegration/AggregateTranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* Date: 09/07/14 - 19:49
*/

namespace Prooph\EventSourcingTest\EventStoreIntegration;
namespace ProophTest\EventSourcing\EventStoreIntegration;

use Prooph\Common\Event\ProophActionEventEmitter;
use Prooph\EventSourcing\EventStoreIntegration\AggregateRootDecorator;
use Prooph\EventSourcing\EventStoreIntegration\AggregateTranslator;
use Prooph\EventSourcingTest\Mock\User;
use Prooph\EventSourcingTest\TestCase;
use ProophTest\EventSourcing\Mock\User;
use ProophTest\EventSourcing\TestCase;
use Prooph\EventStore\Adapter\InMemoryAdapter;
use Prooph\EventStore\Aggregate\AggregateRepository;
use Prooph\EventStore\Aggregate\AggregateType;
Expand All @@ -27,7 +27,7 @@
/**
* Class AggregateTranslatorTest
*
* @package Prooph\EventSourcingTest\EventStoreIntegration
* @package ProophTest\EventSourcing\EventStoreIntegration
* @author Alexander Miertsch <[email protected]>
*/
class AggregateTranslatorTest extends TestCase
Expand Down Expand Up @@ -101,7 +101,7 @@ protected function resetRepository()
{
$this->repository = new AggregateRepository(
$this->eventStore,
AggregateType::fromAggregateRootClass('Prooph\EventSourcingTest\Mock\User'),
AggregateType::fromAggregateRootClass('ProophTest\EventSourcing\Mock\User'),
new AggregateTranslator(),
new SingleStreamStrategy($this->eventStore)
);
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/BrokenUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Date: 08/26/15 - 19:58
*/

namespace Prooph\EventSourcingTest\Mock;
namespace ProophTest\EventSourcing\Mock;

use Prooph\EventSourcing\AggregateChanged;
use Prooph\EventSourcing\AggregateRoot;
Expand All @@ -18,7 +18,7 @@
/**
* Class BrokenUser
*
* @package Prooph\EventStoreTest\Mock
* @package ProophTest\EventSourcing\Mock
* @author Alexander Miertsch <[email protected]>
*/
class BrokenUser extends AggregateRoot
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/ExtendedAggregateRootDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* Date: 08/26/15 - 19:58
*/

namespace Prooph\EventSourcingTest\Mock;
namespace ProophTest\EventSourcing\Mock;

use Prooph\EventSourcing\EventStoreIntegration\AggregateRootDecorator;

/**
* Class ExtendedAggregateRootDecorator
* @package Prooph\EventSourcingTest\Mock
* @package ProophTest\EventSourcing\Mock
*/
class ExtendedAggregateRootDecorator extends AggregateRootDecorator
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* Date: 04/18/14 - 00:04
*/

namespace Prooph\EventSourcingTest\Mock;
namespace ProophTest\EventSourcing\Mock;

use Prooph\EventSourcing\AggregateRoot;
use Rhumsaa\Uuid\Uuid;

/**
* Class User
*
* @package Prooph\EventStoreTest\Mock
* @package ProophTest\EventSourcing\Mock
* @author Alexander Miertsch <[email protected]>
*/
class User extends AggregateRoot
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/UserCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* Date: 04/18/14 - 00:29
*/

namespace Prooph\EventSourcingTest\Mock;
namespace ProophTest\EventSourcing\Mock;

use Prooph\EventSourcing\AggregateChanged;

/**
* Class UserCreated
*
* @package Prooph\EventStoreTest\Mock
* @package ProophTest\EventSourcing\Mock
* @author Alexander Miertsch <[email protected]>
*/
class UserCreated extends AggregateChanged
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/UserNameChanged.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* Date: 04/18/14 - 00:08
*/

namespace Prooph\EventSourcingTest\Mock;
namespace ProophTest\EventSourcing\Mock;

use Prooph\EventSourcing\AggregateChanged;

/**
* Class UserNameChanged
*
* @package Prooph\EventStoreTest\Mock
* @package ProophTest\EventSourcing\Mock
* @author Alexander Miertsch <[email protected]>
*/
class UserNameChanged extends AggregateChanged
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
* Date: 06/06/14 - 23:05
*/

namespace Prooph\EventSourcingTest;
namespace ProophTest\EventSourcing;

/**
* Class TestCase
*
* @package Prooph\EventSourcingTest
* @package ProophTest\EventSourcing
* @author Alexander Miertsch <[email protected]>
*/
class TestCase extends \PHPUnit_Framework_TestCase
Expand Down