From 93cc4d9e8c65ce95c8a2ca4f3b6ff272b234adb3 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 27 Dec 2018 13:14:10 +0000 Subject: [PATCH] update phpunit tests to use different parent class --- tests/GeneratePasswordTest.php | 2 +- tests/PacryptTest.php | 2 +- tests/RemoteTest.php | 2 +- tests/ValidatePasswordTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/GeneratePasswordTest.php b/tests/GeneratePasswordTest.php index 42462dfb..7360a75a 100644 --- a/tests/GeneratePasswordTest.php +++ b/tests/GeneratePasswordTest.php @@ -2,7 +2,7 @@ require_once('common.php'); -class GeneratePasswordTest extends PHPUnit_Framework_TestCase { +class GeneratePasswordTest extends \PHPUnit\Framework\TestCase { public function testBasic() { $one = generate_password(); diff --git a/tests/PacryptTest.php b/tests/PacryptTest.php index c4008d9d..fc2bba91 100644 --- a/tests/PacryptTest.php +++ b/tests/PacryptTest.php @@ -2,7 +2,7 @@ require_once('common.php'); -class PaCryptTest extends PHPUnit_Framework_TestCase { +class PaCryptTest extends \PHPUnit\Framework\TestCase { public function testMd5Crypt() { $hash = _pacrypt_md5crypt('test', ''); diff --git a/tests/RemoteTest.php b/tests/RemoteTest.php index 6d9a9671..814c7846 100644 --- a/tests/RemoteTest.php +++ b/tests/RemoteTest.php @@ -2,7 +2,7 @@ require_once('common.php'); -abstract class RemoteTest extends PHPUnit_Framework_TestCase { +abstract class RemoteTest extends \PHPUnit\Framework\TestCase { protected $server_url = 'http://change.me/to/work'; // http://orange/david/postfixadmin/xmlrpc.php'; protected $username = 'user@example.com'; protected $password = 'password1'; diff --git a/tests/ValidatePasswordTest.php b/tests/ValidatePasswordTest.php index a4360d77..4ae21edb 100644 --- a/tests/ValidatePasswordTest.php +++ b/tests/ValidatePasswordTest.php @@ -2,7 +2,7 @@ require_once('common.php'); -class ValidatePasswordTest extends PHPUnit_Framework_TestCase { +class ValidatePasswordTest extends \PHPUnit\Framework\TestCase { public function testBasic() { $config = Config::getInstance();