@@ -65,7 +65,10 @@ public function testDebugDefaultDirectory()
6565
6666 public function testDebugCustomDirectory ()
6767 {
68- $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )->getMock ();
68+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Kernel ' )
69+ ->disableOriginalConstructor ()
70+ ->getMock ();
71+
6972 $ kernel ->expects ($ this ->once ())
7073 ->method ('getBundle ' )
7174 ->with ($ this ->equalTo ($ this ->translationDir ))
@@ -83,7 +86,10 @@ public function testDebugCustomDirectory()
8386 */
8487 public function testDebugInvalidDirectory ()
8588 {
86- $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )->getMock ();
89+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Kernel ' )
90+ ->disableOriginalConstructor ()
91+ ->getMock ();
92+
8793 $ kernel ->expects ($ this ->once ())
8894 ->method ('getBundle ' )
8995 ->with ($ this ->equalTo ('dir ' ))
@@ -152,7 +158,10 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
152158 );
153159
154160 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+
156165 $ kernel
157166 ->expects ($ this ->any ())
158167 ->method ('getBundle ' )
@@ -167,6 +176,10 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
167176 ->method ('getRootDir ' )
168177 ->will ($ this ->returnValue ($ this ->translationDir ));
169178
179+ $ kernel
180+ ->method ('getProjectDir ' )
181+ ->will ($ this ->returnValue ($ this ->translationDir ));
182+
170183 $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )->getMock ();
171184 $ container
172185 ->expects ($ this ->any ())
0 commit comments