@@ -46,13 +46,13 @@ class FormDataExtractorTest extends \PHPUnit_Framework_TestCase
4646 protected function setUp ()
4747 {
4848 $ this ->dataExtractor = new FormDataExtractor ();
49- $ this ->dispatcher = $ this ->getMock ('Symfony\Component\EventDispatcher\EventDispatcherInterface ' );
50- $ this ->factory = $ this ->getMock ('Symfony\Component\Form\FormFactoryInterface ' );
49+ $ this ->dispatcher = $ this ->getMockBuilder ('Symfony\Component\EventDispatcher\EventDispatcherInterface ' )-> getMock ( );
50+ $ this ->factory = $ this ->getMockBuilder ('Symfony\Component\Form\FormFactoryInterface ' )-> getMock ( );
5151 }
5252
5353 public function testExtractConfiguration ()
5454 {
55- $ type = $ this ->getMock ('Symfony\Component\Form\ResolvedFormTypeInterface ' );
55+ $ type = $ this ->getMockBuilder ('Symfony\Component\Form\ResolvedFormTypeInterface ' )-> getMock ( );
5656 $ type ->expects ($ this ->any ())
5757 ->method ('getInnerType ' )
5858 ->will ($ this ->returnValue (new \stdClass ()));
@@ -73,7 +73,7 @@ public function testExtractConfiguration()
7373
7474 public function testExtractConfigurationSortsPassedOptions ()
7575 {
76- $ type = $ this ->getMock ('Symfony\Component\Form\ResolvedFormTypeInterface ' );
76+ $ type = $ this ->getMockBuilder ('Symfony\Component\Form\ResolvedFormTypeInterface ' )-> getMock ( );
7777 $ type ->expects ($ this ->any ())
7878 ->method ('getInnerType ' )
7979 ->will ($ this ->returnValue (new \stdClass ()));
@@ -107,7 +107,7 @@ public function testExtractConfigurationSortsPassedOptions()
107107
108108 public function testExtractConfigurationSortsResolvedOptions ()
109109 {
110- $ type = $ this ->getMock ('Symfony\Component\Form\ResolvedFormTypeInterface ' );
110+ $ type = $ this ->getMockBuilder ('Symfony\Component\Form\ResolvedFormTypeInterface ' )-> getMock ( );
111111 $ type ->expects ($ this ->any ())
112112 ->method ('getInnerType ' )
113113 ->will ($ this ->returnValue (new \stdClass ()));
@@ -138,18 +138,18 @@ public function testExtractConfigurationSortsResolvedOptions()
138138
139139 public function testExtractConfigurationBuildsIdRecursively ()
140140 {
141- $ type = $ this ->getMock ('Symfony\Component\Form\ResolvedFormTypeInterface ' );
141+ $ type = $ this ->getMockBuilder ('Symfony\Component\Form\ResolvedFormTypeInterface ' )-> getMock ( );
142142 $ type ->expects ($ this ->any ())
143143 ->method ('getInnerType ' )
144144 ->will ($ this ->returnValue (new \stdClass ()));
145145
146146 $ grandParent = $ this ->createBuilder ('grandParent ' )
147147 ->setCompound (true )
148- ->setDataMapper ($ this ->getMock ('Symfony\Component\Form\DataMapperInterface ' ))
148+ ->setDataMapper ($ this ->getMockBuilder ('Symfony\Component\Form\DataMapperInterface ' )-> getMock ( ))
149149 ->getForm ();
150150 $ parent = $ this ->createBuilder ('parent ' )
151151 ->setCompound (true )
152- ->setDataMapper ($ this ->getMock ('Symfony\Component\Form\DataMapperInterface ' ))
152+ ->setDataMapper ($ this ->getMockBuilder ('Symfony\Component\Form\DataMapperInterface ' )-> getMock ( ))
153153 ->getForm ();
154154 $ form = $ this ->createBuilder ('name ' )
155155 ->setType ($ type )
0 commit comments