class ComposerTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Composer/ComposerTest.php \Drupal\Tests\Composer\ComposerTest
- 10 core/tests/Drupal/Tests/Composer/ComposerTest.php \Drupal\Tests\Composer\ComposerTest
- 9 core/tests/Drupal/Tests/Composer/ComposerTest.php \Drupal\Tests\Composer\ComposerTest
@coversDefaultClass \Drupal\Composer\Composer
@group Composer
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\PhpunitCompatibilityTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\Composer\ComposerTest extends \Drupal\Tests\UnitTestCase
Expanded class hierarchy of ComposerTest
File
-
core/
tests/ Drupal/ Tests/ Composer/ ComposerTest.php, line 12
Namespace
Drupal\Tests\ComposerView source
class ComposerTest extends UnitTestCase {
/**
* Verify that Composer::ensureComposerVersion() doesn't break.
*
* @covers::ensureComposerVersion
*/
public function testEnsureComposerVersion() {
try {
$this->assertNull(Composer::ensureComposerVersion());
} catch (\RuntimeException $e) {
$this->assertRegExp('/Drupal core development requires Composer 1.9.0, but Composer /', $e->getMessage());
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.