Closed solodkiy closed 2 years ago
Good point! Shouldn't we make it a dev dependency instead, though? We already have ext-pdo
and ext-dom
as dev dependencies.
We have similar skip tag in tests/ExchangeRateProvider/PDOProviderTest.php, so I did it the same way
Indeed, although it shouldn't have been there, it's redundant as composer will warn if the dev dependency is not installed anyway.
So we should either make all extensions required in require-dev
, or mark everything as @requires
in PHPUnit. I quite like to just skip tests if the extension is not installed, rather than forcing its installation, however the downside is that PHPStorm will complain in src/
that ext-*
is not present in composer.json.
Indeed, although it shouldn't have been there, it's redundant as composer will warn if the dev dependency is not installed anyway.
There is different extensions in test and in composer (pdo_sqlite vs ext-pdo). So this case is not redundant.
We only test with pdo_sqlite, so it is redundant!
Let's do this. @solodkiy I think we should use phpunit --fail-on-skipped
in the CI now then?
Sounds reasonable
Resolve test errors if intl extenstion is not installed