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,