Created
April 26, 2013 17:46
-
-
Save ringmaster/5469022 to your computer and use it in GitHub Desktop.
Add tests to a plugin.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function filter_list_unit_tests($tests) | |
{ | |
$unit_tests = glob(dirname(__FILE__). '/units/test_*.php'); | |
$tests = array_merge($tests, $unit_tests); | |
return $tests; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment