From 18a38dd6fcca8d614ac183ddf80e197b2f26d44c Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Tue, 14 Nov 2017 17:44:08 +0000 Subject: [PATCH] [TEST] Fix some PHPCS violations in tests --- .../SniffingConnectionPoolIntegrationTest.php | 2 +- .../ConnectionPool/StaticConnectionPoolIntegrationTest.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Elasticsearch/Tests/ConnectionPool/SniffingConnectionPoolIntegrationTest.php b/tests/Elasticsearch/Tests/ConnectionPool/SniffingConnectionPoolIntegrationTest.php index 150883a93..5963bf294 100644 --- a/tests/Elasticsearch/Tests/ConnectionPool/SniffingConnectionPoolIntegrationTest.php +++ b/tests/Elasticsearch/Tests/ConnectionPool/SniffingConnectionPoolIntegrationTest.php @@ -17,7 +17,7 @@ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elasticsearch.org */ -class SniffingConnectionPoolIntegrationTest extends \PHPUnit_Framework_TestCase +class SniffingConnectionPoolIntegrationTest extends \PHPUnit\Framework\TestCase { public function testSniff() { diff --git a/tests/Elasticsearch/Tests/ConnectionPool/StaticConnectionPoolIntegrationTest.php b/tests/Elasticsearch/Tests/ConnectionPool/StaticConnectionPoolIntegrationTest.php index 9436049eb..8251701fb 100644 --- a/tests/Elasticsearch/Tests/ConnectionPool/StaticConnectionPoolIntegrationTest.php +++ b/tests/Elasticsearch/Tests/ConnectionPool/StaticConnectionPoolIntegrationTest.php @@ -2,6 +2,8 @@ declare(strict_types = 1); +namespace Elasticsearch\Tests\ConnectionPool; + /** * Class StaticConnectionPoolIntegrationTest * @@ -12,7 +14,7 @@ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elasticsearch.org */ -class StaticConnectionPoolIntegrationTest extends \PHPUnit_Framework_TestCase +class StaticConnectionPoolIntegrationTest extends \PHPUnit\Framework\TestCase { // Issue #636 public function test404Liveness() @@ -33,4 +35,4 @@ public function test404Liveness() // But the node should be marked as alive since the server responded $this->assertTrue($connection->isAlive()); } -} \ No newline at end of file +}