Skip to content

Commit

Permalink
Create testdox-print-warning.phpt
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter authored and sebastianbergmann committed Aug 25, 2023
1 parent db91be5 commit 62ad9dc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/end-to-end/logging/testdox-print-warning.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--TEST--
Testdox: print warning message
--FILE--
<?php declare(strict_types=1);

$parentDirectory = dirname(__DIR__);

$_SERVER['argv'][] = '--display-warnings';
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--no-output';
$_SERVER['argv'][] = '--testdox-text';
$_SERVER['argv'][] = 'php://stdout';
$_SERVER['argv'][] = realpath($parentDirectory. '/_files/stop-on-fail-on/WarningTest.php');

require realpath($parentDirectory . '/../bootstrap.php');

(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
Warning (PHPUnit\TestFixture\TestRunnerStopping\Warning)
[x] One
[x] Two

0 comments on commit 62ad9dc

Please sign in to comment.