Skip to content

Commit 4e96cea

Browse files
committed
update php8.2
1 parent 4746760 commit 4e96cea

File tree

6 files changed

+34
-28
lines changed

6 files changed

+34
-28
lines changed

.circleci/config.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ jobs:
2929
name: PHPUnit
3030
command: |
3131
ENABLE_COVERAGE=false
32-
if [ "<< parameters.php-version >>" == "8" ] && [ "$ENABLE_COVERAGE" == "true" ]; then
33-
XDEBUG_MODE=coverage phpunit --coverage-clover clover.xml
34-
coveralls --coverage_clover=clover.xml -v -o coveralls-upload.json
32+
if [ "<< parameters.php-version >>" == "8.2" ]; then
33+
if [ "$ENABLE_COVERAGE" == "true" ]; then
34+
XDEBUG_MODE=coverage phpunit --coverage-clover clover.xml
35+
coveralls --coverage_clover=clover.xml -v -o coveralls-upload.json
36+
else
37+
phpunit --display-deprecations
38+
fi
3539
else
3640
phpunit
3741
fi
@@ -46,4 +50,4 @@ workflows:
4650
- unittest:
4751
matrix:
4852
parameters:
49-
php-version: ["8.1", "8.0", "5.6"]
53+
php-version: ["8.2", "8.1", "8.0", "5.6"]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ vendor
22
composer.lock
33
.php_cs.cache
44
.phpunit.result.cache
5+
.phpunit.cache
56
.*.sw?

phpunit.xml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
colors="true"
5-
bootstrap="tests/include.php"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
5+
backupGlobals="false"
6+
colors="true"
7+
bootstrap="tests/include.php"
8+
processIsolation="false"
9+
stopOnFailure="false"
10+
cacheDirectory=".phpunit.cache"
11+
backupStaticProperties="false"
1112
>
12-
<testsuites>
13-
<testsuite name="Application Test Suite">
14-
<directory>./tests/</directory>
15-
<file>./tests/test.php</file>
16-
</testsuite>
17-
</testsuites>
18-
<php>
19-
<ini name="error_reporting" value="E_ALL"/>
20-
<ini name="display_errors" value="true"/>
21-
<ini name="display_startup_errors" value="true"/>
22-
<env name="APP_ENV" value="testing"/>
23-
</php>
13+
<testsuites>
14+
<testsuite name="Application Test Suite">
15+
<directory>./tests/</directory>
16+
</testsuite>
17+
</testsuites>
18+
<php>
19+
<ini name="error_reporting" value="E_ALL" />
20+
<ini name="display_errors" value="true" />
21+
<ini name="display_startup_errors" value="true" />
22+
<env name="APP_ENV" value="testing" />
23+
</php>
2424
</phpunit>

src/_line.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
class line
66
{
7-
function __invoke($color="%U%W", $sign='-', $num=80)
7+
public $caller;
8+
public function __invoke($color="%U%W", $sign='-', $num=80)
89
{
910
$cli = \PMVC\plug($this->caller[\PMVC\NAME]);
1011
$cli->dump(str_repeat($sign, $num), $color);
File renamed without changes.

tests/src/GetOptTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testMulti($feed, $expected)
105105
$this->assertEquals($expected, $actual);
106106
}
107107

108-
public function multiProvider()
108+
static public function multiProvider()
109109
{
110110
return [
111111
[

0 commit comments

Comments
 (0)