. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\TestCase; /** * Test harness for the class DateValue * * @covers \Fisharebest\Webtrees\Elements\AbstractElement * @covers \Fisharebest\Webtrees\Elements\DateValue */ class DateValueTest extends TestCase { /** * @return void */ public function testEscape(): void { $element = new DateValue(''); self::assertSame( '@#DJULAIN@ 44 B.C. INT (says test@@example.com)', $element->escape('@#DJULAIN@ 44 B.C. INT (says test@example.com)') ); } }