This assertion is the exact opposite of assertTag().
Rather than asserting that $matcher results in a match, it asserts that $matcher does not match.
@since Method available since Release 3.3.0 @author Mike Naberezny <mike@maintainable.com> @author Derek DeVries <derek@maintainable.com>
array $matcher:
string $actual:
string $message:
boolean $isHtml:
public static function assertNotTag($matcher, $actual, $message = '', $isHtml = TRUE) {
$dom = PHPUnit_Util_XML::load($actual, $isHtml);
$tags = PHPUnit_Util_XML::findNodes($dom, $matcher, $isHtml);
$matched = count($tags) > 0 && $tags[0] instanceof DOMNode;
self::assertFalse($matched, $message);
}