Closed halmos closed 5 years ago
actually, it looks like it's just a minor issue with the generate:wpunit
command. The skeleton code needs to be updated for phpunit v8 so that the methods have a void
return type set. ie public function setUp()
-> public function setUp() : void
Thanks for reporting the issue and thanks for providing a possible fix. I will look into this next and push a fix.
Environment OS: Mac PHP version: 7.2 Installed Codeception version:3.0.1 Installed wp-browser version: 2.2.8 WordPress version:5.2 Local development environment: Local by Flywheel WordPress structure and management: default
Did you use the
codecept init wpbrowser
command? yesDid you take a look at Codeception and wp-browser documentation? yes
Codeception configuration file If you were able to complete the setup then paste, in a fenced YAML block, the content of your Codeception configuration file; remove any sensible data!
Suite configuration file If you're encountering an issue with a specific suite, please provide its configuration file.
Describe the issue you're encountering WPBrowser seems to be loading the TestCase for phpunit version < v8 (ie base) despite fact that phpunit version is 8.1.5
Output