Skip to content

Commit

Permalink
testValidateMultipleOf() requires "bcmath" ext
Browse files Browse the repository at this point in the history
In v8.12.0 the validation rule 'multiple_of'
started calling global function bcmod() which
is part of the "bcmath" extension.

Add @requires phpdoc to the 'multiple_of' test
method for better feedback if the PHP extension
is missing in the environment.
  • Loading branch information
derekmd committed Mar 4, 2021
1 parent e596321 commit 0457346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Validation/ValidationValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1857,8 +1857,9 @@ public function testValidateMax()
* @param bool $passes
*
* @dataProvider multipleOfDataProvider
* @requires extension bcmath
*/
public function testValidateMutlpleOf($input, $allowed, $passes)
public function testValidateMultipleOf($input, $allowed, $passes)
{
$trans = $this->getIlluminateArrayTranslator();
$trans->addLines(['validation.multiple_of' => 'The :attribute must be a multiple of :value'], 'en');
Expand Down

0 comments on commit 0457346

Please sign in to comment.