Skip to content

Commit d648444

Browse files
committed
Merge branch 'master' of https://github.com/reactphp/http into middleware-runner-correction-tests
1 parent 130fda5 commit d648444

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tests/MiddlewareRunnerTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ function ($request, $next) use (&$thrownCount) {
117117
$thrownCount++;
118118
throw new \RuntimeException('bingo');
119119
}
120-
121-
return $next($request);
122-
}
120+
return $next($request);
121+
}
123122
));
124123

125124
$request = new ServerRequest('GET', 'https://example.com/');
@@ -128,8 +127,8 @@ function ($request, $next) use (&$thrownCount) {
128127
Block\await($runner($request), Factory::create());
129128
} catch (\RuntimeException $exception) {
130129
$this->assertTrue(
131-
$exception->getMessage() === 'bingo' ||
132-
$exception->getMessage() === 'No middleware to run'
130+
$exception->getMessage() === 'bingo' ||
131+
$exception->getMessage() === 'No middleware to run'
133132
);
134133
}
135134
}

0 commit comments

Comments
 (0)