public function testSeek() { $offset = 5; $whence = SEEK_SET; $result = 'content'; $this->driver->expects($this->once())->method('fileSeek')->with($this->resource, $offset, $whence)->will($this->returnValue($result)); $this->assertEquals($result, $this->file->seek($offset, $whence)); }