mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-27 01:02:12 +05:30
Bug fix
This commit is contained in:
parent
322eb15bb5
commit
f481a9baeb
@ -6,7 +6,7 @@ class Request_test extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
function setUp()
|
function setUp()
|
||||||
{
|
{
|
||||||
$this->request = new OAuth2\Request(
|
$this->request = new OAuth2\Util\Request(
|
||||||
array('foo' => 'bar'),
|
array('foo' => 'bar'),
|
||||||
array('foo' => 'bar'),
|
array('foo' => 'bar'),
|
||||||
array('foo' => 'bar'),
|
array('foo' => 'bar'),
|
||||||
@ -17,10 +17,10 @@ class Request_test extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
function test_buildFromIndex()
|
function test_buildFromIndex()
|
||||||
{
|
{
|
||||||
$r = new OAuth2\Request();
|
$r = new OAuth2\Util\Request();
|
||||||
$r->buildFromGlobals();
|
$r->buildFromGlobals();
|
||||||
|
|
||||||
$this->assertTrue($r instanceof OAuth2\Request);
|
$this->assertTrue($r instanceof OAuth2\Util\Request);
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_get()
|
function test_get()
|
||||||
@ -55,8 +55,8 @@ class Request_test extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
function test_header()
|
function test_header()
|
||||||
{
|
{
|
||||||
$this->assertEquals('foobar.com', $this->request->header('host'));
|
$this->assertEquals('foobar.com', $this->request->header('Host'));
|
||||||
$this->assertEquals(array('host' => 'foobar.com'), $this->request->header());
|
$this->assertEquals(array('Host' => 'foobar.com'), $this->request->header());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user