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\Tests; use Illuminate\Support\Facades\Artisan; // T..
Decoded Output download
<?php
namespace Livewire\Mechanisms\Tests;
use Illuminate\Support\Facades\Artisan;
// TODO - Change this to \Tests\TestCase
class LivewireDirectiveUnitTest extends \LegacyTests\Unit\TestCase
{
public function test_component_is_loaded_with_blade_directive()
{
Artisan::call('make:livewire', ['name' => 'foo']);
$output = view('render-component', [
'component' => 'foo',
])->render();
$this->assertStringContainsString('div', $output);
}
public function test_component_is_loaded_with_blade_directive_by_classname()
{
Artisan::call('make:livewire', ['name' => 'foo']);
$output = view('render-component', [
'component' => \App\Livewire\Foo::class,
])->render();
$this->assertStringContainsString('div', $output);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Livewire\Mechanisms\Tests;
use Illuminate\Support\Facades\Artisan;
// TODO - Change this to \Tests\TestCase
class LivewireDirectiveUnitTest extends \LegacyTests\Unit\TestCase
{
public function test_component_is_loaded_with_blade_directive()
{
Artisan::call('make:livewire', ['name' => 'foo']);
$output = view('render-component', [
'component' => 'foo',
])->render();
$this->assertStringContainsString('div', $output);
}
public function test_component_is_loaded_with_blade_directive_by_classname()
{
Artisan::call('make:livewire', ['name' => 'foo']);
$output = view('render-component', [
'component' => \App\Livewire\Foo::class,
])->render();
$this->assertStringContainsString('div', $output);
}
}
Function Calls
None |
Stats
MD5 | bf5d20bca1d1f75164677e5647dea614 |
Eval Count | 0 |
Decode Time | 110 ms |