/** * @expectedException InvalidArgumentException */ public function testTooManyArrayValues() { $injector = new Injector(); $config = array('TestService' => array('class' => 'TestObject', 'calls' => array(array('method', array('args'), 'what is this?')))); $injector->load($config); $item = $injector->get('TestService'); }