ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMimeTypeTest Class Reference

Class ilMimeTypeTest. More...

+ Inheritance diagram for ilMimeTypeTest:
+ Collaboration diagram for ilMimeTypeTest:

Public Member Functions

 testMimeTypeForYoutubeUrlCouldBeCorrectlyDetected ()
 
 testMimeTypeForVimeoUrlCouldBeCorrectlyDetected ()
 

Detailed Description

Class ilMimeTypeTest.

Definition at line 9 of file ilMimeTypeTest.php.

Member Function Documentation

◆ testMimeTypeForVimeoUrlCouldBeCorrectlyDetected()

ilMimeTypeTest::testMimeTypeForVimeoUrlCouldBeCorrectlyDetected ( )

Definition at line 28 of file ilMimeTypeTest.php.

References ilMimeTypeUtil\APPLICATION__OCTET_STREAM, and ilMimeTypeUtil\lookupMimeType().

29  {
30  $expected = 'video/vimeo';
32  'https://vimeo.com/180157999',
34  );
35 
36  $this->assertEquals($expected, $actual);
37  }
static lookupMimeType($path_to_file, $fallback=self::APPLICATION__OCTET_STREAM, $a_external=null)
+ Here is the call graph for this function:

◆ testMimeTypeForYoutubeUrlCouldBeCorrectlyDetected()

ilMimeTypeTest::testMimeTypeForYoutubeUrlCouldBeCorrectlyDetected ( )

Definition at line 14 of file ilMimeTypeTest.php.

References ilMimeTypeUtil\APPLICATION__OCTET_STREAM, and ilMimeTypeUtil\lookupMimeType().

15  {
16  $expected = 'video/youtube';
18  'https://www.youtube.com/watch?v=WSgP85kr6eU',
20  );
21 
22  $this->assertEquals($expected, $actual);
23  }
static lookupMimeType($path_to_file, $fallback=self::APPLICATION__OCTET_STREAM, $a_external=null)
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: