Skip to content
Ryan Welcher
Ryan Welcher

Ryan Welcher

Web Developer, WordPress Core Contributor

  • Tutorials
  • The Code
  • The Blog
  • The Info

Tag: phpunit

Posted on December 5, 2016October 9, 2020

Better Unit Testing with DataProviders

When unit testing your code, there are times when you need to test the same method or function with a variety of different parameters. For example, we have a function to check to see if a passed email is both valid and not already in the list of known emails:

Continue reading “Better Unit Testing with DataProviders”

Recent Posts

  • Introduction to WordPress SlotFill
  • Limiting the block count for InnerBlocks
  • @GoodFirstBugs bot is back!
  • Restricting PluginDocumentSettingPanel by post type
  • Good First Bugs Twitter Bot

WordPress Core Contributions

  • [47881]
  • [47294]
  • [46869]
  • [46868]
  • [46843]

View all 53 tickets on Trac.

Top Posts & Pages

  • Limiting the block count for InnerBlocks
  • Restricting PluginDocumentSettingPanel by post type

WP Codex Contributions

  • For Plugin API/Action Reference/wp dashboard setup
  • For Plugin API/Filter Reference/gettext
  • For Plugin API/Filter Reference/gettext

View all 3 changes in the Codex.

Privacy Policy Proudly powered by WordPress