[BUGFIX] Unit test checkDateWithInvalidDateValues fails with PHP warning
authorSteffen Gebert <steffen.gebert@typo3.org>
Sun, 17 Jul 2011 17:33:59 +0000 (19:33 +0200)
committerHelmut Hummel <typo3@helmut-hummel.de>
Sun, 17 Jul 2011 19:57:13 +0000 (21:57 +0200)
commit57327fe38dc1019cc89459fef6170908dcd213e2
tree3e58cceaf250fea307003de28057c2c182e99823
parentd3042d3896522905b12c5979fc14af9c4e70f8e7
[BUGFIX] Unit test checkDateWithInvalidDateValues fails with PHP warning

If 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.

Change-Id: I7c6b9f587b574334e0096c800de98cb6ffc2033f
Resolves: #28271
Reviewed-on: http://review.typo3.org/3388
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/scheduler/class.tx_scheduler_module.php