name: DivisibleByValidatorTest class_comment: '# * @author Colin O''Dell ' dependencies: - name: Constraint type: class source: Symfony\Component\Validator\Constraint - name: DivisibleBy type: class source: Symfony\Component\Validator\Constraints\DivisibleBy - name: DivisibleByValidator type: class source: Symfony\Component\Validator\Constraints\DivisibleByValidator - name: UnexpectedValueException type: class source: Symfony\Component\Validator\Exception\UnexpectedValueException properties: [] methods: - name: testThrowsOnNonNumericValues visibility: public parameters: - name: expectedGivenType - name: value - name: comparedValue comment: "# * @author Colin O'Dell \n# */\n# class DivisibleByValidatorTest\ \ extends AbstractComparisonValidatorTestCase\n# {\n# protected function createValidator():\ \ DivisibleByValidator\n# {\n# return new DivisibleByValidator();\n# }\n# \n#\ \ protected static function createConstraint(?array $options = null): Constraint\n\ # {\n# return new DivisibleBy($options);\n# }\n# \n# protected function getErrorCode():\ \ ?string\n# {\n# return DivisibleBy::NOT_DIVISIBLE_BY;\n# }\n# \n# public static\ \ function provideValidComparisons(): array\n# {\n# return [\n# [-7, 1],\n# [0,\ \ 3.1415],\n# [42, 42],\n# [42, 21],\n# [10.12, 0.01],\n# [10.12, 0.001],\n# [1.133,\ \ 0.001],\n# [1.1331, 0.0001],\n# [1.13331, 0.00001],\n# [1.13331, 0.000001],\n\ # [1, 0.1],\n# [1, 0.01],\n# [1, 0.001],\n# [1, 0.0001],\n# [1, 0.00001],\n# [1,\ \ 0.000001],\n# [3.25, 0.25],\n# ['100', '10'],\n# [4.1, 0.1],\n# [-4.1, 0.1],\n\ # ];\n# }\n# \n# public static function provideValidComparisonsToPropertyPath():\ \ array\n# {\n# return [\n# [25],\n# ];\n# }\n# \n# public static function provideInvalidComparisons():\ \ array\n# {\n# return [\n# [1, '1', 2, '2', 'int'],\n# [10, '10', 3, '3', 'int'],\n\ # [10, '10', 0, '0', 'int'],\n# [42, '42', \\INF, 'INF', 'float'],\n# [4.15, '4.15',\ \ 0.1, '0.1', 'float'],\n# [10.123, '10.123', 0.01, '0.01', 'float'],\n# ['22',\ \ '\"22\"', '10', '\"10\"', 'string'],\n# ];\n# }\n# \n# /**\n# * @dataProvider\ \ throwsOnNonNumericValuesProvider" - name: throwsOnNonNumericValuesProvider visibility: public parameters: [] comment: null - name: provideComparisonsToNullValueAtPropertyPath visibility: public parameters: [] comment: null traits: - Symfony\Component\Validator\Constraint - Symfony\Component\Validator\Constraints\DivisibleBy - Symfony\Component\Validator\Constraints\DivisibleByValidator - Symfony\Component\Validator\Exception\UnexpectedValueException interfaces: []