Commit 803f809c authored by Fabien Potencier's avatar Fabien Potencier

fixed tests on Symfony <2.2

parent c0d762f5
......@@ -181,6 +181,10 @@ class RouterTest extends \PHPUnit_Framework_TestCase
public function testHostSpecification()
{
if (!method_exists('Symfony\Component\Routing\Route', 'setHost')) {
$this->markTestSkipped('host() is only supported in the Symfony Routing 2.2+');
}
$route = new \Silex\Route();
$this->assertSame($route, $route->host('{locale}.example.com'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment