public function testIsSharedThrowsExceptionWhenPassedNameWhichDoesNotExistAnywhere() { $this->setExpectedException('Zend\\ServiceManager\\Exception\\ServiceNotFoundException'); $this->serviceManager->isShared('foobarbazbat'); }