Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117751192
Cache.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
727 B
Referenced Files
None
Subscribers
None
Cache.php
View Options
<?php
/**
* Test class to test rcube_cache class
*
* @package Tests
*/
class
Framework_Cache
extends
PHPUnit\Framework\TestCase
{
/**
* Test factory method
*/
function
test_factory
()
{
$object
=
rcube_cache
::
factory
(
'db'
,
1
);
$this
->
assertInstanceOf
(
'rcube_cache_db'
,
$object
,
"Class constructor"
);
$this
->
assertInstanceOf
(
'rcube_cache'
,
$object
,
"Class constructor"
);
}
/**
* key_name() method
*/
function
test_key_name
()
{
$this
->
assertSame
(
'test'
,
rcube_cache
::
key_name
(
'test'
));
$params
=
[
'test1'
=>
'test2'
];
$this
->
assertSame
(
'test.ad0234829205b9033196ba818f7a872b'
,
rcube_cache
::
key_name
(
'test'
,
$params
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 2:55 AM (4 d, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ce/f7/a4c1e9a4746f8e8332c376720df8
Default Alt Text
Cache.php (727 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline