public function testCloseChannel() { $client = new Client(); $this->assertInstanceof("Bunny\\Channel", $ch = $client->connect()->channel()); $this->assertInstanceOf("Bunny\\Protocol\\MethodChannelCloseOkFrame", $client->closeChannel($ch)); $client->disconnect(); }