Skip to content

Commit

Permalink
Skipp Symfony22AdapterTest if UrlGeneratorInterface::ABSOLUTE_URL is …
Browse files Browse the repository at this point in the history
…not defined.
  • Loading branch information
skroczek committed Sep 12, 2016
1 parent 93044d1 commit 36b720a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 36b720a

Please sign in to comment.