public function testClose() { $this->client->get('willBeCanceledAnyway')->then(null, $this->expectCallableOnce()); $this->client->close(); $this->client->get('willBeRejectedRightAway')->then(null, $this->expectCallableOnce()); }