From 5aed0d5505d65f777daa9c55ede3ef89d2776dad Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Thu, 20 Dec 2012 10:34:05 +0100 Subject: [PATCH] [FrameworkBundle] Remove test for class removed in commit 64d43c8 --- .../Controller/InternalControllerTest.php | 52 ------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/Symfony/Bundle/FrameworkBundle/Tests/Controller/InternalControllerTest.php diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/InternalControllerTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/InternalControllerTest.php deleted file mode 100644 index 2b35ff1424..0000000000 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/InternalControllerTest.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Bundle\FrameworkBundle\Tests\Controller; - -use Symfony\Bundle\FrameworkBundle\Controller\InternalController; -use Symfony\Bundle\FrameworkBundle\Tests\TestCase; -use Symfony\Component\HttpFoundation\Request; - -class InternalControllerTest extends TestCase -{ - /** - * @expectedException \RuntimeException - * @expectedExceptionMessage A Controller class name must end with Controller. - */ - public function testWithAClassMethodController() - { - $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); - - $controller = new InternalController(); - $controller->setContainer($container); - - $controller->indexAction('/', 'Symfony\Component\HttpFoundation\Request::getPathInfo'); - } - - /** - * @expectedException \RuntimeException - * @expectedExceptionMessage A Controller class name must end with Controller. - */ - public function testWithAServiceController() - { - $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); - $container - ->expects($this->once()) - ->method('get') - ->will($this->returnValue(new Request())) - ; - - $controller = new InternalController(); - $controller->setContainer($container); - - $controller->indexAction('/', 'service:method'); - } -}