* [behave](http://pythonhosted.org/behave/)
* [nose](https://nose.readthedocs.io)
- * [phpunit](https://phpunit.de)
+ * [phpunit](https://phpunit.de) >= 7.3
### Hardware
class AddressDetailsTest extends \PHPUnit\Framework\TestCase
{
- protected function setUp()
+ protected function setUp(): void
{
// How the fixture got created
//
class DebugTest extends \PHPUnit\Framework\TestCase
{
- protected function setUp()
+ protected function setUp(): void
{
$this->oWithDebuginfo = $this->getMockBuilder(\GeococdeMock::class)
->setMethods(array('debugInfo'))
foreach ($aQueries as $sQuery) {
$aRes = parseLatLon($sQuery);
- $this->assertEquals(40.446, $aRes[1], 'degrees decimal ' . $sQuery, 0.01);
- $this->assertEquals(-79.982, $aRes[2], 'degrees decimal ' . $sQuery, 0.01);
+ $this->assertEqualsWithDelta(40.446, $aRes[1], 0.01, 'degrees decimal ' . $sQuery);
+ $this->assertEqualsWithDelta(-79.982, $aRes[2], 0.01, 'degrees decimal ' . $sQuery);
$this->assertEquals($sQuery, $aRes[0]);
}
}
private $oCtx;
- protected function setUp()
+ protected function setUp(): void
{
$this->oCtx = new SearchContext();
}
class TokenTest extends \PHPUnit\Framework\TestCase
{
- protected function setUp()
+ protected function setUp(): void
{
$this->oNormalizer = $this->getMockBuilder(\MockNormalizer::class)
->setMethods(array('transliterate'))
python3-psycopg2 python3-tidylib git
# If you want to run the test suite, you need to install the following
-# additional packages:
-
- sudo apt-get install -y phpunit php-cgi
+# additional packages including the PHP package manager composer:
pip3 install --user behave nose
+ sudo apt-get install -y composer php-cgi php-cli php-mbstring php-xml zip unzip
+
composer global require "squizlabs/php_codesniffer=*"
sudo ln -s ~/.config/composer/vendor/bin/phpcs /usr/bin/
+ composer global require "phpunit/phpunit=8.*"
+ sudo ln -s ~/.config/composer/vendor/bin/phpunit /usr/bin/
+
#
# System Configuration
# ====================