From 36760a07cce5752287827a72dc3bb6d499816eca Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 16 Jan 2014 16:50:30 +0000 Subject: [PATCH] Updated util tests --- tests/util/RedirectUriTest.php | 15 ++++++++++----- tests/util/SecureKeyTest.php | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/tests/util/RedirectUriTest.php b/tests/util/RedirectUriTest.php index 9ae67f0b..eb620ddd 100644 --- a/tests/util/RedirectUriTest.php +++ b/tests/util/RedirectUriTest.php @@ -1,12 +1,17 @@ 'bar')); - $v2 = League\OAuth2\Server\Util\RedirectUri::make('https://foobar/', array('foo'=>'bar'), '#'); - $v3 = League\OAuth2\Server\Util\RedirectUri::make('https://foobar/', array('foo'=>'bar', 'bar' => 'foo')); + $v1 = RedirectUri::make('https://foobar/', array('foo'=>'bar')); + $v2 = RedirectUri::make('https://foobar/', array('foo'=>'bar'), '#'); + $v3 = RedirectUri::make('https://foobar/', array('foo'=>'bar', 'bar' => 'foo')); $this->assertEquals('https://foobar/?foo=bar', $v1); $this->assertEquals('https://foobar/#foo=bar', $v2); diff --git a/tests/util/SecureKeyTest.php b/tests/util/SecureKeyTest.php index 3d60f6db..2be3e12b 100644 --- a/tests/util/SecureKeyTest.php +++ b/tests/util/SecureKeyTest.php @@ -1,12 +1,17 @@ assertEquals(40, strlen($v1)); $this->assertTrue($v1 !== $v2);