1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Check that class exists

This commit is contained in:
Lars Strojny 2020-07-30 14:29:48 +02:00
parent 404dea61c2
commit 5a02ea6a96
No known key found for this signature in database
GPG key ID: 887416A2AD3B0CA9
2 changed files with 10 additions and 5 deletions

View file

@ -69,12 +69,15 @@ class PlatformRepositoryTest extends TestCase {
$this->assertSame('4.0.1.0-dev', $package->getVersion());
}
public function testICULibraryVersion()
{
public function testICULibraryVersion() {
if (!defined('INTL_ICU_VERSION')) {
$this->markTestSkipped('Test only work with ext-intl present');
}
if (!class_exists('ResourceBundle', false)) {
$this->markTestSkipped('Test only work with ResourceBundle class present');
}
$platformRepository = new PlatformRepository();
$packages = $platformRepository->getPackages();