Changeset 6262 for sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php
- Timestamp:
- 12/13/2017 07:27:11 PM (8 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
r5806 r6262 2 2 use PTR\Display; 3 3 4 $status = 'Errored';4 $status = 'Errored'; 5 5 $status_title = 'No results found for test.'; 6 $results = get_post_meta( $report->ID, 'results', true );6 $results = get_post_meta( $report->ID, 'results', true ); 7 7 if ( isset( $results['failures'] ) ) { 8 $status = 0 === (int) $results['failures'] && 0 === (int) $results['errors'] ? 'Passed' : 'Failed';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'; 10 10 }
Note: See TracChangeset
for help on using the changeset viewer.