Skip to content

Commit f581777

Browse files
committed
PHPC-976: RC and WC isDefault() tests don't need a server
1 parent cf62ee0 commit f581777

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

tests/readConcern/readconcern-isdefault-001.phpt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
--TEST--
22
MongoDB\Driver\ReadConcern::isDefault()
3-
--SKIPIF--
4-
<?php require __DIR__ . "/../utils/basic-skipif.inc"?>
53
--FILE--
64
<?php
7-
require_once __DIR__ . "/../utils/basic.inc";
85

9-
$tests = array(
6+
$tests = [
107
new MongoDB\Driver\ReadConcern(),
118
new MongoDB\Driver\ReadConcern(null),
129
new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::LOCAL),
@@ -16,7 +13,7 @@ $tests = array(
1613
(new MongoDB\Driver\Manager(null, ['readconcernlevel' => 'local']))->getReadConcern(),
1714
(new MongoDB\Driver\Manager(null, ['readconcernlevel' => '']))->getReadConcern(),
1815
(new MongoDB\Driver\Manager)->getReadConcern(),
19-
);
16+
];
2017

2118
foreach ($tests as $rc) {
2219
var_dump($rc->isDefault());

tests/writeConcern/writeconcern-isdefault-001.phpt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
--TEST--
22
MongoDB\Driver\WriteConcern::isDefault()
3-
--SKIPIF--
4-
<?php require __DIR__ . "/../utils/basic-skipif.inc"?>
53
--FILE--
64
<?php
7-
require_once __DIR__ . "/../utils/basic.inc";
85

9-
$tests = array(
6+
$tests = [
107
new MongoDB\Driver\WriteConcern(1),
118
(new MongoDB\Driver\Manager('mongodb://127.0.0.1/?w=1'))->getWriteConcern(),
129
(new MongoDB\Driver\Manager(null, ['w' => 1]))->getWriteConcern(),
1310
(new MongoDB\Driver\Manager)->getWriteConcern(),
14-
);
11+
];
1512

1613
foreach ($tests as $wc) {
1714
var_dump($wc->isDefault());

0 commit comments

Comments
 (0)