We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6310d64 commit ac46265Copy full SHA for ac46265
tests/ApplicationTest.php
@@ -174,10 +174,9 @@ public function testBeforeAfter()
174
$app->after($a2);
175
176
$_SERVER["REQUEST_URI"] = "/";
177
-
178
- ob_start();
179
- $app->run();
180
- $result = ob_get_clean();
+ $request = Request::createFromGlobals();
+ $response = $app->handle($request);
+ $responseText = $response->getContent();
181
182
$expected = [
183
'b1',
@@ -188,7 +187,7 @@ public function testBeforeAfter()
188
187
];
189
190
$this->assertEquals($expected, $this->indicator);
191
- $this->assertEquals("Foo", $result);
+ $this->assertEquals("Foo", $responseText);
192
}
193
194
public function testExceptionWithHandler()
0 commit comments