Page MenuHomePhorge

Compose.php
No OneTemporary

Authored By
Unknown
Size
823 B
Referenced Files
None
Subscribers
None

Compose.php

<?php
/**
* Test class to test rcmail_action_mail_compose
*
* @package Tests
*/
class Actions_Mail_Compose extends ActionTestCase
{
/**
* Class constructor
*/
function test_class()
{
$object = new rcmail_action_mail_compose;
$this->assertInstanceOf('rcmail_action', $object);
}
/**
* Test quote_text() method
*/
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);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Apr 5, 10:32 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18801189
Default Alt Text
Compose.php (823 B)

Event Timeline