Changeset 192 for trunk/trax/test
- Timestamp:
- 03/27/06 15:02:53 (6 years ago)
- Location:
- trunk/trax/test
- Files:
-
- 2 added
- 26 modified
-
ActionControllerErrorTest.php (modified) (3 diffs)
-
ActionControllerTest.php (modified) (3 diffs)
-
ActionMailerTest.php (modified) (3 diffs)
-
ActiveRecordErrorTest.php (modified) (3 diffs)
-
ActiveRecordHelperTest.php (modified) (3 diffs)
-
ActiveRecordTest.php (modified) (4 diffs)
-
ApplicationControllerTest.php (modified) (3 diffs)
-
ApplicationMailerTest.php (modified) (3 diffs)
-
AssetTagHelperTest.php (modified) (3 diffs)
-
DateHelperTest.php (modified) (3 diffs)
-
DispatcherTest.php (modified) (3 diffs)
-
FormHelperTest.php (modified) (3 diffs)
-
FormOptionsHelperTest.php (modified) (3 diffs)
-
FormTagHelperTest.php (modified) (3 diffs)
-
HelpersTest.php (modified) (4 diffs)
-
InflectorTest.php (modified) (3 diffs)
-
InputFilterTest.php (modified) (3 diffs)
-
JavaScriptHelperTest.php (modified) (3 diffs)
-
README (modified) (1 diff)
-
RouterTest.php (modified) (3 diffs)
-
ScaffoldControllerTest.php (modified) (3 diffs)
-
SessionTest.php (modified) (3 diffs)
-
TraxErrorTest.php (modified) (3 diffs)
-
TraxGeneratorTest.php (modified) (3 diffs)
-
UrlHelperTest.php (modified) (3 diffs)
-
controllers/application.php (added)
-
runtests.php (modified) (2 diffs)
-
testenv.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/test/ActionControllerErrorTest.php
r163 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing ActionControllerError\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call ActionControllerErrorTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/trax_exceptions.php";28 require_once "trax_exceptions.php"; 29 29 30 30 /** -
trunk/trax/test/ActionControllerTest.php
r174 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing ActionController\n"; 15 require_once 'testenv.php'; 16 16 17 // root Trax files in the test directory 17 18 define("TRAX_ROOT", dirname(__FILE__) . "/"); 18 define("TRAX_LIB_ROOT", "../vendor/trax");19 19 define("TRAX_VIEWS_EXTENTION", "phtml"); 20 20 // you don't really need a 'haas' account to test, … … 39 39 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 40 40 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"; 41 require_once "router.php"; 42 require_once "inflector.php"; 43 require_once "trax_exceptions.php"; 44 require_once "action_controller.php"; 46 45 47 46 /** -
trunk/trax/test/ActionMailerTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing ActionMailer\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call ActionMailerTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/action_mailer.php";28 require_once "action_mailer.php"; 29 29 30 30 /** -
trunk/trax/test/ActiveRecordErrorTest.php
r163 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing ActiveRecordError\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call ActiveRecordErrorTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/trax_exceptions.php";28 require_once "trax_exceptions.php"; 29 29 30 30 /** -
trunk/trax/test/ActiveRecordHelperTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing ActiveRecordHelper\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call ActiveRecordErrorTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/action_view/helpers.php";29 require_once " ../vendor/trax/action_view/helpers/active_record_helper.php";28 require_once "action_view/helpers.php"; 29 require_once "action_view/helpers/active_record_helper.php"; 30 30 31 31 /** -
trunk/trax/test/ActiveRecordTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing ActiveRecord\n"; 15 require_once 'testenv.php'; 16 16 17 17 // We need to load a mock DB class to test ActiveRecord. … … 19 19 // that when ActiveRecord loads it will pick up the mock class. 20 20 @ini_set('include_path','./mockDB:'.ini_get('include_path')); 21 require_once " ../vendor/trax/active_record.php";21 require_once "active_record.php"; 22 22 23 23 // Call ActiveRecordTest::main() if this source file is executed directly. … … 32 32 * Require classes that are too trivial to bother making mocks 33 33 */ 34 require_once ' ../vendor/trax/trax_exceptions.php';35 require_once ' ../vendor/trax/inflector.php';34 require_once 'trax_exceptions.php'; 35 require_once 'inflector.php'; 36 36 37 37 // You may remove the following line when all tests have been implemented. -
trunk/trax/test/ApplicationControllerTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing ApplicationController\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call ApplicationControllerTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once "../vendor/trax/trax_exceptions.php"; 28 require_once "trax_exceptions.php"; 29 require_once "action_controller.php"; 30 require_once "controllers/application.php"; 29 31 30 32 /** -
trunk/trax/test/ApplicationMailerTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing ApplicationMailer\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call ApplicationMailerTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once "../vendor/trax/action_mailer.php"; 29 require_once "../app/application_mailer.php"; 28 require_once "action_mailer.php"; 30 29 31 30 /** -
trunk/trax/test/AssetTagHelperTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing AssetTagHelper\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call AssetTagHelperTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/trax_exceptions.php";28 require_once "trax_exceptions.php"; 29 29 30 30 /** -
trunk/trax/test/DateHelperTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing DateHelper\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call DateHelperTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/trax_exceptions.php";28 require_once "trax_exceptions.php"; 29 29 30 30 /** -
trunk/trax/test/DispatcherTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing Dispatcher\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call DispatcherTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/dispatcher.php";28 require_once "dispatcher.php"; 29 29 30 30 /** -
trunk/trax/test/FormHelperTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing FormHelper\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call FormHelperTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/action_view/helpers.php";29 require_once " ../vendor/trax/action_view/helpers/form_helper.php";28 require_once "action_view/helpers.php"; 29 require_once "action_view/helpers/form_helper.php"; 30 30 31 31 /** -
trunk/trax/test/FormOptionsHelperTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing FormOptionsHelper\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call FormOptionsHelperTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 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";28 require_once "action_view/helpers.php"; 29 require_once "action_view/helpers/form_helper.php"; 30 require_once "action_view/helpers/form_options_helper.php"; 31 31 32 32 /** -
trunk/trax/test/FormTagHelperTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing FormTagHelper\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call FormTagHelperTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 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";28 require_once "action_view/helpers.php"; 29 require_once "action_view/helpers/form_helper.php"; 30 require_once "action_view/helpers/form_options_helper.php"; 31 31 32 32 /** -
trunk/trax/test/HelpersTest.php
r165 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing Helpers\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call HelpersTest::main() if this source file is executed directly. … … 28 28 // root Trax files in the test directory 29 29 define("TRAX_ROOT", dirname(__FILE__) . "/"); 30 define("TRAX_LIB_ROOT", "../vendor/trax");31 30 define("TRAX_VIEWS_EXTENTION", "phtml"); 32 31 $GLOBALS['TRAX_INCLUDES'] = … … 37 36 "views" => "views"); 38 37 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";38 require_once "action_view/helpers.php"; 39 require_once "action_controller.php"; 40 require_once "router.php"; 41 require_once "controllers/application.php"; 43 42 44 43 /** -
trunk/trax/test/InflectorTest.php
r155 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing Inflector\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call InflectorTest::main() if this source file is executed directly. … … 26 26 * Require class to be tested 27 27 */ 28 require_once " ../vendor/trax/inflector.php";28 require_once "inflector.php"; 29 29 30 30 /** -
trunk/trax/test/InputFilterTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing InputFilter\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call InputFilterTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/input_filter.php";28 require_once "input_filter.php"; 29 29 30 30 /** -
trunk/trax/test/JavaScriptHelperTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing JavaScriptHelper\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call JavaScriptHelperTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 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";28 require_once "action_view/helpers.php"; 29 require_once "action_view/helpers/form_helper.php"; 30 require_once "action_view/helpers/form_options_helper.php"; 31 31 32 32 /** -
trunk/trax/test/README
r139 r192 24 24 25 25 on the command line. All tests will be run automatically. 26 (on Linux and other Unix-like systems, you can type ./runtests.php)27 26 28 27 Or you can run a single test, for example the test of the ActiveRecord 29 28 class, from the command line: 30 29 31 phpunit ActiveRecord 32 33 (on Linux and other Unix-like systems, you can type ./ActiveRecord.php) 30 php ActiveRecord.php 34 31 35 32 -
trunk/trax/test/RouterTest.php
r161 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing Router\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call RouterTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/router.php";28 require_once "router.php"; 29 29 30 30 /** -
trunk/trax/test/ScaffoldControllerTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing ScaffoldController\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call ScaffoldControllerTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 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";28 require_once "action_view/helpers.php"; 29 require_once "action_view/helpers/form_helper.php"; 30 require_once "action_view/helpers/form_options_helper.php"; 31 31 32 32 /** -
trunk/trax/test/SessionTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing Session\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call SessionTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/session.php";28 require_once "session.php"; 29 29 30 30 /** -
trunk/trax/test/TraxErrorTest.php
r163 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing TraxError\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call TraxErrorTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/trax_exceptions.php";28 require_once "trax_exceptions.php"; 29 29 30 30 /** -
trunk/trax/test/TraxGeneratorTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing TraxGenerator\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call TraxGeneratorTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 28 require_once " ../vendor/trax/trax_generator.php";28 require_once "trax_generator.php"; 29 29 30 30 /** -
trunk/trax/test/UrlHelperTest.php
r159 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 14 13 15 14 echo "testing UrlHelper\n"; 15 require_once 'testenv.php'; 16 16 17 17 // Call UrlHelperTest::main() if this source file is executed directly. … … 26 26 require_once "PHPUnit2/Framework/IncompleteTestError.php"; 27 27 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";28 require_once "action_view/helpers.php"; 29 require_once "action_view/helpers/form_helper.php"; 30 require_once "action_view/helpers/form_options_helper.php"; 31 31 32 32 /** -
trunk/trax/test/runtests.php
r163 r192 1 #!/usr/bin/php -q2 1 <?php 3 2 /** … … 12 11 * @author Walt Haas <haas@xmission.com> 13 12 */ 13 14 14 15 15 // Control order of tests
