class EnsurePHPStanVersionsMatchTest
Tests that PHPStan versions match.
Hierarchy
- class \Drupal\PHPStan\Tests\EnsurePHPStanVersionsMatchTest extends \PHPUnit\Framework\TestCase
Expanded class hierarchy of EnsurePHPStanVersionsMatchTest
File
-
core/
tests/ PHPStan/ tests/ EnsurePHPStanVersionsMatchTest.php, line 12
Namespace
Drupal\PHPStan\TestsView source
class EnsurePHPStanVersionsMatchTest extends TestCase {
public function testVersions() : void {
$test_composer = json_decode(file_get_contents(__DIR__ . '/../composer.json'), TRUE);
$drupal_composer = json_decode(file_get_contents(__DIR__ . '/../../../../composer/Metapackage/PinnedDevDependencies/composer.json'), TRUE);
$this->assertSame($test_composer['require-dev']['phpstan/phpstan'], $drupal_composer['require']['phpstan/phpstan']);
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.