Skip to content

Commit 1e06f34

Browse files
committed
Replace check for 'TRAVIS' with MongoDB server version check
1 parent a0c1b53 commit 1e06f34

13 files changed

+34
-27
lines changed

tests/causal-consistency/causal-consistency-011.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
Causal consistency: $clusterTime is not sent in commands to unsupported deployments
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently fails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); ?>
5+
<?php NEEDS('STANDALONE'); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

tests/manager/manager-executeCommand-004.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
MongoDB\Driver\Manager::executeCommand() options (MONGOC_CMD_RAW)
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently tails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
5+
<?php NEEDS('STANDALONE'); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); CLEANUP(STANDALONE); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

tests/manager/manager-executeReadCommand-001.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
MongoDB\Driver\Manager::executeReadCommand()
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently tails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
5+
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

tests/manager/manager-executeWriteCommand-001.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
MongoDB\Driver\Manager::executeWriteCommand()
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently tails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
5+
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

tests/server/server-executeCommand-006.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
MongoDB\Driver\Server::executeCommand() options (MONGO_CMD_RAW)
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently tails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
5+
<?php NEEDS('STANDALONE'); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); CLEANUP(STANDALONE); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

tests/server/server-executeReadCommand-001.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
MongoDB\Driver\Server::executeReadCommand()
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently tails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
5+
<?php NEEDS('STANDALONE'); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); CLEANUP(STANDALONE); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

tests/server/server-executeWriteCommand-001.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
MongoDB\Driver\Server::executeWriteCommand()
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently tails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
5+
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

tests/session/session-001.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
MongoDB\Driver\Session spec test: Pool is LIFO
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently fails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); ?>
5+
<?php NEEDS('STANDALONE'); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

tests/session/session-003.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
MongoDB\Driver\Session spec test: session cannot be used for different clients
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently fails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
5+
<?php NEEDS('STANDALONE'); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); CLEANUP(STANDALONE); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

tests/session/session-debug-001.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
--TEST--
22
MongoDB\Driver\Session debug output (before an operation)
33
--SKIPIF--
4-
<?php if (getenv("TRAVIS")) exit("skip This currently fails on Travis because it doesn't run 3.6 yet"); ?>
54
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
6-
<?php NEEDS('STANDALONE'); ?>
5+
<?php NEEDS('STANDALONE'); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); ?>
76
--FILE--
87
<?php
98
require_once __DIR__ . "/../utils/basic.inc";

0 commit comments

Comments
 (0)