From 766b440334e66b29414ab1766cb6e4a068f3c5f4 Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Tue, 14 Nov 2017 17:50:15 +0000 Subject: [PATCH] [TEST] use proper TestCase parent clsas --- tests/Elasticsearch/Tests/ClientTest.php | 2 +- .../Tests/ConnectionPool/Selectors/RoundRobinSelectorTest.php | 2 +- .../ConnectionPool/Selectors/StickyRoundRobinSelectorTest.php | 2 +- tests/Elasticsearch/Tests/Endpoints/AbstractEndpointTest.php | 2 +- .../Tests/Helper/Iterators/SearchResponseIteratorTest.php | 2 +- tests/Elasticsearch/Tests/RegisteredNamespaceTest.php | 2 +- .../Tests/Serializers/ArrayToJSONSerializerTest.php | 2 +- .../Tests/Serializers/EverythingToJSONSerializerTest.php | 2 +- tests/Elasticsearch/Tests/YamlRunnerTest.php | 3 ++- 9 files changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/Elasticsearch/Tests/ClientTest.php b/tests/Elasticsearch/Tests/ClientTest.php index f9426004f..50ea22497 100644 --- a/tests/Elasticsearch/Tests/ClientTest.php +++ b/tests/Elasticsearch/Tests/ClientTest.php @@ -19,7 +19,7 @@ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elasticsearch.org */ -class ClientTest extends \PHPUnit_Framework_TestCase +class ClientTest extends \PHPUnit\Framework\TestCase { public function tearDown() { diff --git a/tests/Elasticsearch/Tests/ConnectionPool/Selectors/RoundRobinSelectorTest.php b/tests/Elasticsearch/Tests/ConnectionPool/Selectors/RoundRobinSelectorTest.php index c9baac508..c7eda50de 100644 --- a/tests/Elasticsearch/Tests/ConnectionPool/Selectors/RoundRobinSelectorTest.php +++ b/tests/Elasticsearch/Tests/ConnectionPool/Selectors/RoundRobinSelectorTest.php @@ -17,7 +17,7 @@ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elasticsearch.org */ -class RoundRobinSelectorTest extends \PHPUnit_Framework_TestCase +class RoundRobinSelectorTest extends \PHPUnit\Framework\TestCase { /** * Add Ten connections, select 15 to verify round robin diff --git a/tests/Elasticsearch/Tests/ConnectionPool/Selectors/StickyRoundRobinSelectorTest.php b/tests/Elasticsearch/Tests/ConnectionPool/Selectors/StickyRoundRobinSelectorTest.php index 3070c4711..d996c0403 100644 --- a/tests/Elasticsearch/Tests/ConnectionPool/Selectors/StickyRoundRobinSelectorTest.php +++ b/tests/Elasticsearch/Tests/ConnectionPool/Selectors/StickyRoundRobinSelectorTest.php @@ -18,7 +18,7 @@ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elasticsearch.org */ -class StickyRoundRobinSelectorTest extends \PHPUnit_Framework_TestCase +class StickyRoundRobinSelectorTest extends \PHPUnit\Framework\TestCase { public function tearDown() { diff --git a/tests/Elasticsearch/Tests/Endpoints/AbstractEndpointTest.php b/tests/Elasticsearch/Tests/Endpoints/AbstractEndpointTest.php index a8a299157..81fddf50d 100644 --- a/tests/Elasticsearch/Tests/Endpoints/AbstractEndpointTest.php +++ b/tests/Elasticsearch/Tests/Endpoints/AbstractEndpointTest.php @@ -6,7 +6,7 @@ use Elasticsearch\Endpoints\AbstractEndpoint; -class AbstractEndpointTest extends \PHPUnit_Framework_TestCase +class AbstractEndpointTest extends \PHPUnit\Framework\TestCase { private $endpoint; diff --git a/tests/Elasticsearch/Tests/Helper/Iterators/SearchResponseIteratorTest.php b/tests/Elasticsearch/Tests/Helper/Iterators/SearchResponseIteratorTest.php index 779d6014e..ae5a1b9e5 100644 --- a/tests/Elasticsearch/Tests/Helper/Iterators/SearchResponseIteratorTest.php +++ b/tests/Elasticsearch/Tests/Helper/Iterators/SearchResponseIteratorTest.php @@ -15,7 +15,7 @@ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://Elasticsearch.org */ -class SearchResponseIteratorTest extends \PHPUnit_Framework_TestCase +class SearchResponseIteratorTest extends \PHPUnit\Framework\TestCase { public function tearDown() diff --git a/tests/Elasticsearch/Tests/RegisteredNamespaceTest.php b/tests/Elasticsearch/Tests/RegisteredNamespaceTest.php index 12c8ac054..910580031 100644 --- a/tests/Elasticsearch/Tests/RegisteredNamespaceTest.php +++ b/tests/Elasticsearch/Tests/RegisteredNamespaceTest.php @@ -20,7 +20,7 @@ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elasticsearch.org */ -class RegisteredNamespaceTest extends \PHPUnit_Framework_TestCase +class RegisteredNamespaceTest extends \PHPUnit\Framework\TestCase { public function tearDown() { diff --git a/tests/Elasticsearch/Tests/Serializers/ArrayToJSONSerializerTest.php b/tests/Elasticsearch/Tests/Serializers/ArrayToJSONSerializerTest.php index d66860574..280b3ef74 100644 --- a/tests/Elasticsearch/Tests/Serializers/ArrayToJSONSerializerTest.php +++ b/tests/Elasticsearch/Tests/Serializers/ArrayToJSONSerializerTest.php @@ -12,7 +12,7 @@ * Class ArrayToJSONSerializerTest * @package Elasticsearch\Tests\Serializers */ -class ArrayToJSONSerializerTest extends PHPUnit_Framework_TestCase +class ArrayToJSONSerializerTest extends \PHPUnit\Framework\TestCase { public function tearDown() { diff --git a/tests/Elasticsearch/Tests/Serializers/EverythingToJSONSerializerTest.php b/tests/Elasticsearch/Tests/Serializers/EverythingToJSONSerializerTest.php index 1fcd9f598..606e795c8 100644 --- a/tests/Elasticsearch/Tests/Serializers/EverythingToJSONSerializerTest.php +++ b/tests/Elasticsearch/Tests/Serializers/EverythingToJSONSerializerTest.php @@ -12,7 +12,7 @@ * Class EverythingToJSONSerializerTest * @package Elasticsearch\Tests\Serializers */ -class EverythingToJSONSerializerTest extends PHPUnit_Framework_TestCase +class EverythingToJSONSerializerTest extends \PHPUnit\Framework\TestCase { public function tearDown() { diff --git a/tests/Elasticsearch/Tests/YamlRunnerTest.php b/tests/Elasticsearch/Tests/YamlRunnerTest.php index be8bf2fb4..3c6b2336b 100644 --- a/tests/Elasticsearch/Tests/YamlRunnerTest.php +++ b/tests/Elasticsearch/Tests/YamlRunnerTest.php @@ -13,6 +13,7 @@ use Elasticsearch\Common\Exceptions\RequestTimeout408Exception; use Elasticsearch\Common\Exceptions\ServerErrorResponseException; use Elasticsearch\Common\Exceptions\RoutingMissingException; +use Elasticsearch\Common\Exceptions\Unauthorized401Exception; use GuzzleHttp\Ring\Future\FutureArrayInterface; use RecursiveDirectoryIterator; use RecursiveIteratorIterator; @@ -31,7 +32,7 @@ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elasticsearch.org */ -class YamlRunnerTest extends \PHPUnit_Framework_TestCase +class YamlRunnerTest extends \PHPUnit\Framework\TestCase { /** @var \Symfony\Component\Yaml\Yaml Yaml parser for reading integrations tests */ private $yaml;