I have a function which returns an array of array of records after processing them. The expected return value looks something like this -
[
[....]
['Name', 'Quantity', 'Tags', 'Price', 'Total', 'Autogenerated Value']
[....]
[....]
]
the field Autogenerate Value
can be anything generated dynamically.
Currently I am trying to use assertEquals
methods, but every time the auto generate value will be different. Is this there matcher something like anything()
that I can use here.
I do not really want to write my own assertion function iterating over the expected value and assert using assertArraySubset
Aucun commentaire:
Enregistrer un commentaire