root = vfsStream::setup(); } public function testLoad() { vfsStream::newFile('Gemlog.md') ->withContent("- [[Test link]]\n- [[Link 2]]\n-") ->at($this->root); $parser = new GemlogParser; $parser->load(vfsStream::url('root/Gemlog.md')); $this->assertSame(['Test link', 'Link 2'], $parser->getTitles()); } }