From a5a9cf23acd1248585173aa32757d9720b5f2d62 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 29 Sep 2020 14:41:40 +0200 Subject: Compatibility with PHPUnit 9 --- tests/http/HttpUtils/ClientIpIdTest.php | 2 +- tests/http/HttpUtils/GetHttpUrlTest.php | 2 +- tests/http/HttpUtils/GetIpAdressFromProxyTest.php | 2 +- tests/http/HttpUtils/IndexUrlTest.php | 2 +- tests/http/HttpUtils/IndexUrlTestWithConstant.php | 2 +- tests/http/HttpUtils/IsHttpsTest.php | 2 +- tests/http/HttpUtils/PageUrlTest.php | 2 +- tests/http/HttpUtils/ServerUrlTest.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/http/HttpUtils') diff --git a/tests/http/HttpUtils/ClientIpIdTest.php b/tests/http/HttpUtils/ClientIpIdTest.php index 982e57e0..3a0fcf30 100644 --- a/tests/http/HttpUtils/ClientIpIdTest.php +++ b/tests/http/HttpUtils/ClientIpIdTest.php @@ -10,7 +10,7 @@ require_once 'application/http/HttpUtils.php'; /** * Unitary tests for client_ip_id() */ -class ClientIpIdTest extends \PHPUnit\Framework\TestCase +class ClientIpIdTest extends \Shaarli\TestCase { /** * Get a remote client ID based on its IP diff --git a/tests/http/HttpUtils/GetHttpUrlTest.php b/tests/http/HttpUtils/GetHttpUrlTest.php index 3dc5bc9b..a868ac02 100644 --- a/tests/http/HttpUtils/GetHttpUrlTest.php +++ b/tests/http/HttpUtils/GetHttpUrlTest.php @@ -10,7 +10,7 @@ require_once 'application/http/HttpUtils.php'; /** * Unitary tests for get_http_response() */ -class GetHttpUrlTest extends \PHPUnit\Framework\TestCase +class GetHttpUrlTest extends \Shaarli\TestCase { /** * Get an invalid local URL diff --git a/tests/http/HttpUtils/GetIpAdressFromProxyTest.php b/tests/http/HttpUtils/GetIpAdressFromProxyTest.php index fe3a639e..60cdb992 100644 --- a/tests/http/HttpUtils/GetIpAdressFromProxyTest.php +++ b/tests/http/HttpUtils/GetIpAdressFromProxyTest.php @@ -7,7 +7,7 @@ require_once 'application/http/HttpUtils.php'; /** * Unitary tests for getIpAddressFromProxy() */ -class GetIpAdressFromProxyTest extends \PHPUnit\Framework\TestCase +class GetIpAdressFromProxyTest extends \Shaarli\TestCase { /** diff --git a/tests/http/HttpUtils/IndexUrlTest.php b/tests/http/HttpUtils/IndexUrlTest.php index cce45c51..f283d119 100644 --- a/tests/http/HttpUtils/IndexUrlTest.php +++ b/tests/http/HttpUtils/IndexUrlTest.php @@ -5,7 +5,7 @@ namespace Shaarli\Http; -use PHPUnit\Framework\TestCase; +use Shaarli\TestCase; require_once 'application/http/HttpUtils.php'; diff --git a/tests/http/HttpUtils/IndexUrlTestWithConstant.php b/tests/http/HttpUtils/IndexUrlTestWithConstant.php index 15ca3d72..ecaea724 100644 --- a/tests/http/HttpUtils/IndexUrlTestWithConstant.php +++ b/tests/http/HttpUtils/IndexUrlTestWithConstant.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Shaarli\Http; -use PHPUnit\Framework\TestCase; +use Shaarli\TestCase; /** * Test index_url with SHAARLI_ROOT_URL defined to override automatic retrieval. diff --git a/tests/http/HttpUtils/IsHttpsTest.php b/tests/http/HttpUtils/IsHttpsTest.php index 348956c6..8b3fd93d 100644 --- a/tests/http/HttpUtils/IsHttpsTest.php +++ b/tests/http/HttpUtils/IsHttpsTest.php @@ -9,7 +9,7 @@ require_once 'application/http/HttpUtils.php'; * * Test class for is_https() function. */ -class IsHttpsTest extends \PHPUnit\Framework\TestCase +class IsHttpsTest extends \Shaarli\TestCase { /** diff --git a/tests/http/HttpUtils/PageUrlTest.php b/tests/http/HttpUtils/PageUrlTest.php index f1991716..ebb3e617 100644 --- a/tests/http/HttpUtils/PageUrlTest.php +++ b/tests/http/HttpUtils/PageUrlTest.php @@ -10,7 +10,7 @@ require_once 'application/http/HttpUtils.php'; /** * Unitary tests for page_url() */ -class PageUrlTest extends \PHPUnit\Framework\TestCase +class PageUrlTest extends \Shaarli\TestCase { /** * If on the main page, remove "index.php" from the URL resource diff --git a/tests/http/HttpUtils/ServerUrlTest.php b/tests/http/HttpUtils/ServerUrlTest.php index 9caf1049..339664e1 100644 --- a/tests/http/HttpUtils/ServerUrlTest.php +++ b/tests/http/HttpUtils/ServerUrlTest.php @@ -10,7 +10,7 @@ require_once 'application/http/HttpUtils.php'; /** * Unitary tests for server_url() */ -class ServerUrlTest extends \PHPUnit\Framework\TestCase +class ServerUrlTest extends \Shaarli\TestCase { /** * Detect if the server uses SSL -- cgit v1.2.3