bbatsche / Verify

BDD Assertions for PHPUnit and Codeception
MIT License
5 stars 0 forks source link

Subject Resolvers #103

Open bbatsche opened 1 year ago

bbatsche commented 1 year ago

Replace custom verifiers with subject resolver(s) that can be used to get value, name, & description for subject and provide it to verifier. Should only need two verifier classes (Value & File)

bbatsche commented 1 year ago

First resolve used becomes “sticky” so if we pass a JSON string and make assertions about it we don’t have to keep telling Verifier it’s JSON. But then theoretically we could pass an object, make assertions about it’s properties/methods, and then do JSON assertions last (if it has a __toString() method)