8000 - · symfony/symfony@27946e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27946e7

Browse files
committed
-
1 parent 9862f9c commit 27946e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/Workflow/Tests/Validator/StateMachineValidatorTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,12 @@ public function testValid()
116116

117117
public function testWithTooManyInitialPlaces()
118118
{
119+
$this->expectException(InvalidDefinitionException::class);
120+
$this->expectExceptionMessage('The state machine "foo" cannot store many places. But the definition has 2 initial places. Only one is supported.');
119121
$places = range('a', 'c');
120122
$transitions = [];
121123
$definition = new Definition($places, $transitions, ['a', 'b']);
122124

123-
$this->expectException(InvalidDefinitionException::class);
124-
$this->expectExceptionMessage('The state machine "foo" cannot store many places. But the definition has 2 initial places. Only one is supported.');
125-
126125
(new StateMachineValidator())->validate($definition, 'foo');
127126

128127
// the test ensures that the validation does not fail (i.e. it does not throw any exceptions)

0 commit comments

Comments
 (0)
0