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