Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f85b378

Browse filesBrowse files
committed
[Workflow][Twig] Skip tests if workflow is not installed
1 parent d82b1db commit f85b378
Copy full SHA for f85b378

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Tests/Extension/WorkflowExtensionTest.php
+9Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.