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\Features\SupportConsoleCommands\Tests; use Illuminate\Support\F..
Decoded Output download
<?php
namespace Livewire\Features\SupportConsoleCommands\Tests;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Artisan;
class FormCommandUnitTest extends \Tests\TestCase
{
public function test_form_object_is_created_by_form_command()
{
Artisan::call('livewire:form', ['name' => 'SampleForm']);
$filePath = $this->livewireClassesPath('Forms/SampleForm.php');
$this->assertTrue(File::exists($filePath));
$this->assertTrue(str(File::get($filePath))->contains('namespace App\Livewire\Forms;'));
}
public function test_form_object_is_created_in_subdirectory_by_form_command()
{
Artisan::call('livewire:form', ['name' => 'Auth/SampleForm']);
$filePath = $this->livewireClassesPath('Forms/Auth/SampleForm.php');
$this->assertTrue(File::exists($filePath));
$this->assertTrue(str(File::get($filePath))->contains('namespace App\Livewire\Forms\Auth;'));
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Livewire\Features\SupportConsoleCommands\Tests;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Artisan;
class FormCommandUnitTest extends \Tests\TestCase
{
public function test_form_object_is_created_by_form_command()
{
Artisan::call('livewire:form', ['name' => 'SampleForm']);
$filePath = $this->livewireClassesPath('Forms/SampleForm.php');
$this->assertTrue(File::exists($filePath));
$this->assertTrue(str(File::get($filePath))->contains('namespace App\Livewire\Forms;'));
}
public function test_form_object_is_created_in_subdirectory_by_form_command()
{
Artisan::call('livewire:form', ['name' => 'Auth/SampleForm']);
$filePath = $this->livewireClassesPath('Forms/Auth/SampleForm.php');
$this->assertTrue(File::exists($filePath));
$this->assertTrue(str(File::get($filePath))->contains('namespace App\Livewire\Forms\Auth;'));
}
}
Function Calls
None |
Stats
MD5 | e40dc02b781c3bfdfcd7561bc689c51f |
Eval Count | 0 |
Decode Time | 103 ms |