diff --git a/src/Symfony/Component/Workflow/Tests/Validator/StateMachineValidatorTest.php b/src/Symfony/Component/Workflow/Tests/Validator/StateMachineValidatorTest.php index 149d7d58f8..dccbf38304 100644 --- a/src/Symfony/Component/Workflow/Tests/Validator/StateMachineValidatorTest.php +++ b/src/Symfony/Component/Workflow/Tests/Validator/StateMachineValidatorTest.php @@ -94,6 +94,9 @@ class StateMachineValidatorTest extends TestCase (new StateMachineValidator())->validate($definition, 'foo'); + // the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions) + $this->addToAssertionCount(1); + // The graph looks like: // // +----+ +----+ +---+ diff --git a/src/Symfony/Component/Workflow/Tests/Validator/WorkflowValidatorTest.php b/src/Symfony/Component/Workflow/Tests/Validator/WorkflowValidatorTest.php index 60b2c7150e..245617b682 100644 --- a/src/Symfony/Component/Workflow/Tests/Validator/WorkflowValidatorTest.php +++ b/src/Symfony/Component/Workflow/Tests/Validator/WorkflowValidatorTest.php @@ -28,6 +28,9 @@ class WorkflowValidatorTest extends TestCase $definition = $this->createSimpleWorkflowDefinition(); (new WorkflowValidator(true))->validate($definition, 'foo'); + + // the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions) + $this->addToAssertionCount(1); } /** @@ -60,5 +63,8 @@ class WorkflowValidatorTest extends TestCase $definition = new Definition($places, $transitions); (new WorkflowValidator())->validate($definition, 'foo'); + + // the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions) + $this->addToAssertionCount(1); } }