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 Livewire\Tests; use function Livewire\invade; use Livewire\Request; use ..

Decoded Output download

<?php

namespace Livewire\Tests;

use function Livewire\invade;
use Livewire\Request;
use Livewire\Response;

class InvadeHelperUnitTest extends \Tests\TestCase
{
    public function test_get_property()
    {
        $thing = new class {
            private $foo = 'bar';
        };

        $this->assertEquals('bar', invade($thing)->foo);
    }

    public function test_set_property()
    {
        $thing = new class {
            private $foo = 'bar';
        };

        invade($thing)->foo = 'baz';

        $this->assertEquals('baz', invade($thing)->foo);
    }

    public function test_call_method()
    {
        $thing = new class {
            private $foo = 'bar';

            private function getFoo() {
                return $this->foo;
            }
        };

        $this->assertEquals('bar', invade($thing)->getFoo());
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Livewire\Tests;

use function Livewire\invade;
use Livewire\Request;
use Livewire\Response;

class InvadeHelperUnitTest extends \Tests\TestCase
{
    public function test_get_property()
    {
        $thing = new class {
            private $foo = 'bar';
        };

        $this->assertEquals('bar', invade($thing)->foo);
    }

    public function test_set_property()
    {
        $thing = new class {
            private $foo = 'bar';
        };

        invade($thing)->foo = 'baz';

        $this->assertEquals('baz', invade($thing)->foo);
    }

    public function test_call_method()
    {
        $thing = new class {
            private $foo = 'bar';

            private function getFoo() {
                return $this->foo;
            }
        };

        $this->assertEquals('bar', invade($thing)->getFoo());
    }
}

Function Calls

None

Variables

None

Stats

MD5 77647c391a7cb836d0123be63c7c7fc6
Eval Count 0
Decode Time 110 ms