Agentic PHPUnit output
php
dev.to
I was made a aware of PAO. And while it think it is a good tool I think we can do better by making it more useful for an LLM. The package has options for PHPUnit, Pest and ParaTest. I'm only going to focus on PHPUnit, version 12 in particular. The setup PHPUnit has an option to add extensions. The best way to let PHPUnit know your extension is in the phpunit.xml file. class="Tests\Extensions\AgentAwareOutputExtension"/> To detect when PHPunit is run inside an agent