082a0130c2
Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
25 lines
639 B
PHP
25 lines
639 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Assetic package, an OpenSky project.
|
|
*
|
|
* (c) 2010-2012 OpenSky Project Inc
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Assetic\Test\Filter;
|
|
|
|
abstract class BaseImageFilterTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
static public function assertMimeType($expected, $data, $message = null)
|
|
{
|
|
$finfo = new \finfo(FILEINFO_MIME_TYPE);
|
|
|
|
$actual = file_exists($data) ? $finfo->file($data) : $finfo->buffer($data);
|
|
|
|
self::assertEquals($expected, $actual, $message);
|
|
}
|
|
}
|