PhpBench\Registry\Registry::assertServiceExists PHP Method

assertServiceExists() private method

private assertServiceExists ( $name )
    private function assertServiceExists($name)
    {
        if (!array_key_exists($name, $this->services)) {
            throw new \InvalidArgumentException(sprintf('%s service "%s" does not exist. Registered %s services: "%s"', $this->serviceType, $name, $this->serviceType, implode('", "', array_keys($this->services))));
        }
    }