Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F1140792
RomanizeModifierTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
764 B
Subscribers
None
RomanizeModifierTest.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Zed\Tests\Engines\Templates\Smarty\Plugins
;
class
RomanizeModifierTest
extends
SmartyPluginTestCase
{
public
function
setUp
()
:
void
{
$this
->
requirePlugin
(
'modifier'
,
'romanize'
);
}
public
function
testPluginWithCorrectValueAsInteger
()
{
$this
->
assertEquals
(
'iv'
,
smarty_modifier_romanize
(
4
));
}
public
function
testPluginWithCorrectValueAsString
()
{
$this
->
assertEquals
(
'iv'
,
smarty_modifier_romanize
(
'4'
));
}
public
function
testPluginWithNonNumeric
()
{
$this
->
assertEquals
(
'quux'
,
smarty_modifier_romanize
(
'quux'
));
}
public
function
testPluginWithNegativeNumber
()
{
$this
->
assertSame
(
'-4'
,
smarty_modifier_romanize
(-
4
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 29, 09:14 (5 h, 30 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21367
Default Alt Text
RomanizeModifierTest.php (764 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment