public function testAvoidWarnings() { $result = CheckerRunner::runChecker(new DomSaxMockChecker(), Filesystem::combinePaths(CheckerRunner::$testCasesRoot, "DOMSAX", "macosx_failure.zip"), []); $this->assertEquals(0, $result->getFulfillment()); $this->assertNotContains("51", $result->getDetails()); $this->assertNotContains("warning", $result->getDetails()); }
private function runSchemaTest($zipFile, $fulfillment = null, $details = "") { $result = CheckerRunner::runChecker(new XmlSchemaChecker(), Filesystem::combinePaths(CheckerRunner::$testCasesRoot, "SCHEMA", $zipFile), []); CheckerRunner::assert($this, $zipFile, $result, $fulfillment, $details); }
private function runDtdTest($zipFile, $fulfillment = null, $details = "") { $result = CheckerRunner::runChecker(new Dtd2014Checker(), Filesystem::combinePaths(CheckerRunner::$testCasesRoot, "DTD", $zipFile), [0, 0]); CheckerRunner::assert($this, $zipFile, $result, $fulfillment, $details); }
private function runXQuery($zipFile, $queryCount, $fulfillment = null, $details = "") { $result = CheckerRunner::runChecker(new XQueryMockChecker(), Filesystem::combinePaths(CheckerRunner::$testCasesRoot, "XQUERY", $zipFile), [$queryCount]); CheckerRunner::assert($this, $zipFile, $result, $fulfillment, $details); }
private function runXsltTest($zipFile, $templateCount, $fulfillment = null, $details = "") { $result = CheckerRunner::runChecker(new XsltChecker(), Filesystem::combinePaths(CheckerRunner::$testCasesRoot, "XSLT", $zipFile), [$templateCount]); CheckerRunner::assert($this, $zipFile, $result, $fulfillment, $details); }
private function runXPathTest($zipFile, $fulfillment = null, $details = "") { $result = CheckerRunner::runChecker(new XpathChecker(), Filesystem::combinePaths(CheckerRunner::$testCasesRoot, "XPATH", $zipFile), [5]); CheckerRunner::assert($this, $zipFile, $result, $fulfillment, $details); }