. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(AbstractElement::class)] #[CoversClass(DateValue::class)] class DateValueTest extends AbstractElementTestCase { /** * Standard tests for all elements. */ public static function setupBeforeClass(): void { parent::setUpBeforeClass(); static::$element = new DateValue('label'); } public function testEscapeAtSigns(): void { self::assertSame( '@#DJULIAN@ 44 B.C. INT (says test@@example.com)', static::$element->escape('@#DJULIAN@ 44 B.C. INT (says test@example.com)') ); } }