/** * {@inheritDoc} */ public function count() { return $this->storage->count($this); }
function it_asks_storage_for_queue_length(QueueStorageInterface $storage) { $storage->count($this)->shouldBeCalled()->willReturn(61); $this->count()->shouldReturn(61); }