public function testReadAll() { $flag = 5; $context = null; $result = 'content'; $this->driver->expects($this->once())->method('fileGetContents')->with($this->path, $flag, $context)->will($this->returnValue($result)); $this->assertEquals($result, $this->file->readAll($flag, $context)); }