public function testApiRead_ReturnsReadString_WhenReadWasSuccessful() { $path = 'path'; $str = 'XYZ'; $this->expect('read', [$path])->willReturn($str); $this->assertEquals($str, $this->fs->read($path)); }