Files
mongo-php-driver/tests/functional/phpinfo-2.phpt
Jeremy Mikola 6ed6a34f5b Only assert mongodb.debug INI in phpinfo() tests
The current phpinfo() tests were fragile and not compatible when build against libbson/libmongoc system libraries, which might also have different SSL options.
2017-02-07 16:37:12 -05:00

21 lines
356 B
PHP

--TEST--
phpinfo() reports mongodb.debug (default and overridden)
--INI--
mongodb.debug=stderr
--SKIPIF--
<?php if (defined("HHVM_VERSION_ID")) exit("skip HHVM does not do phpinfo() this way"); ?>
--FILE--
<?php
ini_set("mongodb.debug", "stdout");
phpinfo();
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
%a
mongodb.debug => stdout => stderr
%a
===DONE===