Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
operating-system: [ 'ubuntu-22.04' ]
php: [ '7.2' ]
php: [ '8.3' ]
symfony: [ '5.4.*']

steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
12 changes: 5 additions & 7 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
</php>
<testsuites>
<testsuite name="Project Test Suite">
<directory suffix=".php">tests</directory>
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<coverage>
<include>
<directory suffix=".php">src</directory>
<exclude>
</exclude>
</whitelist>
</filter>
</include>
</coverage>
</phpunit>
10 changes: 5 additions & 5 deletions tests/PrCoverageCheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down Expand Up @@ -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(
Expand Down
Loading