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\Mechanisms\HandleComponents\Synthesizers\Tests; use Livewire\Co..
Decoded Output download
<?php
namespace Livewire\Mechanisms\HandleComponents\Synthesizers\Tests;
use Livewire\Component;
use Livewire\Livewire;
class TypedPropertiesUnitTest extends \Tests\TestCase
{
public function test_can_set_uninitialized_typed_properties()
{
$testMessage = 'hello world';
Livewire::test(ComponentWithUninitializedTypedProperty::class)
->set('message', $testMessage)
->assertSetStrict('message', $testMessage);
}
}
class ComponentWithUninitializedTypedProperty extends Component {
public string $message;
public function render()
{
return <<<'HTML'
<div>
{{ var_dump(isset($this->message)) }}
</div>
HTML;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Livewire\Mechanisms\HandleComponents\Synthesizers\Tests;
use Livewire\Component;
use Livewire\Livewire;
class TypedPropertiesUnitTest extends \Tests\TestCase
{
public function test_can_set_uninitialized_typed_properties()
{
$testMessage = 'hello world';
Livewire::test(ComponentWithUninitializedTypedProperty::class)
->set('message', $testMessage)
->assertSetStrict('message', $testMessage);
}
}
class ComponentWithUninitializedTypedProperty extends Component {
public string $message;
public function render()
{
return <<<'HTML'
<div>
{{ var_dump(isset($this->message)) }}
</div>
HTML;
}
}
Function Calls
None |
Stats
MD5 | e0f59842d8585039c6d450899f2aab2a |
Eval Count | 0 |
Decode Time | 87 ms |