Esempio n. 1
0
 public function test__close()
 {
     $data = md5(microtime() . rand());
     $frameData = pack("CC", 0x88, strlen($data)) . $data;
     $closeFrame = Frame::close($data);
     $this->assertEquals($frameData, $closeFrame->encode());
 }