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:
parent
404dea61c2
commit
5a02ea6a96
2 changed files with 10 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue