Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120825494
ImapGeneric.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
928 B
Referenced Files
None
Subscribers
None
ImapGeneric.php
View Options
<?php
/**
* Test class to test rcube_imap_generic class
*
* @package Tests
*/
class
Framework_ImapGeneric
extends
PHPUnit_Framework_TestCase
{
/**
* Class constructor
*/
function
test_class
()
{
$object
=
new
rcube_imap_generic
;
$this
->
assertInstanceOf
(
'rcube_imap_generic'
,
$object
,
"Class constructor"
);
}
/**
* Test for uncompressMessageSet
*/
function
test_uncompressMessageSet
()
{
$result
=
rcube_imap_generic
::
uncompressMessageSet
(
null
);
$this
->
assertSame
(
array
(),
$result
);
$this
->
assertCount
(
0
,
$result
);
$result
=
rcube_imap_generic
::
uncompressMessageSet
(
'1'
);
$this
->
assertSame
(
array
(
1
),
$result
);
$this
->
assertCount
(
1
,
$result
);
$result
=
rcube_imap_generic
::
uncompressMessageSet
(
'1:3'
);
$this
->
assertSame
(
array
(
1
,
2
,
3
),
$result
);
$this
->
assertCount
(
3
,
$result
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 10:39 AM (7 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18717660
Default Alt Text
ImapGeneric.php (928 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline