Then the status report should count 0 errors

Assert how many errors or warnings the status report counts, for a site whose known, accepted findings are part of its definition (a local build always warns that settings.php is writable).

Examples

Then the status report should count 0 errors
And the status report should count 1 error
Then the status report should count 3 warnings
And the status report should count at most 3 warnings
Then the status report should count at most 0 errors

Pattern

Then(/^the status report should count (at most )?(\d+) (errors?|warnings?)$/, …)

Part of @webship-js/drupal-core-steps (github.com/webship/drupal-core-steps), a step pack for Webship-js 2.0.x.