public function testBasicReject() { $expected = ""; list($class_id, $method_id, $args) = $this->protocol091->basicReject(1, true); $this->assertEquals($expected, $args); $expected = ""; list($class_id, $method_id, $args) = $this->protocol091->basicReject(1, false); $this->assertEquals($expected, $args); }
/** * @param string $vhost * @param string $reserved1 * @param bool $reserved2 */ protected function open(string $vhost, string $reserved1 = '', bool $reserved2 = false) { (yield $this->sendChannelMethodFrame(0, $this->protocolWriter->connectionOpen($vhost, $reserved1, $reserved2))); }