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