fixed test side effects
This commit is contained in:
parent
405a7c15fe
commit
937d908c43
@ -382,7 +382,7 @@ class Request
|
|||||||
* to keep BC with an existing system. It should not be used for any
|
* to keep BC with an existing system. It should not be used for any
|
||||||
* other purpose.
|
* other purpose.
|
||||||
*
|
*
|
||||||
* @param callable $callable A PHP callable
|
* @param callable|null $callable A PHP callable
|
||||||
*/
|
*/
|
||||||
public static function setFactory($callable)
|
public static function setFactory($callable)
|
||||||
{
|
{
|
||||||
|
@ -1634,6 +1634,8 @@ class RequestTest extends \PHPUnit_Framework_TestCase
|
|||||||
});
|
});
|
||||||
|
|
||||||
$this->assertEquals('foo', Request::create('/')->getFoo());
|
$this->assertEquals('foo', Request::create('/')->getFoo());
|
||||||
|
|
||||||
|
Request::setFactory(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user