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

Update Faker and use Faker in test data #233

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

IanDelMar
Copy link
Contributor

  • The Faker class now uses pseudo static magic methods to make its usage less verbose (e.g., Faker::string() instead of Faker::fake('string')).
  • There are four non-magic methods: Faker::array(), Faker::intArray(), Faker::strArray(), and Faker::list(), which "fake" different array key types.
  • Faker::or() has been renamed to Faker::union().
  • Tests have been added for the class.
  • The Faker class is utilised in the test data.

@szepeviktor
Copy link
Member

szepeviktor commented Sep 30, 2024

I owe you a new keyboard 🙃

@szepeviktor szepeviktor merged commit faa664c into php-stubs:master Sep 30, 2024
0 of 5 checks passed
@IanDelMar IanDelMar deleted the faker branch September 30, 2024 00:32
@IanDelMar IanDelMar mentioned this pull request Sep 30, 2024
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