Skip to content

Commit ad1c297

Browse files
authored
Merge pull request #1 from orbeji/php_update
Php update to 8.3
2 parents fd30e46 + 19c2dca commit ad1c297

File tree

6 files changed

+28
-30
lines changed

6 files changed

+28
-30
lines changed

.github/workflows/compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
operating-system: [ 'ubuntu-22.04' ]
15-
php: [ '7.2' ]
15+
php: [ '8.3' ]
1616
symfony: [ '5.4.*']
1717

1818
steps:

.github/workflows/static.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup PHP
1414
uses: shivammathur/setup-php@v2
1515
with:
16-
php-version: 7.2
16+
php-version: 8.3
1717
coverage: none
1818
tools: phpstan:1.10.55, cs2pr
1919

@@ -33,17 +33,17 @@ jobs:
3333
- name: Setup PHP
3434
uses: shivammathur/setup-php@v2
3535
with:
36-
php-version: 7.2
36+
php-version: 8.3
3737
coverage: none
3838

3939
- name: Composer install
4040
uses: php-actions/composer@v6
4141
with:
42-
php_version: 7.2
42+
php_version: 8.3
4343

4444
- name: PHP Code Sniffer
4545
uses: php-actions/phpcs@v1
4646
with:
47-
php_version: 7.2
47+
php_version: 8.3
4848
path: src/
4949
standard: psr12

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up PHP
1414
uses: shivammathur/setup-php@v2
1515
with:
16-
php-version: '7.2'
16+
php-version: '8.3'
1717

1818
- name: Install dependencies
1919
run: composer install

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@
1313
"Code coverage"
1414
],
1515
"require": {
16-
"php": "^7.2",
16+
"php": "^8.3",
1717
"ext-json": "*",
1818
"ext-simplexml": "*",
1919
"composer-runtime-api": "^2.2",
20-
"mashape/unirest-php": "^3.0",
21-
"ptlis/diff-parser": "^1.0.2",
22-
"symfony/console": "^5.4.36",
23-
"symfony/polyfill-php83": "*",
24-
"symfony/polyfill-uuid": "^1.29.0"
20+
"mashape/unirest-php": "^3.0.4",
21+
"ptlis/diff-parser": "^1.1.0",
22+
"symfony/console": "^5.4.46",
23+
"symfony/polyfill-php83": "^1.31",
24+
"symfony/polyfill-uuid": "^1.31.0"
2525
},
2626
"require-dev": {
27-
"nyholm/symfony-bundle-test": "^1.8.0",
28-
"phpstan/phpstan": "^1.10",
29-
"phpunit/phpunit": "^7.5.0",
27+
"nyholm/symfony-bundle-test": "^3.0",
28+
"phpstan/phpstan": "^1.12.10",
29+
"phpunit/phpunit": "^10.5",
3030
"roave/security-advisories": "dev-latest",
3131
"rregeer/phpunit-coverage-check": "^0.3.1",
32-
"squizlabs/php_codesniffer": "^3.8",
33-
"symfony/framework-bundle": "5.4",
34-
"symfony/var-dumper": "^5.4",
32+
"squizlabs/php_codesniffer": "^3.10.3",
33+
"symfony/framework-bundle": "^5.4.45",
34+
"symfony/var-dumper": "^5.4.46",
3535
"webmozart/assert": "^1.11.0"
3636
},
3737
"autoload": {

phpunit.xml.dist

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121
</php>
2222
<testsuites>
2323
<testsuite name="Project Test Suite">
24-
<directory suffix=".php">tests</directory>
24+
<directory suffix="Test.php">tests</directory>
2525
</testsuite>
2626
</testsuites>
27-
<filter>
28-
<whitelist processUncoveredFilesFromWhitelist="true">
27+
<coverage>
28+
<include>
2929
<directory suffix=".php">src</directory>
30-
<exclude>
31-
</exclude>
32-
</whitelist>
33-
</filter>
30+
</include>
31+
</coverage>
3432
</phpunit>

tests/PrCoverageCheckerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Orbeji\PrCoverageChecker;
44

55
use InvalidArgumentException;
6-
use Nyholm\BundleTest\AppKernel;
6+
use Nyholm\BundleTest\TestKernel;
77
use Orbeji\PrCoverageChecker\Coverage\Parser;
88
use Orbeji\PrCoverageChecker\Git\GitAdapterFactory;
99
use Orbeji\PrCoverageChecker\Mocks\Git\Bitbucket\BitbucketAdapter;
@@ -20,15 +20,15 @@ class PrCoverageCheckerTest extends KernelTestCase
2020
{
2121
protected static function getKernelClass(): string
2222
{
23-
return AppKernel::class;
23+
return TestKernel::class;
2424
}
2525

2626
protected static function createKernel(array $options = []): KernelInterface
2727
{
28-
return parent::createKernel($options);
28+
$kernel = parent::createKernel($options);
29+
return $kernel;
2930
}
3031

31-
3232
public function testCommandDiffFile(): void
3333
{
3434
self::bootKernel();
@@ -193,7 +193,7 @@ public function testCommandNoClover(): void
193193
);
194194

195195
$this->expectException(InvalidArgumentException::class);
196-
$this->expectExceptionMessageRegExp('/Files does not exist: */');
196+
$this->expectExceptionMessageMatches('/Files does not exist: */');
197197
$command = $application->find('check');
198198
$commandTester = new CommandTester($command);
199199
$commandTester->execute(

0 commit comments

Comments
 (0)