. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(AbstractElement::class)] #[CoversClass(EventsRecorded::class)] class EventsRecordedTest extends AbstractElementTestCase { /** * Standard tests for all elements. */ public static function setupBeforeClass(): void { parent::setUpBeforeClass(); self::$element = new EventsRecorded('label'); } public function testCanonical(): void { self::assertSame('FOO,BAR,BAZ', self::$element->canonical('Foo , bAr, baZ')); self::assertSame('FOO,BAR,BAZ', self::$element->canonical(', Foo, bAr ,baZ, ')); } }