'Local file specs without spaces should not be transformed' =>
['/tmp/normal.txt', '/tmp/normal.txt'
],
'Local file specs with spaces should not be transformed' =>
['/tmp/with spaces.txt', '/tmp/with spaces.txt'
],
'Make sure URL characters (:, ?, &) are not encoded but others are.' =>
['https://example.com/?a=b@c&d=e+f%', 'https://example.com/?a%3Db%40c&d%3De%2Bf%25'
],
];
} /**
* Cover various encoding scenarios.
* @dataProvider urlDataProvider
*/
public function testUrls($input,
$output) { $this->
assertEquals($output,
$this->
doTransform($input));
} /**
* Perform the urlencode process plugin over the given value.
*
* @param string $value
* URL to be encoded.
*
* @return string
* Encoded URL.
*/