. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\TestCase; /** * Test harness for the class LanguageId * * @covers \Fisharebest\Webtrees\Elements\AbstractElement * @covers \Fisharebest\Webtrees\Elements\LanguageId */ class LanguageIdTest extends TestCase { /** * @return void */ public function testCanonical(): void { $element = new LanguageId(''); self::assertSame('English', $element->canonical("\t English\t ")); self::assertSame('Klingon', $element->canonical('kLiNgOn')); self::assertSame('Anglo-Saxon', $element->canonical('anglo-saxon')); self::assertSame('Catalan_Spn', $element->canonical('CATALAN_SPN')); } }