public function testBreakEnd() { $stream = Stream::factory("test\t\ntest2\n"); $streamer = new ReportStreamer($stream); $line = $streamer->readLine(); $line2 = $streamer->readLine(); $this->assertEquals(["test", ''], $line); $this->assertEquals(["test2"], $line2); }
public function testNextWithEmpty() { $stream = Stream::factory(""); $streamer = new ReportStreamer($stream); $this->assertFalse($streamer->next()); }