tests.php 397 B

12345678910111213141516171819
  1. <?php
  2. if ( ! class_exists('KO7'))
  3. {
  4. die('Please include the ko7 bootstrap file (see README.markdown)');
  5. }
  6. if ($file = KO7::find_file('classes', 'Unittest/Tests'))
  7. {
  8. require_once $file;
  9. // PHPUnit requires a test suite class to be in this file,
  10. // so we create a faux one that uses the ko7 base
  11. class TestSuite extends Unittest_Tests {}
  12. }
  13. else
  14. {
  15. die('Could not include the test suite');
  16. }