Changeset 192 for trunk/trax/test

Show
Ignore:
Timestamp:
03/27/06 15:02:53 (6 years ago)
Author:
haas
Message:

working Pear install w/ tests

Location:
trunk/trax/test
Files:
2 added
26 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/test/ActionControllerErrorTest.php

    r163 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing ActionControllerError\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call ActionControllerErrorTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/trax_exceptions.php"; 
     28require_once "trax_exceptions.php"; 
    2929 
    3030/** 
  • trunk/trax/test/ActionControllerTest.php

    r174 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing ActionController\n"; 
     15require_once 'testenv.php'; 
     16 
    1617//  root Trax files in the test directory 
    1718define("TRAX_ROOT", dirname(__FILE__) . "/"); 
    18 define("TRAX_LIB_ROOT", "../vendor/trax"); 
    1919define("TRAX_VIEWS_EXTENTION",  "phtml"); 
    2020//  you don't really need a 'haas' account to test, 
     
    3939require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    4040 
    41 require_once "../vendor/trax/router.php"; 
    42 require_once "../vendor/trax/inflector.php"; 
    43 require_once "../vendor/trax/trax_exceptions.php"; 
    44 require_once "../vendor/trax/action_controller.php"; 
    45 require_once "../app/controllers/application.php"; 
     41require_once "router.php"; 
     42require_once "inflector.php"; 
     43require_once "trax_exceptions.php"; 
     44require_once "action_controller.php"; 
    4645 
    4746/** 
  • trunk/trax/test/ActionMailerTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing ActionMailer\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call ActionMailerTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/action_mailer.php"; 
     28require_once "action_mailer.php"; 
    2929 
    3030/** 
  • trunk/trax/test/ActiveRecordErrorTest.php

    r163 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing ActiveRecordError\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call ActiveRecordErrorTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/trax_exceptions.php"; 
     28require_once "trax_exceptions.php"; 
    2929 
    3030/** 
  • trunk/trax/test/ActiveRecordHelperTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing ActiveRecordHelper\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call ActiveRecordErrorTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/action_view/helpers.php"; 
    29 require_once "../vendor/trax/action_view/helpers/active_record_helper.php"; 
     28require_once "action_view/helpers.php"; 
     29require_once "action_view/helpers/active_record_helper.php"; 
    3030 
    3131/** 
  • trunk/trax/test/ActiveRecordTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing ActiveRecord\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717//  We need to load a mock DB class to test ActiveRecord. 
     
    1919//  that when ActiveRecord loads it will pick up the mock class. 
    2020@ini_set('include_path','./mockDB:'.ini_get('include_path')); 
    21 require_once "../vendor/trax/active_record.php"; 
     21require_once "active_record.php"; 
    2222 
    2323// Call ActiveRecordTest::main() if this source file is executed directly. 
     
    3232 *  Require classes that are too trivial to bother making mocks 
    3333 */ 
    34 require_once '../vendor/trax/trax_exceptions.php'; 
    35 require_once '../vendor/trax/inflector.php'; 
     34require_once 'trax_exceptions.php'; 
     35require_once 'inflector.php'; 
    3636 
    3737// You may remove the following line when all tests have been implemented. 
  • trunk/trax/test/ApplicationControllerTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing ApplicationController\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call ApplicationControllerTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/trax_exceptions.php"; 
     28require_once "trax_exceptions.php"; 
     29require_once "action_controller.php"; 
     30require_once "controllers/application.php"; 
    2931 
    3032/** 
  • trunk/trax/test/ApplicationMailerTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing ApplicationMailer\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call ApplicationMailerTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/action_mailer.php"; 
    29 require_once "../app/application_mailer.php"; 
     28require_once "action_mailer.php"; 
    3029 
    3130/** 
  • trunk/trax/test/AssetTagHelperTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing AssetTagHelper\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call AssetTagHelperTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/trax_exceptions.php"; 
     28require_once "trax_exceptions.php"; 
    2929 
    3030/** 
  • trunk/trax/test/DateHelperTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing DateHelper\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call DateHelperTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/trax_exceptions.php"; 
     28require_once "trax_exceptions.php"; 
    2929 
    3030/** 
  • trunk/trax/test/DispatcherTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing Dispatcher\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call DispatcherTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/dispatcher.php"; 
     28require_once "dispatcher.php"; 
    2929 
    3030/** 
  • trunk/trax/test/FormHelperTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing FormHelper\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call FormHelperTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/action_view/helpers.php"; 
    29 require_once "../vendor/trax/action_view/helpers/form_helper.php"; 
     28require_once "action_view/helpers.php"; 
     29require_once "action_view/helpers/form_helper.php"; 
    3030 
    3131/** 
  • trunk/trax/test/FormOptionsHelperTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing FormOptionsHelper\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call FormOptionsHelperTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/action_view/helpers.php"; 
    29 require_once "../vendor/trax/action_view/helpers/form_helper.php"; 
    30 require_once "../vendor/trax/action_view/helpers/form_options_helper.php"; 
     28require_once "action_view/helpers.php"; 
     29require_once "action_view/helpers/form_helper.php"; 
     30require_once "action_view/helpers/form_options_helper.php"; 
    3131 
    3232/** 
  • trunk/trax/test/FormTagHelperTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing FormTagHelper\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call FormTagHelperTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/action_view/helpers.php"; 
    29 require_once "../vendor/trax/action_view/helpers/form_helper.php"; 
    30 require_once "../vendor/trax/action_view/helpers/form_options_helper.php"; 
     28require_once "action_view/helpers.php"; 
     29require_once "action_view/helpers/form_helper.php"; 
     30require_once "action_view/helpers/form_options_helper.php"; 
    3131 
    3232/** 
  • trunk/trax/test/HelpersTest.php

    r165 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing Helpers\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call HelpersTest::main() if this source file is executed directly. 
     
    2828//  root Trax files in the test directory 
    2929define("TRAX_ROOT", dirname(__FILE__) . "/"); 
    30 define("TRAX_LIB_ROOT", "../vendor/trax"); 
    3130define("TRAX_VIEWS_EXTENTION",  "phtml"); 
    3231$GLOBALS['TRAX_INCLUDES'] = 
     
    3736           "views"       => "views"); 
    3837 
    39 require_once "../vendor/trax/action_view/helpers.php"; 
    40 require_once "../vendor/trax/action_controller.php"; 
    41 require_once "../vendor/trax/router.php"; 
    42 require_once "../app/controllers/application.php"; 
     38require_once "action_view/helpers.php"; 
     39require_once "action_controller.php"; 
     40require_once "router.php"; 
     41require_once "controllers/application.php"; 
    4342 
    4443/** 
  • trunk/trax/test/InflectorTest.php

    r155 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing Inflector\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call InflectorTest::main() if this source file is executed directly. 
     
    2626 *  Require class to be tested 
    2727 */ 
    28 require_once "../vendor/trax/inflector.php"; 
     28require_once "inflector.php"; 
    2929 
    3030/** 
  • trunk/trax/test/InputFilterTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing InputFilter\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call InputFilterTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/input_filter.php"; 
     28require_once "input_filter.php"; 
    2929 
    3030/** 
  • trunk/trax/test/JavaScriptHelperTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing JavaScriptHelper\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call JavaScriptHelperTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/action_view/helpers.php"; 
    29 require_once "../vendor/trax/action_view/helpers/form_helper.php"; 
    30 require_once "../vendor/trax/action_view/helpers/form_options_helper.php"; 
     28require_once "action_view/helpers.php"; 
     29require_once "action_view/helpers/form_helper.php"; 
     30require_once "action_view/helpers/form_options_helper.php"; 
    3131 
    3232/** 
  • trunk/trax/test/README

    r139 r192  
    2424 
    2525on the command line.  All tests will be run automatically. 
    26 (on Linux and other Unix-like systems, you can type ./runtests.php) 
    2726 
    2827Or you can run a single test, for example the test of the ActiveRecord 
    2928class, from the command line: 
    3029 
    31  phpunit ActiveRecord 
    32  
    33 (on Linux and other Unix-like systems, you can type ./ActiveRecord.php) 
     30 php ActiveRecord.php 
    3431 
    3532 
  • trunk/trax/test/RouterTest.php

    r161 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing Router\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call RouterTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/router.php"; 
     28require_once "router.php"; 
    2929 
    3030/** 
  • trunk/trax/test/ScaffoldControllerTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing ScaffoldController\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call ScaffoldControllerTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/action_view/helpers.php"; 
    29 require_once "../vendor/trax/action_view/helpers/form_helper.php"; 
    30 require_once "../vendor/trax/action_view/helpers/form_options_helper.php"; 
     28require_once "action_view/helpers.php"; 
     29require_once "action_view/helpers/form_helper.php"; 
     30require_once "action_view/helpers/form_options_helper.php"; 
    3131 
    3232/** 
  • trunk/trax/test/SessionTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing Session\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call SessionTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/session.php"; 
     28require_once "session.php"; 
    2929 
    3030/** 
  • trunk/trax/test/TraxErrorTest.php

    r163 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing TraxError\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call TraxErrorTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/trax_exceptions.php"; 
     28require_once "trax_exceptions.php"; 
    2929 
    3030/** 
  • trunk/trax/test/TraxGeneratorTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing TraxGenerator\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call TraxGeneratorTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/trax_generator.php"; 
     28require_once "trax_generator.php"; 
    2929 
    3030/** 
  • trunk/trax/test/UrlHelperTest.php

    r159 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1413 
    1514echo "testing UrlHelper\n"; 
     15require_once 'testenv.php'; 
    1616 
    1717// Call UrlHelperTest::main() if this source file is executed directly. 
     
    2626require_once "PHPUnit2/Framework/IncompleteTestError.php"; 
    2727 
    28 require_once "../vendor/trax/action_view/helpers.php"; 
    29 require_once "../vendor/trax/action_view/helpers/form_helper.php"; 
    30 require_once "../vendor/trax/action_view/helpers/form_options_helper.php"; 
     28require_once "action_view/helpers.php"; 
     29require_once "action_view/helpers/form_helper.php"; 
     30require_once "action_view/helpers/form_options_helper.php"; 
    3131 
    3232/** 
  • trunk/trax/test/runtests.php

    r163 r192  
    1 #!/usr/bin/php -q 
    21<?php 
    32/** 
     
    1211 * @author Walt Haas <haas@xmission.com> 
    1312 */ 
     13 
    1414 
    1515//  Control order of tests