Neos\Flow\Tests\Unit\Http\UriTest::constructorParsesAFullBlownUriStringCorrectly PHP Метод

constructorParsesAFullBlownUriStringCorrectly() публичный Метод

Checks if a complete URI with all parts is transformed into an object correctly.
    public function constructorParsesAFullBlownUriStringCorrectly()
    {
        $uriString = 'http://username:[email protected]:8080/path1/path2/index.php?argument1=value1&argument2=value2&argument3[subargument1]=subvalue1#anchor';
        $uri = new Uri($uriString);
        $check = $uri->getScheme() == 'http' && $uri->getUsername() == 'username' && $uri->getPassword() == 'password' && $uri->getHost() == 'subdomain.domain.com' && $uri->getPort() === 8080 && $uri->getPath() == '/path1/path2/index.php' && $uri->getQuery() == 'argument1=value1&argument2=value2&argument3[subargument1]=subvalue1' && $uri->getArguments() == ['argument1' => 'value1', 'argument2' => 'value2', 'argument3' => ['subargument1' => 'subvalue1']] && $uri->getFragment() == 'anchor';
        $this->assertTrue($check, 'The valid and complete URI has not been correctly transformed to an URI object');
    }