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 LegacyTests\Browser\Redirects; use Illuminate\Database\Eloquent\Model; u..
Decoded Output download
<?php
namespace LegacyTests\Browser\Redirects;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Sushi\Sushi;
use LegacyTests\Browser\TestCase;
class Test extends TestCase
{
use RefreshDatabase;
public function test_it_correctly_shows_flash_messages_before_and_after_direct()
{
$this->browse(function ($browser) {
$this->visitLivewireComponent($browser, Component::class)
/*
* Flashing a message shows up right away, AND
* will show up if you redirect to a different
* page right after.
*/
->assertNotPresent('@flash.message')
->waitForLivewire()->click('@flash')
->assertPresent('@flash.message')
->waitForLivewire()->click('@refresh')
->assertNotPresent('@flash.message')
->click('@redirect-with-flash')->waitForReload()
->assertPresent('@flash.message')
->waitForLivewire()->click('@refresh')
->assertNotPresent('@flash.message')
;
});
}
}
class Foo extends Model
{
use Sushi;
protected $guarded = [];
protected $rows = [
['id' => 1, 'name' => 'foo'],
];
}
?>
Did this file decode correctly?
Original Code
<?php
namespace LegacyTests\Browser\Redirects;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Sushi\Sushi;
use LegacyTests\Browser\TestCase;
class Test extends TestCase
{
use RefreshDatabase;
public function test_it_correctly_shows_flash_messages_before_and_after_direct()
{
$this->browse(function ($browser) {
$this->visitLivewireComponent($browser, Component::class)
/*
* Flashing a message shows up right away, AND
* will show up if you redirect to a different
* page right after.
*/
->assertNotPresent('@flash.message')
->waitForLivewire()->click('@flash')
->assertPresent('@flash.message')
->waitForLivewire()->click('@refresh')
->assertNotPresent('@flash.message')
->click('@redirect-with-flash')->waitForReload()
->assertPresent('@flash.message')
->waitForLivewire()->click('@refresh')
->assertNotPresent('@flash.message')
;
});
}
}
class Foo extends Model
{
use Sushi;
protected $guarded = [];
protected $rows = [
['id' => 1, 'name' => 'foo'],
];
}
Function Calls
None |
Stats
MD5 | 36dfb71beb478afe53d3864f6a214626 |
Eval Count | 0 |
Decode Time | 87 ms |