laracasts / TestDummy

Easy factories for PHP integration testing.
https://laracasts.com/lessons/whats-new-in-testdummy
MIT License
456 stars 80 forks source link

Adding 'digit' to supported fake types #15

Closed EricTendian closed 10 years ago

EricTendian commented 10 years ago

This new type allows for setting of integer length and incorporation into implementations needing doubles with specific floating point precision. Addresses issue #13.

Example: when creating fake prices:

price: $digit$digit$digit.$digit$digit

yields:

price: 412.53