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\Plugins\Tests; use PHPUnit\Framework\TestCase; class ExampleA..
Decoded Output download
<?php
namespace Roundcube\Plugins\Tests;
use PHPUnit\Framework\TestCase;
class ExampleAddressbookTest extends TestCase
{
/**
* Plugin object construction test
*/
public function test_constructor()
{
$rcube =
cube::get_instance();
$plugin = new \example_addressbook($rcube->plugins);
$this->assertInstanceOf('example_addressbook', $plugin);
$this->assertInstanceOf('rcube_plugin', $plugin);
$plugin->init();
}
/**
* Test address_sources()
*/
public function test_address_sources()
{
$rcube =
cube::get_instance();
$plugin = new \example_addressbook($rcube->plugins);
$result = $plugin->address_sources(['sources' => []]);
$this->assertSame('static', $result['sources']['static']['id']);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Roundcube\Plugins\Tests;
use PHPUnit\Framework\TestCase;
class ExampleAddressbookTest extends TestCase
{
/**
* Plugin object construction test
*/
public function test_constructor()
{
$rcube = \rcube::get_instance();
$plugin = new \example_addressbook($rcube->plugins);
$this->assertInstanceOf('example_addressbook', $plugin);
$this->assertInstanceOf('rcube_plugin', $plugin);
$plugin->init();
}
/**
* Test address_sources()
*/
public function test_address_sources()
{
$rcube = \rcube::get_instance();
$plugin = new \example_addressbook($rcube->plugins);
$result = $plugin->address_sources(['sources' => []]);
$this->assertSame('static', $result['sources']['static']['id']);
}
}
Function Calls
| None |
Stats
| MD5 | 96c22e581f270c0155b0770bc152265f |
| Eval Count | 0 |
| Decode Time | 91 ms |