Skip to content

Commit 6cb6e4f

Browse files
committed
PHP 8.4
1 parent 6440993 commit 6cb6e4f

File tree

6 files changed

+25
-33
lines changed

6 files changed

+25
-33
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ bin/
44
composer.lock
55
.php_cs.cache
66
.phpunit.result.cache
7+
.phpunit.cache
78
phpunit.xml
89
.php-cs-fixer.cache
910

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
"psr-4": {"ICalendarOrg\\": "src/ICalendarOrg/"}
3232
},
3333
"require": {
34-
"php": ">=7.4 <8.4"
34+
"php": ">=7.4 <8.5"
3535
},
3636
"require-dev": {
37-
"phpunit/phpunit": "<11.0",
37+
"phpunit/phpunit": "<12.0",
3838
"friendsofphp/php-cs-fixer": "^3.3",
3939
"phpstan/phpstan": "^1.8",
40-
"phpfui/phpunit-syntax-coverage": "^1.0"
40+
"phpfui/phpunit-syntax-coverage": "dev-master"
4141
}
4242
}

phpunit.xml.dist

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
convertDeprecationsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="true"
12-
bootstrap="./tests/bootstrap.php"
13-
>
14-
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
4+
colors="true"
5+
processIsolation="false"
6+
stopOnFailure="false"
7+
displayDetailsOnTestsThatTriggerDeprecations="true"
8+
displayDetailsOnTestsThatTriggerErrors="true"
9+
displayDetailsOnTestsThatTriggerNotices="true"
10+
displayDetailsOnTestsThatTriggerWarnings="true"
11+
bootstrap="./tests/bootstrap.php"
12+
backupStaticProperties="false"
13+
>
1514
<testsuites>
16-
<testsuite name="ICalendarOrg tests">
15+
<testsuite name="ICalendarOrg tests">
1716
<directory>./tests/</directory>
1817
</testsuite>
1918
</testsuites>

tests/FileTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
* For the full copyright and license information, please view
88
* the LICENSE file that was distributed with this source
99
* code
10-
*
1110
*/
11+
12+
use PHPUnit\Framework\Attributes\DataProvider;
13+
1214
class FileTest extends \PHPUnit\Framework\TestCase
1315
{
1416
/**
@@ -36,9 +38,7 @@ public static function providerICSFiles() : array
3638
return $contents;
3739
}
3840

39-
/**
40-
* @dataProvider providerICSFiles
41-
*/
41+
#[DataProvider('providerICSFiles')]
4242
public function testICSFiles(string $contents, string $file) : void
4343
{
4444
$this->assertNotEmpty($contents);

tests/ZCiCalDataNodeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
* For the full copyright and license information, please view
88
* the LICENSE file that was distributed with this source
99
* code
10-
*
1110
*/
11+
12+
use PHPUnit\Framework\Attributes\DataProvider;
13+
1214
class ZCiCalDataNodeTest extends \PHPUnit\Framework\TestCase
1315
{
1416
/**
@@ -94,9 +96,7 @@ public static function providerZCiCalDataNode() : array
9496
];
9597
}
9698

97-
/**
98-
* @dataProvider providerZCiCalDataNode
99-
*/
99+
#[DataProvider('providerZCiCalDataNode')]
100100
public function testZCiCalDataNode(string $line) : void
101101
{
102102
$dataNode = new \ICalendarOrg\ZCiCalDataNode($line);

0 commit comments

Comments
 (0)