test.php 762 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Shibboleth;
  3. /**
  4. * Run unit tests. Server needs to be a test server to run those.
  5. *
  6. * @license see /license.txt
  7. * @author Laurent Opprecht <laurent@opprecht.info>, Nicolas Rod for the University of Geneva
  8. */
  9. include_once(dirname(__FILE__) . '/../init.php');
  10. if (!ShibbolethTest::is_enabled())
  11. {
  12. echo 'This is not a test server';
  13. die;
  14. }
  15. echo 'Test started<br/>-------------------<br/>';
  16. ShibbolethTest::test_new_teacher();
  17. ShibbolethTest::test_new_student();
  18. ShibbolethTest::test_update_teacher();
  19. ShibbolethTest::test_new_student_multiple_givenname();
  20. ShibbolethTest::test_new_no_affiliation_default();
  21. ShibbolethTest::test_new_staff();
  22. ShibbolethTest::test_new_infer_status_request();
  23. echo '-------------------<br/>Done!';