phpty / screen-test
Drive a program through a pty and assert on the screen it renders. Framework-agnostic, with an optional PHPUnit assertion trait.
v0.2.0
2026-07-19 02:32 UTC
Requires
- php: ^7.4 || ^8.0
- phpty/pty: v0.2.0
- phpty/vterm: v0.2.0
Suggests
- phpunit/phpunit: To assert on a rendered Screen from a PHPUnit test via PhPty\ScreenTest\PHPUnit\AssertScreen
- yoast/phpunit-polyfills: For assertion compatibility across PHPUnit versions when using the trait on PHP 7.4-8.x
README
Drive a program through a pty and assert on the screen it renders.
Read-only mirror. The canonical development repository is phpty-org/phpty, a monorepo. This
phpty/screen-testrepository is split out from it for distribution and is read-only: issues and pull requests are disabled, and any pull request opened here is closed automatically. Please contribute upstream.
Install
composer require phpty/screen-test
Requirements
- PHP
^7.4 || ^8.0, with theffi,mbstring,pcntlandposixextensions - A Unix host, and libghostty-vt (via
phpty/vterm) as for VTerm above
License
MPL-2.0. See LICENSE and, for how licensing works across PhPty, the monorepo's LICENSE.