Laravel version update
Laravel version update
This commit is contained in:
@@ -11,9 +11,10 @@
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\HttpKernel\UriSigner;
|
||||
|
||||
class UriSignerTest extends \PHPUnit_Framework_TestCase
|
||||
class UriSignerTest extends TestCase
|
||||
{
|
||||
public function testSign()
|
||||
{
|
||||
@@ -35,7 +36,7 @@ class UriSignerTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertTrue($signer->check($signer->sign('http://example.com/foo?foo=bar')));
|
||||
$this->assertTrue($signer->check($signer->sign('http://example.com/foo?foo=bar&0=integer')));
|
||||
|
||||
$this->assertTrue($signer->sign('http://example.com/foo?foo=bar&bar=foo') === $signer->sign('http://example.com/foo?bar=foo&foo=bar'));
|
||||
$this->assertSame($signer->sign('http://example.com/foo?foo=bar&bar=foo'), $signer->sign('http://example.com/foo?bar=foo&foo=bar'));
|
||||
}
|
||||
|
||||
public function testCheckWithDifferentArgSeparator()
|
||||
@@ -49,4 +50,15 @@ class UriSignerTest extends \PHPUnit_Framework_TestCase
|
||||
);
|
||||
$this->assertTrue($signer->check($signer->sign('http://example.com/foo?foo=bar&baz=bay')));
|
||||
}
|
||||
|
||||
public function testCheckWithDifferentParameter()
|
||||
{
|
||||
$signer = new UriSigner('foobar', 'qux');
|
||||
|
||||
$this->assertSame(
|
||||
'http://example.com/foo?baz=bay&foo=bar&qux=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')));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user