mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-12 11:06:48 +01:00
* use fixed "roundcube/plugin-installer" * Use composer autoloader for plugins testing * cherrypick remaining from 9241 related with testing * minor legacy autoload improvements
24 lines
529 B
PHP
24 lines
529 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class Identicon_IdenticonEngine extends TestCase
|
|
{
|
|
/**
|
|
* Test icon generation
|
|
*/
|
|
public function test_icon_generation()
|
|
{
|
|
if (!function_exists('imagepng')) {
|
|
$this->markTestSkipped();
|
|
}
|
|
|
|
$engine = new identicon_engine('test@domain.com', 10);
|
|
|
|
$icon = $engine->getBinary();
|
|
|
|
$this->assertMatchesRegularExpression('/^\x89\x50\x4E\x47/', $icon);
|
|
$this->assertSame('image/png', $engine->getMimetype());
|
|
}
|
|
}
|