コード例 #1
0
ファイル: InjectorTest.php プロジェクト: jubinpatel/horde
 public function testShouldProvideMagicFactoryMethodForBinderAdditionWhereBinderHasDependencies()
 {
     $injector = new Horde_Injector(new Horde_Injector_TopLevel());
     // binds a Horde_Injector_Binder_Mock object
     $this->assertInstanceOf('Horde_Injector_Binder_MockWithDependencies', $injector->bindMockWithDependencies('BOUND_INTERFACE', 'PARAMETER1'));
     $this->assertInstanceOf('Horde_Injector_Binder_MockWithDependencies', $injector->getBinder('BOUND_INTERFACE'));
 }