Skip to content

Commit

Permalink
update php8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed Feb 23, 2023
1 parent 4746760 commit 4e96cea
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 28 deletions.
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ jobs:
name: PHPUnit
command: |
ENABLE_COVERAGE=false
if [ "<< parameters.php-version >>" == "8" ] && [ "$ENABLE_COVERAGE" == "true" ]; then
XDEBUG_MODE=coverage phpunit --coverage-clover clover.xml
coveralls --coverage_clover=clover.xml -v -o coveralls-upload.json
if [ "<< parameters.php-version >>" == "8.2" ]; then
if [ "$ENABLE_COVERAGE" == "true" ]; then
XDEBUG_MODE=coverage phpunit --coverage-clover clover.xml
coveralls --coverage_clover=clover.xml -v -o coveralls-upload.json
else
phpunit --display-deprecations
fi
else
phpunit
fi
Expand All @@ -46,4 +50,4 @@ workflows:
- unittest:
matrix:
parameters:
php-version: ["8.1", "8.0", "5.6"]
php-version: ["8.2", "8.1", "8.0", "5.6"]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ vendor
composer.lock
.php_cs.cache
.phpunit.result.cache
.phpunit.cache
.*.sw?
44 changes: 22 additions & 22 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
bootstrap="tests/include.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="tests/include.php"
processIsolation="false"
stopOnFailure="false"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
<file>./tests/test.php</file>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="E_ALL"/>
<ini name="display_errors" value="true"/>
<ini name="display_startup_errors" value="true"/>
<env name="APP_ENV" value="testing"/>
</php>
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="E_ALL" />
<ini name="display_errors" value="true" />
<ini name="display_startup_errors" value="true" />
<env name="APP_ENV" value="testing" />
</php>
</phpunit>
3 changes: 2 additions & 1 deletion src/_line.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

class line
{
function __invoke($color="%U%W", $sign='-', $num=80)
public $caller;
public function __invoke($color="%U%W", $sign='-', $num=80)
{
$cli = \PMVC\plug($this->caller[\PMVC\NAME]);
$cli->dump(str_repeat($sign, $num), $color);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/src/GetOptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function testMulti($feed, $expected)
$this->assertEquals($expected, $actual);
}

public function multiProvider()
static public function multiProvider()
{
return [
[
Expand Down

0 comments on commit 4e96cea

Please sign in to comment.