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 testGetNote_Undefined() { $this->assertThat($this->object->getNote('undefined'), $this->equalTo(null)); $this->assertThat($this->object->getNote('undefined', 'default'), $this->equalTo('default')); }