Skip to content

Commit 84801bc

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [#53153] fix merge [Workflow] Fix test [WebProfilerBundle] Fix JS error when evaluating scripts don't fail when optional dependencies are not present fix syntax error on PHP 7.2 Do not instantiate object if it is not instantiable Add missing translation for Uzbek (uz) [CI] Show exit code when job fails [CI] Use stable version of psalm Add check for lazy object interface [Notifier] [Bridges] Provide EventDispatcher and HttpClient to the transports
2 parents 36cef6b + ddfd72e commit 84801bc

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

Tests/Validator/StateMachineValidatorTest.php

+3-17
Original file line numberDiff line numberDiff line change
@@ -116,27 +116,13 @@ 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.');
121119
$places = range('a', 'c');
122120
$transitions = [];
123121
$definition = new Definition($places, $transitions, ['a', 'b']);
124122

125-
(new StateMachineValidator())->validate($definition, 'foo');
126-
127-
// the test ensures that the validation does not fail (i.e. it does not throw any exceptions)
128-
$this->addToAssertionCount(1);
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.');
129125

130-
// The graph looks like:
131-
//
132-
// +----+ +----+ +---+
133-
// | a | --> | t1 | --> | b |
134-
// +----+ +----+ +---+
135-
// |
136-
// |
137-
// v
138-
// +----+ +----+
139-
// | t2 | --> | c |
140-
// +----+ +----+
126+
(new StateMachineValidator())->validate($definition, 'foo');
141127
}
142128
}

0 commit comments

Comments
 (0)