-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented a formal interface for code coverage reporters.
- Loading branch information
Showing
7 changed files
with
95 additions
and
10 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
code-coverage-report/ | ||
vendor/ | ||
.idea/ | ||
composer.lock | ||
/composer.lock | ||
/coverage/ | ||
/vendor/ |
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
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,82 @@ | ||
<?php | ||
|
||
namespace Peridot\Reporter\CodeCoverage; | ||
|
||
use Peridot\Reporter\ReporterInterface; | ||
|
||
interface CodeCoverageReporter extends ReporterInterface | ||
{ | ||
/** | ||
* Add a directory to the blacklist (recursively). | ||
* | ||
* @param string $directory | ||
* @param string $suffix | ||
* @param string $prefix | ||
* | ||
* @return $this | ||
*/ | ||
public function addDirectoryToBlacklist($directory, $suffix = '.php', $prefix = ''); | ||
|
||
/** | ||
* Add a directory to the whitelist (recursively). | ||
* | ||
* @param string $directory | ||
* @param string $suffix | ||
* @param string $prefix | ||
* | ||
* @return $this | ||
*/ | ||
public function addDirectoryToWhitelist($directory, $suffix = '.php', $prefix = ''); | ||
|
||
/** | ||
* Add a file to the blacklist. | ||
* | ||
* @param string $filename | ||
* | ||
* @return $this | ||
*/ | ||
public function addFileToBlacklist($filename); | ||
|
||
/** | ||
* Add a file to the whitelist. | ||
* | ||
* @param string $filename | ||
* | ||
* @return $this | ||
*/ | ||
public function addFileToWhitelist($filename); | ||
|
||
/** | ||
* Add files to the blacklist. | ||
* | ||
* @param array $files | ||
* | ||
* @return $this | ||
*/ | ||
public function addFilesToBlacklist(array $files); | ||
|
||
/** | ||
* Add files to the whitelist. | ||
* | ||
* @param array $files | ||
* | ||
* @return $this | ||
*/ | ||
public function addFilesToWhitelist(array $files); | ||
|
||
/** | ||
* Get the report path. | ||
* | ||
* @return string | ||
*/ | ||
public function getReportPath(); | ||
|
||
/** | ||
* Set the report path. | ||
* | ||
* @param string $reportPath | ||
* | ||
* @return $this | ||
*/ | ||
public function setReportPath($reportPath); | ||
} |