mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-25 17:32:28 +01:00
* Bump libmongoc to 1.19-dev * PHPC-1890: Constant for ReadConcern snapshot level * Move Manager::startSession() error test and delete obsolete test The deleted error test was redundant. It was originally created inca4c52eb1cto work around changes in PHP 8, but60febd0f28subsequently reintroduced a portable version of the test case. Also adds missing SKIPIF to startSession test. * PHPC-1889: Session snapshot option * PHPC-1875: Session with snapshot=true cannot perform writes * PHPC-1876: Session with snapshot=true requires MongoDB 5.0+
22 lines
468 B
PHP
22 lines
468 B
PHP
--TEST--
|
|
MongoDB\Driver\ReadConcern constants
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(MongoDB\Driver\ReadConcern::LINEARIZABLE);
|
|
var_dump(MongoDB\Driver\ReadConcern::LOCAL);
|
|
var_dump(MongoDB\Driver\ReadConcern::MAJORITY);
|
|
var_dump(MongoDB\Driver\ReadConcern::AVAILABLE);
|
|
var_dump(MongoDB\Driver\ReadConcern::SNAPSHOT);
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
string(12) "linearizable"
|
|
string(5) "local"
|
|
string(8) "majority"
|
|
string(9) "available"
|
|
string(8) "snapshot"
|
|
===DONE===
|