mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
20 lines
502 B
PHP
20 lines
502 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Border;
|
|
|
|
use Alchemy\Phrasea\Border\CustomExtensionGuesser;
|
|
|
|
class CustomExtensionGuesserTest extends \PhraseanetPHPUnitAbstract
|
|
{
|
|
public function testGuess()
|
|
{
|
|
$conf = array(
|
|
'mpeg' => 'video/x-romain-neutron',
|
|
);
|
|
|
|
$guesser = new CustomExtensionGuesser($conf);
|
|
$this->assertNull($guesser->guess(__FILE__));
|
|
$this->assertEquals('video/x-romain-neutron', $guesser->guess('/path/to/video.mpeg'));
|
|
}
|
|
}
|