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
2828 * @param array $options Additional connection string options
2929 * @param array $driverOptions Driver-specific options
3030 */
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 = [])
3232 {
3333 $ this ->manager = new Manager ($ uri , $ options , $ driverOptions );
3434 $ this ->uri = (string ) $ uri ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function testConstructorDefaultUri()
1515 {
1616 $ client = new Client ();
1717
18- $ this ->assertEquals ('mongodb://127.0.0.1 :27017 ' , (string ) $ client );
18+ $ this ->assertEquals ('mongodb://localhost :27017 ' , (string ) $ client );
1919 }
2020
2121 public function testToString ()
You can’t perform that action at this time.
0 commit comments