Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 3ee0bfe

Browse files
committed
move expectException() just before the code call that produce it
1 parent db4753e commit 3ee0bfe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/ApplicationTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,12 @@ public function testPipeCanAcceptAPathArgument($middleware)
131131

132132
public function testPipeNonSlashPathOnNonStringPipeProduceTypeError()
133133
{
134-
$this->expectException(TypeError::class);
135-
136134
$middleware1 = function ($request, $response) {
137135
return $response;
138136
};
139137
$middleware2 = $this->createMockMiddleware();
140138

139+
$this->expectException(TypeError::class);
141140
$this->app->pipe($middleware1, $middleware2);
142141
}
143142

0 commit comments

Comments
 (0)