@@ -635,7 +635,7 @@ public function testExecuteInsertsRespectsWriteConcern(string $class, string|int
635635 $ collection = $ this ->createMock (Collection::class);
636636 $ collection ->expects ($ this ->once ())
637637 ->method ('insertMany ' )
638- ->with ($ this ->isType ( ' array ' ), $ this ->logicalAnd ($ this ->arrayHasKey ('writeConcern ' ), $ this ->containsEqual (new WriteConcern ($ writeConcern ))));
638+ ->with ($ this ->isArray ( ), $ this ->logicalAnd ($ this ->arrayHasKey ('writeConcern ' ), $ this ->containsEqual (new WriteConcern ($ writeConcern ))));
639639
640640 $ reflectionProperty = new ReflectionProperty ($ documentPersister , 'collection ' );
641641 $ reflectionProperty ->setValue ($ documentPersister , $ collection );
@@ -656,7 +656,7 @@ public function testExecuteInsertsOmitsWriteConcernInTransaction(string $class,
656656 $ collection = $ this ->createMock (Collection::class);
657657 $ collection ->expects ($ this ->once ())
658658 ->method ('insertMany ' )
659- ->with ($ this ->isType ( ' array ' ), $ this ->logicalNot ($ this ->arrayHasKey ('writeConcern ' )));
659+ ->with ($ this ->isArray ( ), $ this ->logicalNot ($ this ->arrayHasKey ('writeConcern ' )));
660660
661661 $ reflectionProperty = new ReflectionProperty ($ documentPersister , 'collection ' );
662662 $ reflectionProperty ->setValue ($ documentPersister , $ collection );
@@ -677,7 +677,7 @@ public function testExecuteUpsertsRespectsWriteConcern(string $class, string|int
677677 $ collection = $ this ->createMock (Collection::class);
678678 $ collection ->expects ($ this ->once ())
679679 ->method ('updateOne ' )
680- ->with ($ this ->isType ( ' array ' ), $ this ->isType ( ' array ' ), $ this ->logicalAnd ($ this ->arrayHasKey ('writeConcern ' ), $ this ->containsEqual (new WriteConcern ($ writeConcern ))));
680+ ->with ($ this ->isArray ( ), $ this ->isArray ( ), $ this ->logicalAnd ($ this ->arrayHasKey ('writeConcern ' ), $ this ->containsEqual (new WriteConcern ($ writeConcern ))));
681681
682682 $ reflectionProperty = new ReflectionProperty ($ documentPersister , 'collection ' );
683683 $ reflectionProperty ->setValue ($ documentPersister , $ collection );
@@ -699,7 +699,7 @@ public function testExecuteUpsertsDoesNotUseWriteConcernInTransaction(string $cl
699699 $ collection = $ this ->createMock (Collection::class);
700700 $ collection ->expects ($ this ->once ())
701701 ->method ('updateOne ' )
702- ->with ($ this ->isType ( ' array ' ), $ this ->logicalNot ($ this ->arrayHasKey ('writeConcern ' )));
702+ ->with ($ this ->isArray ( ), $ this ->logicalNot ($ this ->arrayHasKey ('writeConcern ' )));
703703
704704 $ reflectionProperty = new ReflectionProperty ($ documentPersister , 'collection ' );
705705 $ reflectionProperty ->setValue ($ documentPersister , $ collection );
@@ -721,7 +721,7 @@ public function testRemoveRespectsWriteConcern(string $class, string|int $writeC
721721 $ collection = $ this ->createMock (Collection::class);
722722 $ collection ->expects ($ this ->once ())
723723 ->method ('deleteOne ' )
724- ->with ($ this ->isType ( ' array ' ), $ this ->logicalAnd ($ this ->arrayHasKey ('writeConcern ' ), $ this ->containsEqual (new WriteConcern ($ writeConcern ))));
724+ ->with ($ this ->isArray ( ), $ this ->logicalAnd ($ this ->arrayHasKey ('writeConcern ' ), $ this ->containsEqual (new WriteConcern ($ writeConcern ))));
725725
726726 $ reflectionProperty = new ReflectionProperty ($ documentPersister , 'collection ' );
727727 $ reflectionProperty ->setValue ($ documentPersister , $ collection );
@@ -745,7 +745,7 @@ public function testRemoveDoesNotUseWriteConcernInTransaction(string $class, str
745745 $ collection = $ this ->createMock (Collection::class);
746746 $ collection ->expects ($ this ->once ())
747747 ->method ('deleteOne ' )
748- ->with ($ this ->isType ( ' array ' ), $ this ->logicalNot ($ this ->arrayHasKey ('writeConcern ' )));
748+ ->with ($ this ->isArray ( ), $ this ->logicalNot ($ this ->arrayHasKey ('writeConcern ' )));
749749
750750 $ reflectionProperty = new ReflectionProperty ($ documentPersister , 'collection ' );
751751 $ reflectionProperty ->setValue ($ documentPersister , $ collection );
@@ -768,7 +768,7 @@ public function testDefaultWriteConcernIsRespected(): void
768768 $ collection = $ this ->createMock (Collection::class);
769769 $ collection ->expects ($ this ->once ())
770770 ->method ('insertMany ' )
771- ->with ($ this ->isType ( ' array ' ), $ this ->equalTo (['writeConcern ' => new WriteConcern (0 )]));
771+ ->with ($ this ->isArray ( ), $ this ->equalTo (['writeConcern ' => new WriteConcern (0 )]));
772772
773773 $ reflectionProperty = new ReflectionProperty ($ documentPersister , 'collection ' );
774774 $ reflectionProperty ->setValue ($ documentPersister , $ collection );
@@ -790,7 +790,7 @@ public function testDefaultWriteConcernIsIgnoredInTransaction(): void
790790 $ collection = $ this ->createMock (Collection::class);
791791 $ collection ->expects ($ this ->once ())
792792 ->method ('insertMany ' )
793- ->with ($ this ->isType ( ' array ' ), $ this ->logicalNot ($ this ->arrayHasKey ('writeConcern ' )));
793+ ->with ($ this ->isArray ( ), $ this ->logicalNot ($ this ->arrayHasKey ('writeConcern ' )));
794794
795795 $ reflectionProperty = new ReflectionProperty ($ documentPersister , 'collection ' );
796796 $ reflectionProperty ->setValue ($ documentPersister , $ collection );
@@ -812,7 +812,7 @@ public function testDefaultWriteConcernIsRespectedBackwardCompatibility(): void
812812 $ collection = $ this ->createMock (Collection::class);
813813 $ collection ->expects ($ this ->once ())
814814 ->method ('insertMany ' )
815- ->with ($ this ->isType ( ' array ' ), $ this ->equalTo (['writeConcern ' => new WriteConcern (0 )]));
815+ ->with ($ this ->isArray ( ), $ this ->equalTo (['writeConcern ' => new WriteConcern (0 )]));
816816
817817 $ reflectionProperty = new ReflectionProperty ($ documentPersister , 'collection ' );
818818 $ reflectionProperty ->setValue ($ documentPersister , $ collection );
0 commit comments