diff --git a/src/Symfony/Component/Workflow/Tests/DefinitionTest.php b/src/Symfony/Component/Workflow/Tests/DefinitionTest.php index 4a4465fd64a10..20d8dd91574f8 100644 --- a/src/Symfony/Component/Workflow/Tests/DefinitionTest.php +++ b/src/Symfony/Component/Workflow/Tests/DefinitionTest.php @@ -17,6 +17,15 @@ public function testAddPlaces() $this->assertEquals('a', $definition->getInitialPlace()); } + /** + * @expectedException Symfony\Component\Workflow\Exception\InvalidArgumentException + */ + public function testAddPlacesInvalidArgument() + { + $places = array('a"', 'e"'); + $definition = new Definition($places); + } + public function testSetInitialPlace() { $places = range('a', 'e');