Larry Garfield on Nostr: I have only recently learned of the "before" attribute in npub16eczr…yam5w. It ...
I have only recently learned of the "before" attribute in npub16eczrtdnfzvhgxltaatx30uastc4v44ds8xp8atp3jv3hx3jf9ms9yam5w (npub16ec…am5w). It seems appealing. What I don't get is... why would I ever use setUp() when I can instead use a before method? It seems like the easier, more portable solution in ever case except when I actively want to bypass a parent class's setUp().
(Same for beforeClass.)
#PHP #Testing #PHPUnit
(Same for beforeClass.)
#PHP #Testing #PHPUnit