From c2f1cc8f7419fe4eb5e9bd5e6ce05d90e719be17 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 8 Oct 2016 09:58:11 -0400 Subject: Restrict task complexity to a specific range to avoid integer overflow --- tests/units/Validator/GroupValidatorTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/units/Validator/GroupValidatorTest.php') diff --git a/tests/units/Validator/GroupValidatorTest.php b/tests/units/Validator/GroupValidatorTest.php index 879f99ce..020a8bc6 100644 --- a/tests/units/Validator/GroupValidatorTest.php +++ b/tests/units/Validator/GroupValidatorTest.php @@ -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]); } -- cgit v1.2.3