Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal 7: Implement values array casting in __call() magic method #24

Merged
merged 2 commits into from
Mar 23, 2015

Conversation

ademarco
Copy link
Contributor

This pull request aim to get rid of explicit array-casting in Drupal 7 field handlers in favor of a casting happening in handler abstract class's __call() magic method. It also refactors Drupal 7 field handlers in order to allow object mocking. A basic PHPUnit test coverage with partial mocking by http://docs.mockery.io/ is also provided.

return [

// Test default text field provided as simple text.
[
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, I'd like to maintain PHP 5.3 compatibility if we can--Drupal 7 still supports that.

@ademarco
Copy link
Contributor Author

Sure, here we go!

@ademarco
Copy link
Contributor Author

Any other changes you wish me to have a look at?

jhedstrom added a commit that referenced this pull request Mar 23, 2015
Drupal 7: Implement values array casting in __call() magic method
@jhedstrom jhedstrom merged commit 4edbbcf into jhedstrom:master Mar 23, 2015
@jhedstrom
Copy link
Owner

Sorry for the delay. Thanks!

jhedstrom added a commit that referenced this pull request Mar 23, 2015
Drupal 7: Implement values array casting in __call() magic method

Signed-off-by: Jonathan Hedstrom <[email protected]>
@ademarco
Copy link
Contributor Author

No problem at all, thanks for the merge!

On Mon, Mar 23, 2015 at 7:47 PM, Jonathan Hedstrom <[email protected]

wrote:

Sorry for the delay. Thanks!


Reply to this email directly or view it on GitHub
#24 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants