subject = new XmlToItemParser(); } public function testParse(): void { $this->assertInstanceOf(Item::class, $this->subject->parse($this->getEmptyQti())); } public function testParseAndSanitize(): void { $this->assertInstanceOf(Item::class, $this->subject->parseAndSanitize($this->getEmptyQti())); } private function getEmptyQti(): string { return __DIR__ . '/../../../samples/parser/valid/empty_qti_item.xml'; } }