Skip to content

Commit

Permalink
Fix: Add test asserting that running empty test suite does not fail
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and sebastianbergmann committed Feb 10, 2023
1 parent c222048 commit 9492c8c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/end-to-end/regression/5192.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--TEST--
https://github.com/sebastianbergmann/phpunit/issues/5192
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--configuration';
$_SERVER['argv'][] = __DIR__ . '/5192/phpunit.xml';

require_once __DIR__ . '/../../bootstrap.php';
PHPUnit\TextUI\Command::main();
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

No tests executed!
10 changes: 10 additions & 0 deletions tests/end-to-end/regression/5192/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../phpunit.xsd"
>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
Empty file.

0 comments on commit 9492c8c

Please sign in to comment.