Skip to content

Commit a06279f

Browse files
Merge branch '8.5' into 9.5
2 parents 9bfc9c4 + 612a8da commit a06279f

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

tests/_files/AbstractTestCase.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php declare(strict_types=1);
2+
/*
3+
* This file is part of PHPUnit.
4+
*
5+
* (c) Sebastian Bergmann <[email protected]>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
namespace PHPUnit\TestFixture;
11+
12+
use PHPUnit\Framework\TestCase;
13+
14+
abstract class AbstractTestCase extends TestCase
15+
{
16+
public function testOne(): void
17+
{
18+
$this->assertTrue(true);
19+
}
20+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
phpunit ../../_files/AbstractTestCase.php
3+
--FILE--
4+
<?php declare(strict_types=1);
5+
$_SERVER['argv'][] = '--do-not-cache-result';
6+
$_SERVER['argv'][] = '--no-configuration';
7+
$_SERVER['argv'][] = __DIR__ . '/../../_files/AbstractTestCase.php';
8+
9+
require_once __DIR__ . '/../../bootstrap.php';
10+
PHPUnit\TextUI\Command::main();
11+
--EXPECTF--
12+
Class 'PHPUnit\TestFixture\AbstractTestCase' could not be found in '%sAbstractTestCase.php'.

0 commit comments

Comments
 (0)