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

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

        $this->assertCount($count, $results, $message);
    }
public function assertSelectorCount ( $ count , $ selector , $ output = '' , $ message = '' ) { $ results = $ this -> executeDomQuery ( $ output , $ selector ) ; $ this -> assertCount ( $ count , $ results , $ message ) ; }
Assert the number of times an element matching the given selector is found.

@since 1.0.0

@param int    $count    The number of matching elements expected.
@param string $selector A query selector for the element to find.
@param string $output   The markup to run the assertion against.
@param string $message  A message to display if the assertion fails.
Assert the number of times an element matching the given selector is found .