public function theXmlElementShouldNotContain($element, $text) { $elements = $this->theXmlElementShouldExist($element); $this->assertNotContains($text, $elements->item(0)->nodeValue); }