[Routing] Fixed alteration of $_SERVER

This commit is contained in:
Pascal Borreli 2012-07-27 10:50:12 +00:00
parent b6954e7f0b
commit 3e4c9b2824

View File

@ -17,6 +17,18 @@ use Symfony\Component\Routing\Matcher\ApacheUrlMatcher;
class ApacheUrlMatcherTest extends \PHPUnit_Framework_TestCase
{
protected $server;
protected function setUp()
{
$this->server = $_SERVER;
}
protected function tearDown()
{
$_SERVER = $this->server;
}
/**
* @dataProvider getMatchData
*/