File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/Symfony/Component/Workflow/Tests/Validator Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ public function testValid()
94
94
95
95
(new StateMachineValidator ())->validate ($ definition , 'foo ' );
96
96
97
+ // the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions)
98
+ $ this ->addToAssertionCount (1 );
99
+
97
100
// The graph looks like:
98
101
//
99
102
// +----+ +----+ +---+
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ public function testSinglePlaceWorkflowValidatorAndSimpleWorkflow()
28
28
$ definition = $ this ->createSimpleWorkflowDefinition ();
29
29
30
30
(new WorkflowValidator (true ))->validate ($ definition , 'foo ' );
31
+
32
+ // the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions)
33
+ $ this ->addToAssertionCount (1 );
31
34
}
32
35
33
36
/**
@@ -60,5 +63,8 @@ public function testSameTransitionNameButNotSamePlace()
60
63
$ definition = new Definition ($ places , $ transitions );
61
64
62
65
(new WorkflowValidator ())->validate ($ definition , 'foo ' );
66
+
67
+ // the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions)
68
+ $ this ->addToAssertionCount (1 );
63
69
}
64
70
}
You can’t perform that action at this time.
0 commit comments