fix HHVM tests
This commit is contained in:
parent
70c8c2d47b
commit
da21003459
@ -45,18 +45,18 @@ class RequestTest extends TestCase
|
|||||||
|
|
||||||
public function testGetUser()
|
public function testGetUser()
|
||||||
{
|
{
|
||||||
$request = Request::create('http://user_test:password_test@test.com/');
|
$request = Request::create('http://user:password@test.com');
|
||||||
$user = $request->getUser();
|
$user = $request->getUser();
|
||||||
|
|
||||||
$this->assertEquals('user_test', $user);
|
$this->assertEquals('user', $user);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetPassword()
|
public function testGetPassword()
|
||||||
{
|
{
|
||||||
$request = Request::create('http://user_test:password_test@test.com/');
|
$request = Request::create('http://user:password@test.com');
|
||||||
$password = $request->getPassword();
|
$password = $request->getPassword();
|
||||||
|
|
||||||
$this->assertEquals('password_test', $password);
|
$this->assertEquals('password', $password);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testIsNoCache()
|
public function testIsNoCache()
|
||||||
|
Reference in New Issue
Block a user