A
A
AlexKuznec2017-05-27 16:01:06
Yii
AlexKuznec, 2017-05-27 16:01:06

Why doesn't Codeception work on a pure Yii2 template?

Installing the yii2-app-basic template via Composer.
Without changing anything, I run any of the commands:

codecept build
codecept run

And I get:
PHP Fatal error: Cannot declare class Codeception\TestCase\Test, because the name is already in use in C:\server\data\htdocs\trycodecept\vendor\codeception\base\shim.php on line 58

The same goes for the Advanced template. Codeception updated today.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexKuznec, 2017-05-27
@AlexKuznec

I lost it myself, according to some instructions I installed Codeception globally, in a separate directory.
It turns out that everything is built into the template and you just need to run
vendor/bin/codecept run

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question