/** * @test */ public function checkIfReconnectIsPossibleIfTheLimitIsSetToFiveAndThreeRetries() { $con = new MySQLConnection($this->generateMysqlSettings(), MySQLConnection::CONNECTION_MOCK); $con->setMaxReconnects(5); $con->increaseReconnectCount(); $con->increaseReconnectCount(); $con->increaseReconnectCount(); $this->assertTrue($con->reconnect()); }