Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120836487
OutputCli.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
701 B
Referenced Files
None
Subscribers
None
OutputCli.php
View Options
<?php
/**
* Test class to test rcmail_output_cli class
*
* @package Tests
*/
class
Rcmail_RcmailOutputCli
extends
ActionTestCase
{
/**
* Test show_message() method
*/
function
test_show_message
()
{
$rcmail
=
rcube
::
get_instance
();
$output
=
new
rcmail_output_cli
();
ob_start
();
$output
->
show_message
(
'unknown'
);
$out
=
ob_get_contents
();
ob_end_clean
();
$this
->
assertSame
(
'[NOTICE] unknown'
,
trim
(
$out
));
ob_start
();
$output
->
show_message
(
'errortitle'
,
'error'
);
$out
=
ob_get_contents
();
ob_end_clean
();
$this
->
assertSame
(
'[ERROR] An error occurred!'
,
trim
(
$out
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 1:31 PM (12 h, 55 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1a/be/f3da39e4a856491e1165cc7812d3
Default Alt Text
OutputCli.php (701 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline