$subject =
new Subject();
// There may be multiple transitions with the same name. Make sure that all transitions
// that are enabled by the marking are evaluated.
// see https://github.com/symfony/symfony/issues/34489
try { $net->
apply($subject, 't1'
);
$this->
fail();
} catch (NotEnabledTransitionException
$e) { $blockers =
iterator_to_array($e->
getTransitionBlockerList());
$this->
assertSame('Transition blocker of place a',
$blockers[0
]->
getMessage());
$this->
assertSame('blocker',
$blockers[0
]->
getCode());
} }}