Files
Phraseanet/tests/Alchemy/Phrasea/Media/Subdef/VideoTest.php
2012-05-10 17:08:01 +02:00

41 lines
909 B
PHP

<?php
namespace Alchemy\Phrasea\Media\Subdef;
class VideoTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Video
*/
protected $object;
protected function setUp()
{
$this->object = new Video;
}
/**
* @covers Alchemy\Phrasea\Media\Subdef\Video::getType
*/
public function testGetType()
{
$this->assertEquals(Subdef::TYPE_VIDEO, $this->object->getType());
}
/**
* @covers Alchemy\Phrasea\Media\Subdef\Video::getDescription
*/
public function testGetDescription()
{
$this->assertTrue(is_string($this->object->getDescription()));
}
/**
* @covers Alchemy\Phrasea\Media\Subdef\Video::getMediaAlchemystSpec
*/
public function testGetMediaAlchemystSpec()
{
$this->assertInstanceOf('\\MediaAlchemyst\\Specification\\Video', $this->object->getMediaAlchemystSpec());
}
}