Skip to content

Can't build Actor classes #19083

@GrytsenkoAndrey

Description

@GrytsenkoAndrey

What steps will reproduce the problem?

Create new project
composer create-project yiisoft/yii2-app-basic ./
also added
composer require codeception/module-phpbrowser
file acceptance.suite.yml

actor: AcceptanceTester
modules:
    enabled:
        - PhpBrowser:
              url: http://localhost/

after command
vendor/bin/codecept build
I got error:

Fatal error: Type of Codeception\Module\PhpBrowser::$client must not be defined (as in class Codeception\Lib\InnerBrowser) in /var/www/vendor/codeception/module-phpbrowser/src/Codeception/Module/PhpBrowser.php on line 81

What is the expected result?

report about build

What do you get instead?

Fatal error: Type of Codeception\Module\PhpBrowser::$client must not be defined (as in class Codeception\Lib\InnerBrowser) in /var/www/vendor/codeception/module-phpbrowser/src/Codeception/Module/PhpBrowser.php on line 81

Additional info

Q A
Yii version 2.0.43
PHP version 7.4
Operating system Ubuntu 21.04 64
Codeception 4.1.23
codeception/module-phpbrowser 2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions