function it_returns_services_which_are_set_using_tags($service) { $obj = new \StdClass(); $this->set('some_service', $obj, ['some_tag']); $this->getByTag('some_tag')->shouldReturn([$obj]); }