diff --git a/tests/unit-large/BackendTest.php b/tests/unit-large/BackendTest.php index 436c7994..9aafecbb 100644 --- a/tests/unit-large/BackendTest.php +++ b/tests/unit-large/BackendTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @license WTFPL * @author Markus Malkusch */ -class BackendTest extends \PHPUnit_Framework_TestCase +class BackendTest extends TestCase { /** diff --git a/tests/unit-large/CrossProjectTest.php b/tests/unit-large/CrossProjectTest.php index e2d9d021..23cd1849 100644 --- a/tests/unit-large/CrossProjectTest.php +++ b/tests/unit-large/CrossProjectTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -18,7 +20,7 @@ * @license WTFPL * @large */ -class CrossProjectTest extends \PHPUnit_Framework_TestCase +class CrossProjectTest extends TestCase { /** @@ -67,7 +69,7 @@ class CrossProjectTest extends \PHPUnit_Framework_TestCase */ private static $testAPIs = array(); - public static function setUpBeforeClass() + public static function setUpBeforeClass(): void { self::$testAPIs = array(new BAVTestAPI()); diff --git a/tests/unit/00UpdatePlanTest.php b/tests/unit/00UpdatePlanTest.php index 49ae3560..dc6bc26c 100644 --- a/tests/unit/00UpdatePlanTest.php +++ b/tests/unit/00UpdatePlanTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -14,7 +16,7 @@ * @license WTFPL * @author Markus Malkusch */ -class UpdatePlanTest extends \PHPUnit_Framework_TestCase +class UpdatePlanTest extends TestCase { /** @@ -65,7 +67,7 @@ public function testIsOutdated($mtime, $time, $expectedIsOutdated) } /** - * @expectedException \PHPUnit_Framework_Error_Warning + * @expectedException \PHPUnit\Framework\Error\Warning */ public function testLogUpdatePlan() { @@ -74,7 +76,7 @@ public function testLogUpdatePlan() } /** - * @expectedException \PHPUnit_Framework_Error_Notice + * @expectedException \PHPUnit\Framework\Error\Notice * @medium */ public function testAutomaticUpdatePlanNotice() @@ -86,7 +88,7 @@ public function testAutomaticUpdatePlanNotice() } /** - * @expectedException \PHPUnit_Framework_Error_Notice + * @expectedException \PHPUnit\Framework\Error\Notice * @medium */ public function testAutomaticUpdatePlan() diff --git a/tests/unit/AgencyQueryTest.php b/tests/unit/AgencyQueryTest.php index b8632729..17abc7bd 100644 --- a/tests/unit/AgencyQueryTest.php +++ b/tests/unit/AgencyQueryTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -10,7 +12,7 @@ * @author Markus Malkusch * @licends GPL */ -class AgencyQueryTest extends \PHPUnit_Framework_TestCase +class AgencyQueryTest extends TestCase { /** diff --git a/tests/unit/BAVFacadeTest.php b/tests/unit/BAVFacadeTest.php index 7fc6287f..4625144c 100644 --- a/tests/unit/BAVFacadeTest.php +++ b/tests/unit/BAVFacadeTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @author Markus Malkusch * @see BAV */ -class BAVFacadeTest extends \PHPUnit_Framework_TestCase +class BAVFacadeTest extends TestCase { /** diff --git a/tests/unit/BICUtilTest.php b/tests/unit/BICUtilTest.php index 0d08775e..5ff42ddf 100644 --- a/tests/unit/BICUtilTest.php +++ b/tests/unit/BICUtilTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @see BICUtil * @author Markus Malkusch */ -class BICUtilTest extends \PHPUnit_Framework_TestCase +class BICUtilTest extends TestCase { /** diff --git a/tests/unit/BackendContainerTest.php b/tests/unit/BackendContainerTest.php index 012682e1..993077a9 100644 --- a/tests/unit/BackendContainerTest.php +++ b/tests/unit/BackendContainerTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -10,7 +12,7 @@ * @license WTFPL * @author Markus Malkusch */ -class BackendContainerTest extends \PHPUnit_Framework_TestCase +class BackendContainerTest extends TestCase { /** diff --git a/tests/unit/ConfigurationLocatorTest.php b/tests/unit/ConfigurationLocatorTest.php index 349ec9f7..db4564a1 100644 --- a/tests/unit/ConfigurationLocatorTest.php +++ b/tests/unit/ConfigurationLocatorTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @licends GPL * @see ConfigurationLocator */ -class ConfigurationLocatorTest extends \PHPUnit_Framework_TestCase +class ConfigurationLocatorTest extends TestCase { /** diff --git a/tests/unit/ConfigurationRegistryTest.php b/tests/unit/ConfigurationRegistryTest.php index 67ad5d75..74e8ced1 100644 --- a/tests/unit/ConfigurationRegistryTest.php +++ b/tests/unit/ConfigurationRegistryTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,13 +13,13 @@ * @licends GPL * @see ConfigurationRegistry */ -class ConfigurationRegistryTest extends \PHPUnit_Framework_TestCase +class ConfigurationRegistryTest extends TestCase { /** * Disable update hook */ - protected function tearDown() + protected function tearDown(): void { ConfigurationRegistry::getConfiguration()->setUpdatePlan(null); } diff --git a/tests/unit/ContextValidationTest.php b/tests/unit/ContextValidationTest.php index 3f743c0f..54f9a1b9 100644 --- a/tests/unit/ContextValidationTest.php +++ b/tests/unit/ContextValidationTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @see ContextValidation * @author Markus Malkusch */ -class ContextValidationTest extends \PHPUnit_Framework_TestCase +class ContextValidationTest extends TestCase { /** @@ -19,7 +21,7 @@ class ContextValidationTest extends \PHPUnit_Framework_TestCase */ private $validation; - protected function setUp() + protected function setUp(): void { $bav = new BAV(); $this->validation = new ContextValidation($bav->getDataBackend()); diff --git a/tests/unit/DataConstraintTest.php b/tests/unit/DataConstraintTest.php index 4dba2d12..b70bfe57 100644 --- a/tests/unit/DataConstraintTest.php +++ b/tests/unit/DataConstraintTest.php @@ -2,12 +2,14 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** * Test if the banklist.txt fits into the model. */ -class DataConstraintTest extends \PHPUnit_Framework_TestCase +class DataConstraintTest extends TestCase { /** @@ -15,7 +17,7 @@ class DataConstraintTest extends \PHPUnit_Framework_TestCase */ private static $pdo; - public static function setUpBeforeClass() + public static function setUpBeforeClass(): void { self::$pdo = PDOFactory::makePDO(); diff --git a/tests/unit/DownloaderTest.php b/tests/unit/DownloaderTest.php index c1a18d93..5e637cd9 100644 --- a/tests/unit/DownloaderTest.php +++ b/tests/unit/DownloaderTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -10,7 +12,7 @@ * @license WTFPL * @author Markus Malkusch */ -class DownloaderTest extends \PHPUnit_Framework_TestCase +class DownloaderTest extends TestCase { /** diff --git a/tests/unit/FileParserTest.php b/tests/unit/FileParserTest.php index 2af92da9..e6432f78 100644 --- a/tests/unit/FileParserTest.php +++ b/tests/unit/FileParserTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -12,7 +14,7 @@ * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @see FileParser */ -class FileParserTest extends \PHPUnit_Framework_TestCase +class FileParserTest extends TestCase { /** diff --git a/tests/unit/FileUtilTest.php b/tests/unit/FileUtilTest.php index c8255f0d..1b1a5bdd 100644 --- a/tests/unit/FileUtilTest.php +++ b/tests/unit/FileUtilTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @author Markus Malkusch * @license WTFPL */ -class FileUtilTest extends \PHPUnit_Framework_TestCase +class FileUtilTest extends TestCase { /** diff --git a/tests/unit/FileValidatorTest.php b/tests/unit/FileValidatorTest.php index 5c7ce730..ef8885c1 100644 --- a/tests/unit/FileValidatorTest.php +++ b/tests/unit/FileValidatorTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @author Markus Malkusch * @see BAV */ -class FileValidatorTest extends \PHPUnit_Framework_TestCase +class FileValidatorTest extends TestCase { public function testValidate() diff --git a/tests/unit/LockTest.php b/tests/unit/LockTest.php index 3e2ec2b1..4cbfe718 100644 --- a/tests/unit/LockTest.php +++ b/tests/unit/LockTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @author Markus Malkusch * @see Lock */ -class LockTest extends \PHPUnit_Framework_TestCase +class LockTest extends TestCase { /** diff --git a/tests/unit/StatementContainerTest.php b/tests/unit/StatementContainerTest.php index 57a3aa96..ea124052 100644 --- a/tests/unit/StatementContainerTest.php +++ b/tests/unit/StatementContainerTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @author Markus Malkusch * @see StatementContainer */ -class StatementContainerTest extends \PHPUnit_Framework_TestCase +class StatementContainerTest extends TestCase { /** @@ -19,7 +21,7 @@ class StatementContainerTest extends \PHPUnit_Framework_TestCase */ private $statementContainer; - public function setUp() + public function setUp(): void { $this->statementContainer = new StatementContainer(PDOFactory::makePDO()); } diff --git a/tests/unit/URIPickerTest.php b/tests/unit/URIPickerTest.php index 47a69caf..b9888c2f 100644 --- a/tests/unit/URIPickerTest.php +++ b/tests/unit/URIPickerTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -10,7 +12,7 @@ * @license WTFPL * @author Markus Malkusch */ -class URIPickerTest extends \PHPUnit_Framework_TestCase +class URIPickerTest extends TestCase { /** diff --git a/tests/unit/Validator66_PR18_Test.php b/tests/unit/Validator66_PR18_Test.php index e864f688..af5c820d 100644 --- a/tests/unit/Validator66_PR18_Test.php +++ b/tests/unit/Validator66_PR18_Test.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @license WTFPL * @link https://github.com/bav-php/bav/pull/18 */ -class Validator66_PR18_Test extends \PHPUnit_Framework_TestCase +class Validator66_PR18_Test extends TestCase { /** diff --git a/tests/unit/Validator74_PR18_Test.php b/tests/unit/Validator74_PR18_Test.php index a59d7720..a0a1b24f 100644 --- a/tests/unit/Validator74_PR18_Test.php +++ b/tests/unit/Validator74_PR18_Test.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @license WTFPL * @link https://github.com/bav-php/bav/pull/18 */ -class Validator74_PR18_Test extends \PHPUnit_Framework_TestCase +class Validator74_PR18_Test extends TestCase { /** diff --git a/tests/unit/ValidatorE3Test.php b/tests/unit/ValidatorE3Test.php index 5e694fdb..97bb6f53 100644 --- a/tests/unit/ValidatorE3Test.php +++ b/tests/unit/ValidatorE3Test.php @@ -2,13 +2,15 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . '/../bootstrap.php'; /** * Test for E3. * */ -class ValidatorE3Test extends \PHPUnit_Framework_TestCase +class ValidatorE3Test extends TestCase { /** diff --git a/tests/unit/ValidatorE4Test.php b/tests/unit/ValidatorE4Test.php index 751aeb17..e8a1908a 100644 --- a/tests/unit/ValidatorE4Test.php +++ b/tests/unit/ValidatorE4Test.php @@ -2,13 +2,15 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . '/../bootstrap.php'; /** * Test for E4. * */ -class ValidatorE4Test extends \PHPUnit_Framework_TestCase +class ValidatorE4Test extends TestCase { /** diff --git a/tests/unit/ValidatorFactoryTest.php b/tests/unit/ValidatorFactoryTest.php index 0d6c63be..a3046e64 100644 --- a/tests/unit/ValidatorFactoryTest.php +++ b/tests/unit/ValidatorFactoryTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -11,7 +13,7 @@ * @license WTFPL * @see ValidatorFactory */ -class ValidatorFactoryTest extends \PHPUnit_Framework_TestCase +class ValidatorFactoryTest extends TestCase { /** @@ -19,7 +21,7 @@ class ValidatorFactoryTest extends \PHPUnit_Framework_TestCase */ private $factory; - protected function setUp() + protected function setUp(): void { $this->factory = new ValidatorFactory(); } diff --git a/tests/unit/ValidatorTest.php b/tests/unit/ValidatorTest.php index e01a447d..d709b142 100644 --- a/tests/unit/ValidatorTest.php +++ b/tests/unit/ValidatorTest.php @@ -2,6 +2,8 @@ namespace malkusch\bav; +use PHPUnit\Framework\TestCase; + require_once __DIR__ . "/../bootstrap.php"; /** @@ -10,7 +12,7 @@ * @author Markus Malkusch * @license WTFPL */ -class ValidatorTest extends \PHPUnit_Framework_TestCase +class ValidatorTest extends TestCase { /** @@ -32,7 +34,7 @@ class ValidatorTest extends \PHPUnit_Framework_TestCase * @throws FileParserIOException * @throws FileParserNotExistsException */ - protected function setUp() + protected function setUp(): void { if (! empty(self::$dataBackend)) { return; @@ -149,7 +151,7 @@ function (&$item) { * * @see Validator::isValid() * @dataProvider provideBanks - * @expectedException PHPUnit_Framework_Error_Warning + * @expectedException \PHPUnit\Framework\Error\Warning */ public function testWarningForIsValidWithInt(Bank $bank) {