I have acceptance.suite.yml which looks like this.
platform: Windows 7
platform: Windows 8.1
And I run the test case as so:
$ codecept run acceptance UserCest.php --env firefox --env chrome
Now, I was wondering if there is a way to get env within test itself during run time.
class UserCest extends BaseAcceptance
public function login(AcceptanceTester $I)
$env = $I->getConfig('env');
//something like this ?? which would return 'firefox' for the instance it is running as environment firefox.