Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F950336
RomanizeModifierTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
754 B
Subscribers
None
RomanizeModifierTest.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Zed\Tests\Engines\Templates\Smarty\Plugins
;
class
RomanNumeralsTest
extends
SmartyPluginTestCase
{
public
function
setUp
()
{
$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
Apr 27 2025, 08:48 (34 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21640
Default Alt Text
RomanizeModifierTest.php (754 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment