src/Concerns/MakesUrlAssertions.php
protected function assertHasQueryStringParameter($name)
    {
        $parsedUrl = parse_url($this->driver->getCurrentURL());

        PHPUnit::assertArrayHasKey(
            'query', $parsedUrl,
            'Did not see expected query string in ['.$this->driver->getCurrentURL().'].'
        );

        parse_str($parsedUrl['query'], $output);

        PHPUnit::assertArrayHasKey(
            $name, $output,
            "Did not see expected query string parameter [{$name}] in [".$this->driver->getCurrentURL().'].'
        );

        return $output;
    }
protected function assertHasQueryStringParameter($name)
    {
        $parsedUrl = parse_url($this->driver->getCurrentURL());

        PHPUnit::assertArrayHasKey(
            'query', $parsedUrl,
            'Did not see expected query string in ['.$this->driver->getCurrentURL().'].'
        );

        parse_str($parsedUrl['query'], $output);

        PHPUnit::assertArrayHasKey(
            $name, $output,
            "Did not see expected query string parameter [{$name}] in [".$this->driver->getCurrentURL().'].'
        );

        return $output;
    }
protected function assertHasQueryStringParameter ( $ name ) { $ parsedUrl = parse_url ( $ this -> driver -> getCurrentURL ( ) ) ; PHPUnit :: assertArrayHasKey ( 'query' , $ parsedUrl , 'Did not see expected query string in [' . $ this -> driver -> getCurrentURL ( ) . '].' ) ; parse_str ( $ parsedUrl [ 'query' ] , $ output ) ; PHPUnit :: assertArrayHasKey ( $ name , $ output , "Did not see expected query string parameter [{$name}] in [" . $ this -> driver -> getCurrentURL ( ) . '].' ) ; return $ output ; }
Assert that the given query string parameter is present.

@param  string  $name
@return array
Assert that the given query string parameter is present .