public function testWithUnrecognizedArguments() { $definition = new ComponentDefinition('HelloClass'); $definition->addArgument('unrecognized', null)->setTransient(); $this->setExpectedException('InvalidArgumentException'); $adapter = $this->object->convert($definition); }
public function testAddArgument() { $argument = array('component', 'some_component_key'); $this->object->addArgument($argument[0], $argument[1]); $this->assertThat(array($argument), $this->equalTo($this->object->getArguments())); }