Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Nov 27, 2013
1 parent 87d3d0f commit 1755189
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/LiteCQRS/DefaultDomainEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

abstract class DefaultDomainEvent implements DomainEvent
{
/**
* @var \DateTime
*/
private $date;

public function __construct(array $data = array())
{
foreach ($data as $key => $value) {
Expand Down
2 changes: 1 addition & 1 deletion tests/LiteCQRS/CQRSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function testDispatchEventsInOrder()

public function testDispatchEventsInDifferentSeconds()
{
$reflClass = new \ReflectionClass(__NAMESPACE__ . '\\FooEvent');
$reflClass = new \ReflectionClass('LiteCQRS\DefaultDomainEvent');
$dateProperty = $reflClass->getProperty('date');
$dateProperty->setAccessible(true);

Expand Down

0 comments on commit 1755189

Please sign in to comment.