Browse Source

Marning ReconnectStrategy as internal

Jose Lorenzo Rodriguez 8 years ago
parent
commit
ff47db18ac

+ 2 - 0
src/Database/Retry/ReconnectStrategy.php

@@ -21,6 +21,8 @@ use Exception;
 /**
  * Makes sure the connection to the database is alive before authorizing
  * the retry of an action.
+ *
+ * @internal
  */
 class ReconnectStrategy implements RetryStrategyInterface
 {

+ 2 - 1
tests/TestCase/Database/ConnectionTest.php

@@ -22,6 +22,7 @@ use Cake\Database\Log\LoggingStatement;
 use Cake\Database\Log\QueryLogger;
 use Cake\Database\Retry\CommandRetry;
 use Cake\Database\Retry\ReconnectStrategy;
+use Cake\Database\StatementInterface;
 use Cake\Datasource\ConnectionManager;
 use Cake\Log\Log;
 use Cake\TestSuite\TestCase;
@@ -1250,7 +1251,7 @@ class ConnectionTest extends TestCase
             ->will($this->returnValue($statement));
 
         $res = $conn->query('SELECT 1');
-        $this->assertInstanceOf('Cake\Database\StatementInterface', $res);
+        $this->assertInstanceOf(StatementInterface::class, $res);
     }
 
     /**