createFromRequest() public method

public createFromRequest ( Request $request, boolean $normalization, array $attributes = null ) : array
$request Symfony\Component\HttpFoundation\Request
$normalization boolean
$attributes array
return array
 public function testReuseExistingAttributes()
 {
     $expected = ['bar' => 'baz', 'item_operation_name' => 'get', 'resource_class' => 'Foo', 'request_uri' => '', 'api_allow_update' => false];
     $this->assertEquals($expected, $this->builder->createFromRequest(new Request(), false, ['resource_class' => 'Foo', 'item_operation_name' => 'get']));
 }