src/Concerns/MakesUrlAssertions.php
public function assertFragmentBeginsWith($fragment)
    {
        $actualFragment = (string) parse_url($this->driver->executeScript('return window.location.href;'), PHP_URL_FRAGMENT);

        PHPUnit::assertStringStartsWith(
            $fragment, $actualFragment,
            "Actual fragment [$actualFragment] does not begin with expected fragment [$fragment]."
        );

        return $this;
    }
public function assertFragmentBeginsWith($fragment)
    {
        $actualFragment = (string) parse_url($this->driver->executeScript('return window.location.href;'), PHP_URL_FRAGMENT);

        PHPUnit::assertStringStartsWith(
            $fragment, $actualFragment,
            "Actual fragment [$actualFragment] does not begin with expected fragment [$fragment]."
        );

        return $this;
    }
public function assertFragmentBeginsWith ( $ fragment ) { $ actualFragment = ( string ) parse_url ( $ this -> driver -> executeScript ( 'return window.location.href;' ) , PHP_URL_FRAGMENT ) ; PHPUnit :: assertStringStartsWith ( $ fragment , $ actualFragment , "Actual fragment [$actualFragment] does not begin with expected fragment [$fragment]." ) ; return $ this ; }
Assert that the current URL fragment begins with given fragment.

@param  string  $fragment
@return $this
Assert that the current URL fragment begins with given fragment .