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\Actions\Mail; use Roundcube\Tests\ActionTestCase; /** ..
Decoded Output download
<?php
namespace Roundcube\Tests\Actions\Mail;
use Roundcube\Tests\ActionTestCase;
/**
* Test class to test rcmail_action_mail_compose
*/
class ComposeTest extends ActionTestCase
{
/**
* Class constructor
*/
public function test_class()
{
$object = new
cmail_action_mail_compose();
$this->assertInstanceOf(
cmail_action::class, $object);
}
/**
* Test quote_text() method
*/
public function test_quote_text()
{
$action = new
cmail_action_mail_compose();
$this->assertSame('> ', $action->quote_text(''));
$result = $action->quote_text("test1
test2");
$expected = "> test1
> test2";
$this->assertSame($expected, $result);
$result = $action->quote_text("> test1
> test2");
$expected = ">> test1
>> test2";
$this->assertSame($expected, $result);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Roundcube\Tests\Actions\Mail;
use Roundcube\Tests\ActionTestCase;
/**
* Test class to test rcmail_action_mail_compose
*/
class ComposeTest extends ActionTestCase
{
/**
* Class constructor
*/
public function test_class()
{
$object = new \rcmail_action_mail_compose();
$this->assertInstanceOf(\rcmail_action::class, $object);
}
/**
* Test quote_text() method
*/
public function test_quote_text()
{
$action = new \rcmail_action_mail_compose();
$this->assertSame('> ', $action->quote_text(''));
$result = $action->quote_text("test1\ntest2");
$expected = "> test1\n> test2";
$this->assertSame($expected, $result);
$result = $action->quote_text("> test1\n> test2");
$expected = ">> test1\n>> test2";
$this->assertSame($expected, $result);
}
}
Function Calls
None |
Stats
MD5 | e9720997b95b57e7d5a65e5c2d54d7ce |
Eval Count | 0 |
Decode Time | 105 ms |