-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix not failing for tests using data providers
Fixes #19
- Loading branch information
Showing
6 changed files
with
89 additions
and
2 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
20 changes: 20 additions & 0 deletions
20
tests/Fixtures/OneTestWithProviderCoveringExistingClassTest.php
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,20 @@ | ||
<?php | ||
|
||
namespace OckCyp\CoversValidator\Tests\Fixtures; | ||
|
||
class OneTestWithProviderCoveringExistingClassTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @covers OckCyp\CoversValidator\Tests\Fixtures\ExistingClass::existingMethod | ||
* @dataProvider provideDummyTest | ||
*/ | ||
public function testDummyTest() | ||
{ | ||
|
||
} | ||
|
||
public function provideDummyTest() | ||
{ | ||
|
||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
tests/Fixtures/OneTestWithProviderCoveringNonExistentClassTest.php
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,20 @@ | ||
<?php | ||
|
||
namespace OckCyp\CoversValidator\Tests\Fixtures; | ||
|
||
class OneTestWithProviderCoveringNonExistentClassTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @covers OckCyp\CoversValidator\Tests\Fixtures\ExistingClass::nonExistingMethod | ||
* @dataProvider provideDummyTest | ||
*/ | ||
public function testDummyTest($x) | ||
{ | ||
|
||
} | ||
|
||
public function provideDummyTest() | ||
{ | ||
return [['x']]; | ||
} | ||
} |
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,8 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<phpunit> | ||
<testsuites> | ||
<testsuite name="My Test Suite"> | ||
<file>./OneTestWithProviderCoveringExistingClassTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
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,8 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<phpunit> | ||
<testsuites> | ||
<testsuite name="My Test Suite"> | ||
<file>./OneTestWithProviderCoveringNonExistentClassTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |