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.
2 parents 3d07204 + 8030ae0 commit e1dbce0Copy full SHA for e1dbce0
tests/system/Test/TestCaseTest.php
@@ -27,6 +27,14 @@ final class TestCaseTest extends CIUnitTestCase
27
*/
28
private $stream_filter;
29
30
+ protected function setUp(): void
31
+ {
32
+ parent::setUp();
33
+
34
+ // Reset CLI::$lastWrite
35
+ CLI::print();
36
+ }
37
38
public function testGetPrivatePropertyWithObject()
39
{
40
$obj = new __TestForReflectionHelper();
@@ -56,7 +64,7 @@ public function testStreamFilter()
56
64
CITestStreamFilter::$buffer = '';
57
65
$this->stream_filter = stream_filter_append(STDOUT, 'CITestStreamFilter');
58
66
CLI::write('first.');
59
- $expected = "first.\n";
67
+ $expected = "\nfirst.\n";
60
68
$this->assertSame($expected, CITestStreamFilter::$buffer);
61
69
stream_filter_remove($this->stream_filter);
62
70
}
0 commit comments