antecedent / patchwork

Method redefinition (monkey-patching) functionality for PHP.
https://antecedent.github.io/patchwork/
MIT License
444 stars 40 forks source link

Config File Schema & Location #101

Open XedinUnknown opened 3 years ago

XedinUnknown commented 3 years ago

The Problem

Sometimes I need to use your awesome software to mock native PHP functions. Unfortunately, I struggle understanding what the schema is, and what the possible locations are. We can get an idea of some of the schema from the examples, but from what I understand there's more to it. Where to actually put the patchwork.json file I was able to find out by trial and error, and also got some hints from Brain-WP/BrainMonkey#97.

Suggested Solution

Add the schema and location resolution mechanics to documentation.