Test Failed
Push — master ( 437c5d...cafdd0 )
by Alexey
07:14
created
src/Framework/tests/HttpApplicationTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@
 block discarded – undo
70 70
         $middlewareCollector->shouldReceive('pushMiddleware')->with('name', 'middleware')->once();
71 71
         $strategy->shouldReceive('dispatch')->with($route)->andReturn($response)->once();
72 72
         $pipeline->shouldReceive('handle')
73
-                 ->with($request, Mockery::type(Closure::class)
74
-                 )->andReturnUsing(function ($request, $last) {
73
+                    ->with($request, Mockery::type(Closure::class)
74
+                    )->andReturnUsing(function ($request, $last) {
75 75
                 return $last($request);
76 76
             })->once();
77 77
         $emitter->shouldReceive('emit')->with($response)->once();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         $strategy->shouldReceive('dispatch')->with($route)->andReturn($response)->once();
72 72
         $pipeline->shouldReceive('handle')
73 73
                  ->with($request, Mockery::type(Closure::class)
74
-                 )->andReturnUsing(function ($request, $last) {
74
+                 )->andReturnUsing(function($request, $last) {
75 75
                 return $last($request);
76 76
             })->once();
77 77
         $emitter->shouldReceive('emit')->with($response)->once();
Please login to merge, or discard this patch.
src/Framework/tests/RouteMatchTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,12 +88,12 @@
 block discarded – undo
88 88
         // Defining mock methods
89 89
         $route = new Route(['GET'], '/', 'handle');
90 90
         $requestFactory->shouldReceive('createServerRequest')
91
-                       ->with('POST', Mockery::on(function (UriInterface $uri) {
92
-                           return $uri->getPath() === '/'
91
+                        ->with('POST', Mockery::on(function (UriInterface $uri) {
92
+                            return $uri->getPath() === '/'
93 93
                                   && $uri->getHost() === 'localhost'
94 94
                                   && $uri->getScheme() === 'https';
95
-                       }))
96
-                       ->andReturn($request);
95
+                        }))
96
+                        ->andReturn($request);
97 97
         $matcher->shouldReceive('match')->with($request, $collector)->andReturn($route);
98 98
 
99 99
         // Creating and running command
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         // Defining mock methods
89 89
         $route = new Route(['GET'], '/', 'handle');
90 90
         $requestFactory->shouldReceive('createServerRequest')
91
-                       ->with('POST', Mockery::on(function (UriInterface $uri) {
91
+                       ->with('POST', Mockery::on(function(UriInterface $uri) {
92 92
                            return $uri->getPath() === '/'
93 93
                                   && $uri->getHost() === 'localhost'
94 94
                                   && $uri->getScheme() === 'https';
Please login to merge, or discard this patch.
src/Framework/tests/ErrorHandlerMiddlewareTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                             ->andReturn(new \Venta\Http\Response('php://memory', 500));
26 26
             $middleware = new \Venta\Framework\ErrorHandler\ErrorHandlerMiddleware($run, $responseFactory);
27 27
             $request = Mockery::mock(\Venta\Contracts\Http\Request::class);
28
-            $result = $middleware->handle($request, function () use ($e) {
28
+            $result = $middleware->handle($request, function() use ($e) {
29 29
                 throw $e;
30 30
             });
31 31
             $this->assertEquals($e->getMessage(), $result->getBody()->__toString());
Please login to merge, or discard this patch.
src/Framework/tests/RoutesCommandTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
33 33
         $routeCollector = Mockery::mock(\Venta\Contracts\Routing\RouteCollector::class);
34 34
         $route = (new \Venta\Routing\Route(['GET', 'POST'], '/qwerty', 'callable'))
35 35
             ->withHost('localhost')
36
-            ->withMiddleware('middleware1', function () {
36
+            ->withMiddleware('middleware1', function() {
37 37
             })
38
-            ->withMiddleware('middleware2', function () {
38
+            ->withMiddleware('middleware2', function() {
39 39
             })
40 40
             ->withName('named')
41 41
             ->withScheme('http');
Please login to merge, or discard this patch.
src/Framework/tests/ErrorHandlerProviderTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $provider->provideServices($app);
34 34
         $collector = Mockery::mock(\Venta\Contracts\Routing\MiddlewareCollector::class);
35 35
         $collector->shouldReceive('pushMiddleware')
36
-                  ->with('error_handler', \Venta\Framework\ErrorHandler\ErrorHandlerMiddleware::class);
36
+                    ->with('error_handler', \Venta\Framework\ErrorHandler\ErrorHandlerMiddleware::class);
37 37
         $provider->provideMiddlewares($collector);
38 38
     }
39 39
 
Please login to merge, or discard this patch.