Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f85b378

Browse files
committed
[Workflow][Twig] Skip tests if workflow is not installed
1 parent d82b1db commit f85b378

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Bridge/Twig/Tests/Extension/WorkflowExtensionTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020

2121
class WorkflowExtensionTest extends \PHPUnit_Framework_TestCase
2222
{
23+
protected function setUp()
24+
{
25+
parent::setUp();
26+
27+
if (!class_exists('Symfony\Component\Workflow\Workflow')) {
28+
$this->markTestSkipped('The Workflow component is needed to run tests for this extension.');
29+
}
30+
}
31+
2332
public function testIsActiveTrue()
2433
{
2534
$subject = new \stdClass();

0 commit comments

Comments
 (0)