function it_gets_count_from_adapter(WorkerRegistryAdapterInterface $adapter) { $adapter->count()->shouldBeCalled(1)->willReturn(456); $this->count()->shouldReturn(456); }
/** * {@inheritDoc} */ public function count() { return $this->adapter->count(); }