mirror of
https://github.com/predis/predis.git
synced 2026-08-28 11:09:49 +00:00
[tests] Improve the basic framework of our test suite.
We now have a base test case class for Predis (namely PredisTestCase) grouping various commonly used utility methods shared by all of the tests in the suite, greatly improving reusability.
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
|
||||
namespace Predis\Connection;
|
||||
|
||||
use PHPUnit_Framework_TestCase as StandardTestCase;
|
||||
use PredisTestCase;
|
||||
|
||||
/**
|
||||
* @todo ConnectionParameters::define();
|
||||
* @todo ConnectionParameters::undefine();
|
||||
*/
|
||||
class ParametersTest extends StandardTestCase
|
||||
class ParametersTest extends PredisTestCase
|
||||
{
|
||||
/**
|
||||
* @group disconnected
|
||||
@@ -220,18 +220,6 @@ class ParametersTest extends StandardTestCase
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a named array with the default connection parameters merged with
|
||||
* the specified additional parameters.
|
||||
*
|
||||
* @param array $additional Additional connection parameters.
|
||||
* @return array Connection parameters.
|
||||
*/
|
||||
protected function getParametersArray(array $additional)
|
||||
{
|
||||
return array_merge($this->getDefaultParametersArray(), $additional);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an URI string representation of the specified connection parameters.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user