public function phpFuncitons(CodeGuy $I) { $I->execute(function () { return strtoupper('hello'); }); $I->seeResultEquals('HELLO'); }
function testExecute() { $I = new CodeGuy($this->scenario); $I->execute(function () { PHPUnit_Framework_Assert::assertTrue(true); return true; }); $I->seeResultEquals(true); $this->runSteps(); }
public function goodByeWorld(\CodeGuy $I) { $I->execute(function () { return 2 + 2; })->seeResultNotEquals('3'); }