Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
duplicate declaration of canSeeCookie() #5500
What are you trying to achieve?
I am trying to execute codeception with two comma-separated parameters:
./codecept.phar run -c ../.. --env fast,prod
What do you get instead?
PHP Fatal error: Cannot redeclare Company\Test\Site\_generated\AcceptanceTesterActions::canSeeCookie() in /Users/username/Sites/example.localhost/tests/_support/_generated/AcceptanceTesterActions.php on line 180
Everything works just fine if if execute it with only one --env parameter
class_name: AcceptanceTester modules: enabled: - WebDriver - Asserts
namespace: Company\Test\Site actor: Tester paths: tests: tests output: tests/_output data: tests/_data support: tests/_support envs: tests/_envs settings: shuffle: true extensions: enabled: - Codeception\Extension\RunFailed modules: config: WebDriver: url: 'http://example.localhost' browser: chrome env: local: stage: modules: config: WebDriver: url: 'http://prev.example.de' browser: chrome prod: modules: config: WebDriver: url: 'http://example.com' browser: chrome fast:
Have you tried to rebuild you generated fuctions, using
Here´s what we´ve leared so far:
The issue arrives whenever we try to run tests using multiple
running from inside
$ ./tools/codecept.phar run -c .. --env local,fast acceptance
For whatever reason,
It appears to me that something having to do with the CLI
generating the functions using
and then executing our files with the option
sets up the correct environment and works as expected.
the bug remains
I´m still pretty sure this is a bug.