Open mpociot opened 4 years ago
This is indeed a nice addition to the featureset of slimdump!
Are there any reasons to not use parantheses here (like FAKER_unique->randomDigitNot(0)
)? I think the closer we stay to the PHP syntax the better, as this removed the mental load of translating the Faker documentation into our own syntax.
This PR adds the ability to call more complex faker methods.
It follows an easy convention:
FAKER_methodName:arguments
The arguments of the faker method can be separated by a comma.Examples:
Edit: I haven't changed the README yet, as I wasn't sure if you want this PR. If this gets merged, I can prepare a PR that modifies the documentation.