From 61643852ad055a6d91fc2d6d1309209daf8eb44e Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 6 Mar 2024 20:29:24 +0300 Subject: [PATCH] Update exclude rules --- tests/Unit/FromTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Unit/FromTest.php b/tests/Unit/FromTest.php index c17c79d..5b7511a 100644 --- a/tests/Unit/FromTest.php +++ b/tests/Unit/FromTest.php @@ -76,6 +76,12 @@ public function testObjectArrayable() public function testRequest() { + if (!method_exists(Request::class, 'toArray')) { + $this->assertTrue(true); + + return; + } + $content = json_encode([ 'foo' => $this->foo, 'bar' => $this->bar,