getExtensionById('taoQtiItem'); } public function testParsePciDirectory() { $oatPciDir = dirname(__FILE__) . '/samples/directoryParser/oat'; $imsPciDir = dirname(__FILE__) . '/samples/directoryParser/ims'; $oatPciDirectoryParser = new PciDirectoryParser(); $oatPciDirectoryParser->setModel(new PciModel()); $imsPciDirectoryParser = new PciDirectoryParser(); $imsPciDirectoryParser->setModel(new IMSPciModel()); $this->assertTrue($oatPciDirectoryParser->hasValidPortableElement($oatPciDir)); $this->assertNotTrue($imsPciDirectoryParser->hasValidPortableElement($oatPciDir)); $this->assertTrue($imsPciDirectoryParser->hasValidPortableElement($imsPciDir)); $this->assertNotTrue($oatPciDirectoryParser->hasValidPortableElement($imsPciDir)); } }