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

Encode the string for URLs according to RFC 3986
public rawUrlEncode ( string $string ) : string
$string string The string to encode
Результат string The encoded string
 /**
  * @test
  */
 public function rawUrlEncodeWorks()
 {
     $helper = new StringHelper();
     $result = $helper->rawUrlEncode('&foo|bar');
     $this->assertSame('%26foo%7Cbar', $result);
 }