First of all, sorry for my bad english.
I have a problem that is driving me nuts for about three days now.
I’m a beginner yii user, had played with it before but nothing deep.
Doing a fresh install of advanced template and running the
codecept build
at the folders of the apps on tests\codeception (console, backend and frontend) gives me the bellow output:
Building Actor classes for suites: acceptance, functional, unit
-> AcceptanceTesterActions.php generated successfully. 0 methods added
tests\codeception\backend\AcceptanceTester includes modules: PhpBrowser, tests\codeception\common\_support\FixtureHelper
AcceptanceTester.php created.
-> FunctionalTesterActions.php generated successfully. 0 methods added
tests\codeception\backend\FunctionalTester includes modules: Filesystem, Yii2, tests\codeception\common\_support\Fixture
Helper
FunctionalTester.php created.
-> UnitTesterActions.php generated successfully. 0 methods added
Warning: Invalid argument supplied for foreach() in C:\Users\roger\AppData\Roaming\Composer\vendor\codeception\codecepti
on\src\Codeception\Lib\Generator\Actions.php on line 74
Warning: Invalid argument supplied for foreach() in C:\Users\roger\AppData\Roaming\Composer\vendor\codeception\codecepti
on\src\Codeception\Lib\Generator\Actions.php on line 207
tests\codeception\backend\UnitTester includes modules:
UnitTester.php created.
I’m running it on a windows machine, but i’ve tried it on a ubuntu on a virtual machine and on a partitioned discs, all fresh installs and got the same problem.
Just for you to try to emulate the problem, these are the commands that I executed:
1. composer global require "fxp/composer-asset-plugin:~1.1.1"
2. composer create-project --prefer-dist yiisoft/yii2-app-advanced discounts
3. cd discounts
4. php init (development - yes)
5. php yii migrate
6. cd tests\codeception
7. php bin\yii migrate
6. cd backend
7. codecept build
Between steps 4 and 5 I’ve created the databases
discounts
and
discounts_tests
Thanks in advance.