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\GlobalLivewire; use LegacyTests\Browser\TestCase; c..
Decoded Output download
<?php
namespace LegacyTests\Browser\GlobalLivewire;
use LegacyTests\Browser\TestCase;
class Test extends TestCase
{
public function test()
{
$this->markTestSkipped(); // @todo: Caleb needs to think more deeply about JS hooks for V3...
$this->browse(function ($browser) {
$this->visitLivewireComponent($browser, Component::class)
/**
* Event listeners are removed on teardown.
**/
->pause(250)
->tap(function ($b) { $b->script('window.Livewire.stop()'); })
->click('@foo')
->pause(100)
->assertDontSeeIn('@output', 'foo')
->refresh()
/**
* Rescanned components dont register twice.
**/
->tap(function ($b) { $b->script('window.Livewire.rescan()'); })
->waitForLivewire()->click('@foo')
->assertSeeIn('@output', 'foo')
->refresh()
/**
* window.Livewire.onLoad callback is called when Livewire is initialized
*/
->assertScript('window.isLoaded', true)
/**
* livewire:load DOM event is fired after start
*/
->assertScript('window.loadEventWasFired', true)
;
});
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace LegacyTests\Browser\GlobalLivewire;
use LegacyTests\Browser\TestCase;
class Test extends TestCase
{
public function test()
{
$this->markTestSkipped(); // @todo: Caleb needs to think more deeply about JS hooks for V3...
$this->browse(function ($browser) {
$this->visitLivewireComponent($browser, Component::class)
/**
* Event listeners are removed on teardown.
**/
->pause(250)
->tap(function ($b) { $b->script('window.Livewire.stop()'); })
->click('@foo')
->pause(100)
->assertDontSeeIn('@output', 'foo')
->refresh()
/**
* Rescanned components dont register twice.
**/
->tap(function ($b) { $b->script('window.Livewire.rescan()'); })
->waitForLivewire()->click('@foo')
->assertSeeIn('@output', 'foo')
->refresh()
/**
* window.Livewire.onLoad callback is called when Livewire is initialized
*/
->assertScript('window.isLoaded', true)
/**
* livewire:load DOM event is fired after start
*/
->assertScript('window.loadEventWasFired', true)
;
});
}
}
Function Calls
| None |
Stats
| MD5 | 6c9ba8f6b77c30611b43e74dc2ae5934 |
| Eval Count | 0 |
| Decode Time | 118 ms |