I start to learn codeception recently, and I create a new acceptance script which using the webdriver for Chrome. When i create a new php file. It is automaticly create a class which include the funtions like below, and I follow the instruction to write my script in the function tryToTest
public function _before(AcceptanceTester $I)
public function tryToTest(AcceptanceTester $I)
But my instructor's scripts created not in any function and like this:
$I = new AcceptanceTester($scenario)
It is in the php file directly and it can run scuuessfully.
My question is, why my instructor's script don't need to put in the function and can run succesfully? Does these have other setting for this? Thanks a lot