Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Illuminate\Tests\View\Blade; class BladeStackTest extends AbstractBladeT..

Decoded Output download

<?php

namespace Illuminate\Tests\View\Blade;

class BladeStackTest extends AbstractBladeTestCase
{
    public function testStackIsCompiled()
    {
        $string = '@stack(\'foo\')';
        $expected = '<?php echo $__env->yieldPushContent(\'foo\'); ?>';
        $this->assertEquals($expected, $this->compiler->compileString($string));

        $string = '@stack(\'foo))\')';
        $expected = '<?php echo $__env->yieldPushContent(\'foo))\'); ?>';
        $this->assertEquals($expected, $this->compiler->compileString($string));
    }
}

Did this file decode correctly?

Original Code

<?php

namespace Illuminate\Tests\View\Blade;

class BladeStackTest extends AbstractBladeTestCase
{
    public function testStackIsCompiled()
    {
        $string = '@stack(\'foo\')';
        $expected = '<?php echo $__env->yieldPushContent(\'foo\'); ?>';
        $this->assertEquals($expected, $this->compiler->compileString($string));

        $string = '@stack(\'foo))\')';
        $expected = '<?php echo $__env->yieldPushContent(\'foo))\'); ?>';
        $this->assertEquals($expected, $this->compiler->compileString($string));
    }
}

Function Calls

None

Variables

None

Stats

MD5 e1be9f0f3cee27a175e6be80e1600b65
Eval Count 0
Decode Time 112 ms