function it_connects_and_disconnects_with_default_options() { $this->connect(); $this->shouldHaveType('Nats\\Connection'); $this->isConnected()->shouldBe(true); $this->close(); $this->isConnected()->shouldBe(false); }