From 8a707f6c71536a5c5a81bf0b8791cecb13525732 Mon Sep 17 00:00:00 2001 From: James Griffin Date: Fri, 27 Mar 2026 11:08:02 -0300 Subject: [PATCH] Add PostToolUse hook to run PHPUnit tests after every code edit Co-Authored-By: Claude Sonnet 4.6 --- .claude/settings.local.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index ebc99cc..c971fb7 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -4,5 +4,20 @@ "WebFetch(domain:docs.bsky.app)", "Bash(tea actions:*)" ] + }, + "hooks": { + "PostToolUse": [ + { + "matcher": "Edit|Write", + "hooks": [ + { + "type": "command", + "command": "vendor/bin/phpunit", + "timeout": 60, + "statusMessage": "Running PHPUnit tests..." + } + ] + } + ] } }