Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120836706
IdenticonEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
601 B
Referenced Files
None
Subscribers
None
IdenticonEngine.php
View Options
<?php
class
Identicon_IdenticonEngine
extends
PHPUnit\Framework\TestCase
{
static
function
setUpBeforeClass
()
{
include_once
__DIR__
.
'/../identicon_engine.php'
;
}
/**
* Test icon generation
*/
function
test_icon_generation
()
{
if
(!
function_exists
(
'imagepng'
))
{
$this
->
markTestSkipped
();
}
$engine
=
new
identicon_engine
(
'test@domain.com'
,
10
);
$icon
=
$engine
->
getBinary
();
$this
->
assertRegExp
(
'/^
\x
89
\x
50
\x
4E
\x
47/'
,
$icon
);
$this
->
assertSame
(
'image/png'
,
$engine
->
getMimetype
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 1:34 PM (11 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18802257
Default Alt Text
IdenticonEngine.php (601 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline