public function UriSignerTest::testCheckWithDifferentArgSeparator in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/UriSignerTest.php \Symfony\Component\HttpKernel\Tests\UriSignerTest::testCheckWithDifferentArgSeparator()
File
- vendor/
symfony/ http-kernel/ Tests/ UriSignerTest.php, line 40
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
public function testCheckWithDifferentArgSeparator() {
$this
->iniSet('arg_separator.output', '&');
$signer = new UriSigner('foobar');
$this
->assertSame('http://example.com/foo?baz=bay&foo=bar&_hash=rIOcC%2FF3DoEGo%2FvnESjSp7uU9zA9S%2F%2BOLhxgMexoPUM%3D', $signer
->sign('http://example.com/foo?foo=bar&baz=bay'));
$this
->assertTrue($signer
->check($signer
->sign('http://example.com/foo?foo=bar&baz=bay')));
}