Linux boca.hozzt.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
: 159.253.39.62 | : 3.144.40.182
Cant Read [ /etc/named.conf ]
7.4.33
renovkoron
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
alt /
php55 /
usr /
share /
pear /
test /
TwigBridge /
Symfony /
Bridge /
Twig /
Tests /
Extension /
[ HOME SHELL ]
Name
Size
Permission
Action
Fixtures
[ DIR ]
drwxr-xr-x
CodeExtensionTest.php
1.99
KB
-rw-r--r--
ExpressionExtensionTest.php
897
B
-rw-r--r--
FormExtensionDivLayoutTest.php
6.28
KB
-rw-r--r--
FormExtensionTableLayoutTest.p...
3.58
KB
-rw-r--r--
HttpKernelExtensionTest.php
2.56
KB
-rw-r--r--
RoutingExtensionTest.php
1.94
KB
-rw-r--r--
StopwatchExtensionTest.php
2.44
KB
-rw-r--r--
TranslationExtensionTest.php
7.41
KB
-rw-r--r--
child_label.html.twig
86
B
-rw-r--r--
custom_widgets.html.twig
420
B
-rw-r--r--
page_dynamic_extends.html.twig
51
B
-rw-r--r--
parent_label.html.twig
75
B
-rw-r--r--
theme.html.twig
239
B
-rw-r--r--
theme_extends.html.twig
282
B
-rw-r--r--
theme_use.html.twig
278
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : HttpKernelExtensionTest.php
<?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\Bridge\Twig\Tests\Extension; use Symfony\Bridge\Twig\Extension\HttpKernelExtension; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Fragment\FragmentHandler; class HttpKernelExtensionTest extends \PHPUnit_Framework_TestCase { /** * @expectedException \Twig_Error_Runtime */ public function testFragmentWithError() { $renderer = $this->getFragmentHandler($this->throwException(new \Exception('foo'))); $this->renderTemplate($renderer); } public function testRenderFragment() { $renderer = $this->getFragmentHandler($this->returnValue(new Response('html'))); $response = $this->renderTemplate($renderer); $this->assertEquals('html', $response); } public function testUnknownFragmentRenderer() { $context = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\RequestStack') ->disableOriginalConstructor() ->getMock() ; $renderer = new FragmentHandler(array(), false, $context); $this->setExpectedException('InvalidArgumentException', 'The "inline" renderer does not exist.'); $renderer->render('/foo'); } protected function getFragmentHandler($return) { $strategy = $this->getMock('Symfony\\Component\\HttpKernel\\Fragment\\FragmentRendererInterface'); $strategy->expects($this->once())->method('getName')->will($this->returnValue('inline')); $strategy->expects($this->once())->method('render')->will($return); $context = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\RequestStack') ->disableOriginalConstructor() ->getMock() ; $context->expects($this->any())->method('getCurrentRequest')->will($this->returnValue(Request::create('/'))); $renderer = new FragmentHandler(array($strategy), false, $context); return $renderer; } protected function renderTemplate(FragmentHandler $renderer, $template = '{{ render("foo") }}') { $loader = new \Twig_Loader_Array(array('index' => $template)); $twig = new \Twig_Environment($loader, array('debug' => true, 'cache' => false)); $twig->addExtension(new HttpKernelExtension($renderer)); return $twig->render('index'); } }
Close