Skip to content

Commit 4ee3beb

Browse files
authored
Merge pull request #1 from kohanaworld/dev
Upgrade phpunit/phpunit": "^9" Remove PHP 7.2
2 parents 455aa20 + 6412b22 commit 4ee3beb

File tree

5 files changed

+30
-33
lines changed

5 files changed

+30
-33
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
strategy:
1212
matrix:
1313
php-version:
14-
- 7.2
1514
- 7.3
1615
- 7.4
1716
- 8.0

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</target>
1010

1111
<target name="prepare">
12-
<get src="http://getcomposer.org/composer.phar" dest="build/composer.phar"/>
12+
<get src="https://getcomposer.org/composer.phar" dest="build/composer.phar"/>
1313
<exec executable="php" failonerror="true">
1414
<arg value="build/composer.phar"/>
1515
<arg value="install"/>

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"name": "Kohana World Team",
12-
"email": "ga@koseven@ga"
12+
"email": "ga@koseven.ga"
1313
}
1414
],
1515
"autoload": {
@@ -23,9 +23,9 @@
2323
}
2424
},
2525
"require": {
26-
"php": "^7.2|^8.0"
26+
"php": "^7.3|^8.0"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^8.5"
29+
"phpunit/phpunit": "^9"
3030
}
3131
}

phpunit.xml.dist

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
34
convertErrorsToExceptions="true"
45
convertWarningsToExceptions="true"
56
convertNoticesToExceptions="true"
6-
bootstrap="vendor/autoload.php"
7-
verbose="true"
8-
colors="true"
9-
timeoutForLargeTests="100">
10-
11-
<testsuites>
12-
<testsuite name="kohanaworld/hmmmath">
13-
<directory>./tests/</directory>
14-
</testsuite>
15-
</testsuites>
16-
17-
<logging>
18-
<log type="coverage-html" target="build/coverage" lowUpperBound="35" highLowerBound="70"/>
19-
<log type="coverage-clover" target="build/logs/clover.xml"/>
20-
<log type="junit" target="build/logs/junit.xml" />
21-
</logging>
22-
23-
<php>
24-
<ini name="error_reporting" value="-1"/>
25-
</php>
26-
27-
<filter>
28-
<whitelist>
29-
<directory suffix=".php">src/</directory>
30-
</whitelist>
31-
</filter>
7+
bootstrap="vendor/autoload.php" verbose="true"
8+
colors="true" timeoutForLargeTests="100"
9+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
10+
<coverage>
11+
<include>
12+
<directory suffix=".php">src/</directory>
13+
</include>
14+
<report>
15+
<clover outputFile="build/logs/clover.xml"/>
16+
<html outputDirectory="build/coverage" lowUpperBound="35" highLowerBound="70"/>
17+
</report>
18+
</coverage>
19+
<testsuites>
20+
<testsuite name="kohanaworld/hmmmath">
21+
<directory>./tests/</directory>
22+
</testsuite>
23+
</testsuites>
24+
<logging>
25+
<junit outputFile="build/logs/junit.xml"/>
26+
</logging>
27+
<php>
28+
<ini name="error_reporting" value="-1"/>
29+
</php>
3230
</phpunit>

src/hmmmath/GreatestCommonDivisor/GreatestCommonDivisor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function greatestCommonDivisor(array $numbers, string $mode = self
3131
do {
3232
$right = array_shift($numbers);
3333

34-
if (is_infinite($right)) {
34+
if (is_infinite((float) $right)) {
3535
return INF;
3636
}
3737

0 commit comments

Comments
 (0)