mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
44 lines
991 B
PHP
44 lines
991 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Media\Subdef;
|
|
|
|
use Alchemy\Phrasea\Media\Subdef\Gif;
|
|
use Alchemy\Phrasea\Media\Subdef\Subdef;
|
|
|
|
class GifTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
/**
|
|
* @var Gif
|
|
*/
|
|
protected $object;
|
|
|
|
protected function setUp()
|
|
{
|
|
$this->object = new Gif;
|
|
}
|
|
|
|
/**
|
|
* @covers Alchemy\Phrasea\Media\Subdef\Gif::getType
|
|
*/
|
|
public function testGetType()
|
|
{
|
|
$this->assertEquals(Subdef::TYPE_ANIMATION, $this->object->getType());
|
|
}
|
|
|
|
/**
|
|
* @covers Alchemy\Phrasea\Media\Subdef\Gif::getDescription
|
|
*/
|
|
public function testGetDescription()
|
|
{
|
|
$this->assertTrue(is_string($this->object->getDescription()));
|
|
}
|
|
|
|
/**
|
|
* @covers Alchemy\Phrasea\Media\Subdef\Gif::getMediaAlchemystSpec
|
|
*/
|
|
public function testGetMediaAlchemystSpec()
|
|
{
|
|
$this->assertInstanceOf('\\MediaAlchemyst\\Specification\\Animation', $this->object->getMediaAlchemystSpec());
|
|
}
|
|
}
|