public function testCantReadNonExistingFile() { $this->tree_mock->shouldReceive('getNodeNamed')->with('foo')->andReturn(null); $this->assertEquals('Foobar', $this->adapter->read('foo/bar')); }