|  | @@ 82-92 (lines=11) @@ | 
                                                            
                                    | 79 |  |         $this->doTest($event); | 
                                                            
                                    | 80 |  |     } | 
                                                            
                                    | 81 |  |  | 
                                                            
                                    | 82 |  |     public function testOnKernelViewWithObjectControllerResult() | 
                                                            
                                    | 83 |  |     { | 
                                                            
                                    | 84 |  |         $object = new \stdClass(); | 
                                                            
                                    | 85 |  |         $event = $this->prophesizeEvent(true, true, $object); | 
                                                            
                                    | 86 |  |  | 
                                                            
                                    | 87 |  |         $normalized = ['foo' => 'bar']; | 
                                                            
                                    | 88 |  |         $serializer = $this->prophesizeSerializer($object, $normalized); | 
                                                            
                                    | 89 |  |         $event->setResponse(new JsonResponse($normalized))->shouldBeCalledTimes(1); | 
                                                            
                                    | 90 |  |  | 
                                                            
                                    | 91 |  |         $this->doTest($event, $serializer); | 
                                                            
                                    | 92 |  |     } | 
                                                            
                                    | 93 |  |  | 
                                                            
                                    | 94 |  |     public function testOnKernelViewWithPostRequestAndObjectControllerResult() | 
                                                            
                                    | 95 |  |     { | 
                                                                                
                                |  | @@ 94-104 (lines=11) @@ | 
                                                            
                                    | 91 |  |         $this->doTest($event, $serializer); | 
                                                            
                                    | 92 |  |     } | 
                                                            
                                    | 93 |  |  | 
                                                            
                                    | 94 |  |     public function testOnKernelViewWithPostRequestAndObjectControllerResult() | 
                                                            
                                    | 95 |  |     { | 
                                                            
                                    | 96 |  |         $object = new \stdClass(); | 
                                                            
                                    | 97 |  |         $event = $this->prophesizeEvent(true, true, $object, true); | 
                                                            
                                    | 98 |  |  | 
                                                            
                                    | 99 |  |         $normalized = ['bar' => 'foo']; | 
                                                            
                                    | 100 |  |         $serializer = $this->prophesizeSerializer($object, $normalized); | 
                                                            
                                    | 101 |  |         $event->setResponse(new JsonResponse($normalized, 201))->shouldBeCalledTimes(1); | 
                                                            
                                    | 102 |  |  | 
                                                            
                                    | 103 |  |         $this->doTest($event, $serializer); | 
                                                            
                                    | 104 |  |     } | 
                                                            
                                    | 105 |  |  | 
                                                            
                                    | 106 |  |     private function prophesizeEvent($isMasterRequest, $isRequestJson = false, $controllerResult = null, $isMethodPost = false) | 
                                                            
                                    | 107 |  |     { |