src/MarkupAssertionsTrait.php
public function assertElementRegExp($regexp, $selector = '', $output = '', $message = '')
    {
        $this->assertRegExp(
            $regexp,
            $this->getInnerHtmlOfMatchedElements($output, $selector),
            $message
        );
    }
public function assertElementRegExp($regexp, $selector = '', $output = '', $message = '')
    {
        $this->assertRegExp(
            $regexp,
            $this->getInnerHtmlOfMatchedElements($output, $selector),
            $message
        );
    }
public function assertElementRegExp ( $ regexp , $ selector = '' , $ output = '' , $ message = '' ) { $ this -> assertRegExp ( $ regexp , $ this -> getInnerHtmlOfMatchedElements ( $ output , $ selector ) , $ message ) ; }
Assert an element's contents contain the given regular expression pattern.

@since 1.1.0

@param string $regexp   The regular expression pattern to look for within the DOM node.
@param string $selector A query selector for the element to find.
@param string $output   The output that should contain the $selector.
@param string $message  A message to display if the assertion fails.
Assert an element s contents contain the given regular expression pattern .