/** * Parses the buffer stream for a system exclusive event * * @since 1.0 * @uses getDelta() * @uses read() * @uses EventFactory::createSystemExclusiveEvent() * * @return SystemExclusiveEvent */ protected function parseSystemExclusiveEvent() { $length = $this->getDelta(); $data = $this->read($length, true); return $this->eventFactory->createSystemExclusiveEvent(str_split($data)); }
public function testCreateSystemExclusiveEvent() { $this->assertInstanceOf('\\Tmont\\Midi\\Event\\SystemExclusiveEvent', $this->obj->createSystemExclusiveEvent(array('f'))); }