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

Tests failed with Docker #9

Closed
sandrokeil opened this issue Mar 16, 2016 · 0 comments
Closed

Tests failed with Docker #9

sandrokeil opened this issue Mar 16, 2016 · 0 comments

Comments

@sandrokeil
Copy link
Member

I'm not sure why some tests fail with Docker. It looks like a filesystem timestamp issue. If you have Docker and the Composer dependencies installed then run the following command from the root of the repository:

$ docker run --rm -it --volume $(pwd):/app prooph/php:5.6-cli php vendor/bin/phpunit

This gives the following output;

PHPUnit 5.2.12 by Sebastian Bergmann and contributors.

.......FFF                                                        10 / 10 (100%)

Time: 110 ms, Memory: 4.75Mb

There were 3 failures:

1) ProophTest\EventStore\Adapter\Flywheel\FlywheelEventStoreAdapterTest::it_replays
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'ProophTest\EventStore\Mock\UserCreated'
+'ProophTest\EventStore\Mock\UsernameChanged'

/app/tests/FlywheelEventStoreAdapterTest.php:174

2) ProophTest\EventStore\Adapter\Flywheel\FlywheelEventStoreAdapterTest::it_replays_from_specific_date
Failed asserting that actual size 3 matches expected size 2.

/app/tests/FlywheelEventStoreAdapterTest.php:202

3) ProophTest\EventStore\Adapter\Flywheel\FlywheelEventStoreAdapterTest::it_replays_events_of_two_aggregates_in_a_single_stream_in_correct_order
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (
-        'name' => 'Max Mustermann'
-        'email' => 'contact@prooph.de'
+        'name' => 'John Doe'
     )
     1 => Array (
-        'name' => 'John Doe'
+        'name' => 'Jane Doe'
+        'email' => 'jane@acme.com'
     )
     2 => Array (
-        'name' => 'Jane Doe'
-        'email' => 'jane@acme.com'
+        'name' => 'Max Mustermann'
+        'email' => 'contact@prooph.de'
     )
 )

/app/tests/FlywheelEventStoreAdapterTest.php:238

FAILURES!
Tests: 10, Assertions: 22, Failures: 3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant