PHPUnit upgrade to 9.1, PHP upgrade to 7.3

main
Igor Scheller 5 years ago committed by msquare
parent 795a0631cb
commit 351fc1f749

@ -16,7 +16,7 @@ Please read the [CONTRIBUTING.md](CONTRIBUTING.md) and [DEVELOPMENT.md](DEVELOPM
The Engelsystem may be installed manually or by using the provided [docker setup](#docker).
### Requirements
* PHP >= 7.2
* PHP >= 7.3
* Required modules:
* dom
* json

@ -18,7 +18,7 @@
"phpcbf": "phpcbf -p"
},
"require": {
"php": ">=7.2.0",
"php": ">=7.3.0",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
@ -45,9 +45,9 @@
"vlucas/phpdotenv": "^3.3"
},
"require-dev": {
"dms/phpunit-arraysubset-asserts": "^0.1.0",
"dms/phpunit-arraysubset-asserts": "^0.2.0",
"filp/whoops": "^2.3",
"phpunit/phpunit": "^8.1",
"phpunit/phpunit": "^9.1",
"squizlabs/php_codesniffer": "^3.5",
"symfony/var-dumper": "^4.3"
},

@ -1,6 +1,6 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="./tests/autoload.php"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.1/phpunit.xsd"
bootstrap="./includes/autoload.php"
colors="true"
>
<testsuites>

@ -37,7 +37,7 @@ class EngelsystemMailerTest extends TestCase
$this->setExpects($view, 'render', ['test/template.tpl', ['dev' => true]], 'Rendered Stuff!');
$return = $mailer->sendView('foo@bar.baz', 'Lorem dolor', 'test/template.tpl', ['dev' => true]);
$this->equalTo(1, $return);
$this->assertEquals(1, $return);
}
/**
@ -91,7 +91,7 @@ class EngelsystemMailerTest extends TestCase
['dev' => true],
'de_DE'
);
$this->equalTo(1, $return);
$this->assertEquals(1, $return);
}
/**
@ -120,6 +120,6 @@ class EngelsystemMailerTest extends TestCase
$this->assertEquals('Mail test', $mailer->getSubjectPrefix());
$return = $mailer->send('to@xam.pel', 'Foo Bar', 'Lorem Ipsum!');
$this->equalTo(1, $return);
$this->assertEquals(1, $return);
}
}

@ -72,6 +72,6 @@ class MailerTest extends TestCase
$mailer->setFromName('Lorem Ipsum');
$return = $mailer->send('to@xam.pel', 'Foo Bar', 'Lorem Ipsum!');
$this->equalTo(1, $return);
$this->assertEquals(1, $return);
}
}

@ -52,6 +52,6 @@ class LogTransportTest extends TestCase
->willReturn(['foo@bar.batz' => null, 'lor@em.ips' => 'Lorem Ipsum']);
$return = $transport->send($message);
$this->equalTo(2, $return);
$this->assertEquals(2, $return);
}
}

@ -65,7 +65,7 @@ class HtmlEngineTest extends TestCase
protected function tearDown(): void
{
foreach ($this->tmpFileNames as $fileName) {
unlink($fileName);
file_exists($fileName) && unlink($fileName);
}
}
}

@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/../includes/autoload.php';
Loading…
Cancel
Save