123456789101112131415161718192021222324252627282930313233 |
- <?php
- /*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Symfony\Bundle\FrameworkBundle\Tests\Fragment;
- use Symfony\Bundle\FrameworkBundle\Fragment\ContainerAwareHIncludeFragmentRenderer;
- use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
- use Symfony\Component\HttpFoundation\Request;
- /**
- * @group legacy
- */
- class LegacyContainerAwareHIncludeFragmentRendererTest extends TestCase
- {
- public function testRender()
- {
- $container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
- $container->expects($this->once())
- ->method('get')
- ->will($this->returnValue($this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock()))
- ;
- $renderer = new ContainerAwareHIncludeFragmentRenderer($container);
- $renderer->render('/', Request::create('/'));
- }
- }
|