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