You are here

public function UriSignerTest::testSign in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/UriSignerTest.php \Symfony\Component\HttpKernel\Tests\UriSignerTest::testSign()

File

vendor/symfony/http-kernel/Tests/UriSignerTest.php, line 18

Class

UriSignerTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testSign() {
  $signer = new UriSigner('foobar');
  $this
    ->assertContains('?_hash=', $signer
    ->sign('http://example.com/foo'));
  $this
    ->assertContains('&_hash=', $signer
    ->sign('http://example.com/foo?foo=bar'));
}