Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

add DNI generator to spanis person #763

Merged
merged 3 commits into from Feb 23, 2016
Merged

add DNI generator to spanis person #763

merged 3 commits into from Feb 23, 2016

Conversation

mikk150
Copy link
Contributor

@mikk150 mikk150 commented Nov 3, 2015

I needed to generate DNI on unit tests and I use faker as data provider. I couldn't find DNI anywhere, so I implemented it

@@ -68,4 +70,12 @@ public static function suffix()
{
return static::randomElement(static::$suffix);
}

public static function dni()
Copy link
Owner

Choose a reason for hiding this comment

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

please add a link to the dni specification

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

Please add it as a @link annotation in the method phpDoc

@fzaninotto
Copy link
Owner

You should add a unit test for this new formatter.

fzaninotto added a commit that referenced this pull request Feb 23, 2016
add DNI generator to spanis person
@fzaninotto fzaninotto merged commit 61cb184 into fzaninotto:master Feb 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants