konecnyjakub/phpt-runner

PHPT tests runner

0.1.0 2025-06-10 21:05 UTC

This package is auto-updated.

Last update: 2025-06-10 19:08:26 UTC


README

Total Downloads Latest Stable Version build status coverage report License

This library allows running phpt tests. The format and possible sections are described on https://php.github.io/php-src/miscellaneous/writing-tests.html.

Installation

The best way to install PHPT Runner is via Composer. Just add konecnyjakub/phpt-runner to your (dev) dependencies.

Quick start

To be added

Advanced usage

To be added

Fully implemented and tested sections

These sections work exactly as described in the documentation. If you notice any differences, please report them as a bug.

  • --TEST--
  • --DESCRIPTION--
  • --SKIPIF--
  • --STDIN--
  • --INI--
  • --ARGS--
  • --ENV--
  • --FILE--
  • --FILEEOF--
  • --FILE_EXTERNAL--
  • --CGI--
  • --XFAIL--
  • --FLAKY--
  • --EXPECT--
  • --EXPECT_EXTERNAL--
  • --CLEAN--

Partially implemented sections

These sections are used by PhptRunner but there are some differences from behavior described in the documentation. We want to eventually eliminate the differences.

  • --EXTENSIONS-- (we do not try to load those extensions, we just skip the test if any of those extensions is not loaded)

Parsed but not implemented sections

These sections are parsed by Parser and returned in ParsedFile but PhptRunner does not use them.

  • --CONFLICTS--
  • --REDIRECTTEST--
  • --EXPECTHEADERS--
  • --EXPECTF--
  • --EXPECTF_EXTERNAL--
  • --EXPECTREGEX--
  • --EXPECTREGEX_EXTERNAL--

Ignored sections

These sections are completely ignored by both Parser and PhptRunner right now. There is no guarantee that they will be (fully) implemented.

  • --CREDITS--
  • --WHITESPACE_SENSITIVE--
  • --CAPTURE_STDIO--
  • --POST--
  • --POST_RAW--
  • --PUT--
  • --GZIP_POST--
  • --DEFLATE_POST--
  • --GET--
  • --COOKIE--
  • --PHPDBG--