tests.php 410 B

1234567891011121314151617181920
  1. <?php
  2. if ( ! class_exists('Kohana'))
  3. {
  4. die('Please include the kohana bootstrap file (see README.markdown)');
  5. }
  6. if ($file = Kohana::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 kohana base
  11. class TestSuite extends Unittest_Tests
  12. {}
  13. }
  14. else
  15. {
  16. die('Could not include the test suite');
  17. }