Issue Bug Closed

#28271Unit test checkDateWithInvalidDateValues fails with PHP warning

Steffen Gebert 07/17/11, 19:33 updated 12/10/13, 01:28

Description

If your TYPO3 is configured to not suppress PHP warnings, the unit test checkDateWithInvalidDateValues with data set "Not Good" of Testsuite tx_scheduler_ModuleTest fails.

As it tries to insert non-numeric values into mkstring(), this warning is raised.

We can safely suppress the output of PHP warnings for the mktime call, as afterwards its return value is checked.

Reviews 1