public function testWithMethodAfterConstruction()
 {
     $definition = new ComponentDefinition('HelloClass');
     $definition->addMethod('methodName')->setTransient();
     $adapter = $this->object->convert($definition);
     $methods = $adapter->getMethods();
     $this->assertThat($adapter, $this->isInstanceOf('MethodsAfterConstructionAdapter'));
     $this->assertThat($adapter->getAdapter(), $this->isInstanceOf('ConstructorComponentAdapter'));
     $this->assertThat(array(array('methodName', array())), $this->equalTo($methods));
 }
 public function testAddMethod()
 {
     $this->object->addMethod('method1');
     $this->object->addMethod('method2', array(array('component', 'component_key')));
     $this->assertThat(array(array('method1', array()), array('method2', array(array('component', 'component_key')))), $this->equalto($this->object->getMethods()));
 }