src/MarkupAssertionsTrait.php
public function assertContainsSelector($selector, $output = '', $message = '')
    {
        $results = $this->executeDomQuery($output, $selector);

        $this->assertGreaterThan(0, count($results), $message);
    }
public function assertContainsSelector($selector, $output = '', $message = '')
    {
        $results = $this->executeDomQuery($output, $selector);

        $this->assertGreaterThan(0, count($results), $message);
    }
public function assertContainsSelector ( $ selector , $ output = '' , $ message = '' ) { $ results = $ this -> executeDomQuery ( $ output , $ selector ) ; $ this -> assertGreaterThan ( 0 , count ( $ results ) , $ message ) ; }
Assert that the given string contains an element matching the given selector.

@since 1.0.0

@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 that the given string contains an element matching the given selector .