Files
mongo-php-driver/tests/writeConcern/writeconcern-002.phpt
Jeremy Mikola 773bc909cb PHP-1173: Use string "majority" for WriteConcern::MAJORITY
The purpose is two-fold: abstract libmongo'c constant (defined as -3) from our users and ensure the string "majority" is sets the struct's "w" field properly even if our constant is not used.
2014-10-03 16:02:53 -04:00

17 lines
272 B
PHP

--TEST--
MongoDB\WriteConcern::MAJORITY
--SKIPIF--
<?php require "tests/utils/basic-skipif.inc"?>
--FILE--
<?php
require_once "tests/utils/basic.inc";
var_dump(MongoDB\WriteConcern::MAJORITY);
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
string(8) "majority"
===DONE===