Пример #1
0
 public function run(Reporter $reporter)
 {
     $fn = $this->fn;
     if (is_callable($fn)) {
         try {
             $fn();
             $reporter->reportSucceededExample($this);
         } catch (\Exception $ex) {
             $reporter->reportFailedExample($this, $ex);
         }
     }
 }