index.php 935 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. *---------------------------------------------------------------
  4. * ClanCatsFramework runner
  5. *---------------------------------------------------------------
  6. *
  7. * This file just loads CCF and all needed resources to run the
  8. * php unit tests. PHPUnit is a really elegant way to make sure
  9. * that everything works how it should.
  10. *
  11. *---------------------------------------------------------------
  12. * Require CCF
  13. *---------------------------------------------------------------
  14. *
  15. * load the framework file wich wil initialize CCF.
  16. */
  17. require_once __DIR__."/clancatsapp/framework.php";
  18. /*
  19. * execute the main request
  20. * The main request contains the params of the http header
  21. */
  22. $response = CCRequest::uri( CCServer::uri() )
  23. ->perform()
  24. ->response();
  25. /*
  26. * "send" means actaully printing the response.
  27. * If the secound parameter is true the response will
  28. * also set headers
  29. */
  30. $response->send( true );