/** * Test write to file and the read from that file */ public function testIO() { $text = "a Text"; $this->writer->printLine($text); $reader = new Reader($this->writer->getFilePath()); $line = $reader->getLine(); $this->assertEquals($text, $line); $this->assertNull($reader->getLine()); $reader->close(); }
/** * clean up after all tests */ protected function tearDown() { $this->reader->close(); }