Commit 2df19ed7 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-220: Default Client URI to "mongodb://127.0.0.1/"

parent b4ba7a70
......@@ -42,7 +42,7 @@ class Client
* @param array $driverOptions Driver-specific options
* @throws InvalidArgumentException
*/
public function __construct($uri = 'mongodb://localhost:27017', array $uriOptions = [], array $driverOptions = [])
public function __construct($uri = 'mongodb://127.0.0.1/', array $uriOptions = [], array $driverOptions = [])
{
$driverOptions += ['typeMap' => self::$defaultTypeMap];
......
......@@ -16,7 +16,7 @@ class ClientTest extends TestCase
{
$client = new Client();
$this->assertEquals('mongodb://localhost:27017', (string) $client);
$this->assertEquals('mongodb://127.0.0.1/', (string) $client);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment