diff --git a/src/Symfony/Component/Workflow/Tests/DefinitionTest.php b/src/Symfony/Component/Workflow/Tests/DefinitionTest.php index 63d196d872..e52bba09ca 100644 --- a/src/Symfony/Component/Workflow/Tests/DefinitionTest.php +++ b/src/Symfony/Component/Workflow/Tests/DefinitionTest.php @@ -17,6 +17,15 @@ class DefinitionTest extends \PHPUnit_Framework_TestCase $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');