Skip to content

Commit bf224ee

Browse files
committed
Fix test
1 parent 64cb9b2 commit bf224ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Model/IndexInputTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function provideExpectedNameAndKey(): array
6767

6868
public function testBsonSerialization(): void
6969
{
70-
$expected = [
70+
$expected = (object) [
7171
'key' => ['x' => 1],
7272
'unique' => true,
7373
'name' => 'x_1',
@@ -79,6 +79,6 @@ public function testBsonSerialization(): void
7979
]);
8080

8181
$this->assertInstanceOf(Serializable::class, $indexInput);
82-
$this->assertSame($expected, $indexInput->bsonSerialize());
82+
$this->assertEquals($expected, $indexInput->bsonSerialize());
8383
}
8484
}

0 commit comments

Comments
 (0)