Skip to content

Stabilize tests #128

@xepozz

Description

@xepozz

Some tests sometimes fail. We should make they more stable.
I attach errors:

1) Yiisoft\Validator\Tests\Rule\GroupRuleTest::testCustomErrorMessage
RuntimeException: In order to use IDN validation intl extension must be installed and enabled.

/home/runner/work/validator/validator/src/Rule/Url.php:105
/home/runner/work/validator/validator/tests/Stub/CustomUrlRule.php:20
/home/runner/work/validator/validator/src/Rule/GroupRule.php:25
/home/runner/work/validator/validator/src/Rule.php:44
/home/runner/work/validator/validator/tests/Rule/GroupRuleTest.php:33

2) Yiisoft\Validator\Tests\Rule\GroupRuleTest::testErrorMessage
RuntimeException: In order to use IDN validation intl extension must be installed and enabled.

/home/runner/work/validator/validator/src/Rule/Url.php:105
/home/runner/work/validator/validator/tests/Stub/CustomUrlRule.php:20
/home/runner/work/validator/validator/src/Rule/GroupRule.php:25
/home/runner/work/validator/validator/src/Rule.php:44
/home/runner/work/validator/validator/tests/Rule/GroupRuleTest.php:27

3) Yiisoft\Validator\Tests\Rule\GroupRuleTest::testOptions
RuntimeException: In order to use IDN validation intl extension must be installed and enabled.

/home/runner/work/validator/validator/src/Rule/Url.php:105
/home/runner/work/validator/validator/tests/Stub/CustomUrlRule.php:20
/home/runner/work/validator/validator/src/Rule/GroupRule.php:41
/home/runner/work/validator/validator/tests/Rule/GroupRuleTest.php:66

4) Yiisoft\Validator\Tests\Rule\GroupRuleTest::testValidate
RuntimeException: In order to use IDN validation intl extension must be installed and enabled.

/home/runner/work/validator/validator/src/Rule/Url.php:105
/home/runner/work/validator/validator/tests/Stub/CustomUrlRule.php:20
/home/runner/work/validator/validator/src/Rule/GroupRule.php:25
/home/runner/work/validator/validator/src/Rule.php:44
/home/runner/work/validator/validator/tests/Rule/GroupRuleTest.php:19

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions