protected function setUp() { $this->container = new DependencyInjectionContainer(); $this->container->define('WeakPunch'); $this->container->define('StrongPunch'); $this->manyMethods = array(array('fromNothing', array()), array('fromSomePunch', array(new ComponentArgument('WeakPunch'))), array('fromWeakPunch', array(new ComponentArgument('MediumPunch'))), array('fromPunches', array())); $this->noMethods = array(); $this->against = new PunchReceiver(); $this->adapter = $this->getMock('IComponentAdapter'); $this->adapter->expects($this->any())->method('getInstance')->will($this->returnValue($this->against)); }