gplx/mediawiki/tests/phpunit/includes/shell/bin/stdout_stderr.php

11 lines
174 B
PHP

<?php
if ( PHP_SAPI !== 'cli' ) {
exit( 1 );
}
file_put_contents( "php://stdout", $argv[1] );
if ( isset( $argv[2] ) ) {
file_put_contents( "php://stderr", $argv[2] );
}