/** disabled for now as the functionality has changed */ private function gettingUnregisteredWithOneInAnotherContainer() { $one = ServiceContainer::one(); $two = ServiceContainer::two(); $two->service = new ArrayObject(); try { $one->service; $this->assert(false, 'The unregistered service "service" should throw an exception if it is not registered.'); } catch (Exception $e) { $this->assert(preg_match('/however/', $e->getMessage()), 'The exception should have notified the user that another container contains a service with the same name.'); } }