@@ -65,7 +65,10 @@ public function testDebugDefaultDirectory()
65
65
66
66
public function testDebugCustomDirectory ()
67
67
{
68
- $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )->getMock ();
68
+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Kernel ' )
69
+ ->disableOriginalConstructor ()
70
+ ->getMock ();
71
+
69
72
$ kernel ->expects ($ this ->once ())
70
73
->method ('getBundle ' )
71
74
->with ($ this ->equalTo ($ this ->translationDir ))
@@ -83,7 +86,10 @@ public function testDebugCustomDirectory()
83
86
*/
84
87
public function testDebugInvalidDirectory ()
85
88
{
86
- $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )->getMock ();
89
+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Kernel ' )
90
+ ->disableOriginalConstructor ()
91
+ ->getMock ();
92
+
87
93
$ kernel ->expects ($ this ->once ())
88
94
->method ('getBundle ' )
89
95
->with ($ this ->equalTo ('dir ' ))
@@ -152,7 +158,10 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
152
158
);
153
159
154
160
if (null === $ kernel ) {
155
- $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )->getMock ();
161
+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Kernel ' )
162
+ ->disableOriginalConstructor ()
163
+ ->getMock ();
164
+
156
165
$ kernel
157
166
->expects ($ this ->any ())
158
167
->method ('getBundle ' )
@@ -167,6 +176,10 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
167
176
->method ('getRootDir ' )
168
177
->will ($ this ->returnValue ($ this ->translationDir ));
169
178
179
+ $ kernel
180
+ ->method ('getProjectDir ' )
181
+ ->will ($ this ->returnValue ($ this ->translationDir ));
182
+
170
183
$ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )->getMock ();
171
184
$ container
172
185
->expects ($ this ->any ())
0 commit comments