[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:
Daniele Alessandri
2015-07-25 21:49:18 +02:00
parent c7cae66a97
commit abf2ce0bd1
4 changed files with 20 additions and 48 deletions
@@ -24,13 +24,10 @@ class StreamConnectionTest 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);
@@ -46,13 +43,10 @@ class StreamConnectionTest 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);
@@ -70,13 +64,10 @@ class StreamConnectionTest 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));
@@ -90,13 +81,10 @@ class StreamConnectionTest 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'));