Neos\Flow\Http\Uri::getScheme PHP Метод

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

Returns the URI's scheme / protocol
public getScheme ( ) : string
Результат string URI scheme / protocol
    public function getScheme()
    {
        return $this->scheme;
    }

Usage Example

Пример #1
0
 /**
  * @test
  */
 public function constructorParsesArgumentsWithSpecialCharactersCorrectly()
 {
     $uriString = 'http://www.neos.io/path1/?argumentäöü1=' . urlencode('valueåø€œ');
     $uri = new Uri($uriString);
     $check = $uri->getScheme() == 'http' && $uri->getHost() == 'www.neos.io' && $uri->getPath() == '/path1/' && $uri->getQuery() == 'argumentäöü1=value%C3%A5%C3%B8%E2%82%AC%C5%93' && $uri->getArguments() == ['argumentäöü1' => 'valueåø€œ'];
     $this->assertTrue($check, 'The URI with special arguments has not been correctly transformed to an URI object');
 }
All Usage Examples Of Neos\Flow\Http\Uri::getScheme