src/Concerns/MakesUrlAssertions.php
public function assertQueryStringHas($name, $value = null)
    {
        $output = $this->assertHasQueryStringParameter($name);

        if (is_null($value)) {
            return $this;
        }

        $parsedOutputName = is_array($output[$name]) ? implode(',', $output[$name]) : $output[$name];

        $parsedValue = is_array($value) ? implode(',', $value) : $value;

        PHPUnit::assertEquals(
            $value, $output[$name],
            "Query string parameter [{$name}] had value [{$parsedOutputName}], but expected [{$parsedValue}]."
        );

        return $this;
    }
public function assertQueryStringHas($name, $value = null)
    {
        $output = $this->assertHasQueryStringParameter($name);

        if (is_null($value)) {
            return $this;
        }

        $parsedOutputName = is_array($output[$name]) ? implode(',', $output[$name]) : $output[$name];

        $parsedValue = is_array($value) ? implode(',', $value) : $value;

        PHPUnit::assertEquals(
            $value, $output[$name],
            "Query string parameter [{$name}] had value [{$parsedOutputName}], but expected [{$parsedValue}]."
        );

        return $this;
    }
public function assertQueryStringHas ( $ name , $ value = null ) { $ output = $ this -> assertHasQueryStringParameter ( $ name ) ; if ( is_null ( $ value ) ) { return $ this ; } $ parsedOutputName = is_array ( $ output [ $ name ] ) ? implode ( ',' , $ output [ $ name ] ) : $ output [ $ name ] ; $ parsedValue = is_array ( $ value ) ? implode ( ',' , $ value ) : $ value ; PHPUnit :: assertEquals ( $ value , $ output [ $ name ] , "Query string parameter [{$name}] had value [{$parsedOutputName}], but expected [{$parsedValue}]." ) ; return $ this ; }
Assert that a query string parameter is present and has a given value.

@param  string  $name
@param  string  $value
@return $this
Assert that a query string parameter is present and has a given value .