I'm trying to learn Codeception and am using it with Yii (which i'm also new to).
Straight out of the box, i'm having some issues with running the tests. I've walked through the quickstart guide and when I run it through terminal, I get this error:
Codeception PHP Testing Framework v1.6.6
Powered by PHPUnit 3.7.24 by Sebastian Bergmann.
[Exception]
DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date
_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the tim
ezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead
Now, I'm using MAMP, and have set the timezone in my php.ini file. I've also tried manually setting it in the index.php file with _default_timezone_set('America/Chicago'); and I still get the same message.
As I'm using Yii, I've tried enabling the Yii module for Codeception, but that doesn't seem to make any difference.
Update
I've tried installing codeception on a non-yii based project, so a straight forward website and I get the exact same error as above.
date_default_timezone_set(notice how the preceding line ends in your error message, probably due to terminal size).