public function UriSignerTest::testSign

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/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'));
}