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