Skip to content

Commit

Permalink
adding data provider notes in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
SiR-DanieL committed Apr 14, 2015
1 parent 0347a40 commit d4508be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ A text code coverage summary can be displayed using the `--coverage-text` option
* Prefer `assertsEquals()` where possible as it tests both type & equality
* Remember that only methods prefixed with `test` will be run so use helper methods liberally to keep test methods small and reduce code duplication. If there is a common helper method used in multiple test files, consider adding it to the `WC_Unit_Test_Case` class so it can be shared by all test cases
* Filters persist between test cases so be sure to remove them in your test method or in the `tearDown()` method.
* Use data providers where possibl. Be sure that their name is like `data_provider_function_to_test` (i.e. the data provider for `test_is_postcode` would be `data_provider_test_is_postcode`). Read more about data providers [here](https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers).

## Automated Tests

Expand Down

0 comments on commit d4508be

Please sign in to comment.