|
17 | 17 | use Symfony\Component\HttpFoundation\Response;
|
18 | 18 | use Symfony\Component\HttpKernel\Tests\Fixtures\KernelForTest;
|
19 | 19 | use Symfony\Component\HttpKernel\Tests\Fixtures\KernelForOverrideName;
|
20 |
| -use Symfony\Component\HttpKernel\Tests\Fixtures\FooBarBundle; |
21 | 20 |
|
22 | 21 | class KernelTest extends \PHPUnit_Framework_TestCase
|
23 | 22 | {
|
@@ -279,51 +278,6 @@ public function doStuff()
|
279 | 278 | $this->assertEquals($expected, $output);
|
280 | 279 | }
|
281 | 280 |
|
282 |
| - /** |
283 |
| - * @deprecated Deprecated since version 2.6, to be removed in 3.0. |
284 |
| - */ |
285 |
| - public function testIsClassInActiveBundleFalse() |
286 |
| - { |
287 |
| - $kernel = $this->getKernelMockForIsClassInActiveBundleTest(); |
288 |
| - |
289 |
| - $this->assertFalse($kernel->isClassInActiveBundle('Not\In\Active\Bundle')); |
290 |
| - } |
291 |
| - |
292 |
| - /** |
293 |
| - * @deprecated Deprecated since version 2.6, to be removed in 3.0. |
294 |
| - */ |
295 |
| - public function testIsClassInActiveBundleFalseNoNamespace() |
296 |
| - { |
297 |
| - $kernel = $this->getKernelMockForIsClassInActiveBundleTest(); |
298 |
| - |
299 |
| - $this->assertFalse($kernel->isClassInActiveBundle('NotNamespacedClass')); |
300 |
| - } |
301 |
| - |
302 |
| - /** |
303 |
| - * @deprecated Deprecated since version 2.6, to be removed in 3.0. |
304 |
| - */ |
305 |
| - public function testIsClassInActiveBundleTrue() |
306 |
| - { |
307 |
| - $kernel = $this->getKernelMockForIsClassInActiveBundleTest(); |
308 |
| - |
309 |
| - $this->assertTrue($kernel->isClassInActiveBundle(__NAMESPACE__.'\Fixtures\FooBarBundle\SomeClass')); |
310 |
| - } |
311 |
| - |
312 |
| - /** |
313 |
| - * @deprecated Deprecated since version 2.6, to be removed in 3.0. |
314 |
| - */ |
315 |
| - protected function getKernelMockForIsClassInActiveBundleTest() |
316 |
| - { |
317 |
| - $bundle = new FooBarBundle(); |
318 |
| - |
319 |
| - $kernel = $this->getKernel(array('getBundles')); |
320 |
| - $kernel->expects($this->once()) |
321 |
| - ->method('getBundles') |
322 |
| - ->will($this->returnValue(array($bundle))); |
323 |
| - |
324 |
| - return $kernel; |
325 |
| - } |
326 |
| - |
327 | 281 | public function testGetRootDir()
|
328 | 282 | {
|
329 | 283 | $kernel = new KernelForTest('test', true);
|
|
0 commit comments