Skip to content

Commit

Permalink
Skip test if twig is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Coureau committed Jul 28, 2014
1 parent 5127147 commit 3ecc118
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/Twig/Extension/PostExtensionTest.php
Expand Up @@ -16,6 +16,10 @@ class PostExtensionTest extends \PHPUnit_Framework_TestCase

protected function setUp()
{
if (!class_exists('\Twig_Extension')) {
$this->markTestSkipped('Twig is not enabled');
}

$this->postManager = $this->getMockBuilder('Ekino\WordpressBundle\Manager\PostManager')->disableOriginalConstructor()->getMock();
$this->optionExtension = $this->getMockBuilder('Ekino\WordpressBundle\Twig\Extension\OptionExtension')->disableOriginalConstructor()->getMock();

Expand Down

0 comments on commit 3ecc118

Please sign in to comment.