root = vfsStream::setup(); } public function testParse() { vfsStream::newFile('test.md') ->withContent("this is a test **markdown** file") ->at($this->root); $parser = $this->getMockForAbstractClass(Parser::class); $document = $parser->load(vfsStream::url('root/test.md')); $this->assertInstanceOf(Document::class, $document); } }