Exemple #1
0
 /**
  * Prints a file header
  *
  * @since 1.0
  * @uses  Formatter::beforeFile()
  * @uses  Formatter::beforeFileHeader()
  * @uses  Formatter::beforeChunk()
  * @uses  Formatter::formatFileHeader()
  * @uses  Formatter::afterChunk()
  * @uses  Formatter::afterFileHeader()
  * @uses  printData()
  * 
  * @param  FileHeader $fileHeader
  */
 protected function printFileHeader(FileHeader $fileHeader)
 {
     $this->printData($this->formatter->beforeFile());
     $this->printData($this->formatter->beforeFileHeader($fileHeader));
     $this->printData($this->formatter->beforeChunk($fileHeader));
     $this->printData($this->formatter->formatFileHeader($fileHeader));
     $this->printData($this->formatter->afterChunk($fileHeader));
     $this->printData($this->formatter->afterFileHeader($fileHeader));
 }
Exemple #2
0
 public function testBeforeChunk()
 {
     $chunk = $this->getMock('Tmont\\Midi\\Chunk', array('getData', '__toString', 'toBinary', 'getLength'));
     $this->assertNull($this->obj->beforeChunk($chunk));
 }