mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
24 lines
536 B
PHP
24 lines
536 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Border;
|
|
|
|
use Alchemy\Phrasea\Border\CustomExtensionGuesser;
|
|
|
|
/**
|
|
* @group functional
|
|
* @group legacy
|
|
*/
|
|
class CustomExtensionGuesserTest extends \PhraseanetTestCase
|
|
{
|
|
public function testGuess()
|
|
{
|
|
$conf = [
|
|
'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'));
|
|
}
|
|
}
|