Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Roundcube\Plugins\Tests; use PHPUnit\Framework\TestCase; class Identico..
Decoded Output download
<?php
namespace Roundcube\Plugins\Tests;
use PHPUnit\Framework\TestCase;
class IdenticonEngineTest extends TestCase
{
/**
* Test icon generation
*/
public function test_icon_generation()
{
if (!function_exists('imagepng')) {
$this->markTestSkipped();
}
$engine = new \identicon_engine('[email protected]', 10);
$icon = $engine->getBinary();
$this->assertMatchesRegularExpression('/^PNG/', $icon);
$this->assertSame('image/png', $engine->getMimetype());
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Roundcube\Plugins\Tests;
use PHPUnit\Framework\TestCase;
class IdenticonEngineTest extends TestCase
{
/**
* Test icon generation
*/
public function test_icon_generation()
{
if (!function_exists('imagepng')) {
$this->markTestSkipped();
}
$engine = new \identicon_engine('[email protected]', 10);
$icon = $engine->getBinary();
$this->assertMatchesRegularExpression('/^\x89\x50\x4E\x47/', $icon);
$this->assertSame('image/png', $engine->getMimetype());
}
}
Function Calls
None |
Stats
MD5 | 3c279e7210e63c0bbfc82a0343363996 |
Eval Count | 0 |
Decode Time | 97 ms |