public function theXmlElementShouldNotExist($element) { $this->not(function () use($element) { $this->theXmlElementShouldExist($element); }, "The element '{$element}' exists."); }