Skip to content

Commit a3549f1

Browse files
Add test for #5074
1 parent df0f454 commit a3549f1

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="../../../phpunit.xsd">
4+
<testsuites>
5+
<testsuite name="default">
6+
<directory>wrongClassName</directory>
7+
</testsuite>
8+
</testsuites>
9+
</phpunit>
File renamed without changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
--TEST--
2+
phpunit --version
3+
--FILE--
4+
<?php declare(strict_types=1);
5+
$_SERVER['argv'][] = '--do-not-cache-result';
6+
$_SERVER['argv'][] = '--configuration';
7+
$_SERVER['argv'][] = __DIR__ . '/../../_files/OneClassPerFile/phpunit.xml';
8+
9+
require_once __DIR__ . '/../../bootstrap.php';
10+
11+
PHPUnit\TextUI\Command::main();
12+
?>
13+
--XFAIL--
14+
https://github.com/sebastianbergmann/phpunit/issues/5074
15+
--EXPECTF--
16+
PHPUnit %s by Sebastian Bergmann and contributors.
17+
18+
Warning: Test case class not matching filename is deprecated
19+
in %sWrongClassNameTest.php
20+
Class name was 'WrongClassNameBar', expected 'WrongClassNameTest'
21+
22+
. 1 / 1 (100%)
23+
24+
Time: %s, Memory: %s
25+
26+
OK (1 test, 1 assertion)

0 commit comments

Comments
 (0)