예제 #1
0
 /**
  * Prints a delta time
  *
  * @since 1.0
  * @uses  Formatter::beforeDelta()
  * @uses  Formatter::beforeChunk()
  * @uses  Formatter::formatDelta()
  * @uses  Formatter::afterChunk()
  * @uses  Formatter::afterDelta()
  * @uses  printData()
  * 
  * @param  Delta $delta
  */
 protected function printDelta(Delta $delta)
 {
     $this->printData($this->formatter->beforeDelta($delta));
     $this->printData($this->formatter->beforeChunk($delta));
     $this->printData($this->formatter->formatDelta($delta));
     $this->printData($this->formatter->afterChunk($delta));
     $this->printData($this->formatter->afterDelta($delta));
 }
예제 #2
0
 public function testFormatDelta()
 {
     $delta = $this->getMock('Tmont\\Midi\\Delta', array(), array(), '', false);
     $this->assertNull($this->obj->formatDelta($delta));
 }