Commit 09a97e8
committed
Fix flaky timezone test fixture
As documented in [RunningTests], tests have to be written to be
independent of any php.ini file.
Without specifying the timezone, the var_dump() will make use of the
default timezone that may not be the expected "UTC" timezone.
This renders the test-cases flaky and will make them fail if the
`date.timezone` is different from the string "UTC".
Fix is to interpolate the timezone in the test fixture or to set
`date.timezone` to `UTC`.
[RunningTests]: docs/source/miscellaneous/running-tests.rst1 parent 580c9e3 commit 09a97e8
File tree
1 file changed
+2
-0
lines changed- Zend/tests/inheritance
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
0 commit comments