Commit 20ddb9ca authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #257

parents b4ba7a70 2df19ed7
...@@ -42,7 +42,7 @@ class Client ...@@ -42,7 +42,7 @@ class Client
* @param array $driverOptions Driver-specific options * @param array $driverOptions Driver-specific options
* @throws InvalidArgumentException * @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]; $driverOptions += ['typeMap' => self::$defaultTypeMap];
......
...@@ -16,7 +16,7 @@ class ClientTest extends TestCase ...@@ -16,7 +16,7 @@ class ClientTest extends TestCase
{ {
$client = new Client(); $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