/** * @dataProvider nonStringBodyParametersProvider */ public function testNonStringBodyParameters(array $restrictions) { $request = new Gajus\Fuss\Request($this->app, 'POST', 'app'); $request->setBody(['restrictions' => $restrictions]); $this->assertTrue($request->make()); $request = new Gajus\Fuss\Request($this->app, 'GET', 'app', ['fields' => 'restrictions']); $response = $request->make(); $this->assertSame($restrictions, $response['restrictions']); }