/** * @test * it should allow binding a concrete class non extending the bound class */ public function it_should_allow_binding_a_concrete_class_non_extending_the_bound_class() { $bindingsResolver = $this->getMock('tad_DI52_Bindings_ResolverInterface'); $bindingsResolver->expects($this->once())->method('bind')->with('ConcreteClassOne', 'ObjectOne', null); $bindingsResolver->expects($this->once())->method('resolve')->with('ConcreteClassOne'); $container = new tad_DI52_Container(); $container->setBindingsResolver($bindingsResolver); $container->bind('ConcreteClassOne', 'ObjectOne'); $container->make('ConcreteClassOne'); }