You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
450 B
18 lines
450 B
|
17 years ago
|
<?php
|
||
|
|
require_once(api_get_path(LIBRARY_PATH).'media.lib.php');
|
||
|
|
define('FLASH_PLAYER_AUDIO', 'FLASH_PLAYER_AUDIO');
|
||
|
|
define('FLASH_PLAYER_VIDEO', 'FLASH_PLAYER_VIDEO');
|
||
|
|
define('SCRIPT_SWFOBJECT', 'SCRIPT_SWFOBJECT');
|
||
|
|
|
||
|
|
|
||
|
|
class TestMedia extends UnitTestCase {
|
||
|
|
|
||
|
|
public function testget_path() {
|
||
|
|
$media_resource='';
|
||
|
|
$res=Media::get_path($media_resource,$path_type = REL_PATH);
|
||
|
|
$this->assertTrue(is_string($res));
|
||
|
|
//var_dump($res);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
?>
|