Completed
Push — master ( c85972...e44201 )
by Ivannis Suárez
03:16
created
Tests/Units/Middlewares/EventDispatcher/EventDispatcherMiddlewareTests.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             ->and($middleware = new EventDispatcherMiddleware($dispatcher))
34 34
             ->and($event = new LoginUserEvent('[email protected]'))
35 35
             ->and($dispatcher->addListener($event->eventName(), array(new LoginUserEventListener(), 'onLogin')))
36
-            ->and($dispatcher->addListener($event->eventName(), function (LoginUserEvent $event) {
36
+            ->and($dispatcher->addListener($event->eventName(), function(LoginUserEvent $event) {
37 37
                 $this
38 38
                     ->string($event->email())
39 39
                     ->isEqualTo('[email protected]')
@@ -41,14 +41,14 @@  discard block
 block discarded – undo
41 41
 
42 42
                 $event->setEmail('[email protected]');
43 43
             }))
44
-            ->and($callable = function (LoginUserEvent $event) {
44
+            ->and($callable = function(LoginUserEvent $event) {
45 45
                 $event->setEmail('[email protected]');
46 46
             })
47 47
             ->when($result = $middleware->handle($event, $callable))
48 48
             ->then()
49 49
                 ->string($event->email())
50 50
                     ->isEqualTo('[email protected]')
51
-                ->exception(function () use ($middleware, $callable) {
51
+                ->exception(function() use ($middleware, $callable) {
52 52
                     $middleware->handle(new \StdClass(), $callable);
53 53
                 })->isInstanceOf(\InvalidArgumentException::class)
54 54
         ;
Please login to merge, or discard this patch.