public function testReadLine() { $length = 5; $ending = '\\n'; $result = 'content'; $this->driver->expects($this->once())->method('fileReadLine')->with($this->resource, $length, $ending)->will($this->returnValue($result)); $this->assertEquals($result, $this->file->readLine($length, $ending)); }