芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/joolsmen.com/vendor/phpunit/phpunit/tests/Regression/GitHub/1472/Issue1472Test.php
loadXML('
text content
'); $xpath = new DOMXPath($doc); $labelElement = $doc->getElementsByTagName('label')->item(0); $this->assertEquals(1, $xpath->evaluate('count(//label[text() = "text content"])')); $expectedElmt = $doc->createElement('label', 'text content'); $this->assertEqualXMLStructure($expectedElmt, $labelElement); // the following assertion fails, even though it passed before - which is due to the assertEqualXMLStructure() has modified the $labelElement $this->assertEquals(1, $xpath->evaluate('count(//label[text() = "text content"])')); } }