@@ -38,12 +38,12 @@ public function testProcess(): void
38
38
[
39
39
'id ' => 'default ' ,
40
40
'uri ' => 'mongodb://localhost:27017 ' ,
41
- 'uriOptions ' => ['readPreference ' => 'primary ' ],
41
+ 'uri_options ' => ['readPreference ' => 'primary ' ],
42
42
],
43
43
[
44
44
'id ' => 'secondary ' ,
45
45
'uri ' => 'mongodb://localhost:27018 ' ,
46
- 'driverOptions ' => ['serverApi ' => new ServerApi ((string ) ServerApi::V1 )],
46
+ 'driver_options ' => ['serverApi ' => new ServerApi ((string ) ServerApi::V1 )],
47
47
],
48
48
],
49
49
],
@@ -58,13 +58,13 @@ public function testProcess(): void
58
58
59
59
$ this ->assertArrayHasKey ('default ' , $ clients );
60
60
$ this ->assertSame ('mongodb://localhost:27017 ' , $ clients ['default ' ]['uri ' ]);
61
- $ this ->assertSame (['readPreference ' => 'primary ' ], $ clients ['default ' ]['uriOptions ' ]);
62
- $ this ->assertSame ([], $ clients ['default ' ]['driverOptions ' ]);
61
+ $ this ->assertSame (['readPreference ' => 'primary ' ], $ clients ['default ' ]['uri_options ' ]);
62
+ $ this ->assertSame ([], $ clients ['default ' ]['driver_options ' ]);
63
63
64
64
$ this ->assertArrayHasKey ('secondary ' , $ clients );
65
65
$ this ->assertSame ('mongodb://localhost:27018 ' , $ clients ['secondary ' ]['uri ' ]);
66
- $ this ->assertSame ([], $ clients ['secondary ' ]['uriOptions ' ]);
67
- $ this ->assertEquals (['serverApi ' => new ServerApi ((string ) ServerApi::V1 )], $ clients ['secondary ' ]['driverOptions ' ]);
66
+ $ this ->assertSame ([], $ clients ['secondary ' ]['uri_options ' ]);
67
+ $ this ->assertEquals (['serverApi ' => new ServerApi ((string ) ServerApi::V1 )], $ clients ['secondary ' ]['driver_options ' ]);
68
68
}
69
69
70
70
public function testProcessWithYamlFile (): void
@@ -74,11 +74,11 @@ public function testProcessWithYamlFile(): void
74
74
clients:
75
75
default:
76
76
uri: mongodb://localhost:27017
77
- uriOptions :
77
+ uri_options :
78
78
readPreference: primary
79
79
secondary:
80
80
uri: mongodb://localhost:27018
81
- driverOptions :
81
+ driver_options :
82
82
serverApi: v1
83
83
YAML);
84
84
@@ -91,13 +91,13 @@ public function testProcessWithYamlFile(): void
91
91
92
92
$ this ->assertArrayHasKey ('default ' , $ clients );
93
93
$ this ->assertSame ('mongodb://localhost:27017 ' , $ clients ['default ' ]['uri ' ]);
94
- $ this ->assertSame (['readPreference ' => 'primary ' ], $ clients ['default ' ]['uriOptions ' ]);
95
- $ this ->assertSame ([], $ clients ['default ' ]['driverOptions ' ]);
94
+ $ this ->assertSame (['readPreference ' => 'primary ' ], $ clients ['default ' ]['uri_options ' ]);
95
+ $ this ->assertSame ([], $ clients ['default ' ]['driver_options ' ]);
96
96
97
97
$ this ->assertArrayHasKey ('secondary ' , $ clients );
98
98
$ this ->assertSame ('mongodb://localhost:27018 ' , $ clients ['secondary ' ]['uri ' ]);
99
- $ this ->assertSame ([], $ clients ['secondary ' ]['uriOptions ' ]);
100
- $ this ->assertSame (['serverApi ' => 'v1 ' ], $ clients ['secondary ' ]['driverOptions ' ]);
99
+ $ this ->assertSame ([], $ clients ['secondary ' ]['uri_options ' ]);
100
+ $ this ->assertSame (['serverApi ' => 'v1 ' ], $ clients ['secondary ' ]['driver_options ' ]);
101
101
}
102
102
103
103
public function testProcessWithYamlFileWithoutUriKey (): void
0 commit comments