Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade phpunit/phpunit": "^9" #1

Merged
merged 2 commits into from
Jun 25, 2024
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
1 change: 0 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
strategy:
matrix:
php-version:
- 7.2
- 7.3
- 7.4
- 8.0
Expand Down
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</target>

<target name="prepare">
<get src="http://getcomposer.org/composer.phar" dest="build/composer.phar"/>
<get src="https://getcomposer.org/composer.phar" dest="build/composer.phar"/>
<exec executable="php" failonerror="true">
<arg value="build/composer.phar"/>
<arg value="install"/>
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"name": "Kohana World Team",
"email": "ga@koseven@ga"
"email": "ga@koseven.ga"
}
],
"autoload": {
Expand All @@ -23,9 +23,9 @@
}
},
"require": {
"php": "^7.2|^8.0"
"php": "^7.3|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5"
"phpunit/phpunit": "^9"
}
}
52 changes: 25 additions & 27 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
convertErrorsToExceptions="true"
convertWarningsToExceptions="true"
convertNoticesToExceptions="true"
bootstrap="vendor/autoload.php"
verbose="true"
colors="true"
timeoutForLargeTests="100">

<testsuites>
<testsuite name="kohanaworld/hmmmath">
<directory>./tests/</directory>
</testsuite>
</testsuites>

<logging>
<log type="coverage-html" target="build/coverage" lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="junit" target="build/logs/junit.xml" />
</logging>

<php>
<ini name="error_reporting" value="-1"/>
</php>

<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
bootstrap="vendor/autoload.php" verbose="true"
colors="true" timeoutForLargeTests="100"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/coverage" lowUpperBound="35" highLowerBound="70"/>
</report>
</coverage>
<testsuites>
<testsuite name="kohanaworld/hmmmath">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="build/logs/junit.xml"/>
</logging>
<php>
<ini name="error_reporting" value="-1"/>
</php>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function greatestCommonDivisor(array $numbers, string $mode = self
do {
$right = array_shift($numbers);

if (is_infinite($right)) {
if (is_infinite((float) $right)) {
return INF;
}

Expand Down
Loading