mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-25 09:28:18 +02:00
b31ad7c271
The error test should be skipped for HHVM, since it currently has inconsistent error handling.
22 lines
600 B
PHP
22 lines
600 B
PHP
--TEST--
|
|
MongoDB\Driver\WriteConcern construction (invalid arguments)
|
|
--SKIPIF--
|
|
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
|
|
<?php if (defined("HHVM_VERSION_ID")) exit("skip HHVM throws Exception instead of InvalidArgumentException"); ?>
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . "/../utils/basic.inc";
|
|
|
|
try {
|
|
new MongoDB\Driver\WriteConcern("string", 10000, false, true, 1);
|
|
} catch(InvalidArgumentException $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
MongoDB\Driver\WriteConcern::__construct() expects at most 4 parameters, 5 given
|
|
===DONE===
|