/**
  * @covers KJSencha\Annotation\Formhandler::decorateObject
  */
 public function testAnnotationDoesNotDecorateOthers()
 {
     /* @var $action \KJSencha\Direct\Remoting\Api\Object\Action */
     $action = $this->apiBuilder->buildAction('KJSenchaTestAsset\\Direct\\Form\\Profile');
     $this->assertTrue($action->hasMethod('getBasicInfo'));
     $this->assertNull($action->getMethod('getBasicInfo')->getOption('formHandler'));
 }
 /**
  * @covers \KJSencha\Direct\Remoting\Api\Factory\ApiBuilder::buildMethod
  */
 public function testMethodIgnoresConstructor()
 {
     /* @var $action \KJSencha\Direct\Remoting\Api\Object\Action */
     $action = $this->apiBuilder->buildAction('KJSenchaTestAsset\\FooService');
     $this->assertTrue($action->hasMethod('getBar'));
     $this->assertFalse($action->hasMethod('__construct'));
 }