Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ rtk rake test # Ruby minitest (-90%)
rtk rspec # RSpec tests (JSON, -60%+)
rtk err <cmd> # Filter errors only from any command
rtk test <cmd> # Generic test wrapper - failures only (-90%)
rtk phpunit # PHPUnit tests (failures only, -65%+)
```

### Build & Lint
Expand Down
10 changes: 10 additions & 0 deletions scripts/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,16 @@ section "Hook check (#344)"

assert_contains "rtk init --show hook version" "version" rtk init --show

# ── 42. PHP (conditional) ───────────────────────────

section "PHP (conditional)"

if command -v phpunit &>/dev/null || [ -f vendor/bin/phpunit ] || [ -f bin/phpunit ]; then
assert_help "rtk phpunit" rtk phpunit --help
else
skip_test "rtk phpunit" "phpunit not installed"
fi

# ══════════════════════════════════════════════════════
# Report
# ══════════════════════════════════════════════════════
Expand Down
1 change: 1 addition & 0 deletions src/cmds/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub mod dotnet;
pub mod git;
pub mod go;
pub mod js;
pub mod php;
pub mod python;
pub mod ruby;
pub mod rust;
Expand Down
3 changes: 3 additions & 0 deletions src/cmds/php/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//! PHP ecosystem filters.
pub mod phpunit_cmd;
Loading