Restrict task complexity to a specific range to avoid integer overflow

This commit is contained in:
Frederic Guillot
2016-10-08 09:58:11 -04:00
parent 1466afb771
commit c2f1cc8f74
37 changed files with 179 additions and 132 deletions

View File

@@ -8,12 +8,12 @@ class GroupValidatorTest extends Base
{
public function testValidateCreation()
{
$validator = new GroupValidator($this->container);
$groupValidator = new GroupValidator($this->container);
$result = $validator->validateCreation(array('name' => 'Test'));
$result = $groupValidator->validateCreation(array('name' => 'Test'));
$this->assertTrue($result[0]);
$result = $validator->validateCreation(array('name' => ''));
$result = $groupValidator->validateCreation(array('name' => ''));
$this->assertFalse($result[0]);
}