예제 #1
0
파일: Example.php 프로젝트: janvoracek/phew
 public function run(Reporter $reporter)
 {
     $fn = $this->fn;
     if (is_callable($fn)) {
         try {
             $fn();
             $reporter->reportSucceededExample($this);
         } catch (\Exception $ex) {
             $reporter->reportFailedExample($this, $ex);
         }
     }
 }