. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; /** * Test harness for the class EventsRecorded * * @covers \Fisharebest\Webtrees\Elements\AbstractElement * @covers \Fisharebest\Webtrees\Elements\EventsRecorded */ class EventsRecordedTest extends AbstractElementTest { /** * Standard tests for all elements. */ public static function setupBeforeClass(): void { parent::setUpBeforeClass(); self::$element = new EventsRecorded('label'); } /** * @return void */ 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, ")); } }