8000 minor #19169 Add test for Definition with exeption InvalidArgument (I… · symfony/symfony@75f4142 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75f4142

Browse files
committed
minor #19169 Add test for Definition with exeption InvalidArgument (IvanMenshykov)
This PR was squashed before being merged into the 3.2-dev branch (closes #19169). Discussion ---------- Add test for Definition with exeption InvalidArgument Add test for Definition with exeption InvalidArgument | Q | A | ------------- | --- | Branch? | "master" for new features / 2.7, 2.8, 3.0 or 3.1 for fixes | Bug fix? | no | New feature? | no | Deprecations? | no | Tests pass? | yes | License | MIT Commits ------- 91072e6 Add test for Definition with exeption InvalidArgument
2 parents 3282d5f + 91072e6 commit 75f4142

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Component/Workflow/Tests/DefinitionTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ public function testAddPlaces()
1717
$this->assertEquals('a', $definition->getInitialPlace());
1818
}
1919

20+
/**
21+
* @expectedException Symfony\Component\Workflow\Exception\InvalidArgumentException
22+
*/
23+
public function testAddPlacesInvalidArgument()
24+
{
25+
$places = array('a"', 'e"');
26+
$definition = new Definition($places);
27+
}
28+
2029
public function testSetInitialPlace()
2130
{
2231
$places = range('a', 'e');

0 commit comments

Comments
 (0)
0