mirror of
https://github.com/predis/predis.git
synced 2026-10-06 20:09:25 +00:00
[tests] Exlude persistent connections tests under PHP 5.3.
The get_resource_type() function does not differentiate between normal streams and persistent streams, so we cannot really test this case.
This commit is contained in:
@@ -41,13 +41,10 @@ class CompositeStreamConnectionTest extends PredisConnectionTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @requires PHP 5.4
|
||||
*/
|
||||
public function testPersistentParameterWithFalseLikeValues()
|
||||
{
|
||||
if ($this->isHHVM()) {
|
||||
$this->markTestSkipped('This test does not currently work on HHVM.');
|
||||
}
|
||||
|
||||
$connection1 = $this->createConnectionWithParams(array('persistent' => 0));
|
||||
$this->assertNonPersistentConnection($connection1);
|
||||
|
||||
@@ -63,13 +60,10 @@ class CompositeStreamConnectionTest extends PredisConnectionTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @requires PHP 5.4
|
||||
*/
|
||||
public function testPersistentParameterWithTrueLikeValues()
|
||||
{
|
||||
if ($this->isHHVM()) {
|
||||
$this->markTestSkipped('This test does not currently work on HHVM.');
|
||||
}
|
||||
|
||||
$connection1 = $this->createConnectionWithParams(array('persistent' => 1));
|
||||
$this->assertPersistentConnection($connection1);
|
||||
|
||||
@@ -87,13 +81,10 @@ class CompositeStreamConnectionTest extends PredisConnectionTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @requires PHP 5.4
|
||||
*/
|
||||
public function testPersistentConnectionsToSameNodeShareResource()
|
||||
{
|
||||
if ($this->isHHVM()) {
|
||||
$this->markTestSkipped('This test does not currently work on HHVM.');
|
||||
}
|
||||
|
||||
$connection1 = $this->createConnectionWithParams(array('persistent' => true));
|
||||
$connection2 = $this->createConnectionWithParams(array('persistent' => true));
|
||||
|
||||
@@ -107,13 +98,10 @@ class CompositeStreamConnectionTest extends PredisConnectionTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @requires PHP 5.4
|
||||
*/
|
||||
public function testPersistentConnectionsToSameNodeDoNotShareResourceUsingDifferentPersistentID()
|
||||
{
|
||||
if ($this->isHHVM()) {
|
||||
$this->markTestSkipped('This test does not currently work on HHVM.');
|
||||
}
|
||||
|
||||
$connection1 = $this->createConnectionWithParams(array('persistent' => 'conn1'));
|
||||
$connection2 = $this->createConnectionWithParams(array('persistent' => 'conn2'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user