/** * Test adding new containers to the registry */ public function testAddAContainerToTheRegistry() { $this->assertFalse(\Tinker\Di\IoCRegistry::registered('IoCRegistryMockTestObjectToBeAdded')); \Tinker\Di\IoCRegistry::register('IoCRegistryMockTestObjectToBeAdded', function () { $IoCRegistryMockTestObjectToBeAdded = new IoCRegistryMockTestObjectToBeAdded(); return $IoCRegistryMockTestObjectToBeAdded; }); $this->assertArrayHasKey('IoCRegistryMockTestObjectToBeAdded', \Tinker\Di\IoCRegistry::registry()); }