PhpPresentation\Tests\Shape\MediaTest::testMimeType PHP Method

testMimeType() public method

public testMimeType ( )
    public function testMimeType()
    {
        $object = new Media();
        $object->setPath('file.mp4', false);
        $this->assertEquals('video/mp4', $object->getMimeType());
        $object->setPath('file.ogv', false);
        $this->assertEquals('video/ogg', $object->getMimeType());
        $object->setPath('file.wmv', false);
        $this->assertEquals('video/x-ms-wmv', $object->getMimeType());
        $object->setPath('file.xxx', false);
        $this->assertEquals('application/octet-stream', $object->getMimeType());
    }