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

Use IsoCodes test data for validators #115

Merged
merged 1 commit into from
Jan 10, 2017
Merged

Use IsoCodes test data for validators #115

merged 1 commit into from
Jan 10, 2017

Conversation

soullivaneuh
Copy link
Owner

@soullivaneuh soullivaneuh commented May 21, 2016

Waiting ronanguilloux/IsoCodes#92 to be finished.

  • Use IsoCodes data tests
  • Remove composer.json hack
  • Manage special cases like IP or Isbn...
  • Update "How to add a constraint documentation" doc accordingly. Documentation does not exist yet.

If ronanguilloux/IsoCodes#93 is merged before new stable release of IsoCodes, remove special case from CreditCardValidatorTest::getValidValues.

@soullivaneuh soullivaneuh force-pushed the iso-codes-tests branch 2 times, most recently from 7875589 to ba7fb56 Compare January 10, 2017 13:36
@soullivaneuh soullivaneuh changed the title [WIP] Use IsoCodes test data for validators Use IsoCodes test data for validators Jan 10, 2017
*/
private function getIsoCodesTestInstance()
{
// Test classes seems not be autoloaded by default.

Choose a reason for hiding this comment

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

Configure autoload-dev, maybe?

Copy link
Owner Author

Choose a reason for hiding this comment

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

What do you mean?

Choose a reason for hiding this comment

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

In composer.json, you can specify how to generate autoload mechanisms for whatever you want (including those test classes I think). Using autoload-dev will ensure you don't clutter your production autoload mechanism.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thank you! ❤️

@soullivaneuh soullivaneuh force-pushed the iso-codes-tests branch 2 times, most recently from eeecd1c to c5ec93d Compare January 10, 2017 15:28
This will reduce a lot the test code length and make new integrations easier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants