@@ -64,7 +64,7 @@ public function testDebugDefaultDirectory()
64
64
65
65
public function testDebugCustomDirectory ()
66
66
{
67
- $ kernel = $ this ->getMock ('Symfony\Component\HttpKernel\KernelInterface ' );
67
+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )-> getMock ( );
68
68
$ kernel ->expects ($ this ->once ())
69
69
->method ('getBundle ' )
70
70
->with ($ this ->equalTo ($ this ->translationDir ))
@@ -82,7 +82,7 @@ public function testDebugCustomDirectory()
82
82
*/
83
83
public function testDebugInvalidDirectory ()
84
84
{
85
- $ kernel = $ this ->getMock ('Symfony\Component\HttpKernel\KernelInterface ' );
85
+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )-> getMock ( );
86
86
$ kernel ->expects ($ this ->once ())
87
87
->method ('getBundle ' )
88
88
->with ($ this ->equalTo ('dir ' ))
@@ -130,7 +130,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
130
130
->method ('getFallbackLocales ' )
131
131
->will ($ this ->returnValue (array ('en ' )));
132
132
133
- $ extractor = $ this ->getMock ('Symfony\Component\Translation\Extractor\ExtractorInterface ' );
133
+ $ extractor = $ this ->getMockBuilder ('Symfony\Component\Translation\Extractor\ExtractorInterface ' )-> getMock ( );
134
134
$ extractor
135
135
->expects ($ this ->any ())
136
136
->method ('extract ' )
@@ -140,7 +140,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
140
140
})
141
141
);
142
142
143
- $ loader = $ this ->getMock ('Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader ' );
143
+ $ loader = $ this ->getMockBuilder ('Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader ' )-> getMock ( );
144
144
$ loader
145
145
->expects ($ this ->any ())
146
146
->method ('loadMessages ' )
@@ -151,7 +151,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
151
151
);
152
152
153
153
if (null === $ kernel ) {
154
- $ kernel = $ this ->getMock ('Symfony\Component\HttpKernel\KernelInterface ' );
154
+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )-> getMock ( );
155
155
$ kernel
156
156
->expects ($ this ->any ())
157
157
->method ('getBundle ' )
@@ -166,7 +166,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
166
166
->method ('getRootDir ' )
167
167
->will ($ this ->returnValue ($ this ->translationDir ));
168
168
169
- $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\ContainerInterface ' );
169
+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )-> getMock ( );
170
170
$ container
171
171
->expects ($ this ->any ())
172
172
->method ('get ' )
@@ -182,7 +182,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
182
182
183
183
private function getBundle ($ path )
184
184
{
185
- $ bundle = $ this ->getMock ('Symfony\Component\HttpKernel\Bundle\BundleInterface ' );
185
+ $ bundle = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Bundle\BundleInterface ' )-> getMock ( );
186
186
$ bundle
187
187
->expects ($ this ->any ())
188
188
->method ('getPath ' )
0 commit comments