public function testCantMakeObject_FromRegistered_InvalidBinding() { $name = 'NotFound'; $nonExistentClass = 'alexlvcom\\ServiceContainer\\Testing\\Stubs\\NotFound'; $this->setExpectedException('alexlvcom\\ServiceContainer\\ContainerResolveException', "Unable to resolve {$name}: {$nonExistentClass} is not a callable neither is pre-created object or path to the class."); $this->containerMock->bind($name, $nonExistentClass); $this->containerMock->make($name); }