Skip to content

Commit 94d5383

Browse files
committed
~ fix buffer problem in ConsoleTest & FeatureTestCaseTest
Signed-off-by: Christoph Potas <christoph286@googlemail.com>
1 parent 072d5b7 commit 94d5383

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

tests/system/CLI/ConsoleTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public function testRun()
5757
$console->run(true);
5858
$result = CITestStreamFilter::$buffer;
5959

60+
// close open buffer
61+
ob_end_clean();
62+
6063
// make sure the result looks like a command list
6164
$this->assertContains('Lists the available commands.', $result);
6265
$this->assertContains('Displays basic usage information.', $result);

tests/system/Test/FeatureTestCaseTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function testCallGet()
2525
]);
2626
$response = $this->get('home');
2727

28+
// close open buffer
29+
ob_end_clean();
30+
2831
$response->assertSee('Hello World');
2932
$response->assertDontSee('Again');
3033
}

0 commit comments

Comments
 (0)