Beispiel #1
0
 /**
  * Stores the time from the running timer, and starts a new timer.
  *
  * Stores the time for $oldTimer (maybe omitted if only 1 timer is running)
  * and starts a new timer with $newName.
  *
  * @param string      $newName
  * @param string|bool $oldName
  */
 public function switchTimer($newName, $oldName = false)
 {
     $this->timer->switchTimer($newName, $oldName);
 }
 public function testSwitchTimerNochSuchOldTimerFailure()
 {
     $time = new ezcDebugTimer();
     $time->startTimer('foo', 'foogroup');
     $this->assertFalse($time->switchTimer('bar', 'baz'));
 }