-
Notifications
You must be signed in to change notification settings - Fork 122
Implement FeatureSet canCallMagicCall and callMagicCall methods #55
Implement FeatureSet canCallMagicCall and callMagicCall methods #55
Conversation
Recently, I was attempting to call the lastSequenceId method of the SequenceFeature, after adding the SequenceFeature to a TableGateway object. However, on doing so, I discovered that both methods effectively weren't implemented, despite what the manual alluded to. Given that I'm adding this commit, along with the covering tests to implement the functionality.
@@ -77,4 +78,93 @@ public function testAddFeatureThatFeatureHasTableGatewayButFeatureSetDoesnotHas( | |||
$featureSet = new FeatureSet; | |||
$this->assertInstanceOf('Zend\Db\TableGateway\Feature\FeatureSet', $featureSet->addFeature($feature)); | |||
} | |||
|
|||
/** | |||
* @cover FeatureSet::canCallMagicCall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@covers
instead of @cover
, also, use fully namespaced class, @covers Zend\Db\TableGateway\Feature\FeatureSet::canCallMagicCall
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that. I should have picked that up sooner. Perhaps I should go to bed as it's nearly 2am.
use Zend\Db\TableGateway\Feature\MetadataFeature; | ||
use Zend\Db\Metadata\Object\ConstraintObject; | ||
use \ReflectionClass; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no more "", also, sort it before "Z"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
ping @ralphschindler |
Implement FeatureSet canCallMagicCall and callMagicCall methods
Thanks @mwillbanks! |
Recently, I was attempting to call the lastSequenceId method of the
SequenceFeature, after adding the SequenceFeature to a TableGateway
object. However, on doing so, I discovered that both methods effectively
weren't implemented, despite what the manual alluded to. Given that I'm
adding this commit, along with the covering tests to implement the
functionality.