Skip to content

Add Faker provider - #1214

Open
ker0x wants to merge 1 commit into
geocoder-php:masterfrom
ker0x:feature/faker-provider
Open

Add Faker provider#1214
ker0x wants to merge 1 commit into
geocoder-php:masterfrom
ker0x:feature/faker-provider

Conversation

@ker0x

Copy link
Copy Markdown

This PR introduce a faker provider using FakePHP. It's main purpose is to provide fake data during tests.

@ker0x
ker0xforce-pushed the feature/faker-provider branch from d5f20e3 to 4c890feCompareJanuary 31, 2024 01:28
@jbelien

Copy link
Copy Markdown
Member

Hello @ker0x, welcome to the project.
I'm not exactly sure I understand the goal of that new provider, could you give us some use cases ?
Thanks.

@ker0x

ker0x commented Feb 5, 2024

Copy link
Copy Markdown
Author

@jbelien yes sure.

In my case, I have a listener on some of my entities that geocodes them each time they are created or updated. During my tests, I perform a lot of operations on these entities, and using a real provider slows down the tests because of HTTP calls. I don't particularly need the geocoded data to be accurate during tests, so having a provider with fake data saves me from making these HTTP calls (and it saves requests with some providers that have free request limits per month).

@Chris53897

Copy link
Copy Markdown
Contributor

@ker0x Could you please revert the changes to other files beside from your new provider, and rebase against master.
This wil make the ci green.

Comment threadcomposer.json Outdated
@ker0x
ker0xforce-pushed the feature/faker-provider branch 2 times, most recently from 97bce8b to 33f4e09CompareFebruary 26, 2025 15:30
@ker0x
ker0xforce-pushed the feature/faker-provider branch from 33f4e09 to 1d1d84cCompareFebruary 26, 2025 15:34
Sign up for freeto 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.

3 participants

@ker0x@jbelien@Chris53897