Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit27946e7

Browse files
committed
-
1 parent9862f9c commit27946e7

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
publicfunctiontestWithTooManyInitialPlaces()
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 =newDefinition($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
(newStateMachineValidator())->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)

[8]ページ先頭

©2009-2025 Movatter.jp