From f481a9baeb29d7e2a18f1e87a80615efcfbf77a0 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 5 Feb 2013 15:59:44 +0000 Subject: [PATCH] Bug fix --- tests/util/RequestTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/util/RequestTest.php b/tests/util/RequestTest.php index 91413204..dd4cd43e 100644 --- a/tests/util/RequestTest.php +++ b/tests/util/RequestTest.php @@ -6,7 +6,7 @@ class Request_test extends PHPUnit_Framework_TestCase function setUp() { - $this->request = new OAuth2\Request( + $this->request = new OAuth2\Util\Request( array('foo' => 'bar'), array('foo' => 'bar'), array('foo' => 'bar'), @@ -17,10 +17,10 @@ class Request_test extends PHPUnit_Framework_TestCase function test_buildFromIndex() { - $r = new OAuth2\Request(); + $r = new OAuth2\Util\Request(); $r->buildFromGlobals(); - $this->assertTrue($r instanceof OAuth2\Request); + $this->assertTrue($r instanceof OAuth2\Util\Request); } function test_get() @@ -55,8 +55,8 @@ class Request_test extends PHPUnit_Framework_TestCase function test_header() { - $this->assertEquals('foobar.com', $this->request->header('host')); - $this->assertEquals(array('host' => 'foobar.com'), $this->request->header()); + $this->assertEquals('foobar.com', $this->request->header('Host')); + $this->assertEquals(array('Host' => 'foobar.com'), $this->request->header()); } /**