protected function assertFilterProducedResults($filter)
    {
        $crawler = $this->filterByNameOrId($filter);

        if (! count($crawler)) {
            $message = "Nothing matched the '{$filter}' CSS query provided for {$this->currentPage}.";

            throw new InvalidArgumentException($message);
        }
    }
protected function assertFilterProducedResults($filter)
    {
        $crawler = $this->filterByNameOrId($filter);

        if (! count($crawler)) {
            $message = "Nothing matched the '{$filter}' CSS query provided for {$this->currentPage}.";

            throw new InvalidArgumentException($message);
        }
    }
protected function assertFilterProducedResults ( $ filter ) { $ crawler = $ this -> filterByNameOrId ( $ filter ) ; if ( ! count ( $ crawler ) ) { $ message = "Nothing matched the '{$filter}' CSS query provided for {$this->currentPage}." ; throw new InvalidArgumentException ( $ message ) ; } }
Assert that the filtered Crawler contains nodes.

@param  string $filter
@throws InvalidArgumentException
@return void
Assert that the filtered Crawler contains nodes .