src/Concerns/MakesUrlAssertions.php
public function assertPathBeginsWith($path)
    {
        $actualPath = parse_url($this->driver->getCurrentURL(), PHP_URL_PATH) ?? '';

        PHPUnit::assertStringStartsWith(
            $path, $actualPath,
            "Actual path [{$actualPath}] does not begin with expected path [{$path}]."
        );

        return $this;
    }
public function assertPathBeginsWith($path)
    {
        $actualPath = parse_url($this->driver->getCurrentURL(), PHP_URL_PATH) ?? '';

        PHPUnit::assertStringStartsWith(
            $path, $actualPath,
            "Actual path [{$actualPath}] does not begin with expected path [{$path}]."
        );

        return $this;
    }
public function assertPathBeginsWith ( $ path ) { $ actualPath = parse_url ( $ this -> driver -> getCurrentURL ( ) , PHP_URL_PATH ) ?? '' ; PHPUnit :: assertStringStartsWith ( $ path , $ actualPath , "Actual path [{$actualPath}] does not begin with expected path [{$path}]." ) ; return $ this ; }
Assert that the current URL path begins with given path.

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