getMockForAbstractClass(Parser::class); $document = $parser->parse('**foo**'); $this->assertInstanceOf(Document::class, $document); } }