diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 3d79201..6254827 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: operating-system: [ 'ubuntu-22.04' ] - php: [ '7.2' ] + php: [ '8.3' ] symfony: [ '5.4.*'] steps: diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index d825b82..8ddfd33 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -13,7 +13,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 7.2 + php-version: 8.3 coverage: none tools: phpstan:1.10.55, cs2pr @@ -33,17 +33,17 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 7.2 + php-version: 8.3 coverage: none - name: Composer install uses: php-actions/composer@v6 with: - php_version: 7.2 + php_version: 8.3 - name: PHP Code Sniffer uses: php-actions/phpcs@v1 with: - php_version: 7.2 + php_version: 8.3 path: src/ standard: psr12 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a25c631..e53e1da 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: - name: Set up PHP uses: shivammathur/setup-php@v2 with: - php-version: '7.2' + php-version: '8.3' - name: Install dependencies run: composer install diff --git a/composer.json b/composer.json index ff786ce..a43f5b7 100644 --- a/composer.json +++ b/composer.json @@ -13,25 +13,25 @@ "Code coverage" ], "require": { - "php": "^7.2", + "php": "^8.3", "ext-json": "*", "ext-simplexml": "*", "composer-runtime-api": "^2.2", - "mashape/unirest-php": "^3.0", - "ptlis/diff-parser": "^1.0.2", - "symfony/console": "^5.4.36", - "symfony/polyfill-php83": "*", - "symfony/polyfill-uuid": "^1.29.0" + "mashape/unirest-php": "^3.0.4", + "ptlis/diff-parser": "^1.1.0", + "symfony/console": "^5.4.46", + "symfony/polyfill-php83": "^1.31", + "symfony/polyfill-uuid": "^1.31.0" }, "require-dev": { - "nyholm/symfony-bundle-test": "^1.8.0", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^7.5.0", + "nyholm/symfony-bundle-test": "^3.0", + "phpstan/phpstan": "^1.12.10", + "phpunit/phpunit": "^10.5", "roave/security-advisories": "dev-latest", "rregeer/phpunit-coverage-check": "^0.3.1", - "squizlabs/php_codesniffer": "^3.8", - "symfony/framework-bundle": "5.4", - "symfony/var-dumper": "^5.4", + "squizlabs/php_codesniffer": "^3.10.3", + "symfony/framework-bundle": "^5.4.45", + "symfony/var-dumper": "^5.4.46", "webmozart/assert": "^1.11.0" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 709bd02..9034928 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -21,14 +21,12 @@ - tests + tests - - + + src - - - - + + diff --git a/tests/PrCoverageCheckerTest.php b/tests/PrCoverageCheckerTest.php index e93fff1..72d3414 100644 --- a/tests/PrCoverageCheckerTest.php +++ b/tests/PrCoverageCheckerTest.php @@ -3,7 +3,7 @@ namespace Orbeji\PrCoverageChecker; use InvalidArgumentException; -use Nyholm\BundleTest\AppKernel; +use Nyholm\BundleTest\TestKernel; use Orbeji\PrCoverageChecker\Coverage\Parser; use Orbeji\PrCoverageChecker\Git\GitAdapterFactory; use Orbeji\PrCoverageChecker\Mocks\Git\Bitbucket\BitbucketAdapter; @@ -20,15 +20,15 @@ class PrCoverageCheckerTest extends KernelTestCase { protected static function getKernelClass(): string { - return AppKernel::class; + return TestKernel::class; } protected static function createKernel(array $options = []): KernelInterface { - return parent::createKernel($options); + $kernel = parent::createKernel($options); + return $kernel; } - public function testCommandDiffFile(): void { self::bootKernel(); @@ -193,7 +193,7 @@ public function testCommandNoClover(): void ); $this->expectException(InvalidArgumentException::class); - $this->expectExceptionMessageRegExp('/Files does not exist: */'); + $this->expectExceptionMessageMatches('/Files does not exist: */'); $command = $application->find('check'); $commandTester = new CommandTester($command); $commandTester->execute(