@@ -28,8 +28,8 @@ function() {
2828
2929 $ operation ->execute ($ this ->getPrimaryServer ());
3030 },
31- function (stdClass $ command ) {
32- $ this ->assertSame (1 , $ command ->aggregate );
31+ function (array $ event ) {
32+ $ this ->assertSame (1 , $ event [ ' started ' ]-> getCommand () ->aggregate );
3333 }
3434 );
3535 }
@@ -47,8 +47,8 @@ function() {
4747
4848 $ operation ->execute ($ this ->getPrimaryServer ());
4949 },
50- function (stdClass $ command ) {
51- $ this ->assertObjectNotHasAttribute ('readConcern ' , $ command );
50+ function (array $ event ) {
51+ $ this ->assertObjectNotHasAttribute ('readConcern ' , $ event [ ' started ' ]-> getCommand () );
5252 }
5353 );
5454 }
@@ -66,8 +66,8 @@ function() {
6666
6767 $ operation ->execute ($ this ->getPrimaryServer ());
6868 },
69- function (stdClass $ command ) {
70- $ this ->assertObjectNotHasAttribute ('writeConcern ' , $ command );
69+ function (array $ event ) {
70+ $ this ->assertObjectNotHasAttribute ('writeConcern ' , $ event [ ' started ' ]-> getCommand () );
7171 }
7272 );
7373 }
@@ -112,8 +112,8 @@ function() {
112112
113113 $ operation ->execute ($ this ->getPrimaryServer ());
114114 },
115- function (stdClass $ command ) {
116- $ this ->assertObjectHasAttribute ('lsid ' , $ command );
115+ function (array $ event ) {
116+ $ this ->assertObjectHasAttribute ('lsid ' , $ event [ ' started ' ]-> getCommand () );
117117 }
118118 );
119119 }
@@ -185,8 +185,8 @@ function() use ($pipeline, $options) {
185185 $ this ->assertCount (1 , $ results );
186186 $ this ->assertObjectHasAttribute ('stages ' , current ($ results ));
187187 },
188- function (stdClass $ command ) {
189- $ this ->assertObjectNotHasAttribute ('writeConcern ' , $ command );
188+ function (array $ event ) {
189+ $ this ->assertObjectNotHasAttribute ('writeConcern ' , $ event [ ' started ' ]-> getCommand () );
190190 }
191191 );
192192
0 commit comments