From 9de7b0889451c46e1da1b40b50462419c237930a Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Thu, 18 Jul 2024 11:27:26 +1000 Subject: [PATCH] Support older versions --- tests/Feature/DatabaseDriverTest.php | 40 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/tests/Feature/DatabaseDriverTest.php b/tests/Feature/DatabaseDriverTest.php index e75898d..2765807 100644 --- a/tests/Feature/DatabaseDriverTest.php +++ b/tests/Feature/DatabaseDriverTest.php @@ -1547,26 +1547,26 @@ public function testItCanLoadAllFeaturesForScope() $records = DB::table('features')->orderBy('scope')->orderBy('name')->get(['name', 'scope', 'value'])->all(); $this->assertCount(4, $records); - $this->assertEquals(literal( - scope: 'taylor', - value: 'true', - name: 'bar', - ), $records[0]); - $this->assertEquals(literal( - scope: 'taylor', - value: 'false', - name: 'foo', - ), $records[1]); - $this->assertEquals(literal( - scope: 'tim', - value: 'false', - name: 'bar', - ), $records[2]); - $this->assertEquals(literal( - scope: 'tim', - value: 'true', - name: 'foo', - ), $records[3]); + $this->assertEquals((object) [ + 'scope' => 'taylor', + 'value' => 'true', + 'name' => 'bar', + ], $records[0]); + $this->assertEquals((object) [ + 'scope' => 'taylor', + 'value' => 'false', + 'name' => 'foo', + ], $records[1]); + $this->assertEquals((object) [ + 'scope' => 'tim', + 'value' => 'false', + 'name' => 'bar', + ], $records[2]); + $this->assertEquals((object) [ + 'scope' => 'tim', + 'value' => 'true', + 'name' => 'foo', + ], $records[3]); } }