Testing_FIT
[ class tree: Testing_FIT ] [ index: Testing_FIT ] [ all elements ]

Source for file web.php

Documentation is available at web.php

  1. <?php
  2. /**
  3.  * start FIT runner
  4.  * 
  5.  * $Id: web.php 15 2007-09-18 22:36:12Z gerd $
  6.  */
  7.  
  8. // mangle include path
  9. $baseDir = dirname( __FILE__ ) . '/../..';
  10. $incPath = realpath( $baseDir . '/..' ) . PATH_SEPARATOR . get_include_path();
  11. set_include_path( $incPath );
  12.  
  13. // what file to process
  14. $in = 'in/math.html';
  15. if( isset( $_GET['in'] ) ) {
  16.     $in =   $_GET['in'];
  17. }
  18.  
  19. // load class loader
  20. if( !class_exists( 'Testing_FIT_Loader', false ) ) {
  21.     include 'Testing/FIT/Loader.php';
  22. }
  23.  
  24. // tell class loader where to find project fixtures
  25. $fitDir =   dirname( __FILE__ ) . '/fixture';
  26.  
  27. // load and start runner
  28. Testing_FIT_Loader::loadClass( 'Testing_FIT_Runner' );
  29. $fr =   new Testing_FIT_Runner();
  30. $fr->run( $in, '-' );
  31. ?>

Documentation generated on Mon, 11 Mar 2019 15:09:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.