mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-03 06:42:23 +02:00
22 lines
531 B
PHP
22 lines
531 B
PHP
--TEST--
|
|
MongoDB\Driver\Server::__construct()
|
|
--SKIPIF--
|
|
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . "/../utils/basic.inc";
|
|
|
|
$parsed = parse_url(STANDALONE);
|
|
$manager = new MongoDB\Driver\Manager(STANDALONE);
|
|
$server = $manager->executeInsert(NS, array("foo" => "bar"))->getServer();
|
|
|
|
var_dump($server->getHost() == $parsed["host"]);
|
|
var_dump($server->getPort() == $parsed["port"]);
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
bool(true)
|
|
===DONE===
|