forked from sebastianbergmann/phpunit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
107 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
class Issue3093Test extends \PHPUnit\Framework\TestCase | ||
{ | ||
public function someDataProvider(): array | ||
{ | ||
return [['some values']]; | ||
} | ||
|
||
public function testFirstWithoutDependencies(): void | ||
{ | ||
self::assertTrue(true); | ||
} | ||
|
||
/** | ||
* @depends testFirstWithoutDependencies | ||
* @dataProvider someDataProvider | ||
*/ | ||
public function testSecondThatDependsOnFirstAndDataprovider($value) | ||
{ | ||
self::assertTrue(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--TEST-- | ||
https://github.com/sebastianbergmann/phpunit/issues/3093 | ||
--FILE-- | ||
<?php | ||
$_SERVER['argv'][1] = '--no-configuration'; | ||
$_SERVER['argv'][2] = '--reverse-order'; | ||
$_SERVER['argv'][3] = '--resolve-dependencies'; | ||
$_SERVER['argv'][4] = __DIR__ . '/Issue3093Test.php'; | ||
|
||
require __DIR__ . '/../../../bootstrap.php'; | ||
PHPUnit\TextUI\Command::main(); | ||
--EXPECTF-- | ||
PHPUnit %s by Sebastian Bergmann and contributors. | ||
|
||
.. 2 / 2 (100%) | ||
|
||
Time: %s, Memory: %s | ||
|
||
OK (2 tests, 2 assertions) |