summaryrefslogtreecommitdiff
path: root/tests/units/Validator/CurrencyValidatorTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-10-08 09:58:11 -0400
committerFrederic Guillot <fred@kanboard.net>2016-10-08 09:58:11 -0400
commitc2f1cc8f7419fe4eb5e9bd5e6ce05d90e719be17 (patch)
tree93900cc242574a346f14e2002f050b5f2c7dc55e /tests/units/Validator/CurrencyValidatorTest.php
parent1466afb771f0291bc350441aede14c97459128e7 (diff)
Restrict task complexity to a specific range to avoid integer overflow
Diffstat (limited to 'tests/units/Validator/CurrencyValidatorTest.php')
-rw-r--r--tests/units/Validator/CurrencyValidatorTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/units/Validator/CurrencyValidatorTest.php b/tests/units/Validator/CurrencyValidatorTest.php
index 39c06d44..0b646732 100644
--- a/tests/units/Validator/CurrencyValidatorTest.php
+++ b/tests/units/Validator/CurrencyValidatorTest.php
@@ -8,20 +8,20 @@ class CurrencyValidatorTest extends Base
{
public function testValidation()
{
- $validator = new CurrencyValidator($this->container);
- $result = $validator->validateCreation(array());
+ $currencyValidator = new CurrencyValidator($this->container);
+ $result = $currencyValidator->validateCreation(array());
$this->assertFalse($result[0]);
- $result = $validator->validateCreation(array('currency' => 'EUR'));
+ $result = $currencyValidator->validateCreation(array('currency' => 'EUR'));
$this->assertFalse($result[0]);
- $result = $validator->validateCreation(array('rate' => 1.9));
+ $result = $currencyValidator->validateCreation(array('rate' => 1.9));
$this->assertFalse($result[0]);
- $result = $validator->validateCreation(array('currency' => 'EUR', 'rate' => 'foobar'));
+ $result = $currencyValidator->validateCreation(array('currency' => 'EUR', 'rate' => 'foobar'));
$this->assertFalse($result[0]);
- $result = $validator->validateCreation(array('currency' => 'EUR', 'rate' => 1.25));
+ $result = $currencyValidator->validateCreation(array('currency' => 'EUR', 'rate' => 1.25));
$this->assertTrue($result[0]);
}
}