I am excited to hear the news of Yii2 beta release and can’t wait to download it for a try.
So far I manage to setup both Yii basic and advanced app following the instructions on the github using composer approach.
However, i failed to do the testing using codeception. The installation seems ok, but when I run below, i hit error.
cd frontend
../vendor/bin/codecept build
../vendor/bin/codecept run
Codeception PHP Testing Framework v1.8.5
Powered by PHPUnit 3.7.37 by Sebastian Bergmann.
[Exception]
DateTime::__construct(): It is not safe to rely on the system's timezone se
ttings. You are *required* to use the date.timezone setting or the date_def
ault_timezone_set() function. In case you used any of those methods and you
are still getting this warning, you most likely misspelled the timezone id
entifier. We selected the timezone 'UTC' for now, but please set date.timez
one to select your timezone.
run [-c|--config="..."] [--report] [--html] [--xml] [--tap] [--json] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage] [--no-exit] [--defer-flush] [-g|--group="..."] [-s|--skip="..."] [--skip-group="..."] [--env="..."] [suite] [test]
Anybody encounter that before and please shed lights how to resolve it.
By the way, I am new to codeception but am looking if there is a web-based test report rather than below console output, out of box from Yii2?
Acceptance Tests (5) -------------------------------------------------------------------------------
Trying to ensure that signup works (frontend.tests.acceptance.SignupCest.testUserSignup) Ok
Trying to ensure that about works (AboutCept.php) Ok
Trying to ensure that contact works (ContactCept.php) Ok
Trying to ensure that home page works (HomeCept.php) Ok
Trying to ensure login page works (LoginCept.php) Ok
----------------------------------------------------------------------------------------------------
Functional Tests (5) -------------------------------------------------------------------------------
Trying to ensure that signup works (frontend.tests.functional.SignupCest.testUserSignup) Ok
Trying to ensure that about works (AboutCept.php) Ok
Trying to ensure that contact works (ContactCept.php) Ok
Trying to ensure that home page works (HomeCept.php) Ok
Trying to ensure login page works (LoginCept.php) Ok
----------------------------------------------------------------------------------------------------
Unit Tests (6) -----------------------------------------------------------------------------------------------------------------------
Trying to test contact (frontend\tests\unit\models\ContactFormTest::testContact) Ok
Trying to test send email wrong user (frontend\tests\unit\models\PasswordResetRequestFormTest::testSendEmailWrongUser) Ok
Trying to test send email correct user (frontend\tests\unit\models\PasswordResetRequestFormTest::testSendEmailCorrectUser) Ok
Trying to test reset password (frontend\tests\unit\models\ResetPasswordFormTest::testResetPassword) Ok
Trying to test correct signup (frontend\tests\unit\models\SignupFormTest::testCorrectSignup) Ok
Trying to test not correct signup (frontend\tests\unit\models\SignupFormTest::testNotCorrectSignup) Ok
--------------------------------------------------------------------------------------------------------------------------------------
Time: 4.99 seconds, Memory: 46.00Mb