Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120824590
Text2html.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
943 B
Referenced Files
None
Subscribers
None
Text2html.php
View Options
<?php
/**
* Test class to test rcmail_action_utils_text2html
*
* @package Tests
*/
class
Actions_Utils_Text2html
extends
ActionTestCase
{
/**
* Class constructor
*/
function
test_class
()
{
$object
=
new
rcmail_action_utils_text2html
;
$this
->
assertInstanceOf
(
'rcmail_action'
,
$object
);
}
/**
* Test for run()
*/
function
test_run
()
{
$object
=
new
rcmail_action_utils_text2html
;
$input
=
"test plain text input"
;
$object
::
$source
=
$this
->
createTempFile
(
$input
);
$output
=
$this
->
initOutput
(
rcmail_action
::
MODE_HTTP
,
'utils'
,
'text2html'
);
$this
->
assertTrue
(
$object
->
checks
());
$this
->
runAndAssert
(
$object
,
OutputHtmlMock
::
E_EXIT
);
$this
->
assertSame
(
'<div class="pre">test plain text input</div>'
,
$output
->
output
);
$this
->
assertSame
([
'Content-Type: text/html; charset=UTF-8'
],
$output
->
headers
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 10:24 AM (16 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18809226
Default Alt Text
Text2html.php (943 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline