예제 #1
0
 public function testConstructorInitializesMessageWithProtocolVersion()
 {
     $r = new puzzle_message_Request('GET', '', array(), null, array('protocol_version' => 10));
     $this->assertEquals(10, $r->getProtocolVersion());
 }
예제 #2
0
 public function testInitializesMessageWithProtocolVersionOption()
 {
     $m = new puzzle_message_Request('GET', '/', array(), null, array('protocol_version' => '10'));
     $this->assertEquals(10, $m->getProtocolVersion());
 }