File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -123,11 +123,16 @@ public function process(PHP_CodeCoverage $coverage, $showColors = FALSE)
123123 $ output .= PHP_EOL . PHP_EOL .
124124 $ colors ['header ' ] . 'Code Coverage Report ' ;
125125
126- $ output .= PHP_EOL .
127- date (' Y-m-d H:i:s ' , $ _SERVER ['REQUEST_TIME ' ]) .
128- PHP_EOL ;
126+ if ($ this ->showOnlySummary ) {
127+ $ output .= 'Summary: ' . PHP_EOL ;
128+ } else {
129+ $ output .= PHP_EOL .
130+ date (' Y-m-d H:i:s ' , $ _SERVER ['REQUEST_TIME ' ]) .
131+ PHP_EOL . PHP_EOL .
132+ ' Summary: ' ;
133+ }
129134
130- $ output .= PHP_EOL . ' Summary: ' . PHP_EOL . $ colors ['reset ' ]
135+ $ output .= PHP_EOL . $ colors ['reset ' ]
131136 . $ colors ['classes ' ] . $ colors ['eol ' ] . ' Classes: ' . PHP_CodeCoverage_Util::percent ($ report ->getNumTestedClassesAndTraits (), $ report ->getNumClassesAndTraits (), TRUE )
132137 . ' ( ' . $ report ->getNumTestedClassesAndTraits () . '/ ' . $ report ->getNumClassesAndTraits () . ') ' . PHP_EOL . $ colors ['eol ' ]
133138 . $ colors ['methods ' ] . $ colors ['eol ' ] . ' Methods: ' . PHP_CodeCoverage_Util::percent ($ report ->getNumTestedMethods (), $ report ->getNumMethods (), TRUE )
You can’t perform that action at this time.
0 commit comments