mirror of
https://github.com/predis/predis.git
synced 2026-10-05 19:38:51 +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:
@@ -484,6 +484,10 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
*/
|
||||
protected function assertPersistentConnection(NodeConnectionInterface $connection)
|
||||
{
|
||||
if (version_compare(PHP_VERSION, '5.4.0') < 0 || $this->isHHVM()) {
|
||||
$this->markTestSkipped('This test does not currently work on HHVM.');
|
||||
}
|
||||
|
||||
$this->assertSame('persistent stream', get_resource_type($connection->getResource()));
|
||||
}
|
||||
|
||||
@@ -497,6 +501,10 @@ abstract class PredisConnectionTestCase extends PredisTestCase
|
||||
*/
|
||||
protected function assertNonPersistentConnection(NodeConnectionInterface $connection)
|
||||
{
|
||||
if (version_compare(PHP_VERSION, '5.4.0') < 0 || $this->isHHVM()) {
|
||||
$this->markTestSkipped('This test does not currently work on HHVM.');
|
||||
}
|
||||
|
||||
$this->assertSame('stream', get_resource_type($connection->getResource()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user