Skip to content

ModuleException is undefined in FunctionalTesterActions class, because it's not imported with 'use' statement. #42

Closed
@Mikk36

Description

@Mikk36

What are you trying to achieve?

Use $I->amLoggedIn without IDE stating that it's throwing a ModuleException while not being able to mitigate it.

What do you get instead?

IDE error stating that ModuleException is undefined.

Details

  • Codeception version: 2.3.7
  • PHP Version: 7.0
  • Operating System: Ubuntu 16.04 LTS
  • Installation type: Composer

If an used module (Yii2 -> ModuleException, for example) uses some other classes as input, output or for throwing, those use statements should also be inserted into the generated ...Actions.php file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions