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 Roundcube\Tests\Browser\Settings; use Roundcube\Tests\Browser\Components..
Decoded Output download
<?php
namespace Roundcube\Tests\Browser\Settings;
use Roundcube\Tests\Browser\Components\App;
use Roundcube\Tests\Browser\TestCase;
class SettingsTest extends TestCase
{
public function testSettings()
{
$this->browse(static function ($browser) {
$browser->go('settings');
// task should be set to 'settings'
$browser->with(new App(), static function ($browser) {
$browser->assertEnv('task', 'settings');
});
$browser->assertSeeIn('#layout-sidebar .header', 'Settings');
// Sidebar menu
$browser->with('#settings-menu', static function ($browser) {
$browser->assertSeeIn('li.preferences', 'Preferences');
$browser->assertSeeIn('li.folders', 'Folders');
$browser->assertSeeIn('li.identities', 'Identities');
$browser->assertSeeIn('li.responses', 'Responses');
});
// Task menu
$browser->assertTaskMenu('settings');
});
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Roundcube\Tests\Browser\Settings;
use Roundcube\Tests\Browser\Components\App;
use Roundcube\Tests\Browser\TestCase;
class SettingsTest extends TestCase
{
public function testSettings()
{
$this->browse(static function ($browser) {
$browser->go('settings');
// task should be set to 'settings'
$browser->with(new App(), static function ($browser) {
$browser->assertEnv('task', 'settings');
});
$browser->assertSeeIn('#layout-sidebar .header', 'Settings');
// Sidebar menu
$browser->with('#settings-menu', static function ($browser) {
$browser->assertSeeIn('li.preferences', 'Preferences');
$browser->assertSeeIn('li.folders', 'Folders');
$browser->assertSeeIn('li.identities', 'Identities');
$browser->assertSeeIn('li.responses', 'Responses');
});
// Task menu
$browser->assertTaskMenu('settings');
});
}
}
Function Calls
None |
Stats
MD5 | 78463499e63787e5ed0cd5c3b486abdf |
Eval Count | 0 |
Decode Time | 97 ms |