Php unit10 (#124)
* Static PHPUnit providers * Limit PHP upgrades till new PHP version is tested * Upgrade PHPUnit config schema
This commit is contained in:
parent
1d41ca6da2
commit
1b8d71d953
4 changed files with 18 additions and 23 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
||||||
vendor/
|
vendor/
|
||||||
.idea/
|
.idea/
|
||||||
composer.lock
|
composer.lock
|
||||||
|
.phpunit.cache
|
||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
.vscode
|
.vscode
|
||||||
.php-cs-fixer.cache
|
.php-cs-fixer.cache
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.0"
|
"php": ">=8.0 <8.3"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": ">=9.0",
|
"phpunit/phpunit": ">=9.0",
|
||||||
|
|
|
@ -1,20 +1,14 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
<phpunit backupGlobals="false"
|
backupGlobals="false"
|
||||||
backupStaticAttributes="false"
|
colors="true"
|
||||||
colors="true"
|
processIsolation="false"
|
||||||
convertErrorsToExceptions="true"
|
stopOnFailure="false"
|
||||||
convertNoticesToExceptions="true"
|
bootstrap="./tests/bootstrap.php"
|
||||||
convertWarningsToExceptions="true"
|
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
|
||||||
convertDeprecationsToExceptions="true"
|
<testsuites>
|
||||||
processIsolation="false"
|
<testsuite name="Math Executor tests">
|
||||||
stopOnFailure="false"
|
<directory>./tests/</directory>
|
||||||
bootstrap="./tests/bootstrap.php"
|
</testsuite>
|
||||||
>
|
</testsuites>
|
||||||
|
|
||||||
<testsuites>
|
|
||||||
<testsuite name="Math Executor tests">
|
|
||||||
<directory>./tests/</directory>
|
|
||||||
</testsuite>
|
|
||||||
</testsuites>
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
|
@ -51,7 +51,7 @@ class MathTest extends TestCase
|
||||||
*
|
*
|
||||||
* @return array<array<string>>
|
* @return array<array<string>>
|
||||||
*/
|
*/
|
||||||
public function providerExpressions()
|
public static function providerExpressions()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['-5'],
|
['-5'],
|
||||||
|
@ -295,7 +295,7 @@ class MathTest extends TestCase
|
||||||
*
|
*
|
||||||
* @return array<array<string>>
|
* @return array<array<string>>
|
||||||
*/
|
*/
|
||||||
public function bcMathExpressions()
|
public static function bcMathExpressions()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['-5'],
|
['-5'],
|
||||||
|
@ -518,7 +518,7 @@ class MathTest extends TestCase
|
||||||
*
|
*
|
||||||
* @return array<array<string>>
|
* @return array<array<string>>
|
||||||
*/
|
*/
|
||||||
public function incorrectExpressions()
|
public static function incorrectExpressions()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['1 * + '],
|
['1 * + '],
|
||||||
|
@ -1091,7 +1091,7 @@ class MathTest extends TestCase
|
||||||
*
|
*
|
||||||
* @return array<array<mixed>>
|
* @return array<array<mixed>>
|
||||||
*/
|
*/
|
||||||
public function providerExpressionValues()
|
public static function providerExpressionValues()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['arccos(0.5)', \acos(0.5)],
|
['arccos(0.5)', \acos(0.5)],
|
||||||
|
|
Loading…
Reference in a new issue