From 36b720ac4a2f4d46308a3342735382415c4c4992 Mon Sep 17 00:00:00 2001 From: Sebastian Kroczek Date: Mon, 12 Sep 2016 11:52:20 +0200 Subject: [PATCH] Skipp Symfony22AdapterTest if UrlGeneratorInterface::ABSOLUTE_URL is not defined. --- tests/JMS/Tests/ObjectRouting/Symfony/Symfony22AdapterTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/JMS/Tests/ObjectRouting/Symfony/Symfony22AdapterTest.php b/tests/JMS/Tests/ObjectRouting/Symfony/Symfony22AdapterTest.php index 7ff6591..7f00211 100644 --- a/tests/JMS/Tests/ObjectRouting/Symfony/Symfony22AdapterTest.php +++ b/tests/JMS/Tests/ObjectRouting/Symfony/Symfony22AdapterTest.php @@ -13,6 +13,9 @@ class Symfony22AdapterTest extends \PHPUnit_Framework_TestCase public function testGenerate() { + if(!defined('Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_URL')){ + $this->markTestSkipped('Skipping this test because required constant UrlGeneratorInterface::ABSOLUTE_URL is not defined.'); + } $this->router->expects($this->once()) ->method('generate') ->with('foo', array('bar' => 'baz'), UrlGeneratorInterface::ABSOLUTE_URL)