Hey, Data Providers may help you here
https://phpunit.readthedocs.io/en/9.5/writing-tests-for-phpunit.html#data-providers
Summer Sale! All accounts are 50% off this week.
Hello,
Im starting writing test for my Applications and I was wondering if there is any easy (simple) way of Testing all different types of validation constellations than writing an own test for it.
I'll try to explain what I mean by that.
Let's Say I have a Form with 5 Inputs.
two of them are Required ( first name, last name)
two (phone, mobile) require one of them be filled
and
In my mind I would like to test every possible constelation a user can fill out. What will result in around 32 Test only for this small Form.
Is this the common Practice or is there a more efficient way of testing?
Best regards Mike
Please or to participate in this conversation.