Title: wp-cli scaffold plugin-tests does not pass phpcs rules
Last modified: May 22, 2018

---

# wp-cli scaffold plugin-tests does not pass phpcs rules

 *  Resolved [Ryan Williams](https://wordpress.org/support/users/cyclic/)
 * (@cyclic)
 * [8 years ago](https://wordpress.org/support/topic/wp-cli-scaffold-plugin-tests-does-not-pass-phpcs-rules/)
 * I’m using wp-cli scaffold plugin-tests, and I notice that test-sample.php does
   not pass the WordPress phpcs rules.
 * Am I supposed to ignore the PHPUnit conventions in test-sample.php and follow
   WP standards instead when I write my own tests?
 * Or is phpcs not intended to apply to tests – is there an official preferred approach?
    -  This topic was modified 8 years ago by [Ryan Williams](https://wordpress.org/support/users/cyclic/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [Ryan Williams](https://wordpress.org/support/users/cyclic/)
 * (@cyclic)
 * [8 years ago](https://wordpress.org/support/topic/wp-cli-scaffold-plugin-tests-does-not-pass-phpcs-rules/#post-10308934)
 * Disregard, I had an old version of wp-cli.

Viewing 1 replies (of 1 total)

The topic ‘wp-cli scaffold plugin-tests does not pass phpcs rules’ is closed to 
new replies.

## Tags

 * [phpunit](https://wordpress.org/support/topic-tag/phpunit/)
 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 1 participant
 * Last reply from: [Ryan Williams](https://wordpress.org/support/users/cyclic/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/wp-cli-scaffold-plugin-tests-does-not-pass-phpcs-rules/#post-10308934)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
