From 44db2b295f4563776b45e85c3e226c80678ab87f Mon Sep 17 00:00:00 2001 From: Woody Gilk Date: Sat, 31 May 2014 17:28:48 -0500 Subject: [PATCH] Stop testing stdClass as an argument to hasScope, it is pointless --- tests/resource/ResourceServerTest.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/resource/ResourceServerTest.php b/tests/resource/ResourceServerTest.php index 3c459294..326f3f03 100644 --- a/tests/resource/ResourceServerTest.php +++ b/tests/resource/ResourceServerTest.php @@ -275,11 +275,10 @@ class Resource_Server_test extends PHPUnit_Framework_TestCase $this->assertEquals('user', $s->getOwnerType()); $this->assertEquals('abcdef', $s->getAccessToken()); $this->assertEquals('testapp', $s->getClientId()); - $this->assertTrue($s->hasScope('foo')); - $this->assertTrue($s->hasScope('bar')); - $this->assertTrue($s->hasScope(array('foo', 'bar'))); - $this->assertFalse($s->hasScope(array('foobar'))); - $this->assertFalse($s->hasScope('foobar')); - $this->assertFalse($s->hasScope(new StdClass)); + $this->assertTrue($s->hasScope('foo')); + $this->assertTrue($s->hasScope('bar')); + $this->assertTrue($s->hasScope(array('foo', 'bar'))); + $this->assertFalse($s->hasScope(array('foobar'))); + $this->assertFalse($s->hasScope('foobar')); } }