escapePercent() public static method

Escapes percent string to be used in format string.
public static escapePercent ( string $str ) : string
$str string string to escape
return string
Example #1
0
 /**
  * Tests string escaping
  *
  * @param string $text     Text to escape
  * @param string $expected Expected output
  *
  * @return void
  *
  * @dataProvider escapeStrings
  */
 public function testEscape($text, $expected)
 {
     $this->assertEquals(Advisor::escapePercent($text), $expected);
 }