コード例 #1
0
 public function ok()
 {
     if ($this->theMessage == "load jamed") {
         MusicPlayer::stop();
     }
     PHPFIT_Fixture_Action::$actor = $this->caller;
 }
コード例 #2
0
 /**
  * @param PHPFIT_Parse $cells
  */
 public function doCells($cells)
 {
     $start = $this->theTime();
     parent::doCells($cells);
     /*        
             $cells->last()->more = $this->td(date('H:m:s', $start));
             $split = $this->theTime() - $start;
             if ($split < 1.0) {
                 $text = "&nbsp;";
             } else {
                 $text = $split;
             }
             $cells->last()->more = $this->td($text);
     */
 }
コード例 #3
0
 public static function failLoadJam()
 {
     PHPFIT_Fixture_Action::$actor = new Dialog("load jamed", PHPFIT_Fixture_Action::$actor);
 }
コード例 #4
0
 /**
  * Implements start fixture
  *
  * Start aClass - Subsequent commands are directed to an instance of
  * aClass. This is similar to navigating to a particular GUI screen.
  *
  */
 public function start()
 {
     $aClass = $this->cells->more->text();
     self::$actor = $this->loadFixture($aClass);
 }