senaranya / HL7

PHP library for Parsing, Generation and Sending HL7 v2 messages
MIT License
183 stars 86 forks source link

fix: Replace deprecated strftime in php 8.1 with date() #78

Closed fernando-rivas-smtp closed 2 years ago

senaranya commented 2 years ago

Please add this assertion in the test MSH_formed_without_any_arguments_should_have_mandatory_fields_set_automatically after line 20 (i.e. after the line containing self::assertNotEmpty($msh->getDateTimeOfMessage())):

        self::assertMatchesRegularExpression('/\d{14}/', $msh->getDateTimeOfMessage());
fernando-rivas-smtp commented 2 years ago

Please add this assertion in the test MSH_formed_without_any_arguments_should_have_mandatory_fields_set_automatically after line 20 (i.e. after the line containing self::assertNotEmpty($msh->getDateTimeOfMessage())):

        self::assertMatchesRegularExpression('/\d{14}/', $msh->getDateTimeOfMessage());

done!