function it_waits_for_data(ChannelInterface $channel) { $channel->wait(null, true)->shouldBeCalled(); $this->wait(); }