File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class Client
28
28
* @param array $options Additional connection string options
29
29
* @param array $driverOptions Driver-specific options
30
30
*/
31
- public function __construct ($ uri = 'mongodb://127.0.0.1 :27017 ' , array $ options = [], array $ driverOptions = [])
31
+ public function __construct ($ uri = 'mongodb://localhost :27017 ' , array $ options = [], array $ driverOptions = [])
32
32
{
33
33
$ this ->manager = new Manager ($ uri , $ options , $ driverOptions );
34
34
$ this ->uri = (string ) $ uri ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function testConstructorDefaultUri()
15
15
{
16
16
$ client = new Client ();
17
17
18
- $ this ->assertEquals ('mongodb://127.0.0.1 :27017 ' , (string ) $ client );
18
+ $ this ->assertEquals ('mongodb://localhost :27017 ' , (string ) $ client );
19
19
}
20
20
21
21
public function testToString ()
You can’t perform that action at this time.
0 commit comments