TestLocator.php 483B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Interface for any strategy for finding test cases.
  4. * @package Sweety
  5. * @author Chris Corbyn
  6. */
  7. interface Sweety_TestLocator
  8. {
  9. /**
  10. * Returns an array of all test cases found under the given directories.
  11. * @param string[] $dirs
  12. * @return string[]
  13. */
  14. public function getTests($dirs = array());
  15. /**
  16. * Loads the test case of the given name.
  17. * @param string $testCase
  18. * @return boolean
  19. */
  20. public function includeTest($testCase);
  21. }