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
1 parent
8f259e0
commit 58cc67d
Showing
3 changed files
with
56 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
phpunit --exclude-group=foo ../_files/DataProviderIssue2922 | ||
--FILE-- | ||
<?php | ||
$_SERVER['argv'][1] = '--no-configuration'; | ||
$_SERVER['argv'][2] = '--exclude-group=foo'; | ||
$_SERVER['argv'][3] = __DIR__ . '/../_files/DataProviderIssue2922'; | ||
|
||
require __DIR__ . '/../bootstrap.php'; | ||
PHPUnit_TextUI_Command::main(); | ||
--EXPECTF-- | ||
PHPUnit %s by Sebastian Bergmann and contributors. | ||
|
||
. 1 / 1 (100%) | ||
|
||
Time: %s, Memory: %s | ||
|
||
OK (1 test, 1 assertion) |
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,24 @@ | ||
<?php | ||
|
||
namespace Foo\DataProviderIssue2922; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
/** | ||
* @group foo | ||
*/ | ||
class FirstTest extends TestCase | ||
{ | ||
/** | ||
* @dataProvider provide | ||
*/ | ||
public function testFirst($x) | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function provide() | ||
{ | ||
throw new \FooException(); | ||
} | ||
} |
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,14 @@ | ||
<?php | ||
|
||
namespace Foo\DataProviderIssue2922; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
// the name of the class cannot match file name - if they match all is fine | ||
class SecondHelloWorldTest extends TestCase | ||
{ | ||
public function testSecond() | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
} |