1
0
mirror of https://github.com/php/phd.git synced 2026-03-23 22:52:05 +01:00
Files
archived-phd/tests/options/default_handler_005.phpt
haszi 15284136ff Separate regular PhD output from error handling (#176)
- Move error handling code into a class and remove PhD message output handling from it.
- Introduce a new class to handle PhD message output.
- Make the implicit dependency on the output functionality of classes explicit.
- Update PEAR package.xml.
- Fix tests.
- Use proper variadic parameters
- Use class constants
- Use first-class callable syntax

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-11-10 17:57:05 +00:00

25 lines
478 B
PHP

--TEST--
Default options handler 005 - Show version - short option
--ARGS--
-V
--SKIPIF--
<?php
if (file_exists(__DIR__ . "/../../phd.config.php")) {
die("Skipped: existing phd.config.php file will overwrite command line options.");
}
?>
--FILE--
<?php
namespace phpdotnet\phd;
require_once __DIR__ . "/../../render.php";
?>
--EXPECTF--
%sPhD Version: %s
%s Generic: %s
%s IDE: %s
%s PEAR: %s
%s PHP: %s
%sPHP Version: %s
%sCopyright(c) %d-%d The PHP Documentation Group%s