-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from robiningelbrecht/fix-division-by-zero-part-2
Fix divide by zero part 2
- Loading branch information
Showing
5 changed files
with
69 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
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
10 changes: 10 additions & 0 deletions
10
...tion/__snapshots__/ApplicationFinishedSubscriberTest__testNotifyWhenNoTrackedLines__1.txt
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,10 @@ | ||
|
||
+-----------------------+-------<fg=black;bg=yellow;options=bold> Code coverage results </>-----------------+-------------+ | ||
|<bold> Pattern </bold>|<bold> Expected </bold>|<bold> Actual </bold>|<bold> </bold>|<bold> Exit on<fg=default;bg=default></> </bold>| | ||
|<bold> </bold>|<bold> </bold>|<bold> </bold>|<bold> </bold>|<bold> fail? </bold>| | ||
+-----------------------+------------+----------+-----------------------+-------------+ | ||
|<fg=default;bg=default> *CommandHandler </>| 20% | <warning>0%</warning> |<fg=default;bg=default> No lines to track...? </>| Yes | | ||
+-----------------------+------------+----------+-----------------------+-------------+ | ||
|<warning> There was at least one pattern that did not match any covered classes. Please consider removing them. </warning>| | ||
+-----------------------+------------+----------+-----------------------+-------------+ | ||
Time: 00:00.350, Memory: 12.00 MB |
11 changes: 11 additions & 0 deletions
11
tests/Subscriber/Application/min-coverage-rules-no-tracked-lines.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,11 @@ | ||
<?php | ||
|
||
use RobinIngelbrecht\PHPUnitCoverageTools\MinCoverage\MinCoverageRule; | ||
|
||
return [ | ||
new MinCoverageRule( | ||
pattern: '*CommandHandler', | ||
minCoverage: 20, | ||
exitOnLowCoverage: 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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<coverage generated="1682083729"> | ||
<project timestamp="1682083729"> | ||
<file name="/var/www/symfony/src/Infrastructure/CQRS/Bus/CanNotRegisterCommandHandler.php"> | ||
<class name="App\Infrastructure\CQRS\Bus\CanNotRegisterCommandHandler" namespace="global"> | ||
<metrics complexity="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/> | ||
</class> | ||
<metrics loc="8" ncloc="8" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/> | ||
</file> | ||
</project> | ||
</coverage> |