. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; /** * Test harness for the class MultimediaFormat * * @covers \Fisharebest\Webtrees\Elements\AbstractElement * @covers \Fisharebest\Webtrees\Elements\MultimediaFormat */ class MultimediaFormatTest extends AbstractElementTest { /** * Standard tests for all elements. */ public static function setupBeforeClass(): void { parent::setUpBeforeClass(); self::$element = new MultimediaFormat('label'); } /** * @return void */ public function testCanonical(): void { self::assertSame('jpg', self::$element->canonical("jpg")); self::assertSame('jpg', self::$element->canonical("jpeg")); self::assertSame('jpg', self::$element->canonical("JPG")); self::assertSame('jpg', self::$element->canonical("JPEG")); self::assertSame('tif', self::$element->canonical("tif")); self::assertSame('tif', self::$element->canonical("tiff")); self::assertSame('tif', self::$element->canonical("TIF")); self::assertSame('tif', self::$element->canonical("TIFF")); self::assertSame('pdf', self::$element->canonical("pdf")); } }