Skip to content

Commit bf01084

Browse files
committed
Updating composer and adapting tests
1 parent fd30e46 commit bf01084

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

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": {

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)