@@ -70,10 +70,10 @@ public function testRegisterHandleExpectsException()
7070 */
7171 public function testGetStatusCode ($ expected , $ data , $ isBound , $ isValid , $ isBoundCalled , $ isValidCalled , $ noContentCode )
7272 {
73- $ reflectionMethod = new \ReflectionMethod ('\ FOS\RestBundle\View\ViewHandler ' , 'getStatusCode ' );
73+ $ reflectionMethod = new \ReflectionMethod ('FOS\RestBundle\View\ViewHandler ' , 'getStatusCode ' );
7474 $ reflectionMethod ->setAccessible (true );
7575
76- $ form = $ this ->getMock ('\ Symfony\Component\Form\Form ' , array ('isBound ' , 'isValid ' ), array (), '' , false );
76+ $ form = $ this ->getMock ('Symfony\Component\Form\Form ' , array ('isBound ' , 'isValid ' ), array (), '' , false );
7777 $ form
7878 ->expects ($ this ->exactly ($ isBoundCalled ))
7979 ->method ('isBound ' )
@@ -132,7 +132,7 @@ public static function createResponseWithLocationDataProvider()
132132 public function testCreateResponseWithLocationAndData ()
133133 {
134134 $ testValue = array ('naviter ' => 'oudie ' );
135- $ container = $ this ->getMock ('\ Symfony\Component\DependencyInjection\Container ' , array ('get ' , 'getParameter ' ));
135+ $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\Container ' , array ('get ' , 'getParameter ' ));
136136 $ this ->setupMockedSerializer ($ container , $ testValue );
137137
138138 $ viewHandler = new ViewHandler (array ('json ' => false ));
@@ -150,7 +150,7 @@ public function testCreateResponseWithLocationAndData()
150150
151151 public function testCreateResponseWithRoute ()
152152 {
153- $ container = $ this ->getMock ('\ Symfony\Component\DependencyInjection\Container ' , array ('get ' ));
153+ $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\Container ' , array ('get ' ));
154154
155155 $ doRoute = function ($ name , $ parameters ) {
156156 $ route = '/ ' ;
@@ -194,9 +194,9 @@ public function testCreateResponseWithoutLocation($format, $expected, $createVie
194194 {
195195 $ viewHandler = new ViewHandler (array ('html ' => true , 'json ' => false ));
196196
197- $ container = $ this ->getMock ('\ Symfony\Component\DependencyInjection\Container ' , array ('get ' , 'getParameter ' ));
197+ $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\Container ' , array ('get ' , 'getParameter ' ));
198198 if ('html ' === $ format ) {
199- $ templating = $ this ->getMockBuilder ('\ Symfony\Bundle\FrameworkBundle\Templating\PhpEngine ' )
199+ $ templating = $ this ->getMockBuilder ('Symfony\Bundle\FrameworkBundle\Templating\PhpEngine ' )
200200 ->setMethods (array ('render ' ))
201201 ->disableOriginalConstructor ()
202202 ->getMock ();
@@ -218,7 +218,7 @@ public function testCreateResponseWithoutLocation($format, $expected, $createVie
218218 $ viewHandler ->setContainer ($ container );
219219
220220 if ($ form ) {
221- $ data = $ this ->getMock ('\ Symfony\Component\Form\Form ' , array ('createView ' , 'getData ' , 'isValid ' , 'isBound ' ), array (), '' , false );
221+ $ data = $ this ->getMock ('Symfony\Component\Form\Form ' , array ('createView ' , 'getData ' , 'isValid ' , 'isBound ' ), array (), '' , false );
222222 $ data
223223 ->expects ($ this ->exactly ($ createViewCalls ))
224224 ->method ('createView ' )
@@ -246,7 +246,7 @@ public function testCreateResponseWithoutLocation($format, $expected, $createVie
246246
247247 private function setupMockedSerializer ($ container , $ expected )
248248 {
249- $ serializer = $ this ->getMockBuilder ('\ JMS\Serializer\Serializer ' )
249+ $ serializer = $ this ->getMockBuilder ('JMS\Serializer\Serializer ' )
250250 ->setMethods (array ('serialize ' ))
251251 ->disableOriginalConstructor ()
252252 ->getMock ();
@@ -304,11 +304,11 @@ public static function createResponseWithoutLocationDataProvider()
304304 public function testSerializeNull ($ expected , $ serializeNull )
305305 {
306306 $ viewHandler = new ViewHandler (array ('json ' => false ), 404 , 200 , $ serializeNull );
307- $ container = $ this ->getMock ('\ Symfony\Component\DependencyInjection\Container ' , array ('get ' , 'getParameter ' ));
307+ $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\Container ' , array ('get ' , 'getParameter ' ));
308308
309309 $ viewHandler ->setContainer ($ container );
310310
311- $ serializer = $ this ->getMockBuilder ('\ JMS\Serializer\Serializer ' )
311+ $ serializer = $ this ->getMockBuilder ('JMS\Serializer\Serializer ' )
312312 ->setMethods (array ('serialize ' , 'setExclusionStrategy ' ))
313313 ->disableOriginalConstructor ()
314314 ->getMock ();
@@ -352,7 +352,7 @@ public static function createSerializeNullDataProvider()
352352 public function testSerializeNullDataValues ($ expected , $ serializeNull )
353353 {
354354 $ viewHandler = new ViewHandler (array ('json ' => false ), 404 , 200 );
355- $ container = $ this ->getMock ('\ Symfony\Component\DependencyInjection\Container ' , array ('get ' , 'getParameter ' ));
355+ $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\Container ' , array ('get ' , 'getParameter ' ));
356356
357357 $ viewHandler ->setContainer ($ container );
358358
@@ -405,7 +405,7 @@ public function testHandle()
405405 {
406406 $ viewHandler = new ViewHandler (array ('html ' => true ));
407407
408- $ templating = $ this ->getMockBuilder ('\ Symfony\Bundle\FrameworkBundle\Templating\PhpEngine ' )
408+ $ templating = $ this ->getMockBuilder ('Symfony\Bundle\FrameworkBundle\Templating\PhpEngine ' )
409409 ->setMethods (array ('render ' ))
410410 ->disableOriginalConstructor ()
411411 ->getMock ();
@@ -414,7 +414,7 @@ public function testHandle()
414414 ->method ('render ' )
415415 ->will ($ this ->returnValue ('' ));
416416
417- $ container = $ this ->getMock ('\ Symfony\Component\DependencyInjection\Container ' , array ('get ' ));
417+ $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\Container ' , array ('get ' ));
418418 $ container
419419 ->expects ($ this ->exactly (2 ))
420420 ->method ('get ' )
@@ -424,15 +424,15 @@ public function testHandle()
424424 $ data = array ('foo ' => 'bar ' );
425425
426426 $ view = new View ($ data );
427- $ this ->assertInstanceOf ('\ Symfony\Component\HttpFoundation\Response ' , $ viewHandler ->handle ($ view ));
427+ $ this ->assertInstanceOf ('Symfony\Component\HttpFoundation\Response ' , $ viewHandler ->handle ($ view ));
428428 }
429429
430430 public function testHandleCustom ()
431431 {
432432 $ viewHandler = new ViewHandler (array ());
433433 $ viewHandler ->registerHandler ('html ' , ($ callback = function (){ return 'foo ' ; }));
434434
435- $ container = $ this ->getMock ('\ Symfony\Component\DependencyInjection\Container ' , array ('get ' ));
435+ $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\Container ' , array ('get ' ));
436436 $ container
437437 ->expects ($ this ->once ())
438438 ->method ('get ' )
@@ -453,7 +453,7 @@ public function testHandleNotSupported()
453453 {
454454 $ viewHandler = new ViewHandler (array ());
455455
456- $ container = $ this ->getMock ('\ Symfony\Component\DependencyInjection\Container ' , array ('get ' ));
456+ $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\Container ' , array ('get ' ));
457457 $ container
458458 ->expects ($ this ->once ())
459459 ->method ('get ' )
@@ -485,7 +485,7 @@ public function prepareTemplateParametersDataProvider()
485485 $ object = new \stdClass ();
486486
487487 $ formView = new FormView ();
488- $ form = $ this ->getMockBuilder ('\ Symfony\Component\Form\Form ' )
488+ $ form = $ this ->getMockBuilder ('Symfony\Component\Form\Form ' )
489489 ->setMethods (array ('createView ' , 'getData ' ))
490490 ->disableOriginalConstructor ()
491491 ->getMock ();
0 commit comments