EnsurePHPStanVersionsMatchTest.php

Namespace

Drupal\PHPStan\Tests

File

core/tests/PHPStan/tests/EnsurePHPStanVersionsMatchTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\PHPStan\Tests;

use PHPUnit\Framework\TestCase;

/**
 * Tests that PHPStan versions match.
 */
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']);
    }

}

Classes

Title Deprecated Summary
EnsurePHPStanVersionsMatchTest Tests that PHPStan versions match.

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