File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,12 @@ public function collectsBranchAndPathCoverage(): bool
76
76
public function enableBranchAndPathCoverage (): void
77
77
{
78
78
if (!$ this ->canCollectBranchAndPathCoverage ()) {
79
- throw new BranchAndPathCoverageNotSupportedException ;
79
+ throw new BranchAndPathCoverageNotSupportedException (
80
+ \sprintf (
81
+ 'The %s driver does not support branch and path coverage ' ,
82
+ $ this ->name ()
83
+ )
84
+ );
80
85
}
81
86
82
87
$ this ->collectBranchAndPathCoverage = true ;
@@ -103,7 +108,12 @@ public function detectsDeadCode(): bool
103
108
public function enableDeadCodeDetection (): void
104
109
{
105
110
if (!$ this ->canDetectDeadCode ()) {
106
- throw new DeadCodeDetectionNotSupportedException ;
111
+ throw new DeadCodeDetectionNotSupportedException (
112
+ \sprintf (
113
+ 'The %s driver does not support dead code detection ' ,
114
+ $ this ->name ()
115
+ )
116
+ );
107
117
}
108
118
109
119
$ this ->detectDeadCode = true ;
You can’t perform that action at this time.
0 commit comments