fixed test side effects

This commit is contained in:
Fabien Potencier 2013-10-07 12:30:10 +02:00
parent 405a7c15fe
commit 937d908c43
2 changed files with 3 additions and 1 deletions

View File

@ -382,7 +382,7 @@ class Request
* to keep BC with an existing system. It should not be used for any
* other purpose.
*
* @param callable $callable A PHP callable
* @param callable|null $callable A PHP callable
*/
public static function setFactory($callable)
{

View File

@ -1634,6 +1634,8 @@ class RequestTest extends \PHPUnit_Framework_TestCase
});
$this->assertEquals('foo', Request::create('/')->getFoo());
Request::setFactory(null);
}
}