From 91072e6e86bd363b64d9f27229e6762e4cbc6e7e Mon Sep 17 00:00:00 2001 From: Ivan Menshykov Date: Fri, 24 Jun 2016 13:42:32 +0200 Subject: [PATCH] Add test for Definition with exeption InvalidArgument --- src/Symfony/Component/Workflow/Tests/DefinitionTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Symfony/Component/Workflow/Tests/DefinitionTest.php b/src/Symfony/Component/Workflow/Tests/DefinitionTest.php index 4a4465fd64..20d8dd9157 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');