public function testStepsWithFriends() { $code = file_get_contents(\Codeception\Configuration::projectDir() . 'tests/web/FriendsCept.php'); $this->assertContains('$I->haveFriend', $code); $this->parser->parseSteps($code); $text = $this->scenario->getText(); $this->assertContains("jon does", $text); $this->assertContains("I have friend", $text); $this->assertContains("back to me", $text); }