Example #1
0
 public function testToBinaryWithAsciiText()
 {
     $this->obj->expects($this->once())->method('getSubtype')->will($this->returnValue(MetaEventType::SEQUENCE_NUMBER));
     $this->assertEquals(pack('C*', EventType::META, MetaEventType::SEQUENCE_NUMBER, 0x81, 0x7f) . str_repeat('x', 255), $this->obj->toBinary());
 }