Skip to main content
Unitary shield
Unitary shield

Next-Gen PHP Testing Framework

Unitary is a blazing-fast, developer-first testing framework for PHP, built from the ground up with zero third-party dependencies and a highly optimized core, not just a wrapper around legacy tools. It’s simple to get started, lightning-fast to run, and powerful enough to test everything from units to mocks.

Unitary shield

Developer-Friendly Testing

Unitary is built to be easy to use without ever feeling limited. You can start writing meaningful tests immediately, no setup, no configuration, no hidden rules. Mocking, expectations and controlled execution are built in and work naturally together, so tests stay readable and intentional. Failures produce clear, actionable evidence instead of noise. As your test suite grows, Unitary remains predictable and comfortable to work with, letting you focus on your code instead of the testing framework.

Top features

  • Evidence-Driven testing
  • Standalone test runner (no legacy dependencies)
  • Deterministic sequential execution
  • Zero boilerplate setup
  • Lightning-fast execution with low overhead
  • Built-in mock engine
  • Per-group strict-halt assertions
  • Colorized, structured CLI output
  • Configurable test paths
  • Works with any PHP project
  • Input-bound validations
  • Built-in Dependency & Supply-Chain Inspector
  • Clean, minimal DSL
  • Optional descriptions
  • Detailed failure messages
  • Central config file support
  • Identical execution model for local and CI runs
  • Full Test Isolation
  • Built-in Vulnerability Scanner
  • Human-readable errors with input visibility
  • Automatic test discovery
  • Run individual files or directories
  • JUnit XML output
  • Debug mode