function EnsurePHPStanVersionsMatchTest::testVersions

File

core/tests/PHPStan/tests/EnsurePHPStanVersionsMatchTest.php, line 14

Class

EnsurePHPStanVersionsMatchTest
Tests that PHPStan versions match.

Namespace

Drupal\PHPStan\Tests

Code

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']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.