public function testGetThrowsExceptionIfFailedBuildService() { $locator = new Services(); $locator->set('foo', 'foo'); $this->setExpectedException('RuntimeException'); $locator->get('foo'); }