src/ContextCollection.php
public function mustFind($re, $filter = null) {
        $result = $this->find($re, $filter);
        if ($result->isEmpty()) {
            throw new QueryException('No match for regexp: '.$re);
        }

        return $result;
    }
public function mustFind($re, $filter = null) {
        $result = $this->find($re, $filter);
        if ($result->isEmpty()) {
            throw new QueryException('No match for regexp: '.$re);
        }

        return $result;
    }
public function mustFind ( $ re , $ filter = null ) { $ result = $ this -> find ( $ re , $ filter ) ; if ( $ result -> isEmpty ( ) ) { throw new QueryException ( 'No match for regexp: ' . $ re ) ; } return $ result ; }
Find with assertion
@param  string $re
@param  callable $filter
@return Context
@throws QueryException If nothing found.
Find with assertion