Add test for Definition with exeption InvalidArgument
This commit is contained in:
parent
8304bccbfb
commit
91072e6e86
@ -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');
|
||||
|
Reference in New Issue
Block a user