Changeset 7227 for sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php
- Timestamp:
- 05/24/2018 09:16:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php
r6481 r7227 5 5 $status_title = 'No results found for test.'; 6 6 $results = get_post_meta( $report->ID, 'results', true ); 7 if ( isset( $results['failures'] ) ) {7 if ( isset( $results['failures'] ) && ! empty( $results['tests'] ) ) { 8 8 $status = 0 === (int) $results['failures'] && 0 === (int) $results['errors'] ? 'Passed' : 'Failed'; 9 9 $status_title = (int) $results['tests'] . ' tests, ' . (int) $results['failures'] . ' failed, ' . (int) $results['errors'] . ' errors';
Note: See TracChangeset
for help on using the changeset viewer.