コード例 #1
0
 public function testValidateInvalidDocbook()
 {
     $doc = new ezcDocumentDocbook();
     $this->assertTrue(is_array($errors = $doc->validateFile(dirname(__FILE__) . '/files/docbook/invalid.xml')));
     $this->assertSame('Error in 4:0: Element \'{http://docbook.org/ns/docbook}section\', attribute \'id\': The attribute \'id\' is not allowed..', (string) $errors[0]);
 }