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

        PHPUnit::assertNotEquals(
            $path, $actualPath,
            "Path [{$path}] should not equal the actual value."
        );

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

        PHPUnit::assertNotEquals(
            $path, $actualPath,
            "Path [{$path}] should not equal the actual value."
        );

        return $this;
    }
public function assertPathIsNot ( $ path ) { $ actualPath = parse_url ( $ this -> driver -> getCurrentURL ( ) , PHP_URL_PATH ) ?? '' ; PHPUnit :: assertNotEquals ( $ path , $ actualPath , "Path [{$path}] should not equal the actual value." ) ; return $ this ; }
Assert that the current URL path does not match the given path.

@param  string  $path
@return $this
Assert that the current URL path does not match the given path .