@@ -109,7 +109,7 @@ |
||
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | - * @return \PHPUnit_Framework_MockObject_MockObject|FormEvent |
|
| 112 | + * @return FormEvent |
|
| 113 | 113 | */ |
| 114 | 114 | private function createFormEventMock() |
| 115 | 115 | { |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | $xmlHttpRequestForm |
| 98 | 98 | ->expects($this->once()) |
| 99 | 99 | ->method('addError') |
| 100 | - ->with($this->callback(function (FormError $error) { |
|
| 100 | + ->with($this->callback(function(FormError $error) { |
|
| 101 | 101 | return $error->getMessage() === 'The validation has been disabled.'; |
| 102 | 102 | })); |
| 103 | 103 | |
@@ -276,7 +276,7 @@ |
||
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | /** |
| 279 | - * @return \PHPUnit_Framework_MockObject_MockObject|ActionEvent |
|
| 279 | + * @return ActionEvent |
|
| 280 | 280 | */ |
| 281 | 281 | private function createActionEventMock() |
| 282 | 282 | { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $event |
| 94 | 94 | ->expects($this->once()) |
| 95 | 95 | ->method('setView') |
| 96 | - ->with($this->callback(function (View $view) { |
|
| 96 | + ->with($this->callback(function(View $view) { |
|
| 97 | 97 | return $view->getStatusCode() === null && $view->getData() === null; |
| 98 | 98 | })); |
| 99 | 99 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $event |
| 122 | 122 | ->expects($this->once()) |
| 123 | 123 | ->method('setView') |
| 124 | - ->with($this->callback(function (View $view) use ($form) { |
|
| 124 | + ->with($this->callback(function(View $view) use ($form) { |
|
| 125 | 125 | return $view->getStatusCode() === Response::HTTP_BAD_REQUEST && $view->getData() === $form; |
| 126 | 126 | })); |
| 127 | 127 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $event |
| 155 | 155 | ->expects($this->once()) |
| 156 | 156 | ->method('setView') |
| 157 | - ->with($this->callback(function (View $view) use ($statusCode) { |
|
| 157 | + ->with($this->callback(function(View $view) use ($statusCode) { |
|
| 158 | 158 | return $view->getStatusCode() === $statusCode && $view->getData() === null; |
| 159 | 159 | })); |
| 160 | 160 | |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $event |
| 210 | 210 | ->expects($this->once()) |
| 211 | 211 | ->method('setView') |
| 212 | - ->with($this->callback(function (View $view) use ($statusCode, $data, $url) { |
|
| 212 | + ->with($this->callback(function(View $view) use ($statusCode, $data, $url) { |
|
| 213 | 213 | $headers = $view->getHeaders(); |
| 214 | 214 | |
| 215 | 215 | return $view->getStatusCode() === $statusCode |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $event |
| 253 | 253 | ->expects($this->once()) |
| 254 | 254 | ->method('setView') |
| 255 | - ->with($this->callback(function (View $view) use ($statusCode, $data) { |
|
| 255 | + ->with($this->callback(function(View $view) use ($statusCode, $data) { |
|
| 256 | 256 | return $view->getStatusCode() === $statusCode && $view->getData() === $data; |
| 257 | 257 | })); |
| 258 | 258 | |
@@ -235,7 +235,7 @@ |
||
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | /** |
| 238 | - * @return \PHPUnit_Framework_MockObject_MockObject|ViewEvent |
|
| 238 | + * @return ViewEvent |
|
| 239 | 239 | */ |
| 240 | 240 | private function createViewEventMock() |
| 241 | 241 | { |
@@ -188,7 +188,7 @@ |
||
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | /** |
| 191 | - * @return \PHPUnit_Framework_MockObject_MockObject|LifecycleEventArgs |
|
| 191 | + * @return LifecycleEventArgs |
|
| 192 | 192 | */ |
| 193 | 193 | private function createLifecycleEventArgsMock() |
| 194 | 194 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | - * @return \PHPUnit_Framework_MockObject_MockObject|FormRegistry |
|
| 145 | + * @return FormRegistry |
|
| 146 | 146 | */ |
| 147 | 147 | private function createFormRegistryMock() |
| 148 | 148 | { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | - * @return \PHPUnit_Framework_MockObject_MockObject|ManagerRegistry |
|
| 155 | + * @return ManagerRegistry |
|
| 156 | 156 | */ |
| 157 | 157 | private function createManagerRegistryMock() |
| 158 | 158 | { |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | - * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder |
|
| 54 | + * @return ContainerBuilder |
|
| 55 | 55 | */ |
| 56 | 56 | private function createContainerBuilderMock() |
| 57 | 57 | { |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * @return \PHPUnit_Framework_MockObject_MockObject|OptionsResolver |
|
| 65 | + * @return OptionsResolver |
|
| 66 | 66 | */ |
| 67 | 67 | private function createOptionsResolverMock() |
| 68 | 68 | { |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | - * @return \PHPUnit_Framework_MockObject_MockObject|DocumentRepository |
|
| 234 | + * @return DocumentManager |
|
| 235 | 235 | */ |
| 236 | 236 | private function createRepositoryMock() |
| 237 | 237 | { |
@@ -259,7 +259,7 @@ |
||
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | /** |
| 262 | - * @return \PHPUnit_Framework_MockObject_MockObject|EntityRepository |
|
| 262 | + * @return EntityManagerInterface |
|
| 263 | 263 | */ |
| 264 | 264 | private function createRepositoryMock() |
| 265 | 265 | { |