Project

General

Profile

Actions

Bug #28271

closed

Unit test checkDateWithInvalidDateValues fails with PHP warning

Added by Steffen Gebert over 13 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2011-07-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF