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/LinkValidatorTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/units/Validator/LinkValidatorTest.php') diff --git a/tests/units/Validator/LinkValidatorTest.php b/tests/units/Validator/LinkValidatorTest.php index 8b7b182c..a4ec170e 100644 --- a/tests/units/Validator/LinkValidatorTest.php +++ b/tests/units/Validator/LinkValidatorTest.php @@ -8,21 +8,21 @@ class LinkValidatorTest extends Base { public function testValidateCreation() { - $validator = new LinkValidator($this->container); + $linkValidator = new LinkValidator($this->container); - $r = $validator->validateCreation(array('label' => 'a')); + $r = $linkValidator->validateCreation(array('label' => 'a')); $this->assertTrue($r[0]); - $r = $validator->validateCreation(array('label' => 'a', 'opposite_label' => 'b')); + $r = $linkValidator->validateCreation(array('label' => 'a', 'opposite_label' => 'b')); $this->assertTrue($r[0]); - $r = $validator->validateCreation(array('label' => 'relates to')); + $r = $linkValidator->validateCreation(array('label' => 'relates to')); $this->assertFalse($r[0]); - $r = $validator->validateCreation(array('label' => 'a', 'opposite_label' => 'a')); + $r = $linkValidator->validateCreation(array('label' => 'a', 'opposite_label' => 'a')); $this->assertFalse($r[0]); - $r = $validator->validateCreation(array('label' => '')); + $r = $linkValidator->validateCreation(array('label' => '')); $this->assertFalse($r[0]); } -- cgit v1.2.3