By cloning the DateTime instance I was able to get all the tests to run on PHP 7. Somehow the setDate method did not change the value of $tdate.
This is not the most beautiful solution but it works. Maybe someone else has an idea why exactly setDate does not change the value and has a better fix for it.
By cloning the
DateTime
instance I was able to get all the tests to run on PHP 7. Somehow thesetDate
method did not change the value of$tdate
.This is not the most beautiful solution but it works. Maybe someone else has an idea why exactly
setDate
does not change the value and has a better fix for it.