Skip to content

Commit

Permalink
Merge pull request #1 from kohanaworld/dev
Browse files Browse the repository at this point in the history
Upgrade phpunit/phpunit": "^9"
Remove PHP 7.2
  • Loading branch information
kohanax committed Jun 25, 2024
2 parents 455aa20 + 6412b22 commit 4ee3beb
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 33 deletions.
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

0 comments on commit 4ee3beb

Please sign in to comment.