From b2142df2bc47bf82cf55b22067ee8410c2915a95 Mon Sep 17 00:00:00 2001 From: AD7six Date: Fri, 24 Jul 2009 21:18:37 +0200 Subject: [PATCH] adding a newline before all comment blocks --- cake/basics.php | 38 ++ cake/config/paths.php | 35 ++ cake/config/unicode/casefolding/0080_00ff.php | 2 + cake/config/unicode/casefolding/0100_017f.php | 2 + cake/config/unicode/casefolding/0180_024F.php | 2 + cake/config/unicode/casefolding/0250_02af.php | 2 + cake/config/unicode/casefolding/0370_03ff.php | 2 + cake/config/unicode/casefolding/0400_04ff.php | 2 + cake/config/unicode/casefolding/0500_052f.php | 2 + cake/config/unicode/casefolding/0530_058f.php | 2 + cake/config/unicode/casefolding/1e00_1eff.php | 2 + cake/config/unicode/casefolding/1f00_1fff.php | 2 + cake/config/unicode/casefolding/2100_214f.php | 2 + cake/config/unicode/casefolding/2150_218f.php | 2 + cake/config/unicode/casefolding/2460_24ff.php | 2 + cake/config/unicode/casefolding/2c00_2c5f.php | 2 + cake/config/unicode/casefolding/2c60_2c7f.php | 2 + cake/config/unicode/casefolding/2c80_2cff.php | 2 + cake/config/unicode/casefolding/ff00_ffef.php | 2 + cake/console/cake.php | 28 ++ cake/console/error.php | 22 ++ cake/console/libs/acl.php | 21 + cake/console/libs/api.php | 4 + cake/console/libs/bake.php | 5 + cake/console/libs/console.php | 12 +- cake/console/libs/i18n.php | 8 + cake/console/libs/schema.php | 16 +- cake/console/libs/shell.php | 42 ++ cake/console/libs/tasks/controller.php | 18 + cake/console/libs/tasks/db_config.php | 10 + cake/console/libs/tasks/extract.php | 26 ++ cake/console/libs/tasks/fixture.php | 20 +- cake/console/libs/tasks/model.php | 54 ++- cake/console/libs/tasks/plugin.php | 32 +- cake/console/libs/tasks/project.php | 10 + cake/console/libs/tasks/template.php | 10 +- cake/console/libs/tasks/test.php | 26 +- cake/console/libs/tasks/view.php | 20 + .../default/actions/controller_actions.ctp | 2 +- .../libs/templates/default/classes/model.ctp | 2 +- .../libs/templates/default/classes/test.ctp | 2 +- .../libs/templates/default/views/form.ctp | 3 +- .../libs/templates/default/views/home.ctp | 2 +- .../libs/templates/default/views/index.ctp | 3 +- .../libs/templates/default/views/view.ctp | 1 + .../libs/templates/skel/app_controller.php | 2 + .../libs/templates/skel/app_helper.php | 2 + .../libs/templates/skel/config/acl.ini.php | 2 +- .../libs/templates/skel/config/bootstrap.php | 3 + .../libs/templates/skel/config/core.php | 20 + .../templates/skel/config/inflections.php | 7 + .../libs/templates/skel/config/routes.php | 3 + .../libs/templates/skel/config/sql/db_acl.php | 3 + .../libs/templates/skel/config/sql/i18n.php | 3 + .../templates/skel/config/sql/sessions.php | 3 + .../skel/controllers/pages_controller.php | 6 + cake/console/libs/templates/skel/index.php | 1 + .../views/elements/email/html/default.ctp | 1 + .../views/elements/email/text/default.ctp | 1 + .../templates/skel/views/layouts/ajax.ctp | 1 + .../templates/skel/views/layouts/default.ctp | 1 + .../skel/views/layouts/email/html/default.ctp | 3 +- .../skel/views/layouts/email/text/default.ctp | 2 +- .../templates/skel/views/layouts/flash.ctp | 1 + .../libs/templates/skel/webroot/css.php | 4 + .../libs/templates/skel/webroot/index.php | 5 + .../templates/skel/webroot/js/vendors.php | 2 + .../libs/templates/skel/webroot/test.php | 6 + cake/console/libs/testsuite.php | 16 + cake/dispatcher.php | 21 + cake/libs/cache.php | 27 ++ cake/libs/cache/apc.php | 7 + cake/libs/cache/file.php | 14 + cake/libs/cache/memcache.php | 12 +- cake/libs/cache/xcache.php | 9 + cake/libs/cake_log.php | 5 + cake/libs/cake_session.php | 40 ++ cake/libs/cake_socket.php | 19 + cake/libs/class_registry.php | 24 +- cake/libs/configure.php | 54 ++- cake/libs/controller/app_controller.php | 2 + cake/libs/controller/component.php | 13 + cake/libs/controller/components/acl.php | 33 ++ cake/libs/controller/components/auth.php | 41 ++ cake/libs/controller/components/cookie.php | 27 ++ cake/libs/controller/components/email.php | 47 +++ .../controller/components/request_handler.php | 40 +- cake/libs/controller/components/security.php | 40 ++ cake/libs/controller/components/session.php | 21 + cake/libs/controller/controller.php | 58 +++ cake/libs/controller/pages_controller.php | 6 + cake/libs/controller/scaffold.php | 26 ++ cake/libs/error.php | 23 ++ cake/libs/file.php | 36 ++ cake/libs/folder.php | 42 ++ cake/libs/http_socket.php | 29 ++ cake/libs/i18n.php | 18 + cake/libs/inflector.php | 2 + cake/libs/l10n.php | 17 + cake/libs/magic_db.php | 10 + cake/libs/model/app_model.php | 2 + cake/libs/model/behaviors/acl.php | 7 + cake/libs/model/behaviors/containable.php | 14 +- cake/libs/model/behaviors/translate.php | 15 + cake/libs/model/behaviors/tree.php | 29 +- cake/libs/model/cake_schema.php | 20 +- cake/libs/model/connection_manager.php | 16 +- cake/libs/model/datasources/datasource.php | 45 +++ cake/libs/model/datasources/dbo/dbo_adodb.php | 27 ++ cake/libs/model/datasources/dbo/dbo_db2.php | 28 ++ .../model/datasources/dbo/dbo_firebird.php | 30 ++ cake/libs/model/datasources/dbo/dbo_mssql.php | 35 ++ cake/libs/model/datasources/dbo/dbo_mysql.php | 36 +- .../libs/model/datasources/dbo/dbo_mysqli.php | 25 +- cake/libs/model/datasources/dbo/dbo_odbc.php | 19 + .../libs/model/datasources/dbo/dbo_oracle.php | 47 +++ .../model/datasources/dbo/dbo_postgres.php | 49 ++- .../libs/model/datasources/dbo/dbo_sqlite.php | 33 +- .../libs/model/datasources/dbo/dbo_sybase.php | 23 ++ cake/libs/model/datasources/dbo_source.php | 73 ++++ cake/libs/model/db_acl.php | 23 ++ cake/libs/model/model.php | 91 ++++- cake/libs/model/model_behavior.php | 31 ++ cake/libs/multibyte.php | 40 +- cake/libs/object.php | 14 + cake/libs/overloadable.php | 2 + cake/libs/overloadable_php4.php | 9 + cake/libs/overloadable_php5.php | 8 + cake/libs/router.php | 48 +++ cake/libs/sanitize.php | 14 +- cake/libs/security.php | 10 + cake/libs/set.php | 27 ++ cake/libs/string.php | 6 + cake/libs/validation.php | 46 ++- cake/libs/view/elements/dump.ctp | 1 + .../libs/view/elements/email/html/default.ctp | 1 + .../libs/view/elements/email/text/default.ctp | 1 + cake/libs/view/errors/error404.ctp | 1 + cake/libs/view/errors/missing_action.ctp | 1 + .../view/errors/missing_component_class.ctp | 1 + .../view/errors/missing_component_file.ctp | 1 + cake/libs/view/errors/missing_connection.ctp | 1 + cake/libs/view/errors/missing_controller.ctp | 1 + .../libs/view/errors/missing_helper_class.ctp | 1 + cake/libs/view/errors/missing_helper_file.ctp | 3 +- cake/libs/view/errors/missing_layout.ctp | 1 + cake/libs/view/errors/missing_model.ctp | 1 + cake/libs/view/errors/missing_scaffolddb.ctp | 1 + cake/libs/view/errors/missing_table.ctp | 1 + cake/libs/view/errors/missing_view.ctp | 1 + cake/libs/view/errors/private_action.ctp | 1 + cake/libs/view/errors/scaffold_error.ctp | 1 + cake/libs/view/helper.php | 40 ++ cake/libs/view/helpers/ajax.php | 38 ++ cake/libs/view/helpers/app_helper.php | 2 + cake/libs/view/helpers/cache.php | 10 + cake/libs/view/helpers/form.php | 45 ++- cake/libs/view/helpers/html.php | 31 ++ cake/libs/view/helpers/javascript.php | 32 +- cake/libs/view/helpers/js.php | 7 + cake/libs/view/helpers/number.php | 7 + cake/libs/view/helpers/paginator.php | 26 +- cake/libs/view/helpers/rss.php | 15 + cake/libs/view/helpers/session.php | 13 + cake/libs/view/helpers/text.php | 14 + cake/libs/view/helpers/time.php | 24 ++ cake/libs/view/helpers/xml.php | 9 + cake/libs/view/layouts/ajax.ctp | 1 + cake/libs/view/layouts/default.ctp | 1 + cake/libs/view/layouts/email/html/default.ctp | 1 + cake/libs/view/layouts/email/text/default.ctp | 2 +- cake/libs/view/layouts/flash.ctp | 1 + cake/libs/view/media.php | 7 + cake/libs/view/pages/home.ctp | 1 + cake/libs/view/scaffolds/edit.ctp | 1 + cake/libs/view/scaffolds/index.ctp | 1 + cake/libs/view/scaffolds/view.ctp | 1 + cake/libs/view/theme.php | 6 + cake/libs/view/view.php | 56 +++ cake/libs/xml.php | 69 ++++ cake/tests/cases/basics.test.php | 32 +- cake/tests/cases/console/cake.test.php | 17 + cake/tests/cases/console/libs/acl.test.php | 4 + cake/tests/cases/console/libs/api.test.php | 4 + cake/tests/cases/console/libs/bake.test.php | 4 + cake/tests/cases/console/libs/shell.test.php | 16 + .../console/libs/tasks/controller.test.php | 29 +- .../console/libs/tasks/db_config.test.php | 9 +- .../cases/console/libs/tasks/extract.test.php | 5 + .../cases/console/libs/tasks/fixture.test.php | 17 +- .../cases/console/libs/tasks/model.test.php | 44 ++- .../cases/console/libs/tasks/plugin.test.php | 11 +- .../cases/console/libs/tasks/project.test.php | 7 + .../console/libs/tasks/template.test.php | 9 +- .../cases/console/libs/tasks/test.test.php | 29 +- .../cases/console/libs/tasks/view.test.php | 16 +- cake/tests/cases/dispatcher.test.php | 93 +++++ cake/tests/cases/libs/cache.test.php | 11 + cake/tests/cases/libs/cache/apc.test.php | 8 + cake/tests/cases/libs/cache/file.test.php | 14 + cake/tests/cases/libs/cache/memcache.test.php | 12 + cake/tests/cases/libs/cache/xcache.test.php | 10 + cake/tests/cases/libs/cake_log.test.php | 3 + cake/tests/cases/libs/cake_session.test.php | 27 +- cake/tests/cases/libs/cake_socket.test.php | 11 + cake/tests/cases/libs/cake_test_case.test.php | 17 + .../cases/libs/cake_test_fixture.test.php | 21 + cake/tests/cases/libs/class_registry.test.php | 20 + .../cases/libs/code_coverage_manager.test.php | 21 + cake/tests/cases/libs/configure.test.php | 32 +- .../cases/libs/controller/component.test.php | 41 ++ .../libs/controller/components/acl.test.php | 41 ++ .../libs/controller/components/auth.test.php | 71 +++- .../controller/components/cookie.test.php | 22 ++ .../libs/controller/components/email.test.php | 34 ++ .../components/request_handler.test.php | 37 +- .../controller/components/security.test.php | 58 +++ .../controller/components/session.test.php | 22 ++ .../cases/libs/controller/controller.test.php | 66 +++- .../controller/controller_merge_vars.test.php | 14 +- .../libs/controller/pages_controller.test.php | 4 + .../cases/libs/controller/scaffold.test.php | 39 ++ cake/tests/cases/libs/debugger.test.php | 14 +- cake/tests/cases/libs/error.test.php | 35 ++ cake/tests/cases/libs/file.test.php | 20 + cake/tests/cases/libs/folder.test.php | 26 +- cake/tests/cases/libs/http_socket.test.php | 39 ++ cake/tests/cases/libs/i18n.test.php | 54 +++ cake/tests/cases/libs/inflector.test.php | 15 + cake/tests/cases/libs/l10n.test.php | 6 + cake/tests/cases/libs/magic_db.test.php | 13 + .../cases/libs/model/behaviors/acl.test.php | 28 ++ .../libs/model/behaviors/containable.test.php | 32 +- .../libs/model/behaviors/translate.test.php | 24 ++ .../cases/libs/model/behaviors/tree.test.php | 75 ++++ .../cases/libs/model/cake_schema.test.php | 45 +++ .../model/datasources/dbo/dbo_adodb.test.php | 22 ++ .../model/datasources/dbo/dbo_mssql.test.php | 28 ++ .../model/datasources/dbo/dbo_mysql.test.php | 25 ++ .../model/datasources/dbo/dbo_mysqli.test.php | 20 + .../model/datasources/dbo/dbo_oracle.test.php | 8 + .../datasources/dbo/dbo_postgres.test.php | 34 ++ .../model/datasources/dbo/dbo_sqlite.test.php | 18 + .../model/datasources/dbo_source.test.php | 174 +++++++++ cake/tests/cases/libs/model/db_acl.test.php | 31 ++ cake/tests/cases/libs/model/model.test.php | 130 ++++++- .../cases/libs/model/model_behavior.test.php | 36 ++ cake/tests/cases/libs/model/models.php | 363 ++++++++++++++++++ cake/tests/cases/libs/multibyte.test.php | 33 ++ cake/tests/cases/libs/object.test.php | 43 +++ cake/tests/cases/libs/overloadable.test.php | 3 + cake/tests/cases/libs/router.test.php | 47 ++- cake/tests/cases/libs/sanitize.test.php | 13 + cake/tests/cases/libs/security.test.php | 9 + cake/tests/cases/libs/set.test.php | 30 ++ cake/tests/cases/libs/string.test.php | 2 + cake/tests/cases/libs/test_manager.test.php | 10 + cake/tests/cases/libs/validation.test.php | 76 ++++ cake/tests/cases/libs/view/helper.test.php | 27 +- .../cases/libs/view/helpers/ajax.test.php | 35 ++ .../cases/libs/view/helpers/cache.test.php | 14 + .../cases/libs/view/helpers/form.test.php | 135 ++++++- .../cases/libs/view/helpers/html.test.php | 26 ++ .../libs/view/helpers/javascript.test.php | 31 +- .../tests/cases/libs/view/helpers/js.test.php | 5 + .../cases/libs/view/helpers/number.test.php | 14 + .../libs/view/helpers/paginator.test.php | 24 ++ .../cases/libs/view/helpers/rss.test.php | 12 + .../cases/libs/view/helpers/session.test.php | 15 +- .../cases/libs/view/helpers/text.test.php | 24 +- .../cases/libs/view/helpers/time.test.php | 22 ++ .../cases/libs/view/helpers/xml.test.php | 14 + cake/tests/cases/libs/view/theme.test.php | 24 +- cake/tests/cases/libs/view/view.test.php | 53 ++- cake/tests/cases/libs/xml.test.php | 35 +- cake/tests/fixtures/account_fixture.php | 5 + cake/tests/fixtures/aco_action_fixture.php | 7 +- cake/tests/fixtures/aco_fixture.php | 5 + cake/tests/fixtures/aco_two_fixture.php | 5 + cake/tests/fixtures/ad_fixture.php | 5 + cake/tests/fixtures/advertisement_fixture.php | 7 +- cake/tests/fixtures/after_tree_fixture.php | 5 + .../fixtures/another_article_fixture.php | 7 +- cake/tests/fixtures/apple_fixture.php | 7 +- cake/tests/fixtures/aro_fixture.php | 7 +- cake/tests/fixtures/aro_two_fixture.php | 7 +- cake/tests/fixtures/aros_aco_fixture.php | 7 +- cake/tests/fixtures/aros_aco_two_fixture.php | 7 +- .../fixtures/article_featured_fixture.php | 7 +- .../article_featureds_tags_fixture.php | 6 +- cake/tests/fixtures/article_fixture.php | 7 +- cake/tests/fixtures/articles_tag_fixture.php | 7 +- cake/tests/fixtures/attachment_fixture.php | 7 +- .../auth_user_custom_field_fixture.php | 7 +- cake/tests/fixtures/auth_user_fixture.php | 7 +- cake/tests/fixtures/author_fixture.php | 7 +- cake/tests/fixtures/basket_fixture.php | 5 + cake/tests/fixtures/bid_fixture.php | 7 +- cake/tests/fixtures/binary_test_fixture.php | 7 +- cake/tests/fixtures/book_fixture.php | 5 + .../fixtures/cache_test_model_fixture.php | 6 +- cake/tests/fixtures/callback_fixture.php | 7 +- cake/tests/fixtures/campaign_fixture.php | 5 + cake/tests/fixtures/category_fixture.php | 7 +- .../fixtures/category_thread_fixture.php | 7 +- cake/tests/fixtures/cd_fixture.php | 5 + cake/tests/fixtures/comment_fixture.php | 7 +- .../fixtures/content_account_fixture.php | 5 + cake/tests/fixtures/content_fixture.php | 5 + .../fixtures/counter_cache_post_fixture.php | 100 ++--- ...e_post_nonstandard_primary_key_fixture.php | 2 + .../fixtures/counter_cache_user_fixture.php | 98 ++--- ...e_user_nonstandard_primary_key_fixture.php | 2 + cake/tests/fixtures/data_test_fixture.php | 7 +- cake/tests/fixtures/datatype_fixture.php | 7 +- cake/tests/fixtures/dependency_fixture.php | 7 +- cake/tests/fixtures/device_fixture.php | 7 +- .../fixtures/device_type_category_fixture.php | 7 +- cake/tests/fixtures/device_type_fixture.php | 7 +- .../fixtures/document_directory_fixture.php | 7 +- cake/tests/fixtures/document_fixture.php | 7 +- .../exterior_type_category_fixture.php | 7 +- cake/tests/fixtures/feature_set_fixture.php | 7 +- cake/tests/fixtures/featured_fixture.php | 7 +- cake/tests/fixtures/film_file_fixture.php | 5 + cake/tests/fixtures/flag_tree_fixture.php | 6 +- cake/tests/fixtures/fruit_fixture.php | 5 + .../fixtures/fruits_uuid_tag_fixture.php | 5 + cake/tests/fixtures/home_fixture.php | 7 +- cake/tests/fixtures/image_fixture.php | 7 +- cake/tests/fixtures/item_fixture.php | 7 +- .../fixtures/items_portfolio_fixture.php | 7 +- cake/tests/fixtures/join_a_b_fixture.php | 7 +- cake/tests/fixtures/join_a_c_fixture.php | 7 +- cake/tests/fixtures/join_a_fixture.php | 7 +- cake/tests/fixtures/join_b_fixture.php | 7 +- cake/tests/fixtures/join_c_fixture.php | 7 +- cake/tests/fixtures/join_thing_fixture.php | 7 +- cake/tests/fixtures/message_fixture.php | 7 +- .../my_categories_my_products_fixture.php | 5 + .../my_categories_my_users_fixture.php | 5 + cake/tests/fixtures/my_category_fixture.php | 5 + cake/tests/fixtures/my_product_fixture.php | 7 +- cake/tests/fixtures/my_user_fixture.php | 5 + cake/tests/fixtures/node_fixture.php | 7 +- cake/tests/fixtures/number_tree_fixture.php | 6 +- .../fixtures/number_tree_two_fixture.php | 4 + .../fixtures/numeric_article_fixture.php | 7 +- .../fixtures/overall_favorite_fixture.php | 5 + cake/tests/fixtures/person_fixture.php | 7 +- cake/tests/fixtures/portfolio_fixture.php | 7 +- cake/tests/fixtures/post_fixture.php | 7 +- cake/tests/fixtures/posts_tag_fixture.php | 7 +- cake/tests/fixtures/primary_model_fixture.php | 7 +- cake/tests/fixtures/product_fixture.php | 5 + cake/tests/fixtures/project_fixture.php | 7 +- cake/tests/fixtures/sample_fixture.php | 7 +- .../fixtures/secondary_model_fixture.php | 7 +- cake/tests/fixtures/session_fixture.php | 7 +- .../tests/fixtures/something_else_fixture.php | 7 +- cake/tests/fixtures/something_fixture.php | 7 +- cake/tests/fixtures/stories_tag_fixture.php | 7 +- cake/tests/fixtures/story_fixture.php | 7 +- cake/tests/fixtures/syfile_fixture.php | 7 +- cake/tests/fixtures/tag_fixture.php | 7 +- .../fixtures/test_plugin_article_fixture.php | 7 +- .../fixtures/test_plugin_comment_fixture.php | 7 +- .../fixtures/the_paper_monkies_fixture.php | 7 +- cake/tests/fixtures/thread_fixture.php | 7 +- .../fixtures/translate_article_fixture.php | 8 +- cake/tests/fixtures/translate_fixture.php | 6 + .../fixtures/translate_table_fixture.php | 8 +- .../fixtures/translated_article_fixture.php | 7 +- .../fixtures/translated_item_fixture.php | 7 +- .../fixtures/unconventional_tree_fixture.php | 4 + .../fixtures/underscore_field_fixture.php | 5 +- cake/tests/fixtures/user_fixture.php | 7 +- cake/tests/fixtures/uuid_fixture.php | 7 +- cake/tests/fixtures/uuid_tag_fixture.php | 5 + cake/tests/fixtures/uuid_tree_fixture.php | 4 + cake/tests/fixtures/uuiditem_fixture.php | 5 + .../uuiditems_uuidportfolio_fixture.php | 5 + ...ditems_uuidportfolio_numericid_fixture.php | 5 + cake/tests/fixtures/uuidportfolio_fixture.php | 5 + cake/tests/groups/acl.group.php | 4 + cake/tests/groups/bake.group.php | 3 + cake/tests/groups/cache.group.php | 4 + cake/tests/groups/components.group.php | 4 + cake/tests/groups/configure.group.php | 4 + cake/tests/groups/console.group.php | 4 + cake/tests/groups/controller.group.php | 6 +- cake/tests/groups/database.group.php | 4 + cake/tests/groups/helpers.group.php | 4 + cake/tests/groups/lib.group.php | 4 + cake/tests/groups/model.group.php | 4 + .../groups/no_cross_contamination.group.php | 5 + cake/tests/groups/no_database.group.php | 4 + cake/tests/groups/routing_system.group.php | 4 + cake/tests/groups/socket.group.php | 7 +- cake/tests/groups/test_suite.group.php | 4 + cake/tests/groups/view.group.php | 4 + cake/tests/groups/xml.group.php | 4 + cake/tests/lib/cake_reporter.php | 13 + cake/tests/lib/cake_test_case.php | 31 ++ cake/tests/lib/cake_test_fixture.php | 11 +- cake/tests/lib/cake_test_model.php | 2 + cake/tests/lib/cake_web_test_case.php | 3 + cake/tests/lib/cli_reporter.php | 6 + cake/tests/lib/code_coverage_manager.php | 29 ++ cake/tests/lib/content.php | 3 +- cake/tests/lib/footer.php | 1 + cake/tests/lib/header.php | 19 +- cake/tests/lib/test_manager.php | 43 +++ cake/tests/lib/xdebug.php | 1 + cake/tests/test_app/config/acl.ini.php | 2 +- .../controllers/tests_apps_controller.php | 1 + .../tests_apps_posts_controller.php | 4 + .../behaviors/persister_one_behavior.php | 6 +- .../behaviors/persister_two_behavior.php | 6 +- cake/tests/test_app/models/comment.php | 1 + cake/tests/test_app/models/persister_one.php | 1 + cake/tests/test_app/models/persister_two.php | 1 + cake/tests/test_app/models/post.php | 1 + .../components/other_component.php | 1 + .../components/plugins_component.php | 1 + .../components/test_plugin_component.php | 1 + .../test_plugin_other_component.php | 1 + .../controllers/tests_controller.php | 1 + .../test_plugin/models/test_plugin_post.php | 3 + .../test_plugin_app_controller.php | 1 + .../test_plugin/test_plugin_app_model.php | 1 + .../vendors/sample/sample_plugin.php | 1 + .../test_plugin/vendors/shells/example.php | 2 + .../plugins/test_plugin/vendors/welcome.php | 1 + .../views/helpers/other_helper.php | 1 + .../views/helpers/plugged_helper.php | 1 + .../vendors/shells/example.php | 2 + .../vendors/shells/welcome.php | 2 + cake/tests/test_app/vendors/Test/MyTest.php | 1 + cake/tests/test_app/vendors/Test/hello.php | 1 + .../sample/configure_test_vendor_sample.php | 1 + cake/tests/test_app/vendors/shells/sample.php | 2 + .../test_app/vendors/somename/some.name.php | 1 + cake/tests/test_app/vendors/welcome.php | 1 + .../views/elements/email/html/default.ctp | 1 + .../views/elements/email/text/default.ctp | 1 + .../views/elements/email/text/wide.ctp | 1 + cake/tests/test_app/views/layouts/ajax.ctp | 1 + cake/tests/test_app/views/layouts/ajax2.ctp | 1 + .../views/layouts/cache_empty_sections.ctp | 2 +- .../test_app/views/layouts/cache_layout.ctp | 2 +- cake/tests/test_app/views/layouts/default.ctp | 1 + .../views/layouts/email/html/default.ctp | 3 +- .../views/layouts/email/html/thin.ctp | 3 +- .../views/layouts/email/text/default.ctp | 2 +- cake/tests/test_app/views/layouts/flash.ctp | 1 + .../test_app/views/layouts/multi_cache.ctp | 3 +- cake/tests/test_app/views/pages/home.ctp | 2 +- .../views/posts/sequencial_nocache.ctp | 3 +- .../views/posts/test_nocache_tags.ctp | 1 + 460 files changed, 6739 insertions(+), 334 deletions(-) diff --git a/cake/basics.php b/cake/basics.php index 1c1dd61d1..b6b07c761 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -1,5 +1,6 @@ tags around * the output of given array. Similar to debug(). @@ -314,6 +331,7 @@ if (!function_exists('array_combine')) { echo ''; } } + /** * Display parameters. * @@ -329,6 +347,7 @@ if (!function_exists('array_combine')) { } return $p; } + /** * Merge a group of arrays * @@ -350,6 +369,7 @@ if (!function_exists('array_combine')) { } return $r; } + /** * Gets an environment variable from available sources, and provides emulation * for unsupported or inconsistent environment variables (i.e. DOCUMENT_ROOT on @@ -426,6 +446,7 @@ if (!function_exists('array_combine')) { return null; } if (!function_exists('file_put_contents')) { + /** * Writes data into file. * @@ -453,6 +474,7 @@ if (!function_exists('file_put_contents')) { return false; } } + /** * Reads/writes temporary data to cache files or session. * @@ -504,6 +526,7 @@ if (!function_exists('file_put_contents')) { } return $data; } + /** * Used to delete files in the cache directories, or clear contents of cache directories * @@ -566,6 +589,7 @@ if (!function_exists('file_put_contents')) { } return false; } + /** * Recursively strips slashes from all values in an array * @@ -583,6 +607,7 @@ if (!function_exists('file_put_contents')) { } return $values; } + /** * Returns a translated string if one is found; Otherwise, the submitted message. * @@ -605,6 +630,7 @@ if (!function_exists('file_put_contents')) { return I18n::translate($singular); } } + /** * Returns correct plural form of message identified by $singular and $plural for count $count. * Some languages have more than one form for plural messages dependent on the count. @@ -629,6 +655,7 @@ if (!function_exists('file_put_contents')) { return I18n::translate($singular, $plural, null, 6, $count); } } + /** * Allows you to override the current domain for a single message lookup. * @@ -651,6 +678,7 @@ if (!function_exists('file_put_contents')) { return I18n::translate($msg, null, $domain); } } + /** * Allows you to override the current domain for a single plural message lookup. * Returns correct plural form of message identified by $singular and $plural for count $count @@ -677,6 +705,7 @@ if (!function_exists('file_put_contents')) { return I18n::translate($singular, $plural, $domain, 6, $count); } } + /** * Allows you to override the current domain for a single message lookup. * It also allows you to specify a category. @@ -713,6 +742,7 @@ if (!function_exists('file_put_contents')) { return I18n::translate($msg, null, $domain, $category); } } + /** * Allows you to override the current domain for a single plural message lookup. * It also allows you to specify a category. @@ -753,6 +783,7 @@ if (!function_exists('file_put_contents')) { return I18n::translate($singular, $plural, $domain, $category, $count); } } + /** * The category argument allows a specific category of the locale settings to be used for fetching a message. * Valid categories are: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL. @@ -785,6 +816,7 @@ if (!function_exists('file_put_contents')) { return I18n::translate($msg, null, null, $category); } } + /** * Computes the difference of arrays using keys for comparison. * @@ -819,6 +851,7 @@ if (!function_exists('file_put_contents')) { return $valuesDiff; } } + /** * Computes the intersection of arrays using keys for comparison * @@ -837,6 +870,7 @@ if (!function_exists('file_put_contents')) { return $res; } } + /** * Shortcut to Log::write. * @@ -850,6 +884,7 @@ if (!function_exists('file_put_contents')) { $good = ' '; CakeLog::write('error', str_replace($bad, $good, $message)); } + /** * Searches include path for files. * @@ -870,6 +905,7 @@ if (!function_exists('file_put_contents')) { } return false; } + /** * Convert forward slashes to underscores and removes first and last underscores in a string * @@ -883,6 +919,7 @@ if (!function_exists('file_put_contents')) { $string = str_replace('/', '_', $string); return $string; } + /** * Implements http_build_query for PHP4. * @@ -922,6 +959,7 @@ if (!function_exists('file_put_contents')) { return implode($argSep, $out); } } + /** * Wraps ternary operations. If $condition is a non-empty value, $val1 is returned, otherwise $val2. * Don't use for isset() conditions, or wrap your variable with @ operator: diff --git a/cake/config/paths.php b/cake/config/paths.php index 6a6449f0e..4a29fadab 100644 --- a/cake/config/paths.php +++ b/cake/config/paths.php @@ -1,5 +1,6 @@ __construct($args); } + /** * Constructor * @@ -130,6 +145,7 @@ class ShellDispatcher { $this->__buildPaths(); $this->_stop($this->dispatch()); } + /** * Defines core configuration. * @@ -154,6 +170,7 @@ class ShellDispatcher { } require_once(CORE_PATH . 'cake' . DS . 'basics.php'); } + /** * Defines current working environment. * @@ -190,6 +207,7 @@ class ShellDispatcher { $this->shiftArgs(); } + /** * Builds the shell paths. * @@ -224,6 +242,7 @@ class ShellDispatcher { $this->shellPaths = array_values(array_unique(array_merge($paths, App::path('shells')))); } + /** * Initializes the environment and loads the Cake core. * @@ -266,6 +285,7 @@ class ShellDispatcher { Configure::write('debug', 1); return true; } + /** * Dispatches a CLI request * @@ -382,6 +402,7 @@ class ShellDispatcher { $this->help(); } } + /** * Prompts the user for input, and returns it. * @@ -415,6 +436,7 @@ class ShellDispatcher { } return $result; } + /** * Outputs to the stdout filehandle. * @@ -429,6 +451,7 @@ class ShellDispatcher { fwrite($this->stdout, $string); } } + /** * Outputs to the stderr filehandle. * @@ -438,6 +461,7 @@ class ShellDispatcher { function stderr($string) { fwrite($this->stderr, 'Error: '. $string); } + /** * Parses command line options * @@ -479,6 +503,7 @@ class ShellDispatcher { $this->params = array_merge($this->params, $params); } + /** * Helper for recursively paraing params * @@ -510,6 +535,7 @@ class ShellDispatcher { } } } + /** * Removes first argument and shifts other arguments up * @@ -524,6 +550,7 @@ class ShellDispatcher { $this->args = array_values($this->args); return true; } + /** * Shows console help * @@ -570,6 +597,7 @@ class ShellDispatcher { $this->stdout("To get help on a specific command, type 'cake shell_name help'"); $this->_stop(); } + /** * Stop execution of the current script * diff --git a/cake/console/error.php b/cake/console/error.php index 9c88a40b8..4d9a9f7a5 100644 --- a/cake/console/error.php +++ b/cake/console/error.php @@ -1,5 +1,6 @@ stderr($code . $name . $message."\n"); $this->_stop(); } + /** * Convenience method to display a 404 page. * @@ -84,6 +91,7 @@ class ErrorHandler extends Object { 'message' => sprintf(__("The requested address %s was not found on this server.", true), $url, $message))); $this->_stop(); } + /** * Renders the Missing Controller web page. * @@ -96,6 +104,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing Controller '%s'", true), $controllerName)); $this->_stop(); } + /** * Renders the Missing Action web page. * @@ -107,6 +116,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing Method '%s' in '%s'", true), $action, $className)); $this->_stop(); } + /** * Renders the Private Action web page. * @@ -118,6 +128,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Trying to access private method '%s' in '%s'", true), $action, $className)); $this->_stop(); } + /** * Renders the Missing Table web page. * @@ -129,6 +140,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing database table '%s' for model '%s'", true), $table, $className)); $this->_stop(); } + /** * Renders the Missing Database web page. * @@ -139,6 +151,7 @@ class ErrorHandler extends Object { $this->stderr(__("Missing Database", true)); $this->_stop(); } + /** * Renders the Missing View web page. * @@ -150,6 +163,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing View '%s' for '%s' in '%s'", true), $file, $action, $className)); $this->_stop(); } + /** * Renders the Missing Layout web page. * @@ -161,6 +175,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing Layout '%s'", true), $file)); $this->_stop(); } + /** * Renders the Database Connection web page. * @@ -172,6 +187,7 @@ class ErrorHandler extends Object { $this->stderr(__("Missing Database Connection. Try 'cake bake'", true)); $this->_stop(); } + /** * Renders the Missing Helper file web page. * @@ -183,6 +199,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing Helper file '%s' for '%s'", true), $file, Inflector::camelize($helper))); $this->_stop(); } + /** * Renders the Missing Helper class web page. * @@ -194,6 +211,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing Helper class '%s' in '%s'", true), Inflector::camelize($helper), $file)); $this->_stop(); } + /** * Renders the Missing Component file web page. * @@ -205,6 +223,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing Component file '%s' for '%s'", true), $file, Inflector::camelize($component))); $this->_stop(); } + /** * Renders the Missing Component class web page. * @@ -216,6 +235,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing Component class '%s' in '%s'", true), Inflector::camelize($component), $file)); $this->_stop(); } + /** * Renders the Missing Model class web page. * @@ -227,6 +247,7 @@ class ErrorHandler extends Object { $this->stderr(sprintf(__("Missing model '%s'", true), $className)); $this->_stop(); } + /** * Outputs to the stdout filehandle. * @@ -241,6 +262,7 @@ class ErrorHandler extends Object { fwrite($this->stdout, $string); } } + /** * Outputs to the stderr filehandle. * diff --git a/cake/console/libs/acl.php b/cake/console/libs/acl.php index 5a7873da8..c62f91ba3 100644 --- a/cake/console/libs/acl.php +++ b/cake/console/libs/acl.php @@ -1,5 +1,6 @@ '", true); $this->out($out); } + /** * Creates an ARO/ACO node * @@ -179,6 +188,7 @@ class AclShell extends Shell { $this->err(sprintf(__("There was a problem creating a new %s '%s'.", true), $class, $this->args[2])); } } + /** * Delete an ARO/ACO node. * @@ -216,6 +226,7 @@ class AclShell extends Shell { $this->out(sprintf(__("Node parent set to %s", true), $this->args[2]) . "\n", true); } } + /** * Get path to specified ARO/ACO node. * @@ -234,6 +245,7 @@ class AclShell extends Shell { $this->out(str_repeat(' ', $i) . "[" . $nodes[$i][$class]['id'] . "]" . $nodes[$i][$class]['alias'] . "\n"); } } + /** * Check permission for a given ARO to a given ACO. * @@ -249,6 +261,7 @@ class AclShell extends Shell { $this->out(sprintf(__("%s is not allowed.", true), $aro), true); } } + /** * Grant permission for a given ARO to a given ACO. * @@ -264,6 +277,7 @@ class AclShell extends Shell { $this->out(__("Permission was not granted.", true), true); } } + /** * Deny access for an ARO to an ACO. * @@ -279,6 +293,7 @@ class AclShell extends Shell { $this->out(__("Permission was not denied.", true), true); } } + /** * Set an ARO to inhermit permission to an ACO. * @@ -294,6 +309,7 @@ class AclShell extends Shell { $this->out(__("Permission was not inherited.", true), true); } } + /** * Show a specific ARO/ACO node. * @@ -345,6 +361,7 @@ class AclShell extends Shell { } $this->hr(); } + /** * Initialize ACL database. * @@ -354,6 +371,7 @@ class AclShell extends Shell { $this->Dispatch->args = array('schema', 'run', 'create', 'DbAcl'); $this->Dispatch->dispatch(); } + /** * Show help screen. * @@ -431,6 +449,7 @@ class AclShell extends Shell { $this->out(sprintf(__("Command '%s' not found", true), $this->args[0])); } } + /** * Check that first argument specifies a valid Node type (ARO/ACO) * @@ -444,6 +463,7 @@ class AclShell extends Shell { $this->error(sprintf(__("Missing/Unknown node type: '%s'", true), $this->args[1]), __('Please specify which ACL object type you wish to create.', true)); } } + /** * Checks that given node exists * @@ -465,6 +485,7 @@ class AclShell extends Shell { } return $possibility; } + /** * get params for standard Acl methods * diff --git a/cake/console/libs/api.php b/cake/console/libs/api.php index 7ff0d73e0..e0ceba164 100644 --- a/cake/console/libs/api.php +++ b/cake/console/libs/api.php @@ -1,5 +1,6 @@ LIBS )); } + /** * Override main() to handle action * diff --git a/cake/console/libs/bake.php b/cake/console/libs/bake.php index fc81eec16..af35877b6 100644 --- a/cake/console/libs/bake.php +++ b/cake/console/libs/bake.php @@ -22,6 +22,7 @@ * @since CakePHP(tm) v 1.2.0.5012 * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Bake is a command-line code generation utility for automating programmer chores. * @@ -30,6 +31,7 @@ * @link http://book.cakephp.org/view/113/Code-Generation-with-Bake */ class BakeShell extends Shell { + /** * Contains tasks to load and instantiate * @@ -37,6 +39,7 @@ class BakeShell extends Shell { * @access public */ var $tasks = array('Project', 'DbConfig', 'Model', 'Controller', 'View', 'Plugin', 'Fixture', 'Test'); + /** * Override loadTasks() to handle paths * @@ -62,6 +65,7 @@ class BakeShell extends Shell { } } } + /** * Override main() to handle action * @@ -118,6 +122,7 @@ class BakeShell extends Shell { $this->hr(); $this->main(); } + /** * Quickly bake the MVC * diff --git a/cake/console/libs/console.php b/cake/console/libs/console.php index 89b2a26a2..82427d9b4 100644 --- a/cake/console/libs/console.php +++ b/cake/console/libs/console.php @@ -1,5 +1,6 @@ _loadRoutes(); } + /** * Prints the help message * @@ -136,6 +143,7 @@ class ConsoleShell extends Shell { $out .= "\tRoutes show"; $this->out($out); } + /** * Override main() to handle action * @@ -320,6 +328,7 @@ class ConsoleShell extends Shell { $command = ''; } } + /** * Tells if the specified model is included in the list of available models * @@ -330,6 +339,7 @@ class ConsoleShell extends Shell { function _isValidModel($modelToCheck) { return in_array($modelToCheck, $this->models); } + /** * Reloads the routes configuration from config/routes.php, and compiles * all routes found @@ -357,4 +367,4 @@ class ConsoleShell extends Shell { return true; } } -?> +?> \ No newline at end of file diff --git a/cake/console/libs/i18n.php b/cake/console/libs/i18n.php index aa5fe8b8a..5e8d547ed 100644 --- a/cake/console/libs/i18n.php +++ b/cake/console/libs/i18n.php @@ -1,5 +1,6 @@ hr(); $this->main(); } + /** * Initialize I18N database. * @@ -105,6 +112,7 @@ class I18nShell extends Shell { $this->Dispatch->args = array('schema', 'run', 'create', 'i18n'); $this->Dispatch->dispatch(); } + /** * Show help screen. * diff --git a/cake/console/libs/schema.php b/cake/console/libs/schema.php index e9fdfb193..d5bfb3ff7 100644 --- a/cake/console/libs/schema.php +++ b/cake/console/libs/schema.php @@ -1,5 +1,6 @@ out('Cake Schema Shell'); $this->hr(); } + /** * Override startup * @@ -85,6 +90,7 @@ class SchemaShell extends Shell { $this->Schema =& new CakeSchema(compact('name', 'path', 'file', 'connection')); } + /** * Override main * @@ -93,6 +99,7 @@ class SchemaShell extends Shell { function main() { $this->help(); } + /** * Read and output contents of schema object * path to read as second arg @@ -109,6 +116,7 @@ class SchemaShell extends Shell { $this->_stop(); } } + /** * Read database and Write schema object * accepts a connection as first arg or path to save as second arg @@ -177,6 +185,7 @@ class SchemaShell extends Shell { $this->_stop(); } } + /** * Dump Schema object to sql file * if first arg == write, file will be written to sql file @@ -217,6 +226,7 @@ class SchemaShell extends Shell { $this->out($contents); return $contents; } + /** * Run database commands: create, update * @@ -275,6 +285,7 @@ class SchemaShell extends Shell { $this->_stop(); } } + /** * Create database from Schema object * Should be called via the run method @@ -318,6 +329,7 @@ class SchemaShell extends Shell { $this->out(__('End create.', true)); } + /** * Update database with Schema object * Should be called via the run method @@ -356,6 +368,7 @@ class SchemaShell extends Shell { $this->out(__('End update.', true)); } + /** * Runs sql from __create() or __update() * @@ -397,6 +410,7 @@ class SchemaShell extends Shell { } } } + /** * Displays help contents * @@ -426,4 +440,4 @@ class SchemaShell extends Shell { $this->_stop(); } } -?> +?> \ No newline at end of file diff --git a/cake/console/libs/shell.php b/cake/console/libs/shell.php index 9c22a8468..c5e322012 100644 --- a/cake/console/libs/shell.php +++ b/cake/console/libs/shell.php @@ -1,5 +1,6 @@ Dispatch =& $dispatch; } + /** * Initializes the Shell * acts as constructor for subclasses @@ -169,6 +186,7 @@ class Shell extends Object { function initialize() { $this->_loadModels(); } + /** * Starts up the the Shell * allows for checking and configuring prior to command or main execution @@ -179,6 +197,7 @@ class Shell extends Object { function startup() { $this->_welcome(); } + /** * Displays a header for the shell * @@ -191,6 +210,7 @@ class Shell extends Object { $this->out('Path: '. $this->params['working']); $this->hr(); } + /** * Loads database file and constructs DATABASE_CONFIG class * makes $this->DbConfig available to subclasses @@ -207,6 +227,7 @@ class Shell extends Object { $this->out('Run \'bake\' to create the database configuration'); return false; } + /** * if var $uses = true * Loads AppModel file and constructs AppModel class @@ -251,6 +272,7 @@ class Shell extends Object { } return false; } + /** * Loads tasks defined in var $tasks * @@ -304,6 +326,7 @@ class Shell extends Object { return true; } + /** * Prompts the user for input, and returns it. * @@ -337,6 +360,7 @@ class Shell extends Object { return $in; } } + /** * Outputs to the stdout filehandle. * @@ -354,6 +378,7 @@ class Shell extends Object { } return $this->Dispatch->stdout($string, $newline); } + /** * Outputs to the stderr filehandle. * @@ -370,6 +395,7 @@ class Shell extends Object { } return $this->Dispatch->stderr($string."\n"); } + /** * Outputs a series of minus characters to the standard output, acts as a visual separator. * @@ -385,6 +411,7 @@ class Shell extends Object { $this->out("\n"); } } + /** * Displays a formatted error message and exits the application * @@ -399,6 +426,7 @@ class Shell extends Object { $this->err($out); $this->_stop(); } + /** * Will check the number args matches otherwise throw an error * @@ -414,6 +442,7 @@ class Shell extends Object { $this->error("Wrong number of parameters: ".count($this->args), "Expected: {$expectedNum}\nPlease type 'cake {$this->shell} help' for help on usage of the {$this->name} {$command}"); } } + /** * Creates a file at given path * @@ -449,6 +478,7 @@ class Shell extends Object { return false; } } + /** * Outputs usage text on the standard output. Implement it in subclasses. * @@ -461,6 +491,7 @@ class Shell extends Object { $this->Dispatch->help(); } } + /** * Action to create a Unit Test * @@ -479,6 +510,7 @@ class Shell extends Object { } return $result; } + /** * Makes absolute file path easier to read * @@ -491,6 +523,7 @@ class Shell extends Object { $shortPath = str_replace('..'.DS, '', $shortPath); return r(DS.DS, DS, $shortPath); } + /** * Creates the proper controller path for the specified controller class name * @@ -501,6 +534,7 @@ class Shell extends Object { function _controllerPath($name) { return low(Inflector::underscore($name)); } + /** * Creates the proper controller plural name for the specified controller class name * @@ -511,6 +545,7 @@ class Shell extends Object { function _controllerName($name) { return Inflector::pluralize(Inflector::camelize($name)); } + /** * Creates the proper controller camelized name (singularized) for the specified name * @@ -521,6 +556,7 @@ class Shell extends Object { function _modelName($name) { return Inflector::camelize(Inflector::singularize($name)); } + /** * Creates the proper singular model key for associations * @@ -531,6 +567,7 @@ class Shell extends Object { function _modelKey($name) { return Inflector::underscore(Inflector::singularize($name)).'_id'; } + /** * Creates the proper model name from a foreign key * @@ -542,6 +579,7 @@ class Shell extends Object { $name = str_replace('_id', '',$key); return Inflector::camelize($name); } + /** * creates the singular name for use in views. * @@ -552,6 +590,7 @@ class Shell extends Object { function _singularName($name) { return Inflector::variable(Inflector::singularize($name)); } + /** * Creates the plural name for views * @@ -562,6 +601,7 @@ class Shell extends Object { function _pluralName($name) { return Inflector::variable(Inflector::pluralize($name)); } + /** * Creates the singular human name used in views * @@ -572,6 +612,7 @@ class Shell extends Object { function _singularHumanName($name) { return Inflector::humanize(Inflector::underscore(Inflector::singularize($name))); } + /** * Creates the plural human name used in views * @@ -582,6 +623,7 @@ class Shell extends Object { function _pluralHumanName($name) { return Inflector::humanize(Inflector::underscore(Inflector::pluralize($name))); } + /** * Find the correct path for a plugin. Scans $pluginPaths for the plugin you want. * diff --git a/cake/console/libs/tasks/controller.php b/cake/console/libs/tasks/controller.php index 46828a750..25e63e404 100644 --- a/cake/console/libs/tasks/controller.php +++ b/cake/console/libs/tasks/controller.php @@ -20,6 +20,7 @@ * @since CakePHP(tm) v 1.2 * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Task class for creating and updating controller files. * @@ -27,6 +28,7 @@ * @subpackage cake.cake.console.libs.tasks */ class ControllerTask extends Shell { + /** * Name of plugin * @@ -34,6 +36,7 @@ class ControllerTask extends Shell { * @access public */ var $plugin = null; + /** * Tasks to be loaded by this Task * @@ -41,6 +44,7 @@ class ControllerTask extends Shell { * @access public */ var $tasks = array('Model', 'Test', 'Template', 'DbConfig', 'Project'); + /** * path to CONTROLLERS directory * @@ -48,6 +52,7 @@ class ControllerTask extends Shell { * @access public */ var $path = CONTROLLERS; + /** * Override initialize * @@ -55,6 +60,7 @@ class ControllerTask extends Shell { */ function initialize() { } + /** * Execution method always used for tasks * @@ -97,6 +103,7 @@ class ControllerTask extends Shell { } } } + /** * Bake All the controllers at once. Will only bake controllers for models that exist. * @@ -119,6 +126,7 @@ class ControllerTask extends Shell { } } } + /** * Interactive * @@ -202,6 +210,7 @@ class ControllerTask extends Shell { } } } + /** * Confirm a to be baked controller with the user * @@ -239,6 +248,7 @@ class ControllerTask extends Shell { } $this->hr(); } + /** * Interact with the user and ask about which methods (admin or regular they want to bake) * @@ -255,6 +265,7 @@ class ControllerTask extends Shell { ); return array($wannaBakeCrud, $wannaBakeAdminCrud); } + /** * Bake scaffold actions * @@ -286,6 +297,7 @@ class ControllerTask extends Shell { $actions = $this->Template->generate('actions', 'controller_actions'); return $actions; } + /** * Assembles and writes a Controller file * @@ -314,6 +326,7 @@ class ControllerTask extends Shell { } return false; } + /** * Assembles and writes a unit test file * @@ -326,6 +339,7 @@ class ControllerTask extends Shell { $this->Test->connection = $this->connection; return $this->Test->bake('Controller', $className); } + /** * Interact with the user and get a list of additional helpers * @@ -349,6 +363,7 @@ class ControllerTask extends Shell { __("Please provide a comma separated list of the component names you'd like to use.\nExample: 'Acl, Security, RequestHandler'", true) ); } + /** * Common code for property choice handling. * @@ -366,6 +381,7 @@ class ControllerTask extends Shell { } return array_filter($property); } + /** * Outputs and gets the list of possible controllers from database * @@ -392,6 +408,7 @@ class ControllerTask extends Shell { } return $this->__tables; } + /** * Forces the user to specify the controller he wants to bake, and returns the selected controller name. * @@ -424,6 +441,7 @@ class ControllerTask extends Shell { } return $controllerName; } + /** * Displays help contents * diff --git a/cake/console/libs/tasks/db_config.php b/cake/console/libs/tasks/db_config.php index 42c0a42af..befedb4c1 100644 --- a/cake/console/libs/tasks/db_config.php +++ b/cake/console/libs/tasks/db_config.php @@ -20,6 +20,7 @@ * @since CakePHP(tm) v 1.2 * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Task class for creating and updating the database configuration file. * @@ -27,6 +28,7 @@ * @subpackage cake.cake.console.libs.tasks */ class DbConfigTask extends Shell { + /** * path to CONFIG directory * @@ -34,6 +36,7 @@ class DbConfigTask extends Shell { * @access public */ var $path = null; + /** * Default configuration settings to use * @@ -45,6 +48,7 @@ class DbConfigTask extends Shell { 'login'=> 'root', 'password'=> 'password', 'database'=> 'project_name', 'schema'=> null, 'prefix'=> null, 'encoding' => null, 'port' => null ); + /** * String name of the database config class name. * Used for testing. @@ -52,6 +56,7 @@ class DbConfigTask extends Shell { * @var string **/ var $databaseClassName = 'DATABASE_CONFIG'; + /** * initialization callback * @@ -61,6 +66,7 @@ class DbConfigTask extends Shell { function initialize() { $this->path = $this->params['working'] . DS . 'config' . DS; } + /** * Execution method always used for tasks * @@ -72,6 +78,7 @@ class DbConfigTask extends Shell { $this->_stop(); } } + /** * Interactive interface * @@ -187,6 +194,7 @@ class DbConfigTask extends Shell { config('database'); return true; } + /** * Output verification message and bake if it looks good * @@ -233,6 +241,7 @@ class DbConfigTask extends Shell { } return false; } + /** * Assembles and writes database.php * @@ -337,6 +346,7 @@ class DbConfigTask extends Shell { $filename = $this->path . 'database.php'; return $this->createFile($filename, $out); } + /** * Get a user specified Connection name * diff --git a/cake/console/libs/tasks/extract.php b/cake/console/libs/tasks/extract.php index 552eb8497..eda49614b 100644 --- a/cake/console/libs/tasks/extract.php +++ b/cake/console/libs/tasks/extract.php @@ -20,6 +20,7 @@ * @since CakePHP(tm) v 1.2.0.5012 * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Only used when -debug option */ @@ -47,6 +48,7 @@ $categoryEcho = __c('Category string lookup line echo __c()', 5); ob_end_clean(); + /** * Language string extractor * @@ -54,6 +56,7 @@ * @subpackage cake.cake.console.libs */ class ExtractTask extends Shell{ + /** * Path to use when looking for strings * @@ -61,6 +64,7 @@ class ExtractTask extends Shell{ * @access public */ var $path = null; + /** * Files from where to extract * @@ -68,6 +72,7 @@ class ExtractTask extends Shell{ * @access public */ var $files = array(); + /** * Filename where to deposit translations * @@ -75,6 +80,7 @@ class ExtractTask extends Shell{ * @access private */ var $__filename = 'default'; + /** * True if all strings should be merged into one file * @@ -82,6 +88,7 @@ class ExtractTask extends Shell{ * @access private */ var $__oneFile = true; + /** * Current file being processed * @@ -89,6 +96,7 @@ class ExtractTask extends Shell{ * @access private */ var $__file = null; + /** * Extracted tokens * @@ -96,6 +104,7 @@ class ExtractTask extends Shell{ * @access private */ var $__tokens = array(); + /** * Extracted strings * @@ -103,6 +112,7 @@ class ExtractTask extends Shell{ * @access private */ var $__strings = array(); + /** * History of file versions * @@ -110,6 +120,7 @@ class ExtractTask extends Shell{ * @access private */ var $__fileVersions = array(); + /** * Destination path * @@ -117,6 +128,7 @@ class ExtractTask extends Shell{ * @access private */ var $__output = null; + /** * Execution method always used for tasks * @@ -176,6 +188,7 @@ class ExtractTask extends Shell{ } $this->__extract(); } + /** * Extract text * @@ -208,6 +221,7 @@ class ExtractTask extends Shell{ } $this->__extractTokens(); } + /** * Show help options * @@ -233,6 +247,7 @@ class ExtractTask extends Shell{ $this->out(__(' -debug: Perform self test.', true)); $this->out(''); } + /** * Extract tokens out of all files to be processed * @@ -277,6 +292,7 @@ class ExtractTask extends Shell{ $this->__writeFiles(); $this->out('Done.'); } + /** * Will parse __(), __c() functions * @@ -312,6 +328,7 @@ class ExtractTask extends Shell{ $count++; } } + /** * Will parse __d(), __dc(), __n(), __dn(), __dcn() * @@ -398,6 +415,7 @@ class ExtractTask extends Shell{ $count++; } } + /** * Build the translate template file contents out of obtained strings * @@ -460,6 +478,7 @@ class ExtractTask extends Shell{ $this->__store($filename, $output, $fileList); } } + /** * Prepare a file to be stored * @@ -487,6 +506,7 @@ class ExtractTask extends Shell{ return $storage; } } + /** * Write the files that need to be stored * @@ -535,6 +555,7 @@ class ExtractTask extends Shell{ fclose($fp); } } + /** * Merge output files * @@ -561,6 +582,7 @@ class ExtractTask extends Shell{ } return $output; } + /** * Build the translation template header * @@ -586,6 +608,7 @@ class ExtractTask extends Shell{ $output .= "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\n\"\n\n"; return $output; } + /** * Find the version number of a file looking for SVN commands * @@ -600,6 +623,7 @@ class ExtractTask extends Shell{ $this->__fileVersions[$file] = $version; } } + /** * Format a string to be added as a translateable string * @@ -618,6 +642,7 @@ class ExtractTask extends Shell{ $string = str_replace("\r\n", "\n", $string); return addcslashes($string, "\0..\37\\\""); } + /** * Indicate an invalid marker on a processed file * @@ -650,6 +675,7 @@ class ExtractTask extends Shell{ } $this->out("\n", true); } + /** * Search the specified path for files that may contain translateable strings * diff --git a/cake/console/libs/tasks/fixture.php b/cake/console/libs/tasks/fixture.php index f145ee73c..eca3b9da6 100644 --- a/cake/console/libs/tasks/fixture.php +++ b/cake/console/libs/tasks/fixture.php @@ -18,6 +18,7 @@ * @since CakePHP(tm) v 1.3 * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Task class for creating and updating fixtures files. * @@ -25,6 +26,7 @@ * @subpackage cake.cake.console.libs.tasks */ class FixtureTask extends Shell { + /** * Name of plugin * @@ -32,6 +34,7 @@ class FixtureTask extends Shell { * @access public */ var $plugin = null; + /** * Tasks to be loaded by this Task * @@ -39,6 +42,7 @@ class FixtureTask extends Shell { * @access public */ var $tasks = array('DbConfig', 'Model', 'Template'); + /** * path to fixtures directory * @@ -46,18 +50,21 @@ class FixtureTask extends Shell { * @access public */ var $path = null; + /** * The db connection being used for baking * * @var string **/ var $connection = null; + /** * Schema instance * * @var object **/ var $_Schema = null; + /** * Override initialize * @@ -70,6 +77,7 @@ class FixtureTask extends Shell { App::import('Model', 'CakeSchema'); } } + /** * Execution method always used for tasks * Handles dispatching to interactive, named, or all processess. @@ -92,6 +100,7 @@ class FixtureTask extends Shell { $this->bake($model); } } + /** * Bake All the Fixtures at once. Will only bake fixtures for models that exist. * @@ -106,6 +115,7 @@ class FixtureTask extends Shell { $this->bake($model); } } + /** * Interactive baking function * @@ -126,6 +136,7 @@ class FixtureTask extends Shell { $importOptions = $this->importOptions($modelName); $this->bake($modelName, $useTable, $importOptions); } + /** * Interacts with the User to setup an array of import options. For a fixture. * @@ -151,6 +162,7 @@ class FixtureTask extends Shell { } return $options; } + /** * Assembles and writes a Fixture file * @@ -209,6 +221,7 @@ class FixtureTask extends Shell { $out = $this->generateFixtureFile($model, compact('records', 'table', 'schema', 'import', 'fields')); return $out; } + /** * Generate the fixture file, and write to disk * @@ -235,6 +248,7 @@ class FixtureTask extends Shell { $this->createFile($path . $filename, $content); return $content; } + /** * Generates a string representation of a schema. * @@ -265,6 +279,7 @@ class FixtureTask extends Shell { $out .= "\n\t)"; return $out; } + /** * Generate String representation of Records * @@ -333,6 +348,7 @@ class FixtureTask extends Shell { } return $records; } + /** * Convert a $records array into a a string. * @@ -353,10 +369,11 @@ class FixtureTask extends Shell { $out .= "\t)"; return $out; } + /** * Interact with the user to get a custom SQL condition and use that to extract data * to build a fixture. - * + * * @param string $modelName name of the model to take records from. * @param string $useTable Name of table to use. * @return array Array of records. @@ -385,6 +402,7 @@ class FixtureTask extends Shell { } return $out; } + /** * Displays help contents * diff --git a/cake/console/libs/tasks/model.php b/cake/console/libs/tasks/model.php index d436748d9..8d3840158 100644 --- a/cake/console/libs/tasks/model.php +++ b/cake/console/libs/tasks/model.php @@ -21,6 +21,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ App::import('Model', 'ConnectionManager'); + /** * Task class for creating and updating model files. * @@ -28,6 +29,7 @@ App::import('Model', 'ConnectionManager'); * @subpackage cake.cake.console.libs.tasks */ class ModelTask extends Shell { + /** * Name of plugin * @@ -35,6 +37,7 @@ class ModelTask extends Shell { * @access public */ var $plugin = null; + /** * Name of the db connection used. * @@ -42,6 +45,7 @@ class ModelTask extends Shell { * @access public */ var $connection = null; + /** * path to MODELS directory * @@ -49,6 +53,7 @@ class ModelTask extends Shell { * @access public */ var $path = MODELS; + /** * tasks * @@ -56,18 +61,21 @@ class ModelTask extends Shell { * @access public */ var $tasks = array('DbConfig', 'Fixture', 'Test', 'Template'); + /** * Holds tables found on connection. * * @var array **/ var $__tables = array(); + /** * Holds validation method map. * * @var array **/ var $__validations = array(); + /** * startup method * @@ -77,6 +85,7 @@ class ModelTask extends Shell { App::import('Core', 'Model'); parent::startup(); } + /** * Execution method always used for tasks * @@ -105,6 +114,7 @@ class ModelTask extends Shell { } } } + /** * Bake all models at once. * @@ -123,6 +133,7 @@ class ModelTask extends Shell { } } } + /** * Get a model object for a class name. * @@ -133,9 +144,10 @@ class ModelTask extends Shell { $object = new Model(array('name' => $className, 'ds' => $this->connection)); return $object; } + /** * Generate a key value list of options and a prompt. - * + * * @param array $options Array of options to use for the selections. indexes must start at 0 * @param string $prompt Prompt to use for options list. * @param integer $default The default option for the given prompt. @@ -158,6 +170,7 @@ class ModelTask extends Shell { } return $choice - 1; } + /** * Handles interactive baking * @@ -250,6 +263,7 @@ class ModelTask extends Shell { return false; } } + /** * Print out all the associations of a particular type * @@ -267,6 +281,7 @@ class ModelTask extends Shell { } } } + /** * Finds a primary Key in a list of fields. * @@ -282,6 +297,7 @@ class ModelTask extends Shell { } return $this->in(__('What is the primaryKey?', true), null, $name); } + /** * interact with the user to find the displayField value for a model. * @@ -299,6 +315,7 @@ class ModelTask extends Shell { $choice = $this->inOptions($fieldNames, $prompt); return $fieldNames[$choice]; } + /** * Handles Generation and user interaction for creating validation. * @@ -325,8 +342,9 @@ class ModelTask extends Shell { } return $validate; } + /** - * Populate the __validations array + * Populate the __validations array * * @return void **/ @@ -347,6 +365,7 @@ class ModelTask extends Shell { $this->__validations = $choices; return $choices; } + /** * Does individual field validation handling. * @@ -357,7 +376,7 @@ class ModelTask extends Shell { function fieldValidation($fieldName, $metaData, $primaryKey = 'id') { $defaultChoice = count($this->__validations); $validate = $alreadyChosen = array(); - + $anotherValidator = 'y'; while ($anotherValidator == 'y') { if ($this->interactive) { @@ -368,7 +387,7 @@ class ModelTask extends Shell { $this->out(__('Please select one of the following validation options:', true)); $this->hr(); } - + $prompt = ''; for ($i = 1; $i < $defaultChoice; $i++) { $prompt .= $i . ' - ' . $this->__validations[$i] . "\n"; @@ -420,6 +439,7 @@ class ModelTask extends Shell { } return $validate; } + /** * Handles associations * @@ -466,6 +486,7 @@ class ModelTask extends Shell { } return $associations; } + /** * Find belongsTo relations and add them to the associations list. * @@ -494,10 +515,11 @@ class ModelTask extends Shell { } return $associations; } + /** * Find the hasOne and HasMany relations and add them to associations list * - * @param object $model Model instance being generated + * @param object $model Model instance being generated * @param array $associations Array of inprogress associations * @return array $associations with hasOne and hasMany added in. **/ @@ -531,15 +553,16 @@ class ModelTask extends Shell { $associations['hasOne'][] = $assoc; $associations['hasMany'][] = $assoc; } - + } } return $associations; } + /** * Find the hasAndBelongsToMany relations and add them to associations list * - * @param object $model Model instance being generated + * @param object $model Model instance being generated * @param array $associations Array of inprogress associations * @return array $associations with hasAndBelongsToMany added in. **/ @@ -575,6 +598,7 @@ class ModelTask extends Shell { } return $associations; } + /** * Interact with the user and confirm associations. * @@ -602,6 +626,7 @@ class ModelTask extends Shell { } return $associations; } + /** * Interact with the user and generate additional non-conventional associations * @@ -668,6 +693,7 @@ class ModelTask extends Shell { } return $associations; } + /** * Finds all possible keys to use on custom associations. * @@ -686,6 +712,7 @@ class ModelTask extends Shell { } return $possible; } + /** * Assembles and writes a Model file. * @@ -707,7 +734,7 @@ class ModelTask extends Shell { } else { $data['name'] = $name; } - $defaults = array('associations' => array(), 'validate' => array(), 'primaryKey' => 'id', + $defaults = array('associations' => array(), 'validate' => array(), 'primaryKey' => 'id', 'useTable' => null, 'useDbConfig' => 'default', 'displayField' => null); $data = array_merge($defaults, $data); @@ -724,6 +751,7 @@ class ModelTask extends Shell { $this->createFile($filename, $out); return $out; } + /** * Assembles and writes a unit test file * @@ -735,6 +763,7 @@ class ModelTask extends Shell { $this->Test->connection = $this->connection; return $this->Test->bake('Model', $className); } + /** * outputs the a list of possible models or controllers from database * @@ -755,9 +784,10 @@ class ModelTask extends Shell { } return $this->__tables; } + /** * Interact with the user to determine the table name of a particular model - * + * * @param string $modelName Name of the model you want a table for. * @param string $useDbConfig Name of the database config you want to get tables from. * @return void @@ -781,10 +811,11 @@ class ModelTask extends Shell { } return $useTable; } + /** * Get an Array of all the tables in the supplied connection * will halt the script if no tables are found. - * + * * @param string $useDbConfig Connection name to scan. * @return array Array of tables in the database. **/ @@ -810,6 +841,7 @@ class ModelTask extends Shell { } return $tables; } + /** * Forces the user to specify the model he wants to bake, and returns the selected model name. * @@ -841,6 +873,7 @@ class ModelTask extends Shell { } return $currentModelName; } + /** * Displays help contents * @@ -863,6 +896,7 @@ class ModelTask extends Shell { $this->out(""); $this->_stop(); } + /** * Interact with FixtureTask to automatically bake fixtures when baking models. * diff --git a/cake/console/libs/tasks/plugin.php b/cake/console/libs/tasks/plugin.php index 2049d8c80..833f67be6 100644 --- a/cake/console/libs/tasks/plugin.php +++ b/cake/console/libs/tasks/plugin.php @@ -28,11 +28,13 @@ * @subpackage cake.cake.console.libs.tasks */ class PluginTask extends Shell { + /** * Tasks * */ var $tasks = array('Model', 'Controller', 'View'); + /** * path to CONTROLLERS directory * @@ -40,6 +42,7 @@ class PluginTask extends Shell { * @access public */ var $path = null; + /** * initialize * @@ -48,6 +51,7 @@ class PluginTask extends Shell { function initialize() { $this->path = APP . 'plugins' . DS; } + /** * Execution method always used for tasks * @@ -94,6 +98,7 @@ class PluginTask extends Shell { } } } + /** * Interactive interface * @@ -109,6 +114,7 @@ class PluginTask extends Shell { $this->err(sprintf(__("An error occured trying to bake: %s in %s", true), $plugin, $this->path . $pluginPath)); } } + /** * Bake the plugin, create directories and files * @@ -137,18 +143,18 @@ class PluginTask extends Shell { $Folder =& new Folder($this->path . $pluginPath); $directories = array( 'config' . DS . 'sql', - 'models' . DS . 'behaviors', - 'controllers' . DS . 'components', - 'views' . DS . 'helpers', - 'tests' . DS . 'cases' . DS . 'components', - 'tests' . DS . 'cases' . DS . 'helpers', - 'tests' . DS . 'cases' . DS . 'behaviors', - 'tests' . DS . 'cases' . DS . 'controllers', - 'tests' . DS . 'cases' . DS . 'models', - 'tests' . DS . 'groups', - 'tests' . DS . 'fixtures', - 'vendors' . DS . 'img', - 'vendors' . DS . 'js', + 'models' . DS . 'behaviors', + 'controllers' . DS . 'components', + 'views' . DS . 'helpers', + 'tests' . DS . 'cases' . DS . 'components', + 'tests' . DS . 'cases' . DS . 'helpers', + 'tests' . DS . 'cases' . DS . 'behaviors', + 'tests' . DS . 'cases' . DS . 'controllers', + 'tests' . DS . 'cases' . DS . 'models', + 'tests' . DS . 'groups', + 'tests' . DS . 'fixtures', + 'vendors' . DS . 'img', + 'vendors' . DS . 'js', 'vendors' . DS . 'css', 'vendors' . DS . 'shells' ); @@ -193,6 +199,7 @@ class PluginTask extends Shell { return true; } + /** * find and change $this->path to the user selection * @@ -213,6 +220,7 @@ class PluginTask extends Shell { } $this->path = $pathOptions[$choice - 1]; } + /** * Help * diff --git a/cake/console/libs/tasks/project.php b/cake/console/libs/tasks/project.php index fda6a7cf7..be7963b43 100644 --- a/cake/console/libs/tasks/project.php +++ b/cake/console/libs/tasks/project.php @@ -19,6 +19,7 @@ * @since CakePHP(tm) v 1.2 * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Task class for creating new project apps and plugins * @@ -26,12 +27,14 @@ * @subpackage cake.cake.console.libs.tasks */ class ProjectTask extends Shell { + /** * configs path (used in testing). * * @var string **/ var $configPath = null; + /** * Checks that given project path does not already exist, and * finds the app directory in it. Then it calls bake() with that information. @@ -106,6 +109,7 @@ class ProjectTask extends Shell { return true; } } + /** * Looks for a skeleton template of a Cake application, * and if not found asks the user for a path. When there is a path @@ -169,6 +173,7 @@ class ProjectTask extends Shell { return false; } } + /** * Writes a file with a default home page to the project. * @@ -182,6 +187,7 @@ class ProjectTask extends Shell { include(CAKE_CORE_INCLUDE_PATH.DS.'cake'.DS.'console'.DS.'libs'.DS.'templates'.DS.'default'.DS.'views'.DS.'home.ctp'); return $this->createFile($path.'home.ctp', $output); } + /** * Generates and writes 'Security.salt' * @@ -205,6 +211,7 @@ class ProjectTask extends Shell { } return false; } + /** * Generates and writes CAKE_CORE_INCLUDE_PATH * @@ -238,6 +245,7 @@ class ProjectTask extends Shell { return true; } } + /** * Enables Configure::read('Routing.admin') in /app/config/core.php * @@ -261,6 +269,7 @@ class ProjectTask extends Shell { return false; } } + /** * Checks for Configure::read('Routing.admin') and forces user to input it if not enabled * @@ -287,6 +296,7 @@ class ProjectTask extends Shell { } return $admin . '_'; } + /** * Help * diff --git a/cake/console/libs/tasks/template.php b/cake/console/libs/tasks/template.php index fd01e90d5..2fa426ddb 100644 --- a/cake/console/libs/tasks/template.php +++ b/cake/console/libs/tasks/template.php @@ -18,12 +18,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class TemplateTask extends Shell { + /** * variables to add to template scope * * @var array **/ var $templateVars = array(); + /** * Paths to look for templates on. * Contains a list of $theme => $path @@ -31,6 +33,7 @@ class TemplateTask extends Shell { * @var array **/ var $templatePaths = array(); + /** * Initialize callback. Setup paths for the template task. * @@ -40,6 +43,7 @@ class TemplateTask extends Shell { function initialize() { $this->templatePaths = $this->_findThemes(); } + /** * Find the paths to all the installed shell themes in the app. * @@ -64,6 +68,7 @@ class TemplateTask extends Shell { } return $themes; } + /** * Set variable values to the template scope * @@ -92,6 +97,7 @@ class TemplateTask extends Shell { $this->templateVars[$name] = $value; } } + /** * Runs the template * @@ -120,6 +126,7 @@ class TemplateTask extends Shell { } return ''; } + /** * Find the theme name for the current operation. * If there is only one theme in $templatePaths it will be used. @@ -136,7 +143,7 @@ class TemplateTask extends Shell { if (!empty($this->params['theme']) && isset($this->templatePaths[$this->params['theme']])) { return $this->templatePaths[$this->params['theme']]; } - + $this->hr(); $this->out(__('You have more than one set of templates installed.', true)); $this->out(__('Please choose the template set you wish to use:', true)); @@ -154,6 +161,7 @@ class TemplateTask extends Shell { $this->Dispatch->params['theme'] = $themeNames[$index - 1]; return $indexedPaths[$index]; } + /** * Find a template inside a directory inside a path. * Will scan all other theme dirs if the template is not found in the first directory. diff --git a/cake/console/libs/tasks/test.php b/cake/console/libs/tasks/test.php index 54668a843..9978c66e4 100644 --- a/cake/console/libs/tasks/test.php +++ b/cake/console/libs/tasks/test.php @@ -18,6 +18,7 @@ * @since CakePHP(tm) v 1.3 * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Task class for creating and updating test files. * @@ -25,6 +26,7 @@ * @subpackage cake.cake.console.libs.tasks */ class TestTask extends Shell { + /** * Name of plugin * @@ -32,6 +34,7 @@ class TestTask extends Shell { * @access public */ var $plugin = null; + /** * path to TESTS directory * @@ -46,24 +49,28 @@ class TestTask extends Shell { * @var array **/ var $tasks = array('Template'); + /** * class types that methods can be generated for * * @var array **/ var $classTypes = array('Model', 'Controller', 'Component', 'Behavior', 'Helper'); + /** * Internal list of fixtures that have been added so far. * * @var string **/ var $_fixtures = array(); + /** * Flag for interactive mode * * @var boolean **/ var $interactive = false; + /** * Execution method always used for tasks * @@ -85,6 +92,7 @@ class TestTask extends Shell { } } } + /** * Handles interactive baking * @@ -110,11 +118,12 @@ class TestTask extends Shell { $className = $this->getClassName($type); return $this->bake($type, $className); } + /** * Completes final steps for generating data to create test case. * * @param string $type Type of object to bake test case for ie. Model, Controller - * @param string $className the 'cake name' for the class ie. Posts for the PostsController + * @param string $className the 'cake name' for the class ie. Posts for the PostsController * @access public */ function bake($type, $className) { @@ -151,6 +160,7 @@ class TestTask extends Shell { } return false; } + /** * Interact with the user and get their chosen type. Can exit the script. * @@ -173,6 +183,7 @@ class TestTask extends Shell { } return $this->classTypes[$selection - 1]; } + /** * Get the user chosen Class name for the chosen type * @@ -193,6 +204,7 @@ class TestTask extends Shell { } return $selection; } + /** * Checks whether the chosen type can find its own fixtures. * Currently only model, and controller are supported @@ -203,6 +215,7 @@ class TestTask extends Shell { $type = strtolower($type); return ($type == 'controller' || $type == 'model'); } + /** * Check if a class with the given type is loaded or can be loaded. * @@ -211,6 +224,7 @@ class TestTask extends Shell { function isLoadableClass($type, $class) { return App::import($type, $class); } + /** * Construct an instance of the class to be tested. * So that fixtures can be detected @@ -228,6 +242,7 @@ class TestTask extends Shell { } return $instance; } + /** * Gets the real class name from the cake short form. * @@ -239,6 +254,7 @@ class TestTask extends Shell { } return $class . $type; } + /** * Get methods declared in the class given. * No parent methods will be returned @@ -258,6 +274,7 @@ class TestTask extends Shell { } return $out; } + /** * Generate the list of fixtures that will be required to run this test based on * loaded models. @@ -274,6 +291,7 @@ class TestTask extends Shell { } return array_values($this->_fixtures); } + /** * Process a model recursively and pull out all the * model names converting them to fixture names. @@ -297,6 +315,7 @@ class TestTask extends Shell { } } } + /** * Process all the models attached to a controller * and generate a fixture list. @@ -314,6 +333,7 @@ class TestTask extends Shell { $this->_processModel($subject->{$model}); } } + /** * Add classname to the fixture list. * Sets the app. or plugin.plugin_name. prefix. @@ -331,6 +351,7 @@ class TestTask extends Shell { $fixture = $prefix . Inflector::underscore($name); $this->_fixtures[$name] = $fixture; } + /** * Interact with the user to get additional fixtures they want to use. * @@ -347,6 +368,7 @@ class TestTask extends Shell { $this->_fixtures = array_merge($this->_fixtures, $fixtures); return $fixtures; } + /** * Is a mock class required for this type of test? * Controllers require a mock class. @@ -357,6 +379,7 @@ class TestTask extends Shell { $type = strtolower($type); return $type == 'controller'; } + /** * Generate a constructor code snippet for the type and classname * @@ -372,6 +395,7 @@ class TestTask extends Shell { } return "new $fullClassName()\n"; } + /** * make the filename for the test case. resolve the suffixes for controllers * and get the plugin path if needed. diff --git a/cake/console/libs/tasks/view.php b/cake/console/libs/tasks/view.php index ba5f1c37e..515d0e7a8 100644 --- a/cake/console/libs/tasks/view.php +++ b/cake/console/libs/tasks/view.php @@ -21,6 +21,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ App::import('Core', 'Controller'); + /** * Task class for creating and updating view files. * @@ -28,6 +29,7 @@ App::import('Core', 'Controller'); * @subpackage cake.cake.console.libs.tasks */ class ViewTask extends Shell { + /** * Name of plugin * @@ -35,6 +37,7 @@ class ViewTask extends Shell { * @access public */ var $plugin = null; + /** * Tasks to be loaded by this Task * @@ -42,6 +45,7 @@ class ViewTask extends Shell { * @access public */ var $tasks = array('Project', 'Controller', 'DbConfig', 'Template'); + /** * path to VIEWS directory * @@ -49,6 +53,7 @@ class ViewTask extends Shell { * @access public */ var $path = VIEWS; + /** * Name of the controller being used * @@ -56,6 +61,7 @@ class ViewTask extends Shell { * @access public */ var $controllerName = null; + /** * Path to controller to put views * @@ -63,6 +69,7 @@ class ViewTask extends Shell { * @access public */ var $controllerPath = null; + /** * The template file to use * @@ -70,6 +77,7 @@ class ViewTask extends Shell { * @access public */ var $template = null; + /** * Actions to use for scaffolding * @@ -77,6 +85,7 @@ class ViewTask extends Shell { * @access public */ var $scaffoldActions = array('index', 'view', 'add', 'edit'); + /** * Override initialize * @@ -84,6 +93,7 @@ class ViewTask extends Shell { */ function initialize() { } + /** * Execution method always used for tasks * @@ -153,6 +163,7 @@ class ViewTask extends Shell { } } } + /** * Get a list of actions that can / should have views baked for them. * @@ -177,6 +188,7 @@ class ViewTask extends Shell { } return $methods; } + /** * Bake All views for All controllers. * @@ -197,6 +209,7 @@ class ViewTask extends Shell { } } } + /** * Handles interactive baking * @@ -250,6 +263,7 @@ class ViewTask extends Shell { $this->customAction(); } } + /** * Loads Controller and sets variables for the template * Available template variables @@ -306,6 +320,7 @@ class ViewTask extends Shell { return compact('modelClass', 'schema', 'primaryKey', 'displayField', 'singularVar', 'pluralVar', 'singularHumanName', 'pluralHumanName', 'fields','associations'); } + /** * Bake a view file for each of the supplied actions * @@ -318,6 +333,7 @@ class ViewTask extends Shell { $this->bake($action, $content); } } + /** * handle creation of baking a custom action view file * @@ -347,6 +363,7 @@ class ViewTask extends Shell { $this->out(__('Bake Aborted.', true)); } } + /** * Assembles and writes bakes the view file. * @@ -366,6 +383,7 @@ class ViewTask extends Shell { $filename = $path . $this->controllerPath . DS . Inflector::underscore($action) . '.ctp'; return $this->createFile($filename, $content); } + /** * Builds content from template and variables * @@ -404,6 +422,7 @@ class ViewTask extends Shell { $this->err(sprintf(__('Template for %s could not be found', true), $template)); return false; } + /** * Displays help contents * @@ -435,6 +454,7 @@ class ViewTask extends Shell { $this->out("\tRequires that models and controllers exist."); $this->_stop(); } + /** * Returns associations for controllers models. * diff --git a/cake/console/libs/templates/default/actions/controller_actions.ctp b/cake/console/libs/templates/default/actions/controller_actions.ctp index 99b18bd33..30b1e1459 100644 --- a/cake/console/libs/templates/default/actions/controller_actions.ctp +++ b/cake/console/libs/templates/default/actions/controller_actions.ctp @@ -139,4 +139,4 @@ $this->flash(__(' was not deleted', true), array('action' => 'index')); $this->redirect(array('action' => 'index')); - } + } \ No newline at end of file diff --git a/cake/console/libs/templates/default/classes/model.ctp b/cake/console/libs/templates/default/classes/model.ctp index 2e131b809..7ca0c8c80 100644 --- a/cake/console/libs/templates/default/classes/model.ctp +++ b/cake/console/libs/templates/default/classes/model.ctp @@ -127,4 +127,4 @@ if (!empty($associations['hasAndBelongsToMany'])): endif; ?> } -'; ?> +'; ?> \ No newline at end of file diff --git a/cake/console/libs/templates/default/classes/test.ctp b/cake/console/libs/templates/default/classes/test.ctp index b19b89793..f84220c30 100644 --- a/cake/console/libs/templates/default/classes/test.ctp +++ b/cake/console/libs/templates/default/classes/test.ctp @@ -49,7 +49,7 @@ class TestCase extends CakeTestCase { function test() { - + } diff --git a/cake/console/libs/templates/default/views/form.ctp b/cake/console/libs/templates/default/views/form.ctp index 78ebdda7b..6a451dc91 100644 --- a/cake/console/libs/templates/default/views/form.ctp +++ b/cake/console/libs/templates/default/views/form.ctp @@ -1,5 +1,6 @@ - + \ No newline at end of file diff --git a/cake/console/libs/templates/default/views/home.ctp b/cake/console/libs/templates/default/views/home.ctp index 39020d488..82eb03b87 100644 --- a/cake/console/libs/templates/default/views/home.ctp +++ b/cake/console/libs/templates/default/views/home.ctp @@ -79,4 +79,4 @@ $output .= "\t\tYou can also add some CSS styles for your pages at: %s', true),\ $output .= "\t\tAPP . 'views' . DS . 'pages' . DS . 'home.ctp.
', APP . 'views' . DS . 'layouts' . DS . 'default.ctp.
', APP . 'webroot' . DS . 'css');\n"; $output .= "?>\n"; $output .= "

\n"; -?> +?> \ No newline at end of file diff --git a/cake/console/libs/templates/default/views/index.ctp b/cake/console/libs/templates/default/views/index.ctp index af2c5acb5..a3f467cbb 100644 --- a/cake/console/libs/templates/default/views/index.ctp +++ b/cake/console/libs/templates/default/views/index.ctp @@ -1,5 +1,6 @@ \n"; } ?> - + \ No newline at end of file diff --git a/cake/console/libs/templates/default/views/view.ctp b/cake/console/libs/templates/default/views/view.ctp index a25b7574c..8f12ede99 100644 --- a/cake/console/libs/templates/default/views/view.ctp +++ b/cake/console/libs/templates/default/views/view.ctp @@ -1,5 +1,6 @@ value array of regex used to match words. * If key matches then the value is returned. @@ -32,6 +34,7 @@ * $pluralRules = array('/(s)tatus$/i' => '\1\2tatuses', '/^(ox)$/i' => '\1\2en', '/([m|l])ouse$/i' => '\1ice'); */ $pluralRules = array(); + /** * This is a key only array of plural words that should not be inflected. * Notice the last comma @@ -39,6 +42,7 @@ * $uninflectedPlural = array('.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox'); */ $uninflectedPlural = array(); + /** * This is a key => value array of plural irregular words. * If key matches then the value is returned. @@ -46,6 +50,7 @@ * $irregularPlural = array('atlas' => 'atlases', 'beef' => 'beefs', 'brother' => 'brothers') */ $irregularPlural = array(); + /** * This is a key => value array of regex used to match words. * If key matches then the value is returned. @@ -53,12 +58,14 @@ * $singularRules = array('/(s)tatuses$/i' => '\1\2tatus', '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i') */ $singularRules = array(); + /** * This is a key only array of singular words that should not be inflected. * You should not have to change this value below if you do change it use same format * as the $uninflectedPlural above. */ $uninflectedSingular = $uninflectedPlural; + /** * This is a key => value array of singular irregular words. * Most of the time this will be a reverse of the above $irregularPlural array diff --git a/cake/console/libs/templates/skel/config/routes.php b/cake/console/libs/templates/skel/config/routes.php index b14e435c3..77168cb45 100644 --- a/cake/console/libs/templates/skel/config/routes.php +++ b/cake/console/libs/templates/skel/config/routes.php @@ -1,5 +1,6 @@ 'pages', 'action' => 'display', 'home')); + /** * ...and connect the rest of 'Pages' controller's urls. */ diff --git a/cake/console/libs/templates/skel/config/sql/db_acl.php b/cake/console/libs/templates/skel/config/sql/db_acl.php index 19434d0c6..99fe1d64e 100644 --- a/cake/console/libs/templates/skel/config/sql/db_acl.php +++ b/cake/console/libs/templates/skel/config/sql/db_acl.php @@ -1,6 +1,8 @@ This email was sent using the CakePHP Framework

- + \ No newline at end of file diff --git a/cake/console/libs/templates/skel/views/layouts/email/text/default.ctp b/cake/console/libs/templates/skel/views/layouts/email/text/default.ctp index 77fda3bd6..bfc1ef552 100644 --- a/cake/console/libs/templates/skel/views/layouts/email/text/default.ctp +++ b/cake/console/libs/templates/skel/views/layouts/email/text/default.ctp @@ -1,5 +1,6 @@ This email was sent using the CakePHP Framework, http://cakephp.org. - diff --git a/cake/console/libs/templates/skel/views/layouts/flash.ctp b/cake/console/libs/templates/skel/views/layouts/flash.ctp index ddd63085f..e59354eed 100644 --- a/cake/console/libs/templates/skel/views/layouts/flash.ctp +++ b/cake/console/libs/templates/skel/views/layouts/flash.ctp @@ -1,5 +1,6 @@ plugins[] = Inflector::underscore($p); } } + /** * Main entry point to this shell * @@ -147,6 +157,7 @@ class TestSuiteShell extends Shell { exit(1); } } + /** * Help screen * @@ -184,6 +195,7 @@ class TestSuiteShell extends Shell { $this->out('Code Coverage Analysis: '); $this->out("\n\nAppend 'cov' to any of the above in order to enable code coverage analysis"); } + /** * Checks if the arguments supplied point to a valid test file and thus the shell can be run. * @@ -237,6 +249,7 @@ class TestSuiteShell extends Shell { $this->err($this->category.' '.$this->type.' '.$this->file.' is an invalid test identifier'); return false; } + /** * Executes the tests depending on our settings * @@ -298,6 +311,7 @@ class TestSuiteShell extends Shell { return $result; } + /** * Finds the correct folder to look for tests for based on the input category * @@ -326,6 +340,7 @@ class TestSuiteShell extends Shell { } return $folder; } + /** * Sets some get vars needed for TestManager * @@ -344,6 +359,7 @@ class TestSuiteShell extends Shell { $_GET['group'] = true; } } + /** * tries to install simpletest and exits gracefully if it is not there * diff --git a/cake/dispatcher.php b/cake/dispatcher.php index 97e1eafc2..8fa46d403 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -1,5 +1,6 @@ dispatch($url); } } + /** * Dispatches and invokes given URL, handing over control to the involved controllers, and then renders the results (if autoRender is set). * @@ -193,6 +204,7 @@ class Dispatcher extends Object { } return $this->_invoke($controller, $this->params); } + /** * Invokes given controller's render action if autoRender option is set. Otherwise the * contents of the operation are returned as a string. @@ -239,6 +251,7 @@ class Dispatcher extends Object { } echo($controller->output); } + /** * Sets the params when $url is passed as an array to Object::requestAction(); * @@ -252,6 +265,7 @@ class Dispatcher extends Object { $this->params = array_merge($defaults, $url, $additionalParams); return Router::url($url); } + /** * Returns array of GET and POST parameters. GET parameters are taken from given URL. * @@ -325,6 +339,7 @@ class Dispatcher extends Object { } return $params; } + /** * Returns a base URL and sets the proper webroot * @@ -382,6 +397,7 @@ class Dispatcher extends Object { } return false; } + /** * Restructure params in case we're serving a plugin. * @@ -412,6 +428,7 @@ class Dispatcher extends Object { } return $params; } + /** * Get controller to use, either plugin controller or application controller * @@ -454,6 +471,7 @@ class Dispatcher extends Object { } return $controller; } + /** * Load controller and return controller class * @@ -481,6 +499,7 @@ class Dispatcher extends Object { } return false; } + /** * Returns the REQUEST_URI from the server environment, or, failing that, * constructs a new one, using the PHP_SELF constant and other variables. @@ -526,6 +545,7 @@ class Dispatcher extends Object { } return str_replace('//', '/', '/' . $uri); } + /** * Returns and sets the $_GET[url] derived from the REQUEST_URI * @@ -576,6 +596,7 @@ class Dispatcher extends Object { } return $url; } + /** * Outputs cached dispatch for js, css, img, view cache * diff --git a/cake/libs/cache.php b/cake/libs/cache.php index 5f671c958..36e7aa15d 100644 --- a/cake/libs/cache.php +++ b/cake/libs/cache.php @@ -1,5 +1,6 @@ _Engine[$name] = null; return false; } + /** * Temporarily change settings to current config options. if no params are passed, resets settings if needed * Cache::write() will reset the configuration changes made @@ -197,6 +208,7 @@ class Cache extends Object { return $_this->settings($engine); } + /** * Garbage collection * @@ -211,6 +223,7 @@ class Cache extends Object { $config = $_this->config(); $_this->_Engine[$config['engine']]->gc(); } + /** * Write data for key into cache * @@ -261,6 +274,7 @@ class Cache extends Object { $settings = $_this->set(); return $success; } + /** * Read a key from the cache * @@ -297,6 +311,7 @@ class Cache extends Object { } return $success; } + /** * Delete a key from the cache * @@ -331,6 +346,7 @@ class Cache extends Object { $settings = $_this->set(); return $success; } + /** * Delete all keys from the cache * @@ -360,6 +376,7 @@ class Cache extends Object { $settings = $_this->set(); return $success; } + /** * Check if Cache has initialized a working storage engine * @@ -400,6 +417,7 @@ class Cache extends Object { return array(); } } + /** * Storage engine for CakePHP caching * @@ -407,6 +425,7 @@ class Cache extends Object { * @subpackage cake.cake.libs */ class CacheEngine extends Object { + /** * settings of current engine instance * @@ -414,6 +433,7 @@ class CacheEngine extends Object { * @access public */ var $settings = array(); + /** * Iitialize the cache engine * @@ -430,6 +450,7 @@ class CacheEngine extends Object { } return true; } + /** * Garbage collection * @@ -439,6 +460,7 @@ class CacheEngine extends Object { */ function gc() { } + /** * Write value for a key into cache * @@ -451,6 +473,7 @@ class CacheEngine extends Object { function write($key, &$value, $duration) { trigger_error(sprintf(__('Method write() not implemented in %s', true), get_class($this)), E_USER_ERROR); } + /** * Read a key from the cache * @@ -461,6 +484,7 @@ class CacheEngine extends Object { function read($key) { trigger_error(sprintf(__('Method read() not implemented in %s', true), get_class($this)), E_USER_ERROR); } + /** * Delete a key from the cache * @@ -470,6 +494,7 @@ class CacheEngine extends Object { */ function delete($key) { } + /** * Delete all keys from the cache * @@ -479,6 +504,7 @@ class CacheEngine extends Object { */ function clear($check) { } + /** * Cache Engine settings * @@ -488,6 +514,7 @@ class CacheEngine extends Object { function settings() { return $this->settings; } + /** * generates a safe key * diff --git a/cake/libs/cache/apc.php b/cake/libs/cache/apc.php index 8e2a781a5..74725455b 100644 --- a/cake/libs/cache/apc.php +++ b/cake/libs/cache/apc.php @@ -1,5 +1,6 @@ 'Apc', 'prefix' => Inflector::slug(APP_DIR) . '_'), $settings)); return function_exists('apc_cache_info'); } + /** * Write data for key into cache * @@ -59,6 +63,7 @@ class ApcEngine extends CacheEngine { apc_store($key.'_expires', $expires, $duration); return apc_store($key, $value, $duration); } + /** * Read a key from the cache * @@ -74,6 +79,7 @@ class ApcEngine extends CacheEngine { } return apc_fetch($key); } + /** * Delete a key from the cache * @@ -84,6 +90,7 @@ class ApcEngine extends CacheEngine { function delete($key) { return apc_delete($key); } + /** * Delete all keys from the cache * diff --git a/cake/libs/cache/file.php b/cake/libs/cache/file.php index abbd5a0e6..308924892 100644 --- a/cake/libs/cache/file.php +++ b/cake/libs/cache/file.php @@ -1,5 +1,6 @@ CACHE @@ -50,6 +54,7 @@ class FileEngine extends CacheEngine { * @access public */ var $settings = array(); + /** * Set to true if FileEngine::init(); and FileEngine::__active(); do not fail. * @@ -57,6 +62,7 @@ class FileEngine extends CacheEngine { * @access private */ var $__active = false; + /** * True unless FileEngine::__active(); fails * @@ -64,6 +70,7 @@ class FileEngine extends CacheEngine { * @access private */ var $__init = true; + /** * Initialize the Cache Engine * @@ -99,6 +106,7 @@ class FileEngine extends CacheEngine { } return $this->__active(); } + /** * Garbage collection. Permanently remove all expired and deleted data * @@ -108,6 +116,7 @@ class FileEngine extends CacheEngine { function gc() { return $this->clear(true); } + /** * Write data for key into cache * @@ -149,6 +158,7 @@ class FileEngine extends CacheEngine { $this->__File->close(); return $success; } + /** * Read a key from the cache * @@ -181,6 +191,7 @@ class FileEngine extends CacheEngine { $this->__File->close(); return $data; } + /** * Delete a key from the cache * @@ -194,6 +205,7 @@ class FileEngine extends CacheEngine { } return $this->__File->delete(); } + /** * Delete all values from the cache * @@ -233,6 +245,7 @@ class FileEngine extends CacheEngine { $dir->close(); return true; } + /** * Get absolute file for a given key * @@ -250,6 +263,7 @@ class FileEngine extends CacheEngine { return false; } } + /** * Determine is cache directory is writable * diff --git a/cake/libs/cache/memcache.php b/cake/libs/cache/memcache.php index 2d70a6e86..3623f9a87 100644 --- a/cake/libs/cache/memcache.php +++ b/cake/libs/cache/memcache.php @@ -1,5 +1,6 @@ 127.0.0.1 @@ -46,6 +50,7 @@ class MemcacheEngine extends CacheEngine { * @access public */ var $settings = array(); + /** * Initialize the Cache Engine * @@ -89,6 +94,7 @@ class MemcacheEngine extends CacheEngine { } return true; } + /** * Write data for key into cache * @@ -103,6 +109,7 @@ class MemcacheEngine extends CacheEngine { $this->__Memcache->set($key.'_expires', $expires, $this->settings['compress'], $expires); return $this->__Memcache->set($key, $value, $this->settings['compress'], $expires); } + /** * Read a key from the cache * @@ -118,6 +125,7 @@ class MemcacheEngine extends CacheEngine { } return $this->__Memcache->get($key); } + /** * Delete a key from the cache * @@ -128,6 +136,7 @@ class MemcacheEngine extends CacheEngine { function delete($key) { return $this->__Memcache->delete($key); } + /** * Delete all keys from the cache * @@ -137,6 +146,7 @@ class MemcacheEngine extends CacheEngine { function clear() { return $this->__Memcache->flush(); } + /** * Connects to a server in connection pool * @@ -155,4 +165,4 @@ class MemcacheEngine extends CacheEngine { return true; } } -?> +?> \ No newline at end of file diff --git a/cake/libs/cache/xcache.php b/cake/libs/cache/xcache.php index 1ed9b0b5a..53701f781 100644 --- a/cake/libs/cache/xcache.php +++ b/cake/libs/cache/xcache.php @@ -1,5 +1,6 @@ __auth(true); return true; } + /** * Populates and reverses $_SERVER authentication values * Makes necessary changes (and reverting them back) in $_SERVER diff --git a/cake/libs/cake_log.php b/cake/libs/cake_log.php index da779b2af..0161d47c6 100644 --- a/cake/libs/cake_log.php +++ b/cake/libs/cake_log.php @@ -1,5 +1,6 @@ __initSession(); return $this->__startSession(); } + /** * Determine if Session has been started. * @@ -193,6 +207,7 @@ class CakeSession extends Object { } return false; } + /** * Returns true if given variable is set in session. * @@ -208,6 +223,7 @@ class CakeSession extends Object { $result = Set::extract($_SESSION, $var); return isset($result); } + /** * Returns the Session id * @@ -226,6 +242,7 @@ class CakeSession extends Object { return $this->id; } } + /** * Removes a variable from session. * @@ -246,6 +263,7 @@ class CakeSession extends Object { $this->__setError(2, "$name doesn't exist"); return false; } + /** * Used to write new data to _SESSION, since PHP doesn't like us setting the _SESSION var itself * @@ -265,6 +283,7 @@ class CakeSession extends Object { $old[$key] = $var; } } + /** * Return error description for given error number. * @@ -279,6 +298,7 @@ class CakeSession extends Object { return $this->error[$errorNumber]; } } + /** * Returns last occurred error as a string, if any. * @@ -292,6 +312,7 @@ class CakeSession extends Object { return false; } } + /** * Returns true if session is valid. * @@ -311,6 +332,7 @@ class CakeSession extends Object { } return $this->valid; } + /** * Returns given session variable, or all of them, if no parameters given. * @@ -333,6 +355,7 @@ class CakeSession extends Object { $this->__setError(2, "$name doesn't exist"); return null; } + /** * Returns all session variables. * @@ -346,6 +369,7 @@ class CakeSession extends Object { $this->__setError(2, "No Session vars set"); return false; } + /** * Tells Session to write a notification when a certain session path or subpath is written to * @@ -362,6 +386,7 @@ class CakeSession extends Object { $this->watchKeys[] = $var; } } + /** * Tells Session to stop watching a given key path * @@ -382,6 +407,7 @@ class CakeSession extends Object { } } } + /** * Writes value to given session variable name. * @@ -402,6 +428,7 @@ class CakeSession extends Object { $this->__overwrite($_SESSION, Set::insert($_SESSION, $var, $value)); return (Set::extract($_SESSION, $var) === $value); } + /** * Helper method to destroy invalid sessions. * @@ -415,6 +442,7 @@ class CakeSession extends Object { $this->renew(); $this->_checkValid(); } + /** * Helper method to initialize a session, based on Cake core settings. * @@ -532,6 +560,7 @@ class CakeSession extends Object { break; } } + /** * Helper method to start a session * @@ -553,6 +582,7 @@ class CakeSession extends Object { return true; } } + /** * Helper method to create a new session. * @@ -589,6 +619,7 @@ class CakeSession extends Object { $this->__setError(1, 'Session is valid'); } } + /** * Helper method to restart a session. * @@ -624,6 +655,7 @@ class CakeSession extends Object { } } } + /** * Restarts this session. * @@ -632,6 +664,7 @@ class CakeSession extends Object { function renew() { $this->__regenerateId(); } + /** * Validate that the $name is in correct dot notation * example: $name = 'ControllerName.key'; @@ -647,6 +680,7 @@ class CakeSession extends Object { $this->__setError(3, "$name is not a string"); return false; } + /** * Helper method to set an internal error message. * @@ -662,6 +696,7 @@ class CakeSession extends Object { $this->error[$errorNumber] = $errorMessage; $this->lastError = $errorNumber; } + /** * Method called on open of a database session. * @@ -671,6 +706,7 @@ class CakeSession extends Object { function __open() { return true; } + /** * Method called on close of a database session. * @@ -691,6 +727,7 @@ class CakeSession extends Object { } return true; } + /** * Method used to read from a database session. * @@ -711,6 +748,7 @@ class CakeSession extends Object { return $row[$model->alias]['data']; } + /** * Helper function called on write for database sessions. * @@ -740,6 +778,7 @@ class CakeSession extends Object { return $return; } + /** * Method called on the destruction of a database session. * @@ -753,6 +792,7 @@ class CakeSession extends Object { return $return; } + /** * Helper function called on gc for database sessions. * diff --git a/cake/libs/cake_socket.php b/cake/libs/cake_socket.php index c5c945aa0..b31efab18 100644 --- a/cake/libs/cake_socket.php +++ b/cake/libs/cake_socket.php @@ -1,5 +1,6 @@ 80, 'timeout' => 30 ); + /** * Configuration settings for the socket connection * @@ -59,6 +64,7 @@ class CakeSocket extends Object { * @access public */ var $config = array(); + /** * Reference to socket connection resource * @@ -66,6 +72,7 @@ class CakeSocket extends Object { * @access public */ var $connection = null; + /** * This boolean contains the current state of the CakeSocket class * @@ -73,6 +80,7 @@ class CakeSocket extends Object { * @access public */ var $connected = false; + /** * This variable contains an array with the last error number (num) and string (str) * @@ -80,6 +88,7 @@ class CakeSocket extends Object { * @access public */ var $lastError = array(); + /** * Constructor. * @@ -93,6 +102,7 @@ class CakeSocket extends Object { $this->config['protocol'] = getprotobyname($this->config['protocol']); } } + /** * Connect the socket to the given host and port. * @@ -140,6 +150,7 @@ class CakeSocket extends Object { return gethostbyaddr($this->address()); } } + /** * Get the IP address of the current connection. * @@ -153,6 +164,7 @@ class CakeSocket extends Object { return gethostbyname($this->config['host']); } } + /** * Get all IP addresses associated with the current connection. * @@ -166,6 +178,7 @@ class CakeSocket extends Object { return gethostbynamel($this->config['host']); } } + /** * Get the last error as a string. * @@ -179,6 +192,7 @@ class CakeSocket extends Object { return null; } } + /** * Set the last error. * @@ -189,6 +203,7 @@ class CakeSocket extends Object { function setLastError($errNum, $errStr) { $this->lastError = array('num' => $errNum, 'str' => $errStr); } + /** * Write data to the socket. * @@ -233,6 +248,7 @@ class CakeSocket extends Object { return false; } } + /** * Abort socket operation. * @@ -241,6 +257,7 @@ class CakeSocket extends Object { */ function abort() { } + /** * Disconnect the socket from the current connection. * @@ -259,6 +276,7 @@ class CakeSocket extends Object { } return !$this->connected; } + /** * Destructor, used to disconnect from current connection. * @@ -267,6 +285,7 @@ class CakeSocket extends Object { function __destruct() { $this->disconnect(); } + /** * Resets the state of this Socket instance to it's initial state (before Object::__construct got executed) * diff --git a/cake/libs/class_registry.php b/cake/libs/class_registry.php index 5ff5ec320..c0206f2fa 100644 --- a/cake/libs/class_registry.php +++ b/cake/libs/class_registry.php @@ -1,5 +1,6 @@ 'ClassName', 'alias' => 'AliasNameStoredInTheRegistry', 'type' => 'TypeOfClass');``` - * + * * Model Classes can accept optional ```array('id' => $id, 'table' => $table, 'ds' => $ds, 'alias' => $alias);``` - * + * * When $class is a numeric keyed array, multiple class instances will be stored in the registry, * no instance of the object will be returned * {{{ @@ -169,6 +176,7 @@ class ClassRegistry { } return ${$class}; } + /** * Add $object to the registry, associating it with the name $key. * @@ -187,6 +195,7 @@ class ClassRegistry { } return false; } + /** * Remove object which corresponds to given key. * @@ -202,6 +211,7 @@ class ClassRegistry { unset($_this->__objects[$key]); } } + /** * Returns true if given key is present in the ClassRegistry. * @@ -220,6 +230,7 @@ class ClassRegistry { } return false; } + /** * Get all keys from the registry. * @@ -231,6 +242,7 @@ class ClassRegistry { $_this =& ClassRegistry::getInstance(); return array_keys($_this->__objects); } + /** * Return object which corresponds to given key. * @@ -253,6 +265,7 @@ class ClassRegistry { } return $return; } + /** * Sets the default constructor parameter for an object type * @@ -277,6 +290,7 @@ class ClassRegistry { } $_this->__config[$type] = $param; } + /** * Checks to see if $alias is a duplicate $class Object * @@ -297,6 +311,7 @@ class ClassRegistry { } return $duplicate; } + /** * Add a key name pair to the registry to map name to class in the registry. * @@ -313,6 +328,7 @@ class ClassRegistry { $_this->__map[$key] = $name; } } + /** * Get all keys from the map in the registry. * @@ -324,6 +340,7 @@ class ClassRegistry { $_this =& ClassRegistry::getInstance(); return array_keys($_this->__map); } + /** * Return the name of a class in the registry. * @@ -337,6 +354,7 @@ class ClassRegistry { return $this->__map[$key]; } } + /** * Flushes all objects from the ClassRegistry. * diff --git a/cake/libs/configure.php b/cake/libs/configure.php index c38462b51..c41fbf070 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -1,5 +1,6 @@ {$name[0]}); } } + /** * Loads a file from app/config/configure_file.php. * Config file variables should be formated like: @@ -241,6 +250,7 @@ class Configure extends Object { } return Configure::write($config); } + /** * Used to determine the current version of CakePHP. * @@ -259,6 +269,7 @@ class Configure extends Object { } return $_this->Cake['version']; } + /** * Used to write a config file to disk. * @@ -297,6 +308,7 @@ class Configure extends Object { } Configure::__writeConfig($content, $name, $write); } + /** * Creates a cached version of a configuration file. * Appends values passed from Configure::store() to the cached file @@ -332,6 +344,7 @@ class Configure extends Object { } } } + /** * Checks $name for dot notation to create dynamic Configure::$var as an array when needed. * @@ -348,6 +361,7 @@ class Configure extends Object { } return $name; } + /** * @deprecated * @see App::objects() @@ -355,6 +369,7 @@ class Configure extends Object { function listObjects($type, $path = null, $cache = true) { return App::objects($type, $path, $cache); } + /** * @deprecated * @see App::core() @@ -362,6 +377,7 @@ class Configure extends Object { function corePaths($type = null) { return App::core($type); } + /** * @deprecated * @see App::build() @@ -369,6 +385,7 @@ class Configure extends Object { function buildPaths($paths) { return App::build($paths); } + /** * Loads app/config/bootstrap.php. * If the alternative paths are set in this file @@ -412,7 +429,7 @@ class Configure extends Object { } else { $duration = '+999 days'; } - + if (Cache::config('_cake_core_') === false) { Cache::config('_cake_core_', array_merge((array)$cache['settings'], array( 'prefix' => $prefix . 'cake_core_', 'path' => $path . DS . 'persistent' . DS, @@ -434,6 +451,7 @@ class Configure extends Object { )); } } + /** * Caches the object map when the instance of the Configure class is destroyed * @@ -445,6 +463,7 @@ class Configure extends Object { } } } + /** * Class and file loader. * @@ -454,6 +473,7 @@ class Configure extends Object { * @subpackage cake.cake.libs */ class App extends Object { + /** * List of object types and their properties * @@ -481,6 +501,7 @@ class App extends Object { * @access public */ var $models = array(); + /** * List of additional path(s) where behavior files reside. * @@ -488,6 +509,7 @@ class App extends Object { * @access public */ var $behaviors = array(); + /** * List of additional path(s) where controller files reside. * @@ -495,6 +517,7 @@ class App extends Object { * @access public */ var $controllers = array(); + /** * List of additional path(s) where component files reside. * @@ -502,6 +525,7 @@ class App extends Object { * @access public */ var $components = array(); + /** * List of additional path(s) where view files reside. * @@ -509,6 +533,7 @@ class App extends Object { * @access public */ var $views = array(); + /** * List of additional path(s) where helper files reside. * @@ -516,6 +541,7 @@ class App extends Object { * @access public */ var $helpers = array(); + /** * List of additional path(s) where plugins reside. * @@ -523,6 +549,7 @@ class App extends Object { * @access public */ var $plugins = array(); + /** * List of additional path(s) where vendor packages reside. * @@ -530,6 +557,7 @@ class App extends Object { * @access public */ var $vendors = array(); + /** * List of additional path(s) where locale files reside. * @@ -537,6 +565,7 @@ class App extends Object { * @access public */ var $locales = array(); + /** * List of additional path(s) where console shell files reside. * @@ -544,6 +573,7 @@ class App extends Object { * @access public */ var $shells = array(); + /** * Paths to search for files. * @@ -551,6 +581,7 @@ class App extends Object { * @access public */ var $search = array(); + /** * Whether or not to return the file that is loaded. * @@ -558,6 +589,7 @@ class App extends Object { * @access public */ var $return = false; + /** * Determines if $__maps and $__paths cache should be written. * @@ -565,6 +597,7 @@ class App extends Object { * @access private */ var $__cache = false; + /** * Holds key/value pairs of $type => file path. * @@ -572,6 +605,7 @@ class App extends Object { * @access private */ var $__map = array(); + /** * Holds paths for deep searching of files. * @@ -579,6 +613,7 @@ class App extends Object { * @access private */ var $__paths = array(); + /** * Holds loaded files. * @@ -586,6 +621,7 @@ class App extends Object { * @access private */ var $__loaded = array(); + /** * Holds and key => value array of object types. * @@ -593,6 +629,7 @@ class App extends Object { * @access private */ var $__objects = array(); + /** * Used to read information stored path * @@ -610,6 +647,7 @@ class App extends Object { } return $_this->{$type}; } + /** * Build path references. Merges the supplied $paths * with the base paths and the default core paths. @@ -668,6 +706,7 @@ class App extends Object { } } } + /** * Returns a key/value list of all paths where core libs are found. * Passing $type only returns the values for a given value of $key. @@ -719,6 +758,7 @@ class App extends Object { } return $paths; } + /** * Returns an index of objects of the given type, with the physical path to each object. * @@ -781,6 +821,7 @@ class App extends Object { } return $_this->__objects[$name]; } + /** * Finds classes based on $name or specific file(s) to search. * @@ -916,6 +957,7 @@ class App extends Object { } return true; } + /** * Returns a single instance of App. * @@ -930,6 +972,7 @@ class App extends Object { } return $instance[0]; } + /** * Locates the $file in $__paths, searches recursively. * @@ -978,6 +1021,7 @@ class App extends Object { } return null; } + /** * Attempts to load $file. * @@ -1001,6 +1045,7 @@ class App extends Object { } return false; } + /** * Maps the $name to the $file. * @@ -1017,6 +1062,7 @@ class App extends Object { $this->__map[$type][$name] = $file; } } + /** * Returns a file's complete path. * @@ -1039,6 +1085,7 @@ class App extends Object { } return false; } + /** * Used to overload objects as needed. * @@ -1051,6 +1098,7 @@ class App extends Object { Overloadable::overload($name); } } + /** * Loads parent classes based on $type. * Returns a prefix or suffix needed for loading files. @@ -1135,6 +1183,7 @@ class App extends Object { } return array('class' => null, 'suffix' => null, 'path' => null); } + /** * Returns default search paths. * @@ -1174,6 +1223,7 @@ class App extends Object { return array(APP . 'views' . DS); } } + /** * Removes file location from map if the file has been deleted. * @@ -1190,6 +1240,7 @@ class App extends Object { unset($this->__map[$type][$name]); } } + /** * Returns an array of filenames of PHP files in the given directory. * @@ -1222,6 +1273,7 @@ class App extends Object { } return $items; } + /** * Object destructor. * diff --git a/cake/libs/controller/app_controller.php b/cake/libs/controller/app_controller.php index e791fa9fc..62e03c61e 100644 --- a/cake/libs/controller/app_controller.php +++ b/cake/libs/controller/app_controller.php @@ -1,5 +1,6 @@ null, 'name' => null, 'base' => null); + /** * List of loaded components. * @@ -43,6 +47,7 @@ class Component extends Object { * @access protected */ var $_loaded = array(); + /** * List of components attached directly to the controller, which callbacks * should be executed on. @@ -51,6 +56,7 @@ class Component extends Object { * @access protected */ var $_primary = array(); + /** * Settings for loaded components. * @@ -58,6 +64,7 @@ class Component extends Object { * @access private **/ var $__settings = array(); + /** * Used to initialize the components for current controller. * @@ -76,6 +83,7 @@ class Component extends Object { $this->_loadComponents($controller); } + /** * Called before the Controller::beforeFilter(). * @@ -97,6 +105,7 @@ class Component extends Object { } } } + /** * Called after the Controller::beforeFilter() and before the controller action * @@ -113,6 +122,7 @@ class Component extends Object { } } } + /** * Called after the Controller::beforeRender(), after the view class is loaded, and before the * Controller::render() @@ -129,6 +139,7 @@ class Component extends Object { } } } + /** * Called before Controller::redirect(). * @@ -152,6 +163,7 @@ class Component extends Object { } return $response; } + /** * Called after Controller::render() and before the output is printed to the browser. * @@ -167,6 +179,7 @@ class Component extends Object { } } } + /** * Loads components used by this component. * diff --git a/cake/libs/controller/components/acl.php b/cake/libs/controller/components/acl.php index d68c61f03..d519c227a 100644 --- a/cake/libs/controller/components/acl.php +++ b/cake/libs/controller/components/acl.php @@ -1,5 +1,6 @@ _Instance =& new $name(); $this->_Instance->initialize($this); } + /** * Startup is not used * @@ -69,6 +74,7 @@ class AclComponent extends Object { function startup(&$controller) { return true; } + /** * Empty class defintion, to be overridden in subclasses. * @@ -76,6 +82,7 @@ class AclComponent extends Object { */ function _initACL() { } + /** * Pass-thru function for ACL check instance. * @@ -88,6 +95,7 @@ class AclComponent extends Object { function check($aro, $aco, $action = "*") { return $this->_Instance->check($aro, $aco, $action); } + /** * Pass-thru function for ACL allow instance. * @@ -100,6 +108,7 @@ class AclComponent extends Object { function allow($aro, $aco, $action = "*") { return $this->_Instance->allow($aro, $aco, $action); } + /** * Pass-thru function for ACL deny instance. * @@ -112,6 +121,7 @@ class AclComponent extends Object { function deny($aro, $aco, $action = "*") { return $this->_Instance->deny($aro, $aco, $action); } + /** * Pass-thru function for ACL inherit instance. * @@ -124,6 +134,7 @@ class AclComponent extends Object { function inherit($aro, $aco, $action = "*") { return $this->_Instance->inherit($aro, $aco, $action); } + /** * Pass-thru function for ACL grant instance. * @@ -136,6 +147,7 @@ class AclComponent extends Object { function grant($aro, $aco, $action = "*") { return $this->_Instance->grant($aro, $aco, $action); } + /** * Pass-thru function for ACL grant instance. * @@ -149,6 +161,7 @@ class AclComponent extends Object { return $this->_Instance->revoke($aro, $aco, $action); } } + /** * Access Control List abstract class. Not to be instantiated. * Subclasses of this class are used by AclComponent to perform ACL checks in Cake. @@ -158,6 +171,7 @@ class AclComponent extends Object { * @abstract */ class AclBase extends Object { + /** * This class should never be instantiated, just subclassed. * @@ -168,6 +182,7 @@ class AclBase extends Object { return NULL; } } + /** * Empty method to be overridden in subclasses * @@ -178,6 +193,7 @@ class AclBase extends Object { */ function check($aro, $aco, $action = "*") { } + /** * Empty method to be overridden in subclasses * @@ -187,6 +203,7 @@ class AclBase extends Object { function initialize(&$component) { } } + /** * In this file you can extend the AclBase. * @@ -194,6 +211,7 @@ class AclBase extends Object { * @subpackage cake.cake.libs.model */ class DbAcl extends AclBase { + /** * Constructor * @@ -206,6 +224,7 @@ class DbAcl extends AclBase { $this->Aro =& ClassRegistry::init(array('class' => 'Aro', 'alias' => 'Aro')); $this->Aco =& ClassRegistry::init(array('class' => 'Aco', 'alias' => 'Aco')); } + /** * Enter description here... * @@ -217,6 +236,7 @@ class DbAcl extends AclBase { $component->Aro = $this->Aro; $component->Aco = $this->Aco; } + /** * Checks if the given $aro has access to action $action in $aco * @@ -306,6 +326,7 @@ class DbAcl extends AclBase { } return false; } + /** * Allow $aro to have access to action $actions in $aco * @@ -357,6 +378,7 @@ class DbAcl extends AclBase { } return ($this->Aro->Permission->save($save) !== false); } + /** * Deny access for $aro to action $action in $aco * @@ -369,6 +391,7 @@ class DbAcl extends AclBase { function deny($aro, $aco, $action = "*") { return $this->allow($aro, $aco, $action, -1); } + /** * Let access for $aro to action $action in $aco be inherited * @@ -381,6 +404,7 @@ class DbAcl extends AclBase { function inherit($aro, $aco, $action = "*") { return $this->allow($aro, $aco, $action, 0); } + /** * Allow $aro to have access to action $actions in $aco * @@ -394,6 +418,7 @@ class DbAcl extends AclBase { function grant($aro, $aco, $action = "*") { return $this->allow($aro, $aco, $action); } + /** * Deny access for $aro to action $action in $aco * @@ -407,6 +432,7 @@ class DbAcl extends AclBase { function revoke($aro, $aco, $action = "*") { return $this->deny($aro, $aco, $action); } + /** * Get an array of access-control links between the given Aro and Aco * @@ -433,6 +459,7 @@ class DbAcl extends AclBase { ))) ); } + /** * Get the keys used in an ACO * @@ -451,6 +478,7 @@ class DbAcl extends AclBase { return $newKeys; } } + /** * In this file you can extend the AclBase. * @@ -458,6 +486,7 @@ class DbAcl extends AclBase { * @subpackage cake.cake.libs.model.iniacl */ class IniAcl extends AclBase { + /** * Array with configuration, parsed from ini file * @@ -465,12 +494,14 @@ class IniAcl extends AclBase { * @access public */ var $config = null; + /** * The constructor must be overridden, as AclBase is abstract. * */ function __construct() { } + /** * Main ACL check function. Checks to see if the ARO (access request object) has access to the ACO (access control object). * Looks at the acl.ini.php file for permissions (see instructions in /config/acl.ini.php). @@ -528,6 +559,7 @@ class IniAcl extends AclBase { } return false; } + /** * Parses an INI file and returns an array that reflects the INI file's section structure. Double-quote friendly. * @@ -570,6 +602,7 @@ class IniAcl extends AclBase { return $iniSetting; } + /** * Removes trailing spaces on all array elements (to prepare for searching) * diff --git a/cake/libs/controller/components/auth.php b/cake/libs/controller/components/auth.php index a68e5b6f2..4f2a6b6dd 100644 --- a/cake/libs/controller/components/auth.php +++ b/cake/libs/controller/components/auth.php @@ -37,6 +37,7 @@ App::import(array('Router', 'Security')); * @subpackage cake.cake.libs.controller.components */ class AuthComponent extends Object { + /** * Maintains current user login state. * @@ -44,6 +45,7 @@ class AuthComponent extends Object { * @access private */ var $_loggedIn = false; + /** * Other components utilized by AuthComponent * @@ -51,6 +53,7 @@ class AuthComponent extends Object { * @access public */ var $components = array('Session', 'RequestHandler'); + /** * A reference to the object used for authentication * @@ -58,6 +61,7 @@ class AuthComponent extends Object { * @access public */ var $authenticate = null; + /** * The name of the component to use for Authorization or set this to * 'controller' will validate against Controller::isAuthorized() @@ -70,6 +74,7 @@ class AuthComponent extends Object { * @access public */ var $authorize = false; + /** * The name of an optional view element to render when an Ajax request is made * with an invalid or expired session @@ -78,6 +83,7 @@ class AuthComponent extends Object { * @access public */ var $ajaxLogin = null; + /** * The name of the model that represents users which will be authenticated. Defaults to 'User'. * @@ -85,6 +91,7 @@ class AuthComponent extends Object { * @access public */ var $userModel = 'User'; + /** * Additional query conditions to use when looking up and authenticating users, * i.e. array('User.is_active' => 1). @@ -93,6 +100,7 @@ class AuthComponent extends Object { * @access public */ var $userScope = array(); + /** * Allows you to specify non-default login name and password fields used in * $userModel, i.e. array('username' => 'login_name', 'password' => 'passwd'). @@ -101,6 +109,7 @@ class AuthComponent extends Object { * @access public */ var $fields = array('username' => 'username', 'password' => 'password'); + /** * The session key name where the record of the current user is stored. If * unspecified, it will be "Auth.{$userModel name}". @@ -109,6 +118,7 @@ class AuthComponent extends Object { * @access public */ var $sessionKey = null; + /** * If using action-based access control, this defines how the paths to action * ACO nodes is computed. If, for example, all controller nodes are nested @@ -119,6 +129,7 @@ class AuthComponent extends Object { * @access public */ var $actionPath = null; + /** * A URL (defined as a string or array) to the controller action that handles * logins. @@ -127,6 +138,7 @@ class AuthComponent extends Object { * @access public */ var $loginAction = null; + /** * Normally, if a user is redirected to the $loginAction page, the location they * were redirected from will be stored in the session so that they can be @@ -137,6 +149,7 @@ class AuthComponent extends Object { * @access public */ var $loginRedirect = null; + /** * The the default action to redirect to after the user is logged out. While AuthComponent does * not handle post-logout redirection, a redirect URL will be returned from AuthComponent::logout(). @@ -148,6 +161,7 @@ class AuthComponent extends Object { * @see AuthComponent::logout() */ var $logoutRedirect = null; + /** * The name of model or model object, or any other object has an isAuthorized method. * @@ -155,6 +169,7 @@ class AuthComponent extends Object { * @access public */ var $object = null; + /** * Error to display when user login fails. For security purposes, only one error is used for all * login failures, so as not to expose information on why the login failed. @@ -163,6 +178,7 @@ class AuthComponent extends Object { * @access public */ var $loginError = null; + /** * Error to display when user attempts to access an object or action to which they do not have * acccess. @@ -171,6 +187,7 @@ class AuthComponent extends Object { * @access public */ var $authError = null; + /** * Determines whether AuthComponent will automatically redirect and exit if login is successful. * @@ -178,6 +195,7 @@ class AuthComponent extends Object { * @access public */ var $autoRedirect = true; + /** * Controller actions for which user validation is not required. * @@ -186,6 +204,7 @@ class AuthComponent extends Object { * @see AuthComponent::allow() */ var $allowedActions = array(); + /** * Maps actions to CRUD operations. Used for controller-based validation ($validate = 'controller'). * @@ -200,6 +219,7 @@ class AuthComponent extends Object { 'view' => 'read', 'remove' => 'delete' ); + /** * Form data from Controller::$data * @@ -207,6 +227,7 @@ class AuthComponent extends Object { * @access public */ var $data = array(); + /** * Parameter data from Controller::$params * @@ -214,6 +235,7 @@ class AuthComponent extends Object { * @access public */ var $params = array(); + /** * Method list for bound controller * @@ -221,6 +243,7 @@ class AuthComponent extends Object { * @access protected */ var $_methods = array(); + /** * Initializes AuthComponent for use in the controller * @@ -253,6 +276,7 @@ class AuthComponent extends Object { Debugger::checkSessionKey(); } } + /** * Main execution method. Handles redirecting of invalid users, and processing * of login form data. @@ -407,6 +431,7 @@ class AuthComponent extends Object { $controller->redirect($controller->referer(), null, true); return false; } + /** * Attempts to introspect the correct values for object properties including * $userModel and $sessionKey. @@ -437,6 +462,7 @@ class AuthComponent extends Object { } return true; } + /** * Determines whether the given user is authorized to perform an action. The type of * authorization used is based on the value of AuthComponent::$authorize or the @@ -529,6 +555,7 @@ class AuthComponent extends Object { } return $valid; } + /** * Get authorization type * @@ -550,6 +577,7 @@ class AuthComponent extends Object { } return compact('type', 'object'); } + /** * Takes a list of actions in the current controller for which authentication is not required, or * no parameters to allow all actions. @@ -571,6 +599,7 @@ class AuthComponent extends Object { $this->allowedActions = array_merge($this->allowedActions, $args); } } + /** * Removes items from the list of allowed actions. * @@ -591,6 +620,7 @@ class AuthComponent extends Object { } $this->allowedActions = array_values($this->allowedActions); } + /** * Maps action names to CRUD operations. Used for controller-based authentication. * @@ -610,6 +640,7 @@ class AuthComponent extends Object { } } } + /** * Manually log-in a user with the given parameter data. The $data provided can be any data * structure used to identify a user in AuthComponent::identify(). If $data is empty or not @@ -636,6 +667,7 @@ class AuthComponent extends Object { } return $this->_loggedIn; } + /** * Logs a user out, and returns the login action to redirect to. * @@ -651,6 +683,7 @@ class AuthComponent extends Object { $this->_loggedIn = false; return Router::normalize($this->logoutRedirect); } + /** * Get the current user from the session. * @@ -674,6 +707,7 @@ class AuthComponent extends Object { return null; } } + /** * If no parameter is passed, gets the authentication redirect URL. * @@ -697,6 +731,7 @@ class AuthComponent extends Object { } return Router::normalize($redir); } + /** * Validates a user against an abstract object. * @@ -719,6 +754,7 @@ class AuthComponent extends Object { } return $this->Acl->check($user, $object, $action); } + /** * Returns the path to the ACO node bound to a controller/action. * @@ -735,6 +771,7 @@ class AuthComponent extends Object { $this->actionPath . $action ); } + /** * Returns a reference to the model object specified, and attempts * to load it if it is not found. @@ -762,6 +799,7 @@ class AuthComponent extends Object { return $model; } + /** * Identifies a user based on specific criteria. * @@ -837,6 +875,7 @@ class AuthComponent extends Object { } return null; } + /** * Hash any passwords found in $data using $userModel and $fields['password'] * @@ -856,6 +895,7 @@ class AuthComponent extends Object { } return $data; } + /** * Hash a password with the application's salt value (as defined with Configure::write('Security.salt'); * @@ -866,6 +906,7 @@ class AuthComponent extends Object { function password($password) { return Security::hash($password, null, true); } + /** * Component shutdown. If user is logged in, wipe out redirect. * diff --git a/cake/libs/controller/components/cookie.php b/cake/libs/controller/components/cookie.php index 524453c96..c52dd2220 100644 --- a/cake/libs/controller/components/cookie.php +++ b/cake/libs/controller/components/cookie.php @@ -1,5 +1,6 @@ key = Configure::read('Security.salt'); $this->_set($settings); } + /** * Start CookieComponent for use in the controller * @@ -172,6 +187,7 @@ class CookieComponent extends Object { $this->__values = $this->__decrypt($_COOKIE[$this->name]); } } + /** * Write a value to the $_COOKIE[$key]; * @@ -223,6 +239,7 @@ class CookieComponent extends Object { } $this->__encrypted = true; } + /** * Read the value of the $_COOKIE[$key]; * @@ -258,6 +275,7 @@ class CookieComponent extends Object { return null; } } + /** * Delete a cookie value * @@ -293,6 +311,7 @@ class CookieComponent extends Object { } } } + /** * Destroy current cookie * @@ -318,6 +337,7 @@ class CookieComponent extends Object { $this->__delete("[$name]"); } } + /** * Will allow overriding default encryption method. * @@ -328,6 +348,7 @@ class CookieComponent extends Object { function type($type = 'cipher') { $this->__type = 'cipher'; } + /** * Set the expire time for a session variable. * @@ -353,6 +374,7 @@ class CookieComponent extends Object { } return $this->__expires = strtotime($expires, $now); } + /** * Set cookie * @@ -368,6 +390,7 @@ class CookieComponent extends Object { $this->__reset = null; } } + /** * Sets a cookie expire time to remove cookie value * @@ -377,6 +400,7 @@ class CookieComponent extends Object { function __delete($name) { setcookie($this->name . $name, '', time() - 42000, $this->path, $this->domain, $this->secure); } + /** * Encrypts $value using var $type method in Security class * @@ -395,6 +419,7 @@ class CookieComponent extends Object { } return($value); } + /** * Decrypts $value using var $type method in Security class * @@ -449,6 +474,7 @@ class CookieComponent extends Object { } return $name; } + /** * Implode method to keep keys are multidimensional arrays * @@ -463,6 +489,7 @@ class CookieComponent extends Object { } return substr($string, 1); } + /** * Explode method to return array from string set in CookieComponent::__implode() * diff --git a/cake/libs/controller/components/email.php b/cake/libs/controller/components/email.php index 4afeefae4..0f1594845 100644 --- a/cake/libs/controller/components/email.php +++ b/cake/libs/controller/components/email.php @@ -1,5 +1,6 @@ 25, 'host' => 'localhost', 'timeout' => 30 ); + /** * Placeholder for any errors that might happen with the * smtp mail methods @@ -221,6 +245,7 @@ class EmailComponent extends Object{ * @access public */ var $smtpError = null; + /** * If set to true, the mail method will be auto-set to 'debug' * @@ -228,6 +253,7 @@ class EmailComponent extends Object{ * @access protected */ var $_debug = false; + /** * Temporary store of message header lines * @@ -235,6 +261,7 @@ class EmailComponent extends Object{ * @access private */ var $__header = array(); + /** * If set, boundary to use for multipart mime messages * @@ -242,6 +269,7 @@ class EmailComponent extends Object{ * @access private */ var $__boundary = null; + /** * Temporary store of message lines * @@ -249,6 +277,7 @@ class EmailComponent extends Object{ * @access private */ var $__message = array(); + /** * Variable that holds SMTP connection * @@ -256,6 +285,7 @@ class EmailComponent extends Object{ * @access private */ var $__smtpConnection = null; + /** * Initialize component * @@ -269,6 +299,7 @@ class EmailComponent extends Object{ } $this->_set($settings); } + /** * Startup component * @@ -276,6 +307,7 @@ class EmailComponent extends Object{ * @access public */ function startup(&$controller) {} + /** * Send an email using the specified content, template and layout * @@ -330,6 +362,7 @@ class EmailComponent extends Object{ return $sent; } + /** * Reset all EmailComponent internal variables to be able to send out a new email. * @@ -351,6 +384,7 @@ class EmailComponent extends Object{ $this->__boundary = null; $this->__message = array(); } + /** * Render the contents using the current layout and template. * @@ -430,6 +464,7 @@ class EmailComponent extends Object{ return $msg; } + /** * Create unique boundary identifier * @@ -438,6 +473,7 @@ class EmailComponent extends Object{ function __createBoundary() { $this->__boundary = md5(uniqid(time())); } + /** * Create emails headers including (but not limited to) from email address, reply to, * bcc and cc. @@ -495,6 +531,7 @@ class EmailComponent extends Object{ $this->__header[] = 'Content-Transfer-Encoding: 7bit'; } + /** * Format the message by seeing if it has attachments. * @@ -517,6 +554,7 @@ class EmailComponent extends Object{ } return $message; } + /** * Attach files by adding file contents inside boundaries. * @@ -547,6 +585,7 @@ class EmailComponent extends Object{ $this->__message[] = ''; } } + /** * Find the specified attachment in the list of file paths * @@ -566,6 +605,7 @@ class EmailComponent extends Object{ } return null; } + /** * Wrap the message using EmailComponent::$lineLength * @@ -593,6 +633,7 @@ class EmailComponent extends Object{ $formatted[] = ''; return $formatted; } + /** * Encode the specified string using the current charset * @@ -609,6 +650,7 @@ class EmailComponent extends Object{ } return mb_encode_mimeheader($subject, $this->charset, 'B', $nl); } + /** * Format a string as an email address * @@ -627,6 +669,7 @@ class EmailComponent extends Object{ } return $this->__strip($string); } + /** * Remove certain elements (such as bcc:, to:, %0a) from given value * @@ -648,6 +691,7 @@ class EmailComponent extends Object{ } return $value; } + /** * Wrapper for PHP mail function used for sending out emails * @@ -662,6 +706,7 @@ class EmailComponent extends Object{ } return @mail($this->to, $this->__encode($this->subject), $message, $header, $this->additionalParams); } + /** * Sends out email via SMTP * @@ -737,6 +782,7 @@ class EmailComponent extends Object{ $this->__smtpConnection->disconnect(); return true; } + /** * Private method for sending data to SMTP connection * @@ -760,6 +806,7 @@ class EmailComponent extends Object{ } return true; } + /** * Set as controller flash message a debug message showing current settings in component * diff --git a/cake/libs/controller/components/request_handler.php b/cake/libs/controller/components/request_handler.php index efca6b2c5..7a1988f43 100644 --- a/cake/libs/controller/components/request_handler.php +++ b/cake/libs/controller/components/request_handler.php @@ -1,5 +1,6 @@ 'application/x-zip', 'tar' => 'application/x-tar' ); + /** * Content-types accepted by the client. If extension parsing is enabled in the * Router, and an extension is detected, the corresponding content-type will be @@ -114,6 +121,7 @@ class RequestHandlerComponent extends Object { * @see Router::parseExtensions() */ var $__acceptTypes = array(); + /** * The template to use when rendering the given content type. * @@ -121,6 +129,7 @@ class RequestHandlerComponent extends Object { * @access private */ var $__renderType = null; + /** * Contains the file extension parsed out by the Router * @@ -129,6 +138,7 @@ class RequestHandlerComponent extends Object { * @see Router::parseExtensions() */ var $ext = null; + /** * Flag set when MIME types have been initialized * @@ -137,6 +147,7 @@ class RequestHandlerComponent extends Object { * @see RequestHandler::__initializeTypes() */ var $__typesInitialized = false; + /** * Constructor. Parses the accepted content types accepted by the client using HTTP_ACCEPT * @@ -152,6 +163,7 @@ class RequestHandlerComponent extends Object { } parent::__construct(); } + /** * Initializes the component, gets a reference to Controller::$parameters, and * checks to see if a file extension has been parsed by the Router. If yes, the @@ -168,6 +180,7 @@ class RequestHandlerComponent extends Object { $this->ext = $controller->params['url']['ext']; } } + /** * The startup method of the RequestHandler enables several automatic behaviors * related to the detection of certain properties of the HTTP request, including: @@ -217,6 +230,7 @@ class RequestHandlerComponent extends Object { } } } + /** * Handles (fakes) redirects for Ajax requests using requestAction() * @@ -234,6 +248,7 @@ class RequestHandlerComponent extends Object { echo $this->requestAction($url, array('return')); $this->_stop(); } + /** * Returns true if the current HTTP request is Ajax, false otherwise * @@ -243,6 +258,7 @@ class RequestHandlerComponent extends Object { function isAjax() { return env('HTTP_X_REQUESTED_WITH') === "XMLHttpRequest"; } + /** * Returns true if the current HTTP request is coming from a Flash-based client * @@ -252,6 +268,7 @@ class RequestHandlerComponent extends Object { function isFlash() { return (preg_match('/^(Shockwave|Adobe) Flash/', env('HTTP_USER_AGENT')) == 1); } + /** * Returns true if the current request is over HTTPS, false otherwise. * @@ -261,6 +278,7 @@ class RequestHandlerComponent extends Object { function isSSL() { return env('HTTPS'); } + /** * Returns true if the current call accepts an XML response, false otherwise * @@ -270,6 +288,7 @@ class RequestHandlerComponent extends Object { function isXml() { return $this->prefers('xml'); } + /** * Returns true if the current call accepts an RSS response, false otherwise * @@ -279,6 +298,7 @@ class RequestHandlerComponent extends Object { function isRss() { return $this->prefers('rss'); } + /** * Returns true if the current call accepts an Atom response, false otherwise * @@ -288,6 +308,7 @@ class RequestHandlerComponent extends Object { function isAtom() { return $this->prefers('atom'); } + /** * Returns true if user agent string matches a mobile web browser, or if the * client accepts WAP content. @@ -302,6 +323,7 @@ class RequestHandlerComponent extends Object { } return false; } + /** * Returns true if the client accepts WAP content * @@ -311,6 +333,7 @@ class RequestHandlerComponent extends Object { function isWap() { return $this->prefers('wap'); } + /** * Returns true if the current call a POST request * @@ -320,6 +343,7 @@ class RequestHandlerComponent extends Object { function isPost() { return (strtolower(env('REQUEST_METHOD')) == 'post'); } + /** * Returns true if the current call a PUT request * @@ -329,6 +353,7 @@ class RequestHandlerComponent extends Object { function isPut() { return (strtolower(env('REQUEST_METHOD')) == 'put'); } + /** * Returns true if the current call a GET request * @@ -338,6 +363,7 @@ class RequestHandlerComponent extends Object { function isGet() { return (strtolower(env('REQUEST_METHOD')) == 'get'); } + /** * Returns true if the current call a DELETE request * @@ -347,6 +373,7 @@ class RequestHandlerComponent extends Object { function isDelete() { return (strtolower(env('REQUEST_METHOD')) == 'delete'); } + /** * Gets Prototype version if call is Ajax, otherwise empty string. * The Prototype library sets a special "Prototype version" HTTP header. @@ -360,6 +387,7 @@ class RequestHandlerComponent extends Object { } return false; } + /** * Adds/sets the Content-type(s) for the given name. This method allows * content-types to be mapped to friendly aliases (or extensions), which allows @@ -379,6 +407,7 @@ class RequestHandlerComponent extends Object { } $this->__requestContent[$name] = $type; } + /** * Gets the server name from which this request was referred * @@ -395,6 +424,7 @@ class RequestHandlerComponent extends Object { } return trim(preg_replace('/(?:\:.*)/', '', $sessHost)); } + /** * Gets remote client IP * @@ -421,6 +451,7 @@ class RequestHandlerComponent extends Object { } return trim($ipaddr); } + /** * Determines which content types the client accepts. Acceptance is based on * the file extension parsed by the Router (if present), and by the HTTP_ACCEPT @@ -469,6 +500,7 @@ class RequestHandlerComponent extends Object { } } } + /** * Determines the content type of the data the client has sent (i.e. in a POST request) * @@ -495,6 +527,7 @@ class RequestHandlerComponent extends Object { return ($type == $this->mapType($contentType)); } } + /** * Determines which content-types the client prefers. If no parameters are given, * the content-type that the client most likely prefers is returned. If $type is @@ -558,6 +591,7 @@ class RequestHandlerComponent extends Object { $accepts = array_intersect($acceptedTypes, $accepts); return $accepts[0]; } + /** * Sets the layout and template paths for the content type defined by $type. * @@ -607,6 +641,7 @@ class RequestHandlerComponent extends Object { } } } + /** * Sets the response header based on type map index name. If DEBUG is greater than 2, the header * is not set. @@ -615,7 +650,7 @@ class RequestHandlerComponent extends Object { * like 'application/x-shockwave'. * @param array $options If $type is a friendly type name that is associated with * more than one type of content, $index is used to select which content-type to use. - * + * * @return boolean Returns false if the friendly type name given in $type does * not exist in the type map, or if the Content-type header has * already been set by this method. @@ -673,6 +708,7 @@ class RequestHandlerComponent extends Object { } return false; } + /** * Returns the current response type (Content-type header), or null if none has been set * @@ -686,6 +722,7 @@ class RequestHandlerComponent extends Object { } return $this->mapType($this->__responseTypeSet); } + /** * Maps a content-type back to an alias * @@ -717,6 +754,7 @@ class RequestHandlerComponent extends Object { return $ctype; } } + /** * Initializes MIME types * diff --git a/cake/libs/controller/components/security.php b/cake/libs/controller/components/security.php index 077883c3b..5fd5b7da2 100644 --- a/cake/libs/controller/components/security.php +++ b/cake/libs/controller/components/security.php @@ -1,5 +1,6 @@ '', 'prompt' => null); + /** * An associative array of usernames/passwords used for HTTP-authenticated logins. * If using digest authentication, passwords should be MD5-hashed. @@ -113,6 +125,7 @@ class SecurityComponent extends Object { * @see SecurityComponent::requireLogin() */ var $loginUsers = array(); + /** * Controllers from which actions of the current controller are allowed to receive * requests. @@ -122,6 +135,7 @@ class SecurityComponent extends Object { * @see SecurityComponent::requireAuth() */ var $allowedControllers = array(); + /** * Actions from which actions of the current controller are allowed to receive * requests. @@ -131,6 +145,7 @@ class SecurityComponent extends Object { * @see SecurityComponent::requireAuth() */ var $allowedActions = array(); + /** * Form fields to disable * @@ -138,6 +153,7 @@ class SecurityComponent extends Object { * @access public */ var $disabledFields = array(); + /** * Whether to validate POST data. Set to false to disable for data coming from 3rd party * services, etc. @@ -146,6 +162,7 @@ class SecurityComponent extends Object { * @access public */ var $validatePost = true; + /** * Other components used by the Security component * @@ -153,12 +170,14 @@ class SecurityComponent extends Object { * @access public */ var $components = array('RequestHandler', 'Session'); + /** * Holds the current action of the controller * * @var string */ var $_action = null; + /** * Component startup. All security checking happens here. * @@ -187,6 +206,7 @@ class SecurityComponent extends Object { } $this->_generateToken($controller); } + /** * Sets the actions that require a POST request, or empty for all actions * @@ -197,6 +217,7 @@ class SecurityComponent extends Object { $args = func_get_args(); $this->_requireMethod('Post', $args); } + /** * Sets the actions that require a GET request, or empty for all actions * @@ -207,6 +228,7 @@ class SecurityComponent extends Object { $args = func_get_args(); $this->_requireMethod('Get', $args); } + /** * Sets the actions that require a PUT request, or empty for all actions * @@ -217,6 +239,7 @@ class SecurityComponent extends Object { $args = func_get_args(); $this->_requireMethod('Put', $args); } + /** * Sets the actions that require a DELETE request, or empty for all actions * @@ -227,6 +250,7 @@ class SecurityComponent extends Object { $args = func_get_args(); $this->_requireMethod('Delete', $args); } + /** * Sets the actions that require a request that is SSL-secured, or empty for all actions * @@ -237,6 +261,7 @@ class SecurityComponent extends Object { $args = func_get_args(); $this->_requireMethod('Secure', $args); } + /** * Sets the actions that require an authenticated request, or empty for all actions * @@ -247,6 +272,7 @@ class SecurityComponent extends Object { $args = func_get_args(); $this->_requireMethod('Auth', $args); } + /** * Sets the actions that require an HTTP-authenticated request, or empty for all actions * @@ -270,6 +296,7 @@ class SecurityComponent extends Object { $this->loginUsers =& $this->loginOptions['users']; } } + /** * Attempts to validate the login credentials for an HTTP-authenticated request * @@ -308,6 +335,7 @@ class SecurityComponent extends Object { } return null; } + /** * Generates the text of an HTTP-authentication request header from an array of options. * @@ -329,6 +357,7 @@ class SecurityComponent extends Object { return $auth . ' ' . join(',', $out); } + /** * Parses an HTTP digest authentication response, and returns an array of the data, or null on failure. * @@ -355,6 +384,7 @@ class SecurityComponent extends Object { } return null; } + /** * Generates a hash to be compared with an HTTP digest-authenticated response * @@ -370,6 +400,7 @@ class SecurityComponent extends Object { md5(env('REQUEST_METHOD') . ':' . $data['uri']) ); } + /** * Black-hole an invalid request with a 404 error or custom callback. If SecurityComponent::$blackHoleCallback * is specified, it will use this callback by executing the method indicated in $error @@ -394,6 +425,7 @@ class SecurityComponent extends Object { return $this->_callback($controller, $this->blackHoleCallback, array($error)); } } + /** * Sets the actions that require a $method HTTP request, or empty for all actions * @@ -405,6 +437,7 @@ class SecurityComponent extends Object { function _requireMethod($method, $actions = array()) { $this->{'require' . $method} = (empty($actions)) ? array('*'): $actions; } + /** * Check if HTTP methods are required * @@ -429,6 +462,7 @@ class SecurityComponent extends Object { } return true; } + /** * Check if access requires secure connection * @@ -450,6 +484,7 @@ class SecurityComponent extends Object { } return true; } + /** * Check if authentication is required * @@ -485,6 +520,7 @@ class SecurityComponent extends Object { } return true; } + /** * Check if login is required * @@ -532,6 +568,7 @@ class SecurityComponent extends Object { } return true; } + /** * Validate submitted form * @@ -612,6 +649,7 @@ class SecurityComponent extends Object { $check = Security::hash(serialize($fieldList) . Configure::read('Security.salt')); return ($token === $check); } + /** * Add authentication key for new form posts * @@ -654,6 +692,7 @@ class SecurityComponent extends Object { return true; } + /** * Sets the default login options for an HTTP-authenticated request * @@ -670,6 +709,7 @@ class SecurityComponent extends Object { ), array_filter($options)); $options = array_merge(array('opaque' => md5($options['realm'])), $options); } + /** * Calls a controller callback method * diff --git a/cake/libs/controller/components/session.php b/cake/libs/controller/components/session.php index f97312553..4fc2ebba7 100644 --- a/cake/libs/controller/components/session.php +++ b/cake/libs/controller/components/session.php @@ -1,5 +1,6 @@ __active = false; } } + /** * Initializes the component, gets a reference to Controller::$param['bare']. * @@ -82,6 +89,7 @@ class SessionComponent extends CakeSession { $this->__bare = $controller->params['bare']; } } + /** * Startup method. * @@ -94,6 +102,7 @@ class SessionComponent extends CakeSession { $this->__start(); } } + /** * Starts Session on if 'Session.start' is set to false in core.php * @@ -108,6 +117,7 @@ class SessionComponent extends CakeSession { parent::__construct($base); $this->__active = true; } + /** * Used to write a value to a session key. * @@ -137,6 +147,7 @@ class SessionComponent extends CakeSession { } return false; } + /** * Used to read a session values for a key or return values for all keys. * @@ -154,6 +165,7 @@ class SessionComponent extends CakeSession { } return false; } + /** * Used to delete a session variable. * @@ -170,6 +182,7 @@ class SessionComponent extends CakeSession { } return false; } + /** * Wrapper for SessionComponent::del(); * @@ -186,6 +199,7 @@ class SessionComponent extends CakeSession { } return false; } + /** * Used to check if a session variable is set * @@ -202,6 +216,7 @@ class SessionComponent extends CakeSession { } return false; } + /** * Used to determine the last error in a session. * @@ -217,6 +232,7 @@ class SessionComponent extends CakeSession { } return false; } + /** * Used to set a session variable that can be used to output messages in the view. * @@ -236,6 +252,7 @@ class SessionComponent extends CakeSession { $this->write('Message.' . $key, compact('message', 'layout', 'params')); } } + /** * Used to renew a session id * @@ -250,6 +267,7 @@ class SessionComponent extends CakeSession { parent::renew(); } } + /** * Used to check for a valid session. * @@ -265,6 +283,7 @@ class SessionComponent extends CakeSession { } return false; } + /** * Used to destroy sessions * @@ -279,6 +298,7 @@ class SessionComponent extends CakeSession { parent::destroy(); } } + /** * Returns Session id * @@ -292,6 +312,7 @@ class SessionComponent extends CakeSession { function id($id = null) { return parent::id($id); } + /** * Starts Session if SessionComponent is used in Controller::beforeFilter(), * or is called from diff --git a/cake/libs/controller/controller.php b/cake/libs/controller/controller.php index 3b7694e3a..b3ac638b0 100644 --- a/cake/libs/controller/controller.php +++ b/cake/libs/controller/controller.php @@ -17,10 +17,12 @@ * @since CakePHP(tm) v 0.2.9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ + /** * Include files */ App::import('Core', array('Component', 'View')); + /** * Controller * @@ -34,6 +36,7 @@ App::import('Core', array('Component', 'View')); * */ class Controller extends Object { + /** * The name of this controller. Controller names are plural, named after the model they manipulate. * @@ -42,6 +45,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/52/name */ var $name = null; + /** * Stores the current URL, relative to the webroot of the application. * @@ -49,6 +53,7 @@ class Controller extends Object { * @access public */ var $here = null; + /** * The webroot of the application. * @@ -56,6 +61,7 @@ class Controller extends Object { * @access public */ var $webroot = null; + /** * The name of the currently requested controller action. * @@ -63,6 +69,7 @@ class Controller extends Object { * @access public */ var $action = null; + /** * An array containing the class names of models this controller uses. * @@ -73,6 +80,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/53/components-helpers-and-uses */ var $uses = false; + /** * An array containing the names of helpers this controller uses. The array elements should * not contain the "Helper" part of the classname. @@ -84,6 +92,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/53/components-helpers-and-uses */ var $helpers = array('Html', 'Form'); + /** * Parameters received in the current request: GET and POST data, information * about the request, etc. @@ -93,6 +102,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/55/The-Parameters-Attribute-params */ var $params = array(); + /** * Data POSTed to the controller using the HtmlHelper. Data here is accessible * using the $this->data['ModelName']['fieldName'] pattern. @@ -101,6 +111,7 @@ class Controller extends Object { * @access public */ var $data = array(); + /** * Holds pagination defaults for controller actions. The keys that can be included * in this array are: 'conditions', 'fields', 'order', 'limit', 'page', and 'recursive', @@ -119,6 +130,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/164/Pagination */ var $paginate = array('limit' => 20, 'page' => 1); + /** * The name of the views subfolder containing views for this controller. * @@ -126,6 +138,7 @@ class Controller extends Object { * @access public */ var $viewPath = null; + /** * The name of the layouts subfolder containing layouts for this controller. * @@ -133,6 +146,7 @@ class Controller extends Object { * @access public */ var $layoutPath = null; + /** * Contains variables to be handed to the view. * @@ -140,6 +154,7 @@ class Controller extends Object { * @access public */ var $viewVars = array(); + /** * Text to be used for the $title_for_layout layout variable (usually * placed inside tags.) @@ -149,6 +164,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/54/Page-related-Attributes-layout-and-pageTitle */ var $pageTitle = false; + /** * An array containing the class names of the models this controller uses. * @@ -156,6 +172,7 @@ class Controller extends Object { * @access public */ var $modelNames = array(); + /** * Base URL path. * @@ -163,6 +180,7 @@ class Controller extends Object { * @access public */ var $base = null; + /** * The name of the layout file to render the view inside of. The name specified * is the filename of the layout in /app/views/layouts without the .ctp @@ -173,6 +191,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/54/Page-related-Attributes-layout-and-pageTitle */ var $layout = 'default'; + /** * Set to true to automatically render the view * after action logic. @@ -181,6 +200,7 @@ class Controller extends Object { * @access public */ var $autoRender = true; + /** * Set to true to automatically render the layout around views. * @@ -188,6 +208,7 @@ class Controller extends Object { * @access public */ var $autoLayout = true; + /** * Instance of Component used to handle callbacks. * @@ -195,6 +216,7 @@ class Controller extends Object { * @access public */ var $Component = null; + /** * Array containing the names of components this controller uses. Component names * should not contain the "Component" portion of the classname. @@ -206,6 +228,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/53/components-helpers-and-uses */ var $components = array(); + /** * The name of the View class this controller sends output to. * @@ -213,6 +236,7 @@ class Controller extends Object { * @access public */ var $view = 'View'; + /** * File extension for view templates. Defaults to Cake's conventional ".ctp". * @@ -220,6 +244,7 @@ class Controller extends Object { * @access public */ var $ext = '.ctp'; + /** * The output of the requested action. Contains either a variable * returned from the action, or the data of the rendered view; @@ -229,6 +254,7 @@ class Controller extends Object { * @access public */ var $output = null; + /** * Automatically set to the name of a plugin. * @@ -236,6 +262,7 @@ class Controller extends Object { * @access public */ var $plugin = null; + /** * Used to define methods a controller that will be cached. To cache a * single action, the value is set to an array containing keys that match @@ -254,6 +281,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/346/Caching-in-the-Controller */ var $cacheAction = false; + /** * Used to create cached instances of models a controller uses. * When set to true, all models related to the controller will be cached. @@ -263,6 +291,7 @@ class Controller extends Object { * @access public */ var $persistModel = false; + /** * Holds all params passed and named. * @@ -270,6 +299,7 @@ class Controller extends Object { * @access public */ var $passedArgs = array(); + /** * Triggers Scaffolding * @@ -278,6 +308,7 @@ class Controller extends Object { * @link http://book.cakephp.org/view/105/Scaffolding */ var $scaffold = false; + /** * Holds current methods of the controller * @@ -286,6 +317,7 @@ class Controller extends Object { * @link */ var $methods = array(); + /** * This controller's primary model class name, the Inflector::classify()'ed version of * the controller's $name property. @@ -296,6 +328,7 @@ class Controller extends Object { * @access public */ var $modelClass = null; + /** * This controller's model key name, an underscored version of the controller's $modelClass property. * @@ -305,6 +338,7 @@ class Controller extends Object { * @access public */ var $modelKey = null; + /** * Holds any validation errors produced by the last call of the validateErrors() method/ * @@ -312,6 +346,7 @@ class Controller extends Object { * @access public */ var $validationErrors = null; + /** * Constructor. * @@ -346,6 +381,7 @@ class Controller extends Object { $this->methods = array_diff($childMethods, $parentMethods); parent::__construct(); } + /** * Merge components, helpers, and uses vars from AppController and PluginAppController. * @@ -427,6 +463,7 @@ class Controller extends Object { } } } + /** * Loads Model classes based on the the uses property * see Controller::loadModel(); for more info. @@ -464,6 +501,7 @@ class Controller extends Object { } return true; } + /** * Loads and instantiates models required by this controller. * If Controller::persistModel; is true, controller will cache model instances on first request, @@ -528,6 +566,7 @@ class Controller extends Object { $this->modelNames[] = $modelClass; } } + /** * Redirects to given $url, after turning off $this->autoRender. * Script execution is halted after the redirect. @@ -640,6 +679,7 @@ class Controller extends Object { $this->_stop(); } } + /** * Convenience method for header() * @@ -650,6 +690,7 @@ class Controller extends Object { function header($status) { header($status); } + /** * Saves a variable for use inside a view template. * @@ -681,6 +722,7 @@ class Controller extends Object { } } } + /** * Internally redirects one action to another. Examples: * @@ -699,6 +741,7 @@ class Controller extends Object { unset($args[0]); return call_user_func_array(array(&$this, $action), $args); } + /** * Controller callback to tie into Auth component. * Only called when AuthComponent::authorize is set to 'controller'. @@ -713,6 +756,7 @@ class Controller extends Object { ), E_USER_WARNING); return false; } + /** * Returns number of errors in a submitted FORM. * @@ -728,6 +772,7 @@ class Controller extends Object { } return count($errors); } + /** * Validates models passed by parameters. Example: * @@ -752,6 +797,7 @@ class Controller extends Object { return $this->validationErrors = (count($errors) ? $errors : false); } + /** * Instantiates the correct view class, hands it its data, and uses it to render the view output. * @@ -816,6 +862,7 @@ class Controller extends Object { return $this->output; } + /** * Returns the referring URL for this request. * @@ -846,6 +893,7 @@ class Controller extends Object { } return '/'; } + /** * Forces the user's browser not to cache the results of the current request. * @@ -860,6 +908,7 @@ class Controller extends Object { header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); } + /** * Shows a message to the user for $pause seconds, then redirects to $url. * Uses flash.ctp as the default layout for the message. @@ -880,6 +929,7 @@ class Controller extends Object { $this->set('page_title', $message); $this->render(false, 'flash'); } + /** * Converts POST'ed form data to a model conditions array, suitable for use in a Model::find() call. * @@ -936,6 +986,7 @@ class Controller extends Object { } return $cond; } + /** * Handles automatic pagination of model records. * @@ -1130,6 +1181,7 @@ class Controller extends Object { } return $results; } + /** * Called before the controller action. * @@ -1138,6 +1190,7 @@ class Controller extends Object { */ function beforeFilter() { } + /** * Called after the controller action is run, but before the view is rendered. * @@ -1146,6 +1199,7 @@ class Controller extends Object { */ function beforeRender() { } + /** * Called after the controller action is run and rendered. * @@ -1154,6 +1208,7 @@ class Controller extends Object { */ function afterFilter() { } + /** * This method should be overridden in child classes. * @@ -1165,6 +1220,7 @@ class Controller extends Object { function _beforeScaffold($method) { return true; } + /** * This method should be overridden in child classes. * @@ -1176,6 +1232,7 @@ class Controller extends Object { function _afterScaffoldSave($method) { return true; } + /** * This method should be overridden in child classes. * @@ -1187,6 +1244,7 @@ class Controller extends Object { function _afterScaffoldSaveError($method) { return true; } + /** * This method should be overridden in child classes. * If not it will render a scaffold error. diff --git a/cake/libs/controller/pages_controller.php b/cake/libs/controller/pages_controller.php index 8196616ba..04c72218f 100644 --- a/cake/libs/controller/pages_controller.php +++ b/cake/libs/controller/pages_controller.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Static content controller. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Static content controller * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs.controller */ class PagesController extends AppController { + /** * Controller name * @@ -40,6 +43,7 @@ class PagesController extends AppController { * @access public */ var $name = 'Pages'; + /** * Default helper * @@ -47,6 +51,7 @@ class PagesController extends AppController { * @access public */ var $helpers = array('Html'); + /** * This controller does not use a model * @@ -54,6 +59,7 @@ class PagesController extends AppController { * @access public */ var $uses = array(); + /** * Displays a view * diff --git a/cake/libs/controller/scaffold.php b/cake/libs/controller/scaffold.php index b8e4d7531..84f42863e 100644 --- a/cake/libs/controller/scaffold.php +++ b/cake/libs/controller/scaffold.php @@ -19,6 +19,7 @@ * @since Cake v 0.10.0.1076 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ + /** * Scaffolding is a set of automatic actions for starting web development work faster. * @@ -31,6 +32,7 @@ * @subpackage cake.cake.libs.controller */ class Scaffold extends Object { + /** * Controller object * @@ -38,6 +40,7 @@ class Scaffold extends Object { * @access public */ var $controller = null; + /** * Name of the controller to scaffold * @@ -45,6 +48,7 @@ class Scaffold extends Object { * @access public */ var $name = null; + /** * Action to be performed. * @@ -52,6 +56,7 @@ class Scaffold extends Object { * @access public */ var $action = null; + /** * Name of current model this view context is attached to * @@ -59,6 +64,7 @@ class Scaffold extends Object { * @access public */ var $model = null; + /** * Path to View. * @@ -66,6 +72,7 @@ class Scaffold extends Object { * @access public */ var $viewPath; + /** * Path parts for creating links in views. * @@ -73,6 +80,7 @@ class Scaffold extends Object { * @access public */ var $base = null; + /** * Name of layout to use with this View. * @@ -80,6 +88,7 @@ class Scaffold extends Object { * @access public */ var $layout = 'default'; + /** * Array of parameter data * @@ -87,6 +96,7 @@ class Scaffold extends Object { * @access public */ var $params; + /** * File extension. Defaults to Cake's template ".ctp". * @@ -94,6 +104,7 @@ class Scaffold extends Object { * @access public */ var $ext = '.ctp'; + /** * Sub-directory for this view file. * @@ -101,6 +112,7 @@ class Scaffold extends Object { * @access public */ var $subDir = null; + /** * Plugin name. * @@ -108,6 +120,7 @@ class Scaffold extends Object { * @access public */ var $plugin = null; + /** * valid session. * @@ -115,6 +128,7 @@ class Scaffold extends Object { * @access public */ var $_validSession = null; + /** * List of variables to collect from the associated controller * @@ -125,6 +139,7 @@ class Scaffold extends Object { 'action', 'base', 'webroot', 'layout', 'name', 'viewPath', 'ext', 'params', 'data', 'plugin', 'cacheAction' ); + /** * Title HTML element for current scaffolded view * @@ -132,6 +147,7 @@ class Scaffold extends Object { * @access public */ var $scaffoldTitle = null; + /** * Construct and set up given controller with given parameters. * @@ -186,6 +202,7 @@ class Scaffold extends Object { isset($this->controller->Session) && $this->controller->Session->valid() != false ); } + /** * Outputs the content of a scaffold method passing it through the Controller::afterFilter() * @@ -196,6 +213,7 @@ class Scaffold extends Object { $this->controller->afterFilter(); echo($this->controller->output); } + /** * Renders a view action of scaffolded model. * @@ -231,6 +249,7 @@ class Scaffold extends Object { return $this->__scaffoldError(); } } + /** * Renders index action of scaffolded model. * @@ -250,6 +269,7 @@ class Scaffold extends Object { return $this->__scaffoldError(); } } + /** * Renders an add or edit action for scaffolded model. * @@ -261,6 +281,7 @@ class Scaffold extends Object { $this->controller->render($action, $this->layout); $this->_output(); } + /** * Saves or updates the scaffolded model. * @@ -354,6 +375,7 @@ class Scaffold extends Object { return $this->__scaffoldError(); } } + /** * Performs a delete on given scaffolded Model. * @@ -407,6 +429,7 @@ class Scaffold extends Object { return $this->__scaffoldError(); } } + /** * Show a scaffold error * @@ -417,6 +440,7 @@ class Scaffold extends Object { return $this->controller->render('error', $this->layout); $this->_output(); } + /** * When methods are now present in a controller * scaffoldView is used to call default Scaffold methods if: @@ -489,6 +513,7 @@ class Scaffold extends Object { ))); } } + /** * Returns associations for controllers models. * @@ -529,6 +554,7 @@ if (!class_exists('ThemeView')) { } class ScaffoldView extends ThemeView { + /** * Override _getViewFileName * diff --git a/cake/libs/error.php b/cake/libs/error.php index e8db8276a..19b2d639c 100644 --- a/cake/libs/error.php +++ b/cake/libs/error.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Error handler * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ App::import('Controller', 'App'); + /** * Error Handling Controller * @@ -35,12 +37,14 @@ App::import('Controller', 'App'); */ class CakeErrorController extends AppController { var $name = 'CakeError'; + /** * Uses Property * * @var array */ var $uses = array(); + /** * __construct * @@ -56,6 +60,7 @@ class CakeErrorController extends AppController { $this->_set(array('cacheAction' => false, 'viewPath' => 'errors')); } } + /** * Error Handler. * @@ -67,6 +72,7 @@ class CakeErrorController extends AppController { * @subpackage cake.cake.libs */ class ErrorHandler extends Object { + /** * Controller instance. * @@ -74,6 +80,7 @@ class ErrorHandler extends Object { * @access public */ var $controller = null; + /** * Class constructor. * @@ -118,6 +125,7 @@ class ErrorHandler extends Object { $this->dispatchMethod($method, $messages); $this->_stop(); } + /** * Displays an error page (e.g. 404 Not found). * @@ -134,6 +142,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('error404'); } + /** * Convenience method to display a 404 page. * @@ -156,6 +165,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('error404'); } + /** * Renders the Missing Controller web page. * @@ -173,6 +183,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingController'); } + /** * Renders the Missing Action web page. * @@ -191,6 +202,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingAction'); } + /** * Renders the Private Action web page. * @@ -207,6 +219,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('privateAction'); } + /** * Renders the Missing Table web page. * @@ -223,6 +236,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingTable'); } + /** * Renders the Missing Database web page. * @@ -235,6 +249,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingScaffolddb'); } + /** * Renders the Missing View web page. * @@ -252,6 +267,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingView'); } + /** * Renders the Missing Layout web page. * @@ -268,6 +284,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingLayout'); } + /** * Renders the Database Connection web page. * @@ -283,6 +300,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingConnection'); } + /** * Renders the Missing Helper file web page. * @@ -299,6 +317,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingHelperFile'); } + /** * Renders the Missing Helper class web page. * @@ -315,6 +334,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingHelperClass'); } + /** * Renders the Missing Component file web page. * @@ -332,6 +352,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingComponentFile'); } + /** * Renders the Missing Component class web page. * @@ -349,6 +370,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingComponentClass'); } + /** * Renders the Missing Model class web page. * @@ -364,6 +386,7 @@ class ErrorHandler extends Object { )); $this->_outputMessage('missingModel'); } + /** * Output message * diff --git a/cake/libs/file.php b/cake/libs/file.php index b57cb4c72..21f5138da 100644 --- a/cake/libs/file.php +++ b/cake/libs/file.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Convenience class for reading, writing and appending to files. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Included libraries. * @@ -32,6 +34,7 @@ if (!class_exists('Object')) { if (!class_exists('Folder')) { require LIBS . 'folder.php'; } + /** * Convenience class for reading, writing and appending to files. * @@ -39,6 +42,7 @@ if (!class_exists('Folder')) { * @subpackage cake.cake.libs */ class File extends Object { + /** * Folder object of the File * @@ -46,6 +50,7 @@ class File extends Object { * @access public */ var $Folder = null; + /** * Filename * @@ -53,6 +58,7 @@ class File extends Object { * @access public */ var $name = null; + /** * file info * @@ -60,6 +66,7 @@ class File extends Object { * @access public */ var $info = array(); + /** * Holds the file handler resource if the file is opened * @@ -67,6 +74,7 @@ class File extends Object { * @access public */ var $handle = null; + /** * enable locking for file reading and writing * @@ -74,6 +82,7 @@ class File extends Object { * @access public */ var $lock = null; + /** * path property * @@ -83,6 +92,7 @@ class File extends Object { * @access public */ var $path = null; + /** * Constructor * @@ -109,6 +119,7 @@ class File extends Object { } } } + /** * Closes the current file if it is opened * @@ -117,6 +128,7 @@ class File extends Object { function __destruct() { $this->close(); } + /** * Creates the File. * @@ -134,6 +146,7 @@ class File extends Object { } return false; } + /** * Opens the current file with a given $mode * @@ -159,6 +172,7 @@ class File extends Object { } return false; } + /** * Return the contents of this File as a string. * @@ -196,6 +210,7 @@ class File extends Object { } return $data; } + /** * Sets or gets the offset for the currently opened file. * @@ -214,6 +229,7 @@ class File extends Object { } return false; } + /** * Prepares a ascii string for writing * fixes line endings @@ -257,6 +273,7 @@ class File extends Object { } return $success; } + /** * Append given data string to this File. * @@ -268,6 +285,7 @@ class File extends Object { function append($data, $force = false) { return $this->write($data, 'a', $force); } + /** * Closes the current file if it is opened. * @@ -280,6 +298,7 @@ class File extends Object { } return fclose($this->handle); } + /** * Deletes the File. * @@ -293,6 +312,7 @@ class File extends Object { } return false; } + /** * Returns the File extension. * @@ -308,6 +328,7 @@ class File extends Object { } return $this->info; } + /** * Returns the File extension. * @@ -323,6 +344,7 @@ class File extends Object { } return false; } + /** * Returns the File name without extension. * @@ -340,6 +362,7 @@ class File extends Object { } return false; } + /** * makes filename safe for saving * @@ -356,6 +379,7 @@ class File extends Object { } return preg_replace( "/(?:[^\w\.-]+)/", "_", basename($name, $ext)); } + /** * Get md5 Checksum of file with previous check of Filesize * @@ -375,6 +399,7 @@ class File extends Object { return false; } + /** * Returns the full path of the File. * @@ -387,6 +412,7 @@ class File extends Object { } return $this->path; } + /** * Returns true if the File exists. * @@ -396,6 +422,7 @@ class File extends Object { function exists() { return (file_exists($this->path) && is_file($this->path)); } + /** * Returns the "chmod" (permissions) of the File. * @@ -408,6 +435,7 @@ class File extends Object { } return false; } + /** * Returns the Filesize * @@ -420,6 +448,7 @@ class File extends Object { } return false; } + /** * Returns true if the File is writable. * @@ -429,6 +458,7 @@ class File extends Object { function writable() { return is_writable($this->path); } + /** * Returns true if the File is executable. * @@ -438,6 +468,7 @@ class File extends Object { function executable() { return is_executable($this->path); } + /** * Returns true if the File is readable. * @@ -447,6 +478,7 @@ class File extends Object { function readable() { return is_readable($this->path); } + /** * Returns the File's owner. * @@ -459,6 +491,7 @@ class File extends Object { } return false; } + /** * Returns the File group. * @@ -471,6 +504,7 @@ class File extends Object { } return false; } + /** * Returns last access time. * @@ -483,6 +517,7 @@ class File extends Object { } return false; } + /** * Returns last modified time. * @@ -495,6 +530,7 @@ class File extends Object { } return false; } + /** * Returns the current folder. * diff --git a/cake/libs/folder.php b/cake/libs/folder.php index 28f32672a..3dd08fd99 100644 --- a/cake/libs/folder.php +++ b/cake/libs/folder.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Convenience class for handling directories. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Included libraries. * @@ -29,6 +31,7 @@ if (!class_exists('Object')) { uses('object'); } + /** * Folder structure browser, lists folders and files. * @@ -38,6 +41,7 @@ if (!class_exists('Object')) { * @subpackage cake.cake.libs */ class Folder extends Object { + /** * Path to Folder. * @@ -45,6 +49,7 @@ class Folder extends Object { * @access public */ var $path = null; + /** * Sortedness. * @@ -52,6 +57,7 @@ class Folder extends Object { * @access public */ var $sort = false; + /** * mode to be used on create. * @@ -59,6 +65,7 @@ class Folder extends Object { * @access public */ var $mode = 0755; + /** * holds messages from last method. * @@ -66,6 +73,7 @@ class Folder extends Object { * @access private */ var $__messages = array(); + /** * holds errors from last method. * @@ -73,6 +81,7 @@ class Folder extends Object { * @access private */ var $__errors = false; + /** * holds array of complete directory paths. * @@ -80,6 +89,7 @@ class Folder extends Object { * @access private */ var $__directories; + /** * holds array of complete file paths. * @@ -87,6 +97,7 @@ class Folder extends Object { * @access private */ var $__files; + /** * Constructor. * @@ -113,6 +124,7 @@ class Folder extends Object { $this->cd($path); } } + /** * Return current path. * @@ -122,6 +134,7 @@ class Folder extends Object { function pwd() { return $this->path; } + /** * Change directory to $path. * @@ -136,6 +149,7 @@ class Folder extends Object { } return false; } + /** * Returns an array of the contents of the current directory. * The returned array holds two arrays: One of directories and one of files. @@ -179,6 +193,7 @@ class Folder extends Object { closedir($dir); return array($dirs, $files); } + /** * Returns an array of all matching files in current directory. * @@ -190,6 +205,7 @@ class Folder extends Object { list($dirs, $files) = $this->read($sort); return array_values(preg_grep('/^' . $regexpPattern . '$/i', $files)); ; } + /** * Returns an array of all matching files in and below current directory. * @@ -203,6 +219,7 @@ class Folder extends Object { $this->cd($startsOn); return $out; } + /** * Private helper function for findRecursive. * @@ -227,6 +244,7 @@ class Folder extends Object { } return $found; } + /** * Returns true if given $path is a Windows path. * @@ -241,6 +259,7 @@ class Folder extends Object { } return false; } + /** * Returns true if given $path is an absolute path. * @@ -253,6 +272,7 @@ class Folder extends Object { $match = preg_match('/^\\//', $path) || preg_match('/^[A-Z]:\\\\/i', $path); return $match; } + /** * Returns a correct set of slashes for given $path. (\\ for Windows paths and / for other paths.) * @@ -264,6 +284,7 @@ class Folder extends Object { function normalizePath($path) { return Folder::correctSlashFor($path); } + /** * Returns a correct set of slashes for given $path. (\\ for Windows paths and / for other paths.) * @@ -278,6 +299,7 @@ class Folder extends Object { } return '/'; } + /** * Returns $path with added terminating slash (corrected for Windows or other OS). * @@ -292,6 +314,7 @@ class Folder extends Object { } return $path . Folder::correctSlashFor($path); } + /** * Returns $path with $element added, with correct slash in-between. * @@ -304,6 +327,7 @@ class Folder extends Object { function addPathElement($path, $element) { return Folder::slashTerm($path) . $element; } + /** * Returns true if the File is in a given CakePath. * @@ -316,6 +340,7 @@ class Folder extends Object { return $this->inPath($newdir); } + /** * Returns true if the File is in given path. * @@ -337,6 +362,7 @@ class Folder extends Object { return false; } } + /** * Change the mode on a directory structure recursively. This includes changing the mode on files as well. * @@ -388,6 +414,7 @@ class Folder extends Object { } return false; } + /** * Returns an array of nested directories and files in each directory * @@ -423,6 +450,7 @@ class Folder extends Object { return $this->__files; } + /** * Private method to list directories and files in each directory * @@ -437,6 +465,7 @@ class Folder extends Object { $this->__files = array_merge($this->__files, $files); } } + /** * Create a directory structure recursively. * @@ -476,6 +505,7 @@ class Folder extends Object { } return true; } + /** * Returns the size in bytes of this Folder. * @@ -512,6 +542,7 @@ class Folder extends Object { } return $size; } + /** * Recursively Remove directories if system allow. * @@ -558,6 +589,7 @@ class Folder extends Object { } return true; } + /** * Recursive directory copy. * @@ -633,6 +665,7 @@ class Folder extends Object { } return true; } + /** * Recursive directory move. * @@ -655,6 +688,7 @@ class Folder extends Object { } return false; } + /** * get messages from latest method * @@ -664,6 +698,7 @@ class Folder extends Object { function messages() { return $this->__messages; } + /** * get error from latest method * @@ -673,6 +708,7 @@ class Folder extends Object { function errors() { return $this->__errors; } + /** * nix flavored alias * @@ -682,6 +718,7 @@ class Folder extends Object { function ls($sort = true, $exceptions = false) { return $this->read($sort, $exceptions); } + /** * nix flavored alias * @@ -691,6 +728,7 @@ class Folder extends Object { function mkdir($pathname, $mode = 0755) { return $this->create($pathname, $mode); } + /** * nix flavored alias * @@ -700,6 +738,7 @@ class Folder extends Object { function cp($options) { return $this->copy($options); } + /** * nix flavored alias * @@ -709,6 +748,7 @@ class Folder extends Object { function mv($options) { return $this->move($options); } + /** * nix flavored alias * @@ -718,6 +758,7 @@ class Folder extends Object { function rm($path) { return $this->delete($path); } + /** * Get the real path (taking ".." and such into account) * @@ -757,6 +798,7 @@ class Folder extends Object { return Folder::slashTerm($newpath); } + /** * Returns true if given $path ends in a slash (i.e. is slash-terminated). * diff --git a/cake/libs/http_socket.php b/cake/libs/http_socket.php index 110eab5ff..abe856dee 100644 --- a/cake/libs/http_socket.php +++ b/cake/libs/http_socket.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * HTTP Socket connection class. * @@ -23,6 +24,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ App::import('Core', array('CakeSocket', 'Set', 'Router')); + /** * Cake network socket connection class. * @@ -32,6 +34,7 @@ App::import('Core', array('CakeSocket', 'Set', 'Router')); * @subpackage cake.cake.libs */ class HttpSocket extends CakeSocket { + /** * Object description * @@ -39,6 +42,7 @@ class HttpSocket extends CakeSocket { * @access public */ var $description = 'HTTP-based DataSource Interface'; + /** * When one activates the $quirksMode by setting it to true, all checks meant to * enforce RFC 2616 (HTTP/1.1 specs). @@ -48,6 +52,7 @@ class HttpSocket extends CakeSocket { * @access public */ var $quirksMode = false; + /** * The default values to use for a request * @@ -81,6 +86,7 @@ class HttpSocket extends CakeSocket { 'raw' => null, 'cookies' => array() ); + /** * The default structure for storing the response * @@ -103,6 +109,7 @@ class HttpSocket extends CakeSocket { 'body' => '', 'cookies' => array() ); + /** * Default configuration settings for the HttpSocket * @@ -129,6 +136,7 @@ class HttpSocket extends CakeSocket { 'cookies' => array() ) ); + /** * String that represents a line break. * @@ -154,6 +162,7 @@ class HttpSocket extends CakeSocket { } parent::__construct($this->config); } + /** * Issue the specified request. * @@ -263,6 +272,7 @@ class HttpSocket extends CakeSocket { return $this->response['body']; } + /** * Issues a GET request to the specified URI, query, and request. * @@ -300,6 +310,7 @@ class HttpSocket extends CakeSocket { $request = Set::merge(array('method' => 'POST', 'uri' => $uri, 'body' => $data), $request); return $this->request($request); } + /** * Issues a PUT request to the specified URI, query, and request. * @@ -313,6 +324,7 @@ class HttpSocket extends CakeSocket { $request = Set::merge(array('method' => 'PUT', 'uri' => $uri, 'body' => $data), $request); return $this->request($request); } + /** * Issues a DELETE request to the specified URI, query, and request. * @@ -326,6 +338,7 @@ class HttpSocket extends CakeSocket { $request = Set::merge(array('method' => 'DELETE', 'uri' => $uri, 'body' => $data), $request); return $this->request($request); } + /** * undocumented function * @@ -361,6 +374,7 @@ class HttpSocket extends CakeSocket { } return $this->_buildUri($url); } + /** * Parses the given message and breaks it down in parts. * @@ -422,6 +436,7 @@ class HttpSocket extends CakeSocket { return $response; } + /** * Generic function to decode a $body with a given $encoding. Returns either an array with the keys * 'body' and 'header' or false on failure. @@ -448,6 +463,7 @@ class HttpSocket extends CakeSocket { } return $this->{$decodeMethod}($body); } + /** * Decodes a chunked message $body and returns either an array with the keys 'body' and 'header' or false as * a result. @@ -510,6 +526,7 @@ class HttpSocket extends CakeSocket { } return array('body' => $decodedBody, 'header' => $entityHeader); } + /** * Parses and sets the specified URI into current request configuration. * @@ -542,6 +559,7 @@ class HttpSocket extends CakeSocket { $this->config = Set::merge($this->config, array_intersect_key($this->config['request']['uri'], $this->config)); return $this->config; } + /** * Takes a $uri array and turns it into a fully qualified URL string * @@ -588,6 +606,7 @@ class HttpSocket extends CakeSocket { } return $uriTemplate; } + /** * Parses the given URI and breaks it down into pieces as an indexed array with elements * such as 'scheme', 'port', 'query'. @@ -647,6 +666,7 @@ class HttpSocket extends CakeSocket { } return $uri; } + /** * This function can be thought of as a reverse to PHP5's http_build_query(). It takes a given query string and turns it into an array and * supports nesting by using the php bracket syntax. So this menas you can parse queries like: @@ -710,6 +730,7 @@ class HttpSocket extends CakeSocket { } return $parsedQuery; } + /** * Builds a request line according to HTTP/1.1 specs. Activate quirks mode to work outside specs. * @@ -744,6 +765,7 @@ class HttpSocket extends CakeSocket { } return $request['method'].' '.$request['uri'].' '.$versionToken.$this->lineBreak; } + /** * Serializes an array for transport. * @@ -760,6 +782,7 @@ class HttpSocket extends CakeSocket { } return substr(Router::queryString($data), 1); } + /** * Builds the header. * @@ -838,6 +861,7 @@ class HttpSocket extends CakeSocket { } return $header; } + /** * undocumented function * @@ -872,6 +896,7 @@ class HttpSocket extends CakeSocket { } return $cookies; } + /** * undocumented function * @@ -888,6 +913,7 @@ class HttpSocket extends CakeSocket { $header = $this->_buildHeader(array('Cookie' => $header), 'pragmatic'); return $header; } + /** * Unescapes a given $token according to RFC 2616 (HTTP 1.1 specs) * @@ -901,6 +927,7 @@ class HttpSocket extends CakeSocket { $token = preg_replace($regex, '\\1', $token); return $token; } + /** * Escapes a given $token according to RFC 2616 (HTTP 1.1 specs) * @@ -914,6 +941,7 @@ class HttpSocket extends CakeSocket { $token = preg_replace($regex, '"\\1"', $token); return $token; } + /** * Gets escape chars according to RFC 2616 (HTTP 1.1 specs). * @@ -942,6 +970,7 @@ class HttpSocket extends CakeSocket { } return $escape; } + /** * Resets the state of this HttpSocket instance to it's initial state (before Object::__construct got executed) or does * the same thing partially for the request and the response property only. diff --git a/cake/libs/i18n.php b/cake/libs/i18n.php index 6bd4c3bfb..f23a6a87d 100644 --- a/cake/libs/i18n.php +++ b/cake/libs/i18n.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,10 +25,12 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Included libraries. */ App::import('Core', 'l10n'); + /** * Short description for file. * @@ -37,6 +40,7 @@ App::import('Core', 'l10n'); * @subpackage cake.cake.libs */ class I18n extends Object { + /** * Instance of the I10n class for localization * @@ -44,6 +48,7 @@ class I18n extends Object { * @access public */ var $l10n = null; + /** * Current domain of translation * @@ -51,6 +56,7 @@ class I18n extends Object { * @access public */ var $domain = null; + /** * Current category of translation * @@ -58,6 +64,7 @@ class I18n extends Object { * @access public */ var $category = 'LC_MESSAGES'; + /** * Current language used for translations * @@ -65,6 +72,7 @@ class I18n extends Object { * @access private */ var $__lang = null; + /** * Translation strings for a specific domain read from the .mo or .po files * @@ -72,6 +80,7 @@ class I18n extends Object { * @access private */ var $__domains = array(); + /** * Set to true when I18N::__bindTextDomain() is called for the first time. * If a translation file is found it is set to false again @@ -80,6 +89,7 @@ class I18n extends Object { * @access private */ var $__noLocale = false; + /** * Determine if $__domains cache should be wrote * @@ -87,6 +97,7 @@ class I18n extends Object { * @access private */ var $__cache = false; + /** * Set to true when I18N::__bindTextDomain() is called for the first time. * If a translation file is found it is set to false again @@ -97,6 +108,7 @@ class I18n extends Object { var $__categories = array( 'LC_ALL', 'LC_COLLATE', 'LC_CTYPE', 'LC_MONETARY', 'LC_NUMERIC', 'LC_TIME', 'LC_MESSAGES' ); + /** * Return a static instance of the I18n class * @@ -111,6 +123,7 @@ class I18n extends Object { } return $instance[0]; } + /** * Used by the translation functions in basics.php * Can also be used like I18n::translate(); but only if the App::import('I18n'); has been used to load the class. @@ -193,6 +206,7 @@ class I18n extends Object { } return($singular); } + /** * Attempts to find the plural form of a string. * @@ -242,6 +256,7 @@ class I18n extends Object { return $n == 1 ? 0 : ($n == 2 ? 1 : ($n >= 3 && $n <= 6 ? 2 : ($n >= 7 && $n <= 10 ? 3 : 4))); } } + /** * Binds the given domain to a file in the specified directory. * @@ -327,6 +342,7 @@ class I18n extends Object { } return($domain); } + /** * Loads the binary .mo file for translation and sets the values for this translation in the var I18n::__domains * @@ -366,6 +382,7 @@ class I18n extends Object { } } } + /** * Loads the text .po file for translation and sets the values for this translation in the var I18n::__domains * @@ -436,6 +453,7 @@ class I18n extends Object { $merge[""] = $header; return $this->__domains[$this->category][$this->__lang][$domain] = array_merge($merge ,$translations); } + /** * Object destructor * diff --git a/cake/libs/inflector.php b/cake/libs/inflector.php index 47fdc3979..ba0864d3b 100644 --- a/cake/libs/inflector.php +++ b/cake/libs/inflector.php @@ -19,6 +19,7 @@ * @since CakePHP(tm) v 0.2.9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ + /** * Included libraries. * @@ -26,6 +27,7 @@ if (!class_exists('Object')) { require_once(LIBS . 'object.php'); } + /** * Pluralize and singularize English words. * diff --git a/cake/libs/l10n.php b/cake/libs/l10n.php index 0df50204a..cce6b57f2 100644 --- a/cake/libs/l10n.php +++ b/cake/libs/l10n.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for file. * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs */ class L10n extends Object { + /** * The language for current locale * @@ -40,6 +43,7 @@ class L10n extends Object { * @access public */ var $language = 'English (United States)'; + /** * Locale search paths * @@ -47,6 +51,7 @@ class L10n extends Object { * @access public */ var $languagePath = array('eng'); + /** * ISO 639-3 for current locale * @@ -54,6 +59,7 @@ class L10n extends Object { * @access public */ var $lang = 'eng'; + /** * Locale * @@ -61,6 +67,7 @@ class L10n extends Object { * @access public */ var $locale = 'en_us'; + /** * Default ISO 639-3 language. * @@ -70,6 +77,7 @@ class L10n extends Object { * @access public */ var $default = null; + /** * Encoding used for current locale * @@ -77,6 +85,7 @@ class L10n extends Object { * @access public */ var $charset = 'utf-8'; + /** * Set to true if a locale is found * @@ -84,6 +93,7 @@ class L10n extends Object { * @access public */ var $found = false; + /** * Maps ISO 639-3 to I10n::__l10nCatalog * @@ -167,6 +177,7 @@ class L10n extends Object { /* Xhosa */ 'xho' => 'xh', /* Yiddish */ 'yid' => 'yi', /* Zulu */ 'zul' => 'zu'); + /** * HTTP_ACCEPT_LANGUAGE catalog * @@ -314,6 +325,7 @@ class L10n extends Object { 'zh-sg' => array('language' => 'Chinese (Singapore)', 'locale' => 'zh_sg', 'localeFallback' => 'chi', 'charset' => 'utf-8'), 'zh-tw' => array('language' => 'Chinese (Taiwan)', 'locale' => 'zh_tw', 'localeFallback' => 'chi', 'charset' => 'utf-8'), 'zu' => array('language' => 'Zulu', 'locale' => 'zul', 'localeFallback' => 'zul', 'charset' => 'utf-8')); + /** * Class constructor */ @@ -323,6 +335,7 @@ class L10n extends Object { } parent::__construct(); } + /** * Gets the settings for $language. * If $language is null it attempt to get settings from I10n::__autoLanguage(); if this fails @@ -338,6 +351,7 @@ class L10n extends Object { return $this->__setLanguage(); } } + /** * Sets the class vars to correct values for $language. * If $language is null it will use the DEFAULT_LANGUAGE if defined @@ -386,6 +400,7 @@ class L10n extends Object { return $language; } } + /** * Attempts to find the locale settings based on the HTTP_ACCEPT_LANGUAGE variable * @@ -413,6 +428,7 @@ class L10n extends Object { } return false; } + /** * Attempts to find locale for language, or language for locale * @@ -439,6 +455,7 @@ class L10n extends Object { } return $this->__l10nMap; } + /** * Attempts to find catalog record for requested language * diff --git a/cake/libs/magic_db.php b/cake/libs/magic_db.php index 73b16017c..e5a99e8d3 100644 --- a/cake/libs/magic_db.php +++ b/cake/libs/magic_db.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * MagicDb parser and file analyzer * @@ -25,6 +26,7 @@ if (!class_exists('File')) { uses('object', 'file'); } + /** * A class to parse and use the MagicDb for file type analysis * @@ -32,6 +34,7 @@ if (!class_exists('File')) { * @subpackage cake.tests.cases.libs */ class MagicDb extends Object { + /** * Holds the parsed MagicDb for this class instance * @@ -179,6 +182,7 @@ class MagicDb extends Object { * @subpackage cake.tests.cases.libs */ class MagicFileResource extends Object{ + /** * undocumented variable * @@ -186,6 +190,7 @@ class MagicFileResource extends Object{ * @access public */ var $resource = null; + /** * undocumented variable * @@ -193,6 +198,7 @@ class MagicFileResource extends Object{ * @access public */ var $offset = 0; + /** * undocumented function * @@ -207,6 +213,7 @@ class MagicFileResource extends Object{ $this->resource = $file; } } + /** * undocumented function * @@ -234,6 +241,7 @@ class MagicFileResource extends Object{ $val = $this->extract($offset, $type, $expected); return $val == $expected; } + /** * undocumented function * @@ -248,6 +256,7 @@ class MagicFileResource extends Object{ } return $this->resource->read($length); } + /** * undocumented function * @@ -267,6 +276,7 @@ class MagicFileResource extends Object{ break; } } + /** * undocumented function * diff --git a/cake/libs/model/app_model.php b/cake/libs/model/app_model.php index 120aa563c..e8a9aa1b7 100644 --- a/cake/libs/model/app_model.php +++ b/cake/libs/model/app_model.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Application model for Cake. * @@ -25,6 +26,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Application model for Cake. * diff --git a/cake/libs/model/behaviors/acl.php b/cake/libs/model/behaviors/acl.php index 0b867a2ca..a7c01a804 100644 --- a/cake/libs/model/behaviors/acl.php +++ b/cake/libs/model/behaviors/acl.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ACL behavior class. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for file * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs.model.behaviors */ class AclBehavior extends ModelBehavior { + /** * Maps ACL type options to ACL models * @@ -40,6 +43,7 @@ class AclBehavior extends ModelBehavior { * @access protected */ var $__typeMaps = array('requester' => 'Aro', 'controlled' => 'Aco'); + /** * Sets up the configuation for the model, and loads ACL models if they haven't been already * @@ -62,6 +66,7 @@ class AclBehavior extends ModelBehavior { trigger_error("Callback parentNode() not defined in {$model->alias}", E_USER_WARNING); } } + /** * Retrieves the Aro/Aco node for this model * @@ -76,6 +81,7 @@ class AclBehavior extends ModelBehavior { } return $model->{$type}->node($ref); } + /** * Creates a new ARO/ACO node bound to this record * @@ -101,6 +107,7 @@ class AclBehavior extends ModelBehavior { )); } } + /** * Destroys the ARO/ACO node bound to the deleted record * diff --git a/cake/libs/model/behaviors/containable.php b/cake/libs/model/behaviors/containable.php index edcadd51b..791f78918 100644 --- a/cake/libs/model/behaviors/containable.php +++ b/cake/libs/model/behaviors/containable.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Behavior for binding management. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting * the amount of associations and data returned. @@ -32,6 +34,7 @@ * @subpackage cake.cake.console.libs */ class ContainableBehavior extends ModelBehavior { + /** * Types of relationships available for models * @@ -39,6 +42,7 @@ class ContainableBehavior extends ModelBehavior { * @access private */ var $types = array('belongsTo', 'hasOne', 'hasMany', 'hasAndBelongsToMany'); + /** * Runtime configuration for this behavior * @@ -46,9 +50,10 @@ class ContainableBehavior extends ModelBehavior { * @access private */ var $runtime = array(); + /** * Initiate behavior for the model using specified settings. - * + * * Available settings: * * - recursive: (boolean, optional) set to true to allow containable to automatically @@ -73,6 +78,7 @@ class ContainableBehavior extends ModelBehavior { } $this->settings[$Model->alias] = array_merge($this->settings[$Model->alias], $settings); } + /** * Runs before a find() operation. Used to allow 'contain' setting * as part of the find call, like this: @@ -200,6 +206,7 @@ class ContainableBehavior extends ModelBehavior { $query['fields'] = array_unique($query['fields']); return $query; } + /** * Resets original associations on models that may have receive multiple, * subsequent unbindings. @@ -217,6 +224,7 @@ class ContainableBehavior extends ModelBehavior { } } } + /** * Unbinds all relations from a model except the specified ones. Calling this function without * parameters unbinds all related models. @@ -230,6 +238,7 @@ class ContainableBehavior extends ModelBehavior { $contain = call_user_func_array('am', array_slice($args, 1)); $this->runtime[$Model->alias]['contain'] = $contain; } + /** * Permanently restore the original binding settings of given model, useful * for restoring the bindings after using 'reset' => false as part of the @@ -253,6 +262,7 @@ class ContainableBehavior extends ModelBehavior { } } } + /** * Process containments for model. * @@ -357,6 +367,7 @@ class ContainableBehavior extends ModelBehavior { $containments['depth'] = empty($depths) ? 0 : max($depths); return $containments; } + /** * Calculate needed fields to fetch the required bindings for the given model. * @@ -404,6 +415,7 @@ class ContainableBehavior extends ModelBehavior { } return array_unique($fields); } + /** * Build the map of containments * diff --git a/cake/libs/model/behaviors/translate.php b/cake/libs/model/behaviors/translate.php index 7e959f50c..35ffe36c3 100644 --- a/cake/libs/model/behaviors/translate.php +++ b/cake/libs/model/behaviors/translate.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for file. * @@ -33,10 +35,12 @@ * @subpackage cake.cake.libs.model.behaviors */ class TranslateBehavior extends ModelBehavior { + /** * Used for runtime configuration of model */ var $runtime = array(); + /** * Callback * @@ -69,6 +73,7 @@ class TranslateBehavior extends ModelBehavior { $this->translateModel($model); return $this->bindTranslation($model, $config, false); } + /** * Callback * @@ -80,6 +85,7 @@ class TranslateBehavior extends ModelBehavior { unset($this->settings[$model->alias]); unset($this->runtime[$model->alias]); } + /** * beforeFind Callback * @@ -200,6 +206,7 @@ class TranslateBehavior extends ModelBehavior { $this->runtime[$model->alias]['beforeFind'] = $addFields; return $query; } + /** * afterFind Callback * @@ -244,6 +251,7 @@ class TranslateBehavior extends ModelBehavior { } return $results; } + /** * beforeValidate Callback * @@ -276,6 +284,7 @@ class TranslateBehavior extends ModelBehavior { $this->runtime[$model->alias]['beforeSave'] = $tempData; return true; } + /** * afterSave Callback * @@ -319,6 +328,7 @@ class TranslateBehavior extends ModelBehavior { } } } + /** * afterDelete Callback * @@ -330,6 +340,7 @@ class TranslateBehavior extends ModelBehavior { $conditions = array('model' => $model->alias, 'foreign_key' => $model->id); $RuntimeModel->deleteAll($conditions); } + /** * Get selected locale for model * @@ -348,6 +359,7 @@ class TranslateBehavior extends ModelBehavior { return $model->locale; } + /** * Get instance of model for translations * @@ -375,6 +387,7 @@ class TranslateBehavior extends ModelBehavior { } return $this->runtime[$model->alias]['model']; } + /** * Bind translation for fields, optionally with hasMany association for * fake field @@ -447,6 +460,7 @@ class TranslateBehavior extends ModelBehavior { } return true; } + /** * Unbind translation for fields, optionally unbinds hasMany association for * fake field @@ -499,6 +513,7 @@ class TranslateBehavior extends ModelBehavior { } } if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { + /** * @package cake * @subpackage cake.cake.libs.model.behaviors diff --git a/cake/libs/model/behaviors/tree.php b/cake/libs/model/behaviors/tree.php index da23c193d..c1d51bb85 100644 --- a/cake/libs/model/behaviors/tree.php +++ b/cake/libs/model/behaviors/tree.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Tree behavior class. * @@ -24,22 +25,25 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Tree Behavior. * * Enables a model object to act as a node-based tree. Using Modified Preorder Tree Traversal - * + * * @see http://en.wikipedia.org/wiki/Tree_traversal * @package cake * @subpackage cake.cake.libs.model.behaviors */ class TreeBehavior extends ModelBehavior { + /** * Errors * * @var array */ var $errors = array(); + /** * Defaults * @@ -50,6 +54,7 @@ class TreeBehavior extends ModelBehavior { 'parent' => 'parent_id', 'left' => 'lft', 'right' => 'rght', 'scope' => '1 = 1', 'type' => 'nested', '__parentChange' => false, 'recursive' => -1 ); + /** * Initiate Tree behavior * @@ -72,6 +77,7 @@ class TreeBehavior extends ModelBehavior { } $this->settings[$Model->alias] = $settings; } + /** * After save method. Called after all saves * @@ -94,6 +100,7 @@ class TreeBehavior extends ModelBehavior { return $this->_setParent($Model, $Model->data[$Model->alias][$parent]); } } + /** * Before delete method. Called before all deletes * @@ -123,6 +130,7 @@ class TreeBehavior extends ModelBehavior { $this->__sync($Model, $diff, '-', '> ' . $data[$right]); return true; } + /** * Before save method. Called before all saves * @@ -196,6 +204,7 @@ class TreeBehavior extends ModelBehavior { } return true; } + /** * Get the number of child nodes * @@ -236,6 +245,7 @@ class TreeBehavior extends ModelBehavior { } return ($data[$right] - $data[$left] - 1) / 2; } + /** * Get the child nodes of the current model * @@ -297,6 +307,7 @@ class TreeBehavior extends ModelBehavior { } return $Model->find('all', compact('conditions', 'fields', 'order', 'limit', 'page', 'recursive')); } + /** * A convenience method for returning a hierarchical array used for HTML select boxes * @@ -352,6 +363,7 @@ class TreeBehavior extends ModelBehavior { } return Set::combine($results, $keyPath, $valuePath); } + /** * Get the parent node * @@ -385,6 +397,7 @@ class TreeBehavior extends ModelBehavior { } return false; } + /** * Get the path to the given node * @@ -420,6 +433,7 @@ class TreeBehavior extends ModelBehavior { )); return $results; } + /** * Reorder the node without changing the parent. * @@ -477,6 +491,7 @@ class TreeBehavior extends ModelBehavior { } return true; } + /** * Reorder the node without changing the parent. * @@ -535,6 +550,7 @@ class TreeBehavior extends ModelBehavior { } return true; } + /** * Recover a corrupted tree * @@ -609,6 +625,7 @@ class TreeBehavior extends ModelBehavior { } return true; } + /** * Reorder method. * @@ -616,9 +633,9 @@ class TreeBehavior extends ModelBehavior { * This method does not change the parent of any node. * * Requires a valid tree, by default it verifies the tree before beginning. - * + * * Options: - * + * * - 'id' id of record to use as top node for reordering * - 'field' Which field to use in reordeing defaults to displayField * - 'order' Direction to order either DESC or ASC (defaults to ASC) @@ -651,6 +668,7 @@ class TreeBehavior extends ModelBehavior { } return true; } + /** * Remove the current node from the tree, and reparent all children up one level. * @@ -720,6 +738,7 @@ class TreeBehavior extends ModelBehavior { ); } } + /** * Check if the current tree is valid. * @@ -789,6 +808,7 @@ class TreeBehavior extends ModelBehavior { } return true; } + /** * Sets the parent of the given node * @@ -858,6 +878,7 @@ class TreeBehavior extends ModelBehavior { } return true; } + /** * get the maximum index value in the table. * @@ -885,6 +906,7 @@ class TreeBehavior extends ModelBehavior { ))); return (empty($edge[$right])) ? 0 : $edge[$right]; } + /** * get the minimum index value in the table. * @@ -904,6 +926,7 @@ class TreeBehavior extends ModelBehavior { ))); return (empty($edge[$left])) ? 0 : $edge[$left]; } + /** * Table sync method. * diff --git a/cake/libs/model/cake_schema.php b/cake/libs/model/cake_schema.php index 31e7e9cfe..deed6c838 100644 --- a/cake/libs/model/cake_schema.php +++ b/cake/libs/model/cake_schema.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Schema database management for CakePHP. * @@ -23,6 +24,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ App::import('Model', 'ConnectionManager'); + /** * Base Class for Schema management * @@ -30,6 +32,7 @@ App::import('Model', 'ConnectionManager'); * @subpackage cake.cake.libs.model */ class CakeSchema extends Object { + /** * Name of the App Schema * @@ -37,6 +40,7 @@ class CakeSchema extends Object { * @access public */ var $name = null; + /** * Path to write location * @@ -44,6 +48,7 @@ class CakeSchema extends Object { * @access public */ var $path = null; + /** * File to write * @@ -51,6 +56,7 @@ class CakeSchema extends Object { * @access public */ var $file = 'schema.php'; + /** * Connection used for read * @@ -58,6 +64,7 @@ class CakeSchema extends Object { * @access public */ var $connection = 'default'; + /** * Set of tables * @@ -65,6 +72,7 @@ class CakeSchema extends Object { * @access public */ var $tables = array(); + /** * Constructor * @@ -88,6 +96,7 @@ class CakeSchema extends Object { $options = array_merge(get_object_vars($this), $options); $this->_build($options); } + /** * Builds schema object properties * @@ -115,6 +124,7 @@ class CakeSchema extends Object { $this->file = $file; } } + /** * Before callback to be implemented in subclasses * @@ -125,6 +135,7 @@ class CakeSchema extends Object { function before($event = array()) { return true; } + /** * After callback to be implemented in subclasses * @@ -133,6 +144,7 @@ class CakeSchema extends Object { */ function after($event = array()) { } + /** * Reads database and creates schema tables * @@ -164,11 +176,12 @@ class CakeSchema extends Object { return false; } + /** * Reads database and creates schema tables * * Options - * + * * - 'connection' - the db connection to use * - 'name' - name of the schema * - 'models' - a list of models to use, or false to ignore models @@ -275,6 +288,7 @@ class CakeSchema extends Object { ksort($tables); return compact('name', 'tables'); } + /** * Writes schema file from object or options * @@ -362,6 +376,7 @@ class CakeSchema extends Object { } return false; } + /** * Compares two sets of schemas * @@ -434,6 +449,7 @@ class CakeSchema extends Object { } return $tables; } + /** * Formats Schema columns from Model Object * @@ -455,6 +471,7 @@ class CakeSchema extends Object { } return $vals; } + /** * Formats Schema columns from Model Object * @@ -497,6 +514,7 @@ class CakeSchema extends Object { return $columns; } + /** * Compare two schema indexes * diff --git a/cake/libs/model/connection_manager.php b/cake/libs/model/connection_manager.php index 32f169840..e9dbd8990 100644 --- a/cake/libs/model/connection_manager.php +++ b/cake/libs/model/connection_manager.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Datasource connection manager * @@ -36,6 +37,7 @@ config('database'); * @subpackage cake.cake.libs.model */ class ConnectionManager extends Object { + /** * Holds a loaded instance of the Connections object * @@ -43,6 +45,7 @@ class ConnectionManager extends Object { * @access public */ var $config = null; + /** * Holds instances DataSource objects * @@ -50,6 +53,7 @@ class ConnectionManager extends Object { * @access protected */ var $_dataSources = array(); + /** * Contains a list of all file and class names used in Connection settings * @@ -57,6 +61,7 @@ class ConnectionManager extends Object { * @access protected */ var $_connectionsEnum = array(); + /** * Constructor. * @@ -66,6 +71,7 @@ class ConnectionManager extends Object { $this->config =& new DATABASE_CONFIG(); } } + /** * Gets a reference to the ConnectionManger object instance * @@ -82,6 +88,7 @@ class ConnectionManager extends Object { return $instance[0]; } + /** * Gets a reference to a DataSource object * @@ -113,6 +120,7 @@ class ConnectionManager extends Object { $return =& $_this->_dataSources[$name]; return $return; } + /** * Gets the list of available DataSource connections * @@ -124,6 +132,7 @@ class ConnectionManager extends Object { $_this =& ConnectionManager::getInstance(); return array_keys($_this->_dataSources); } + /** * Gets a DataSource name from an object reference * @@ -142,6 +151,7 @@ class ConnectionManager extends Object { } return null; } + /** * Loads the DataSource class for the given connection name * @@ -180,6 +190,7 @@ class ConnectionManager extends Object { return null; } } + /** * Gets a list of class and file names associated with the user-defined DataSource connections * @@ -205,6 +216,7 @@ class ConnectionManager extends Object { $_this->cakeError('missingConnection', array(array('className' => 'ConnectionManager'))); } } + /** * Dynamically creates a DataSource object at runtime, with the given name and settings * @@ -227,6 +239,7 @@ class ConnectionManager extends Object { $return =& $_this->getDataSource($name); return $return; } + /** * Returns the file, class name, and parent for the given driver. * @@ -249,6 +262,7 @@ class ConnectionManager extends Object { } return array('filename' => $filename, 'classname' => $classname, 'parent' => $parent); } + /** * Destructor. * @@ -260,4 +274,4 @@ class ConnectionManager extends Object { } } } -?> +?> \ No newline at end of file diff --git a/cake/libs/model/datasources/datasource.php b/cake/libs/model/datasources/datasource.php index 4fa8fba2e..62c75ed16 100644 --- a/cake/libs/model/datasources/datasource.php +++ b/cake/libs/model/datasources/datasource.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DataSource base class * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * DataSource base class * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs.model.datasources */ class DataSource extends Object { + /** * Are we connected to the DataSource? * @@ -40,6 +43,7 @@ class DataSource extends Object { * @access public */ var $connected = false; + /** * Print full query debug info? * @@ -47,6 +51,7 @@ class DataSource extends Object { * @access public */ var $fullDebug = false; + /** * Error description of last query * @@ -54,6 +59,7 @@ class DataSource extends Object { * @access public */ var $error = null; + /** * String to hold how many rows were affected by the last SQL operation. * @@ -61,6 +67,7 @@ class DataSource extends Object { * @access public */ var $affected = null; + /** * Number of rows in current resultset * @@ -68,6 +75,7 @@ class DataSource extends Object { * @access public */ var $numRows = null; + /** * Time the last query took * @@ -75,18 +83,21 @@ class DataSource extends Object { * @access public */ var $took = null; + /** * The starting character that this DataSource uses for quoted identifiers. * * @var string */ var $startQuote = null; + /** * The ending character that this DataSource uses for quoted identifiers. * * @var string */ var $endQuote = null; + /** * Enter description here... * @@ -94,6 +105,7 @@ class DataSource extends Object { * @access private */ var $_result = null; + /** * Queries count. * @@ -101,6 +113,7 @@ class DataSource extends Object { * @access private */ var $_queriesCnt = 0; + /** * Total duration of all queries. * @@ -108,6 +121,7 @@ class DataSource extends Object { * @access private */ var $_queriesTime = null; + /** * Log of queries executed by this DataSource * @@ -115,6 +129,7 @@ class DataSource extends Object { * @access private */ var $_queriesLog = array(); + /** * Maximum number of items in query log, to prevent query log taking over * too much memory on large amounts of queries -- I we've had problems at @@ -124,6 +139,7 @@ class DataSource extends Object { * @access private */ var $_queriesLogMax = 200; + /** * Caches serialzed results of executed queries * @@ -131,6 +147,7 @@ class DataSource extends Object { * @access private */ var $_queryCache = array(); + /** * The default configuration of a specific DataSource * @@ -138,6 +155,7 @@ class DataSource extends Object { * @access public */ var $_baseConfig = array(); + /** * Holds references to descriptions loaded by the DataSource * @@ -145,6 +163,7 @@ class DataSource extends Object { * @access private */ var $__descriptions = array(); + /** * Holds a list of sources (tables) contained in the DataSource * @@ -152,6 +171,7 @@ class DataSource extends Object { * @access protected */ var $_sources = null; + /** * A reference to the physical connection of this DataSource * @@ -159,6 +179,7 @@ class DataSource extends Object { * @access public */ var $connection = null; + /** * The DataSource configuration * @@ -166,6 +187,7 @@ class DataSource extends Object { * @access public */ var $config = array(); + /** * The DataSource configuration key name * @@ -173,6 +195,7 @@ class DataSource extends Object { * @access public */ var $configKeyName = null; + /** * Whether or not this DataSource is in the middle of a transaction * @@ -180,6 +203,7 @@ class DataSource extends Object { * @access protected */ var $_transactionStarted = false; + /** * Whether or not source data like available tables and schema descriptions * should be cached @@ -187,6 +211,7 @@ class DataSource extends Object { * @var boolean */ var $cacheSources = true; + /** * Constructor. */ @@ -194,6 +219,7 @@ class DataSource extends Object { parent::__construct(); $this->setConfig($config); } + /** * Caches/returns cached results for child instances * @@ -220,6 +246,7 @@ class DataSource extends Object { $this->_sources = $sources; return $sources; } + /** * Convenience method for DboSource::listSources(). Returns source names in lowercase. * @@ -231,6 +258,7 @@ class DataSource extends Object { } return array_map('strtolower', $this->listSources()); } + /** * Returns a Model description (metadata) or null if none found. * @@ -253,6 +281,7 @@ class DataSource extends Object { } return null; } + /** * Begin a transaction * @@ -261,6 +290,7 @@ class DataSource extends Object { function begin(&$model) { return !$this->_transactionStarted; } + /** * Commit a transaction * @@ -269,6 +299,7 @@ class DataSource extends Object { function commit(&$model) { return $this->_transactionStarted; } + /** * Rollback a transaction * @@ -277,6 +308,7 @@ class DataSource extends Object { function rollback(&$model) { return $this->_transactionStarted; } + /** * Converts column types to basic types * @@ -286,6 +318,7 @@ class DataSource extends Object { function column($real) { return false; } + /** * To-be-overridden in subclasses. * @@ -297,6 +330,7 @@ class DataSource extends Object { function create(&$model, $fields = null, $values = null) { return false; } + /** * To-be-overridden in subclasses. * @@ -307,6 +341,7 @@ class DataSource extends Object { function read(&$model, $queryData = array()) { return false; } + /** * To-be-overridden in subclasses. * @@ -318,6 +353,7 @@ class DataSource extends Object { function update(&$model, $fields = null, $values = null) { return false; } + /** * To-be-overridden in subclasses. * @@ -329,6 +365,7 @@ class DataSource extends Object { $id = $model->id; } } + /** * Returns the ID generated from the previous INSERT operation. * @@ -338,6 +375,7 @@ class DataSource extends Object { function lastInsertId($source = null) { return false; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -347,6 +385,7 @@ class DataSource extends Object { function lastNumRows($source = null) { return false; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -356,6 +395,7 @@ class DataSource extends Object { function lastAffected($source = null) { return false; } + /** * Returns true if the DataSource supports the given interface (method) * @@ -369,6 +409,7 @@ class DataSource extends Object { $return = in_array(strtolower($interface), $methods); return $return; } + /** * Sets the configuration for the DataSource * @@ -378,6 +419,7 @@ class DataSource extends Object { function setConfig($config = array()) { $this->config = array_merge($this->_baseConfig, $this->config, $config); } + /** * Cache the DataSource description * @@ -403,6 +445,7 @@ class DataSource extends Object { return $cache; } + /** * Enter description here... * @@ -483,6 +526,7 @@ class DataSource extends Object { } return $query; } + /** * To-be-overridden in subclasses. * @@ -493,6 +537,7 @@ class DataSource extends Object { function resolveKey($model, $key) { return $model->alias . $key; } + /** * Closes the current datasource. * diff --git a/cake/libs/model/datasources/dbo/dbo_adodb.php b/cake/libs/model/datasources/dbo/dbo_adodb.php index 53d6f9601..a43581f8a 100644 --- a/cake/libs/model/datasources/dbo/dbo_adodb.php +++ b/cake/libs/model/datasources/dbo/dbo_adodb.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * AdoDB layer for DBO. * @@ -24,10 +25,12 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Include AdoDB files. */ App::import('Vendor', 'NewADOConnection', array('file' => 'adodb' . DS . 'adodb.inc.php')); + /** * AdoDB DBO implementation. * @@ -37,12 +40,14 @@ App::import('Vendor', 'NewADOConnection', array('file' => 'adodb' . DS . 'adodb. * @subpackage cake.cake.libs.model.datasources.dbo */ class DboAdodb extends DboSource { + /** * Enter description here... * * @var string */ var $description = "ADOdb DBO Driver"; + /** * ADOConnection object with which we connect. * @@ -50,6 +55,7 @@ class DboAdodb extends DboSource { * @access private */ var $_adodb = null; + /** * Array translating ADOdb column MetaTypes to cake-supported metatypes * @@ -68,6 +74,7 @@ class DboAdodb extends DboSource { 'integer' => 'I', 'binary' => 'R', ); + /** * ADOdb column definition * @@ -86,6 +93,7 @@ class DboAdodb extends DboSource { 'binary' => array('name' => 'B'), 'boolean' => array('name' => 'L', 'limit' => '1') ); + /** * Connects to the database using options in the given configuration array. * @@ -114,6 +122,7 @@ class DboAdodb extends DboSource { $this->_adodbMetatyper = &$this->_adodb->execute('Select 1'); return $this->connected; } + /** * Disconnects from database. * @@ -122,6 +131,7 @@ class DboAdodb extends DboSource { function disconnect() { return $this->_adodb->Close(); } + /** * Executes given SQL statement. * @@ -133,6 +143,7 @@ class DboAdodb extends DboSource { $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; return $this->_adodb->execute($sql); } + /** * Returns a row from current resultset as an array . * @@ -153,6 +164,7 @@ class DboAdodb extends DboSource { return $this->fetchResult(); } } + /** * Begin a transaction * @@ -169,6 +181,7 @@ class DboAdodb extends DboSource { } return false; } + /** * Commit a transaction * @@ -184,6 +197,7 @@ class DboAdodb extends DboSource { } return false; } + /** * Rollback a transaction * @@ -198,6 +212,7 @@ class DboAdodb extends DboSource { } return false; } + /** * Returns an array of tables in the database. If there are no tables, an error is raised and the application exits. * @@ -212,6 +227,7 @@ class DboAdodb extends DboSource { } return $tables; } + /** * Returns an array of the fields in the table used by the given model. * @@ -244,6 +260,7 @@ class DboAdodb extends DboSource { $this->__cacheDescription($this->fullTableName($model, false), $fields); return $fields; } + /** * Returns a formatted error message from previous database operation. * @@ -252,6 +269,7 @@ class DboAdodb extends DboSource { function lastError() { return $this->_adodb->ErrorMsg(); } + /** * Returns number of affected rows in previous database operation, or false if no previous operation exists. * @@ -260,6 +278,7 @@ class DboAdodb extends DboSource { function lastAffected() { return $this->_adodb->Affected_Rows(); } + /** * Returns number of rows in previous resultset, or false if no previous resultset exists. * @@ -268,6 +287,7 @@ class DboAdodb extends DboSource { function lastNumRows() { return $this->_result ? $this->_result->RecordCount() : false; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -278,6 +298,7 @@ class DboAdodb extends DboSource { function lastInsertId() { return $this->_adodb->Insert_ID(); } + /** * Returns a LIMIT statement in the correct format for the particular database. * @@ -304,6 +325,7 @@ class DboAdodb extends DboSource { // please change to whatever select your database accepts // adodb doesn't allow us to get the correct limit string out of it } + /** * Converts database-layer column types to basic types * @@ -320,6 +342,7 @@ class DboAdodb extends DboSource { } return $metaTypes[$interpreted_type]; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -383,6 +406,7 @@ class DboAdodb extends DboSource { } return $fields; } + /** * Build ResultSets and map data * @@ -408,6 +432,7 @@ class DboAdodb extends DboSource { $j++; } } + /** * Fetches the next row from the current result set * @@ -435,6 +460,7 @@ class DboAdodb extends DboSource { } return $resultRow; } + /** * Generate a database-native column schema string * @@ -504,6 +530,7 @@ class DboAdodb extends DboSource { return $out; } + /** * Checks if the result is valid * diff --git a/cake/libs/model/datasources/dbo/dbo_db2.php b/cake/libs/model/datasources/dbo/dbo_db2.php index 4e65d3b43..873fa8ec0 100644 --- a/cake/libs/model/datasources/dbo/dbo_db2.php +++ b/cake/libs/model/datasources/dbo/dbo_db2.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * IBM DB2 for DBO * @@ -26,6 +27,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * IBM DB2 for DBO * @@ -37,24 +39,28 @@ * @subpackage cake.cake.libs.model.datasources.dbo */ class DboDb2 extends DboSource { + /** * A short description of the type of driver. * * @var string */ var $description = 'IBM DB2 DBO Driver'; + /** * The start quote in which database column and table names should be wrapped. * * @var string */ var $startQuote = ''; + /** * The end quote in which database column and table names should be wrapped. * * @var string */ var $endQuote = ''; + /** * An array of base configuration settings to be used if settings are not * provided, i.e. default host, port, and connection method. @@ -73,6 +79,7 @@ class DboDb2 extends DboSource { 'cataloged' => true, 'autocommit' => true ); + /** * An array that maps Cake column types to database native column types. * The mapped information can include a reference to a function that should @@ -94,12 +101,14 @@ class DboDb2 extends DboSource { 'binary' => array('name' => 'blob'), 'boolean' => array('name' => 'smallint', 'limit' => '1') ); + /** * A map for every result mapping tables to columns * * @var array result -> ( table -> column ) */ var $_resultMap = array(); + /** * Connects to the database using options in the given configuration array. * @@ -136,6 +145,7 @@ class DboDb2 extends DboSource { } return $this->connected; } + /** * Disconnects from database. * @@ -146,6 +156,7 @@ class DboDb2 extends DboSource { $this->connected = !@db2_close($this->connection); return !$this->connected; } + /** * Executes given SQL statement. We should use prepare / execute to allow the * database server to reuse its access plan and increase the efficiency @@ -182,6 +193,7 @@ class DboDb2 extends DboSource { return $result; } + /** * Returns an array of all the tables in the database. * Should call parent::listSources twice in the method: @@ -205,6 +217,7 @@ class DboDb2 extends DboSource { parent::listSources($tables); return $tables; } + /** * Returns an array of the fields in given table name. * @@ -231,6 +244,7 @@ class DboDb2 extends DboSource { $this->__cacheDescription($model->tablePrefix . $model->table, $fields); return $fields; } + /** * Returns a quoted name of $data for use in an SQL statement. * @@ -240,6 +254,7 @@ class DboDb2 extends DboSource { function name($data) { return $data; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -280,6 +295,7 @@ class DboDb2 extends DboSource { } return "'" . $data . "'"; } + /** * Not sure about this one, MySQL needs it but does ODBC? Safer just to leave it * Translates between PHP boolean values and MySQL (faked) boolean values @@ -300,6 +316,7 @@ class DboDb2 extends DboSource { return false; } } + /** * Begins a transaction. Returns true if the transaction was * started successfully, otherwise false. @@ -317,6 +334,7 @@ class DboDb2 extends DboSource { } return false; } + /** * Commit a transaction * @@ -335,6 +353,7 @@ class DboDb2 extends DboSource { } return false; } + /** * Rollback a transaction * @@ -351,6 +370,7 @@ class DboDb2 extends DboSource { } return false; } + /** * Removes Identity (primary key) column from update data before returning to parent * @@ -369,6 +389,7 @@ class DboDb2 extends DboSource { } return parent::update($model, $fields, $values); } + /** * Returns a formatted error message from previous database operation. * DB2 distinguishes between statement and connnection errors so we @@ -384,6 +405,7 @@ class DboDb2 extends DboSource { } return null; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, * this returns false. @@ -396,6 +418,7 @@ class DboDb2 extends DboSource { } return null; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -408,6 +431,7 @@ class DboDb2 extends DboSource { } return null; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -422,6 +446,7 @@ class DboDb2 extends DboSource { } return null; } + /** * Returns a limit statement in the correct format for the particular database. * @@ -461,6 +486,7 @@ class DboDb2 extends DboSource { } return null; } + /** * Converts database-layer column types to basic types * @@ -507,6 +533,7 @@ class DboDb2 extends DboSource { } return 'text'; } + /** * Maps a result set to an array so that returned fields are * grouped by model. Any calculated fields, or fields that @@ -536,6 +563,7 @@ class DboDb2 extends DboSource { $this->results =& $results; $this->map = $this->_resultMap[$this->results]; } + /** * Fetches the next row from the current result set * Maps the records in the $result property to the map diff --git a/cake/libs/model/datasources/dbo/dbo_firebird.php b/cake/libs/model/datasources/dbo/dbo_firebird.php index d02c45b76..faab0920d 100644 --- a/cake/libs/model/datasources/dbo/dbo_firebird.php +++ b/cake/libs/model/datasources/dbo/dbo_firebird.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Firebird/Interbase layer for DBO * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for class. * @@ -33,48 +35,56 @@ * @subpackage cake.cake.libs.model.dbo */ class DboFirebird extends DboSource { + /** * Enter description here... * * @var unknown_type */ var $description = "Firebird/Interbase DBO Driver"; + /** * Saves the original table name * * @var unknown_type */ var $modeltmp = array(); + /** * Enter description here... * * @var unknown_type */ var $startQuote = "\'"; + /** * Enter description here... * * @var unknown_type */ var $endQuote = "\'"; + /** * Enter description here... * * @var unknown_type */ var $alias = ' '; + /** * Enter description here... * * @var unknown_type */ var $goofyLimit = true; + /** * Creates a map between field aliases and numeric indexes. * * @var array */ var $__fieldMappings = array(); + /** * Base configuration settings for Firebird driver * @@ -89,6 +99,7 @@ class DboFirebird extends DboSource { 'port' => '3050', 'connect' => 'ibase_connect' ); + /** * Firebird column definition * @@ -107,6 +118,7 @@ class DboFirebird extends DboSource { 'binary' => array('name' => 'blob'), 'boolean' => array('name' => 'smallint') ); + /** * Firebird Transaction commands. * @@ -117,6 +129,7 @@ class DboFirebird extends DboSource { 'commit' => 'COMMIT', 'rollback' => 'ROLLBACK' ); + /** * Connects to the database using options in the given configuration array. * @@ -130,6 +143,7 @@ class DboFirebird extends DboSource { $this->connection = $connect($config['host'] . ':' . $config['database'], $config['login'], $config['password']); $this->connected = true; } + /** * Disconnects from database. * @@ -139,6 +153,7 @@ class DboFirebird extends DboSource { $this->connected = false; return @ibase_close($this->connection); } + /** * Executes given SQL statement. * @@ -149,6 +164,7 @@ class DboFirebird extends DboSource { function _execute($sql) { return @ibase_query($this->connection, $sql); } + /** * Returns a row from given resultset as an array . * @@ -163,6 +179,7 @@ class DboFirebird extends DboSource { return null; } } + /** * Returns an array of sources (tables) in the database. * @@ -186,6 +203,7 @@ class DboFirebird extends DboSource { parent::listSources($tables); return $tables; } + /** * Returns an array of the fields in given table name. * @@ -216,6 +234,7 @@ class DboFirebird extends DboSource { $this->__cacheDescription($this->fullTableName($model, false), $fields); return $fields; } + /** * Returns a quoted name of $data for use in an SQL statement. * @@ -238,6 +257,7 @@ class DboFirebird extends DboSource { } return $data; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -273,6 +293,7 @@ class DboFirebird extends DboSource { } return "'" . $data . "'"; } + /** * Removes Identity (primary key) column from update data before returning to parent * @@ -291,6 +312,7 @@ class DboFirebird extends DboSource { } return parent::update($model, $fields, $values); } + /** * Returns a formatted error message from previous database operation. * @@ -304,6 +326,7 @@ class DboFirebird extends DboSource { } return null; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, * this returns false. @@ -316,6 +339,7 @@ class DboFirebird extends DboSource { } return null; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -325,6 +349,7 @@ class DboFirebird extends DboSource { function lastNumRows() { return $this->_result? /*ibase_affected_rows($this->_result)*/ 1: false; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -363,6 +388,7 @@ class DboFirebird extends DboSource { return false; } } + /** * Returns a limit statement in the correct format for the particular database. * @@ -386,6 +412,7 @@ class DboFirebird extends DboSource { } return null; } + /** * Converts database-layer column types to basic types * @@ -437,6 +464,7 @@ class DboFirebird extends DboSource { } return 'text'; } + /** * Enter description here... * @@ -459,6 +487,7 @@ class DboFirebird extends DboSource { $j++; } } + /** * Builds final SQL statement * @@ -484,6 +513,7 @@ class DboFirebird extends DboSource { return parent::renderStatement($type, $data); } } + /** * Fetches the next row from the current result set * diff --git a/cake/libs/model/datasources/dbo/dbo_mssql.php b/cake/libs/model/datasources/dbo/dbo_mssql.php index 766b70be1..cb3932e3e 100644 --- a/cake/libs/model/datasources/dbo/dbo_mssql.php +++ b/cake/libs/model/datasources/dbo/dbo_mssql.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * MS SQL layer for DBO * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for class. * @@ -33,24 +35,28 @@ * @subpackage cake.cake.libs.model.datasources.dbo */ class DboMssql extends DboSource { + /** * Driver description * * @var string */ var $description = "MS SQL DBO Driver"; + /** * Starting quote character for quoted identifiers * * @var string */ var $startQuote = "["; + /** * Ending quote character for quoted identifiers * * @var string */ var $endQuote = "]"; + /** * Creates a map between field aliases and numeric indexes. Workaround for the * SQL Server driver's 30-character column name limitation. @@ -58,6 +64,7 @@ class DboMssql extends DboSource { * @var array */ var $__fieldMappings = array(); + /** * Base configuration settings for MS SQL driver * @@ -71,6 +78,7 @@ class DboMssql extends DboSource { 'database' => 'cake', 'port' => '1433', ); + /** * MS SQL column definition * @@ -89,6 +97,7 @@ class DboMssql extends DboSource { 'binary' => array('name' => 'image'), 'boolean' => array('name' => 'bit') ); + /** * Index of basic SQL commands * @@ -100,6 +109,7 @@ class DboMssql extends DboSource { 'commit' => 'COMMIT', 'rollback' => 'ROLLBACK' ); + /** * MS SQL DBO driver constructor; sets SQL Server error reporting defaults * @@ -116,6 +126,7 @@ class DboMssql extends DboSource { } return parent::__construct($config, $autoConnect); } + /** * Connects to the database using options in the given configuration array. * @@ -152,6 +163,7 @@ class DboMssql extends DboSource { } return $this->connected; } + /** * Disconnects from database. * @@ -162,6 +174,7 @@ class DboMssql extends DboSource { $this->connected = !@mssql_close($this->connection); return !$this->connected; } + /** * Executes given SQL statement. * @@ -172,6 +185,7 @@ class DboMssql extends DboSource { function _execute($sql) { return mssql_query($sql, $this->connection); } + /** * Returns an array of sources (tables) in the database. * @@ -198,6 +212,7 @@ class DboMssql extends DboSource { return $tables; } } + /** * Returns an array of the fields in given table name. * @@ -241,6 +256,7 @@ class DboMssql extends DboSource { $this->__cacheDescription($this->fullTableName($model, false), $fields); return $fields; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -280,6 +296,7 @@ class DboMssql extends DboSource { } return "'" . $data . "'"; } + /** * Generates the fields list of an SQL query. * @@ -326,6 +343,7 @@ class DboMssql extends DboSource { } return $fields; } + /** * Generates and executes an SQL INSERT statement for given model, fields, and values. * Removes Identity (primary key) column from update data before returning to parent, if @@ -356,6 +374,7 @@ class DboMssql extends DboSource { } return $result; } + /** * Generates and executes an SQL UPDATE statement for given model, fields, and values. * Removes Identity (primary key) column from update data before returning to parent. @@ -375,6 +394,7 @@ class DboMssql extends DboSource { } return parent::update($model, array_keys($fields), array_values($fields), $conditions); } + /** * Returns a formatted error message from previous database operation. * @@ -390,6 +410,7 @@ class DboMssql extends DboSource { } return null; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, * this returns false. @@ -402,6 +423,7 @@ class DboMssql extends DboSource { } return null; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -414,6 +436,7 @@ class DboMssql extends DboSource { } return null; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -424,6 +447,7 @@ class DboMssql extends DboSource { $id = $this->fetchRow('SELECT SCOPE_IDENTITY() AS insertID', false); return $id[0]['insertID']; } + /** * Returns a limit statement in the correct format for the particular database. * @@ -445,6 +469,7 @@ class DboMssql extends DboSource { } return null; } + /** * Converts database-layer column types to basic types * @@ -489,6 +514,7 @@ class DboMssql extends DboSource { } return 'text'; } + /** * Enter description here... * @@ -519,6 +545,7 @@ class DboMssql extends DboSource { $j++; } } + /** * Builds final SQL statement * @@ -570,6 +597,7 @@ class DboMssql extends DboSource { break; } } + /** * Reverses the sort direction of ORDER statements to get paging offsets to work correctly * @@ -582,6 +610,7 @@ class DboMssql extends DboSource { $order = preg_replace('/\s+DESC/i', ' ASC', $order); return preg_replace('/__tmp_asc__/', ' DESC', $order); } + /** * Translates field names used for filtering and sorting to shortened names using the field map * @@ -599,6 +628,7 @@ class DboMssql extends DboSource { } return $sql; } + /** * Returns an array of all result rows for a given SQL query. * Returns false if no rows matched. @@ -612,6 +642,7 @@ class DboMssql extends DboSource { $this->__fieldMappings = array(); return $results; } + /** * Fetches the next row from the current result set * @@ -632,6 +663,7 @@ class DboMssql extends DboSource { return false; } } + /** * Inserts multiple values into a table * @@ -655,6 +687,7 @@ class DboMssql extends DboSource { $this->_execute('SET IDENTITY_INSERT ' . $this->fullTableName($table) . ' OFF'); } } + /** * Generate a database-native column schema string * @@ -677,6 +710,7 @@ class DboMssql extends DboSource { } return $result; } + /** * Format indexes for create table * @@ -704,6 +738,7 @@ class DboMssql extends DboSource { } return $join; } + /** * Makes sure it will return the primary key * diff --git a/cake/libs/model/datasources/dbo/dbo_mysql.php b/cake/libs/model/datasources/dbo/dbo_mysql.php index 2d97e141c..1cdd83b8f 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysql.php +++ b/cake/libs/model/datasources/dbo/dbo_mysql.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * MySQL layer for DBO * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Provides common base for MySQL & MySQLi connections * @@ -31,24 +33,28 @@ * @subpackage cake.cake.libs.model.datasources.dbo */ class DboMysqlBase extends DboSource { + /** * Description property. - * + * * @var string */ var $description = "MySQL DBO Base Driver"; + /** * Start quote * * @var string */ var $startQuote = "`"; + /** * End quote * * @var string */ var $endQuote = "`"; + /** * use alias for update and delete. Set to true if version >= 4.1 * @@ -56,6 +62,7 @@ class DboMysqlBase extends DboSource { * @access protected */ var $_useAlias = true; + /** * Index of basic SQL commands * @@ -67,6 +74,7 @@ class DboMysqlBase extends DboSource { 'commit' => 'COMMIT', 'rollback' => 'ROLLBACK' ); + /** * MySQL column definition * @@ -85,6 +93,7 @@ class DboMysqlBase extends DboSource { 'binary' => array('name' => 'blob'), 'boolean' => array('name' => 'tinyint', 'limit' => '1') ); + /** * Generates and executes an SQL UPDATE statement for given model, fields, and values. * @@ -128,6 +137,7 @@ class DboMysqlBase extends DboSource { } return true; } + /** * Generates and executes an SQL DELETE statement for given id/conditions on given model. * @@ -158,6 +168,7 @@ class DboMysqlBase extends DboSource { } return true; } + /** * Sets the database encoding * @@ -166,6 +177,7 @@ class DboMysqlBase extends DboSource { function setEncoding($enc) { return $this->_execute('SET NAMES ' . $enc) != false; } + /** * Returns an array of the indexes in given datasource name. * @@ -198,6 +210,7 @@ class DboMysqlBase extends DboSource { } return $index; } + /** * Generate a MySQL Alter Table syntax for the given Schema comparison * @@ -252,6 +265,7 @@ class DboMysqlBase extends DboSource { } return $out; } + /** * Generate a MySQL "drop table" statement for the given Schema object * @@ -273,13 +287,14 @@ class DboMysqlBase extends DboSource { } return $out; } + /** * Generate MySQL index alteration statements for a table. * * @param string $table Table to alter indexes for * @param array $new Indexes to add and drop * @return array Index alteration statements - */ + */ function _alterIndexes($table, $indexes) { $alter = array(); if (isset($indexes['drop'])) { @@ -314,6 +329,7 @@ class DboMysqlBase extends DboSource { } return $alter; } + /** * Inserts multiple values into a table * @@ -340,12 +356,14 @@ class DboMysqlBase extends DboSource { * @subpackage cake.cake.libs.model.datasources.dbo */ class DboMysql extends DboMysqlBase { + /** * Enter description here... * * @var unknown_type */ var $description = "MySQL DBO Driver"; + /** * Base configuration settings for MySQL driver * @@ -360,6 +378,7 @@ class DboMysql extends DboMysqlBase { 'port' => '3306', 'connect' => 'mysql_pconnect' ); + /** * Connects to the database using options in the given configuration array. * @@ -388,6 +407,7 @@ class DboMysql extends DboMysqlBase { return $this->connected; } + /** * Disconnects from database. * @@ -400,6 +420,7 @@ class DboMysql extends DboMysqlBase { $this->connected = !@mysql_close($this->connection); return !$this->connected; } + /** * Executes given SQL statement. * @@ -410,6 +431,7 @@ class DboMysql extends DboMysqlBase { function _execute($sql) { return mysql_query($sql, $this->connection); } + /** * Returns an array of sources (tables) in the database. * @@ -434,6 +456,7 @@ class DboMysql extends DboMysqlBase { return $tables; } } + /** * Returns an array of the fields in given table name. * @@ -468,6 +491,7 @@ class DboMysql extends DboMysqlBase { $this->__cacheDescription($this->fullTableName($model, false), $fields); return $fields; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -512,6 +536,7 @@ class DboMysql extends DboMysqlBase { } return $data; } + /** * Returns a formatted error message from previous database operation. * @@ -523,6 +548,7 @@ class DboMysql extends DboMysqlBase { } return null; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, * this returns false. @@ -535,6 +561,7 @@ class DboMysql extends DboMysqlBase { } return null; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -547,6 +574,7 @@ class DboMysql extends DboMysqlBase { } return null; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -561,6 +589,7 @@ class DboMysql extends DboMysqlBase { return null; } + /** * Converts database-layer column types to basic types * @@ -608,6 +637,7 @@ class DboMysql extends DboMysqlBase { } return 'text'; } + /** * Enter description here... * @@ -634,6 +664,7 @@ class DboMysql extends DboMysqlBase { $j++; } } + /** * Fetches the next row from the current result set * @@ -653,6 +684,7 @@ class DboMysql extends DboMysqlBase { return false; } } + /** * Gets the database encoding * diff --git a/cake/libs/model/datasources/dbo/dbo_mysqli.php b/cake/libs/model/datasources/dbo/dbo_mysqli.php index c0d238079..8ed2716fc 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysqli.php +++ b/cake/libs/model/datasources/dbo/dbo_mysqli.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * MySQLi layer for DBO * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ App::import('Core', 'DboMysql'); + /** * MySQLi DBO driver object * @@ -34,12 +36,14 @@ App::import('Core', 'DboMysql'); * @subpackage cake.cake.libs.model.datasources.dbo */ class DboMysqli extends DboMysqlBase { + /** * Enter description here... * * @var unknown_type */ var $description = "Mysqli DBO Driver"; + /** * Base configuration settings for Mysqli driver * @@ -54,6 +58,7 @@ class DboMysqli extends DboMysqlBase { 'port' => '3306', 'connect' => 'mysqli_connect' ); + /** * Connects to the database using options in the given configuration array. * @@ -75,14 +80,15 @@ class DboMysqli extends DboMysqlBase { if ($this->connection !== false) { $this->connected = true; } - + $this->_useAlias = (bool)version_compare(mysqli_get_server_info($this->connection), "4.1", ">="); - + if (!empty($config['encoding'])) { $this->setEncoding($config['encoding']); } return $this->connected; } + /** * Disconnects from database. * @@ -95,6 +101,7 @@ class DboMysqli extends DboMysqlBase { $this->connected = !@mysqli_close($this->connection); return !$this->connected; } + /** * Executes given SQL statement. * @@ -109,6 +116,7 @@ class DboMysqli extends DboMysqlBase { return mysqli_query($this->connection, $sql); } } + /** * Executes given SQL statement (procedure call). * @@ -126,6 +134,7 @@ class DboMysqli extends DboMysqlBase { } return $firstResult; } + /** * Returns an array of sources (tables) in the database. * @@ -150,6 +159,7 @@ class DboMysqli extends DboMysqlBase { return $tables; } } + /** * Returns an array of the fields in given table name. * @@ -187,6 +197,7 @@ class DboMysqli extends DboMysqlBase { $this->__cacheDescription($this->fullTableName($model, false), $fields); return $fields; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -232,6 +243,7 @@ class DboMysqli extends DboMysqlBase { return $data; } + /** * Returns a formatted error message from previous database operation. * @@ -243,6 +255,7 @@ class DboMysqli extends DboMysqlBase { } return null; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, * this returns false. @@ -255,6 +268,7 @@ class DboMysqli extends DboMysqlBase { } return null; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -267,6 +281,7 @@ class DboMysqli extends DboMysqlBase { } return null; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -281,6 +296,7 @@ class DboMysqli extends DboMysqlBase { return null; } + /** * Converts database-layer column types to basic types * @@ -328,6 +344,7 @@ class DboMysqli extends DboMysqlBase { } return 'text'; } + /** * Gets the length of a database-native column description, or null if no length * @@ -347,6 +364,7 @@ class DboMysqli extends DboMysqlBase { } return null; } + /** * Enter description here... * @@ -371,6 +389,7 @@ class DboMysqli extends DboMysqlBase { $j++; } } + /** * Fetches the next row from the current result set * @@ -393,6 +412,7 @@ class DboMysqli extends DboMysqlBase { return false; } } + /** * Gets the database encoding * @@ -401,6 +421,7 @@ class DboMysqli extends DboMysqlBase { function getEncoding() { return mysqli_client_encoding($this->connection); } + /** * Checks if the result is valid * diff --git a/cake/libs/model/datasources/dbo/dbo_odbc.php b/cake/libs/model/datasources/dbo/dbo_odbc.php index a8572a713..e24daf7ce 100644 --- a/cake/libs/model/datasources/dbo/dbo_odbc.php +++ b/cake/libs/model/datasources/dbo/dbo_odbc.php @@ -35,24 +35,28 @@ * @subpackage cake.cake.libs.model.datasources.dbo */ class DboOdbc extends DboSource { + /** * Driver description * * @var string */ var $description = "ODBC DBO Driver"; + /** * Table/column starting quote * * @var string */ var $startQuote = "`"; + /** * Table/column end quote * * @var string */ var $endQuote = "`"; + /** * Driver base configuration * @@ -65,6 +69,7 @@ class DboOdbc extends DboSource { 'database' => 'cake', 'connect' => 'odbc_pconnect' ); + /** * Enter description here... * @@ -83,6 +88,7 @@ class DboOdbc extends DboSource { // 'date' => array('name' => 'date', 'format' => 'Y-m-d', 'formatter' => 'date'), // 'binary' => array('name' => 'blob'), // 'boolean' => array('name' => 'tinyint', 'limit' => '1')); + /** * Connects to the database using options in the given configuration array. * @@ -105,6 +111,7 @@ class DboOdbc extends DboSource { return $this->connected; } + /** * Disconnects from database. * @@ -113,6 +120,7 @@ class DboOdbc extends DboSource { function disconnect() { return @odbc_close($this->connection); } + /** * Executes given SQL statement. * @@ -132,6 +140,7 @@ class DboOdbc extends DboSource { // TODO: should flags be set? possible requirement: SQL_CURSOR_STATIC return odbc_exec($this->connection, $sql); } + /** * Returns an array of sources (tables) in the database. * @@ -153,6 +162,7 @@ class DboOdbc extends DboSource { parent::listSources($tables); return $tables; } + /** * Returns an array of the fields in given table name. * @@ -184,6 +194,7 @@ class DboOdbc extends DboSource { $this->__cacheDescription($model->tablePrefix . $model->table, $fields); return $fields; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -209,6 +220,7 @@ class DboOdbc extends DboSource { return $data; } + /** * Returns a formatted error message from previous database operation. * @@ -220,6 +232,7 @@ class DboOdbc extends DboSource { } return null; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, * this returns false. @@ -232,6 +245,7 @@ class DboOdbc extends DboSource { } return null; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -244,6 +258,7 @@ class DboOdbc extends DboSource { } return null; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -254,6 +269,7 @@ class DboOdbc extends DboSource { $result = $this->fetchRow('SELECT @@IDENTITY'); return $result[0]; } + /** * Enter description here... * @@ -269,6 +285,7 @@ class DboOdbc extends DboSource { } return $real; } + /** * Enter description here... * @@ -292,6 +309,7 @@ class DboOdbc extends DboSource { $j++; } } + /** * Generates the fields list of an SQL query. * @@ -338,6 +356,7 @@ class DboOdbc extends DboSource { } return $fields; } + /** * Fetches the next row from the current result set * diff --git a/cake/libs/model/datasources/dbo/dbo_oracle.php b/cake/libs/model/datasources/dbo/dbo_oracle.php index f7ec6f06e..d9f243e08 100644 --- a/cake/libs/model/datasources/dbo/dbo_oracle.php +++ b/cake/libs/model/datasources/dbo/dbo_oracle.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Oracle layer for DBO. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for class. * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs.model.datasources.dbo */ class DboOracle extends DboSource { + /** * Enter description here... * @@ -40,22 +43,26 @@ class DboOracle extends DboSource { * @access public */ var $config = array(); + /** * Enter description here... * * @var unknown_type */ var $alias = ''; + /** * Sequence names as introspected from the database */ var $_sequences = array(); + /** * Transaction in progress flag * * @var boolean */ var $__transactionStarted = false; + /** * Enter description here... * @@ -76,6 +83,7 @@ class DboOracle extends DboSource { 'boolean' => array('name' => 'boolean'), 'number' => array('name' => 'number'), 'inet' => array('name' => 'inet')); + /** * Enter description here... * @@ -83,6 +91,7 @@ class DboOracle extends DboSource { * @access protected */ var $connection; + /** * Enter description here... * @@ -90,6 +99,7 @@ class DboOracle extends DboSource { * @access protected */ var $_limit = -1; + /** * Enter description here... * @@ -97,6 +107,7 @@ class DboOracle extends DboSource { * @access protected */ var $_offset = 0; + /** * Enter description here... * @@ -104,6 +115,7 @@ class DboOracle extends DboSource { * @access protected */ var $_map; + /** * Enter description here... * @@ -111,6 +123,7 @@ class DboOracle extends DboSource { * @access protected */ var $_currentRow; + /** * Enter description here... * @@ -118,6 +131,7 @@ class DboOracle extends DboSource { * @access protected */ var $_numRows; + /** * Enter description here... * @@ -125,12 +139,14 @@ class DboOracle extends DboSource { * @access protected */ var $_results; + /** * Last error issued by oci extension * * @var unknown_type */ var $_error; + /** * Base configuration settings for MySQL driver * @@ -145,12 +161,14 @@ class DboOracle extends DboSource { 'nls_sort' => '', 'nls_sort' => '' ); + /** * Table-sequence map * * @var unknown_type */ var $_sequenceMap = array(); + /** * Connects to the database using options in the given configuration array. * @@ -201,6 +219,7 @@ class DboOracle extends DboSource { $this->_error = null; } } + /** * Sets the encoding language of the session * @@ -213,6 +232,7 @@ class DboOracle extends DboSource { } return true; } + /** * Gets the current encoding language * @@ -229,6 +249,7 @@ class DboOracle extends DboSource { } return $row[0]['VALUE']; } + /** * Disconnects from database. * @@ -241,6 +262,7 @@ class DboOracle extends DboSource { return !$this->connected; } } + /** * Scrape the incoming SQL to create the association map. This is an extremely * experimental method that creates the association maps since Oracle will not tell us. @@ -290,6 +312,7 @@ class DboOracle extends DboSource { $this->_map[] = array($table, $field); } } + /** * Modify a SQL query to limit (and offset) the result set * @@ -302,6 +325,7 @@ class DboOracle extends DboSource { $this->_limit = (int) $limit; $this->_offset = (int) $offset; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -312,6 +336,7 @@ class DboOracle extends DboSource { function lastNumRows() { return $this->_numRows; } + /** * Executes given SQL statement. This is an overloaded method. * @@ -359,6 +384,7 @@ class DboOracle extends DboSource { $this->limit(); return $this->_statementId; } + /** * Enter description here... * @@ -388,6 +414,7 @@ class DboOracle extends DboSource { $this->_currentRow++; return $resultRow; } + /** * Fetches the next row from the current result set * @@ -396,6 +423,7 @@ class DboOracle extends DboSource { function fetchResult() { return $this->fetchRow(); } + /** * Checks to see if a named sequence exists * @@ -410,6 +438,7 @@ class DboOracle extends DboSource { } return $this->fetchRow(); } + /** * Creates a database sequence * @@ -421,6 +450,7 @@ class DboOracle extends DboSource { $sql = "CREATE SEQUENCE $sequence"; return $this->execute($sql); } + /** * Enter description here... * @@ -432,6 +462,7 @@ class DboOracle extends DboSource { $sql = "CREATE OR REPLACE TRIGGER pk_$table" . "_trigger BEFORE INSERT ON $table FOR EACH ROW BEGIN SELECT pk_$table.NEXTVAL INTO :NEW.ID FROM DUAL; END;"; return $this->execute($sql); } + /** * Returns an array of tables in the database. If there are no tables, an error is * raised and the application exits. @@ -457,6 +488,7 @@ class DboOracle extends DboSource { parent::listSources($sources); return $sources; } + /** * Returns an array of the fields in given table name. * @@ -495,6 +527,7 @@ class DboOracle extends DboSource { return $fields; } + /** * Deletes all the records in a table and drops all associated auto-increment sequences. * Using DELETE instead of TRUNCATE because it causes locking problems. @@ -540,6 +573,7 @@ class DboOracle extends DboSource { } return true; } + /** * Enables, disables, and lists table constraints * @@ -617,6 +651,7 @@ class DboOracle extends DboSource { } return true; } + /** * Returns an array of the indexes in given table name. * @@ -658,6 +693,7 @@ class DboOracle extends DboSource { } return $index; } + /** * Generate a Oracle Alter Table syntax for the given Schema comparison * @@ -706,6 +742,7 @@ class DboOracle extends DboSource { } return $out; } + /** * This method should quote Oracle identifiers. Well it doesn't. * It would break all scaffolding and all of Cake's default assumptions. @@ -727,6 +764,7 @@ class DboOracle extends DboSource { } return $name; } + /** * Begin a transaction * @@ -738,6 +776,7 @@ class DboOracle extends DboSource { $this->__transactionStarted = true; return true; } + /** * Rollback a transaction * @@ -749,6 +788,7 @@ class DboOracle extends DboSource { function rollback() { return ocirollback($this->connection); } + /** * Commit a transaction * @@ -761,6 +801,7 @@ class DboOracle extends DboSource { $this->__transactionStarted = false; return ocicommit($this->connection); } + /** * Converts database-layer column types to basic types * @@ -811,6 +852,7 @@ class DboOracle extends DboSource { } return 'text'; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -851,6 +893,7 @@ class DboOracle extends DboSource { } return $data; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -871,6 +914,7 @@ class DboOracle extends DboSource { } return false; } + /** * Returns a formatted error message from previous database operation. * @@ -880,6 +924,7 @@ class DboOracle extends DboSource { function lastError() { return $this->_error; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, this returns false. * @@ -889,6 +934,7 @@ class DboOracle extends DboSource { function lastAffected() { return $this->_statementId ? ocirowcount($this->_statementId): false; } + /** * Renders a final SQL statement by putting together the component parts in the correct order * @@ -934,6 +980,7 @@ class DboOracle extends DboSource { break; } } + /** * Enter description here... * diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php b/cake/libs/model/datasources/dbo/dbo_postgres.php index 2298fc019..d8787a018 100644 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php +++ b/cake/libs/model/datasources/dbo/dbo_postgres.php @@ -25,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * PostgreSQL layer for DBO. * @@ -34,6 +35,7 @@ * @subpackage cake.cake.libs.model.datasources.dbo */ class DboPostgres extends DboSource { + /** * Driver description * @@ -41,6 +43,7 @@ class DboPostgres extends DboSource { * @access public */ var $description = "PostgreSQL DBO Driver"; + /** * Index of basic SQL commands * @@ -52,6 +55,7 @@ class DboPostgres extends DboSource { 'commit' => 'COMMIT', 'rollback' => 'ROLLBACK' ); + /** * Base driver configuration settings. Merged with user settings. * @@ -89,6 +93,7 @@ class DboPostgres extends DboSource { var $startQuote = '"'; var $endQuote = '"'; + /** * Contains mappings of custom auto-increment sequences, if a table uses a sequence name * other than what is dictated by convention. @@ -96,6 +101,7 @@ class DboPostgres extends DboSource { * @var array */ var $_sequenceMap = array(); + /** * Connects to the database using options in the given configuration array. * @@ -122,6 +128,7 @@ class DboPostgres extends DboSource { } return $this->connected; } + /** * Disconnects from database. * @@ -138,6 +145,7 @@ class DboPostgres extends DboSource { } return !$this->connected; } + /** * Executes given SQL statement. * @@ -147,6 +155,7 @@ class DboPostgres extends DboSource { function _execute($sql) { return pg_query($this->connection, $sql); } + /** * Returns an array of tables in the database. If there are no tables, an error is raised and the application exits. * @@ -176,6 +185,7 @@ class DboPostgres extends DboSource { return $tables; } } + /** * Returns an array of the fields in given table name. * @@ -248,6 +258,7 @@ class DboPostgres extends DboSource { } return $fields; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -298,6 +309,7 @@ class DboPostgres extends DboSource { } return "'" . $data . "'"; } + /** * Returns a formatted error message from previous database operation. * @@ -307,6 +319,7 @@ class DboPostgres extends DboSource { $error = pg_last_error($this->connection); return ($error) ? $error : null; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, this returns false. * @@ -315,6 +328,7 @@ class DboPostgres extends DboSource { function lastAffected() { return ($this->_result) ? pg_affected_rows($this->_result) : false; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -324,6 +338,7 @@ class DboPostgres extends DboSource { function lastNumRows() { return ($this->_result) ? pg_num_rows($this->_result) : false; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -336,6 +351,7 @@ class DboPostgres extends DboSource { $data = $this->fetchRow("SELECT currval('{$seq}') as max"); return $data[0]['max']; } + /** * Gets the associated sequence for the given table/field * @@ -353,6 +369,7 @@ class DboPostgres extends DboSource { return "{$table}_{$field}_seq"; } } + /** * Deletes all the records in a table and drops all associated auto-increment sequences * @@ -378,6 +395,7 @@ class DboPostgres extends DboSource { } return false; } + /** * Prepares field names to be quoted by parent * @@ -390,6 +408,7 @@ class DboPostgres extends DboSource { } return parent::name($data); } + /** * Generates the fields list of an SQL query. * @@ -429,6 +448,7 @@ class DboPostgres extends DboSource { } return $fields; } + /** * Returns an array of the indexes in given datasource name. * @@ -441,13 +461,13 @@ class DboPostgres extends DboSource { if ($table) { $indexes = $this->query("SELECT c2.relname, i.indisprimary, i.indisunique, i.indisclustered, i.indisvalid, pg_catalog.pg_get_indexdef(i.indexrelid, 0, true) as statement, c2.reltablespace FROM pg_catalog.pg_class c, pg_catalog.pg_class c2, pg_catalog.pg_index i - WHERE c.oid = ( - SELECT c.oid - FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace - WHERE c.relname ~ '^(" . $table . ")$' - AND pg_catalog.pg_table_is_visible(c.oid) + WHERE c.oid = ( + SELECT c.oid + FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace + WHERE c.relname ~ '^(" . $table . ")$' + AND pg_catalog.pg_table_is_visible(c.oid) AND n.nspname ~ '^(" . $this->config['schema'] . ")$' - ) + ) AND c.oid = i.indrelid AND i.indexrelid = c2.oid ORDER BY i.indisprimary DESC, i.indisunique DESC, c2.relname", false); foreach ($indexes as $i => $info) { @@ -467,6 +487,7 @@ class DboPostgres extends DboSource { } return $index; } + /** * Alter the Schema of a table. * @@ -528,7 +549,7 @@ class DboPostgres extends DboSource { } $colList[] = 'ADD PRIMARY KEY (' . $cols . ')'; } - + if (!empty($colList)) { $out .= "\t" . join(",\n\t", $colList) . ";\n\n"; } else { @@ -539,13 +560,14 @@ class DboPostgres extends DboSource { } return $out; } + /** * Generate PostgreSQL index alteration statements for a table. * * @param string $table Table to alter indexes for * @param array $new Indexes to add and drop * @return array Index alteration statements - */ + */ function _alterIndexes($table, $indexes) { $alter = array(); if (isset($indexes['drop'])) { @@ -580,6 +602,7 @@ class DboPostgres extends DboSource { } return $alter; } + /** * Returns a limit statement in the correct format for the particular database. * @@ -603,6 +626,7 @@ class DboPostgres extends DboSource { } return null; } + /** * Converts database-layer column types to basic types * @@ -651,6 +675,7 @@ class DboPostgres extends DboSource { break; } } + /** * Gets the length of a database-native column description, or null if no length * @@ -672,6 +697,7 @@ class DboPostgres extends DboSource { } return null; } + /** * Enter description here... * @@ -696,6 +722,7 @@ class DboPostgres extends DboSource { $j++; } } + /** * Fetches the next row from the current result set * @@ -727,6 +754,7 @@ class DboPostgres extends DboSource { return false; } } + /** * Translates between PHP boolean values and PostgreSQL boolean values * @@ -749,6 +777,7 @@ class DboPostgres extends DboSource { break; } } + /** * Sets the database encoding * @@ -758,6 +787,7 @@ class DboPostgres extends DboSource { function setEncoding($enc) { return pg_set_client_encoding($this->connection, $enc) == 0; } + /** * Gets the database encoding * @@ -766,6 +796,7 @@ class DboPostgres extends DboSource { function getEncoding() { return pg_client_encoding($this->connection); } + /** * Generate a Postgres-native column schema string * @@ -799,6 +830,7 @@ class DboPostgres extends DboSource { } return $out; } + /** * Format indexes for create table * @@ -830,6 +862,7 @@ class DboPostgres extends DboSource { } return $join; } + /** * Overrides DboSource::renderStatement to handle schema generation with Postgres-style indexes * diff --git a/cake/libs/model/datasources/dbo/dbo_sqlite.php b/cake/libs/model/datasources/dbo/dbo_sqlite.php index c365b6fe0..aa6311be3 100644 --- a/cake/libs/model/datasources/dbo/dbo_sqlite.php +++ b/cake/libs/model/datasources/dbo/dbo_sqlite.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * SQLite layer for DBO * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * DBO implementation for the SQLite DBMS. * @@ -33,24 +35,28 @@ * @subpackage cake.cake.libs.model.datasources.dbo */ class DboSqlite extends DboSource { + /** * Enter description here... * * @var unknown_type */ var $description = "SQLite DBO Driver"; + /** * Opening quote for quoted identifiers * * @var string */ var $startQuote = '"'; + /** * Closing quote for quoted identifiers * * @var string */ var $endQuote = '"'; + /** * Keeps the transaction statistics of CREATE/UPDATE/DELETE queries * @@ -58,6 +64,7 @@ class DboSqlite extends DboSource { * @access protected */ var $_queryStats = array(); + /** * Base configuration settings for SQLite driver * @@ -68,6 +75,7 @@ class DboSqlite extends DboSource { 'database' => null, 'connect' => 'sqlite_popen' ); + /** * Index of basic SQL commands * @@ -79,6 +87,7 @@ class DboSqlite extends DboSource { 'commit' => 'COMMIT TRANSACTION', 'rollback' => 'ROLLBACK TRANSACTION' ); + /** * SQLite column definition * @@ -97,6 +106,7 @@ class DboSqlite extends DboSource { 'binary' => array('name' => 'blob'), 'boolean' => array('name' => 'boolean') ); + /** * Connects to the database using config['database'] as a filename. * @@ -113,6 +123,7 @@ class DboSqlite extends DboSource { } return $this->connected; } + /** * Disconnects from database. * @@ -123,6 +134,7 @@ class DboSqlite extends DboSource { $this->connected = false; return $this->connected; } + /** * Executes given SQL statement. * @@ -138,6 +150,7 @@ class DboSqlite extends DboSource { } return $result; } + /** * Overrides DboSource::execute() to correctly handle query statistics * @@ -149,6 +162,7 @@ class DboSqlite extends DboSource { $this->_queryStats = array(); return $result; } + /** * Returns an array of tables in the database. If there are no tables, an error is raised and the application exits. * @@ -174,6 +188,7 @@ class DboSqlite extends DboSource { } return array(); } + /** * Returns an array of the fields in given table name. * @@ -210,6 +225,7 @@ class DboSqlite extends DboSource { $this->__cacheDescription($model->tablePrefix . $model->table, $fields); return $fields; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -243,6 +259,7 @@ class DboSqlite extends DboSource { } return "'" . $data . "'"; } + /** * Generates and executes an SQL UPDATE statement for given model, fields, and values. * @@ -266,6 +283,7 @@ class DboSqlite extends DboSource { $result = parent::update($model, $fields, $values, $conditions); return $result; } + /** * Deletes all the records in a table and resets the count of the auto-incrementing * primary key, where applicable. @@ -277,6 +295,7 @@ class DboSqlite extends DboSource { function truncate($table) { return $this->execute('DELETE From ' . $this->fullTableName($table)); } + /** * Returns a formatted error message from previous database operation. * @@ -289,6 +308,7 @@ class DboSqlite extends DboSource { } return null; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, this returns false. * @@ -304,6 +324,7 @@ class DboSqlite extends DboSource { } return false; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -316,6 +337,7 @@ class DboSqlite extends DboSource { } return false; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -324,6 +346,7 @@ class DboSqlite extends DboSource { function lastInsertId() { return sqlite_last_insert_rowid($this->connection); } + /** * Converts database-layer column types to basic types * @@ -359,6 +382,7 @@ class DboSqlite extends DboSource { } return 'text'; } + /** * Enter description here... * @@ -382,6 +406,7 @@ class DboSqlite extends DboSource { $j++; } } + /** * Fetches the next row from the current result set * @@ -406,6 +431,7 @@ class DboSqlite extends DboSource { return false; } } + /** * Returns a limit statement in the correct format for the particular database. * @@ -427,6 +453,7 @@ class DboSqlite extends DboSource { } return null; } + /** * Generate a database-native column schema string * @@ -481,6 +508,7 @@ class DboSqlite extends DboSource { } return $out; } + /** * Sets the database encoding * @@ -492,6 +520,7 @@ class DboSqlite extends DboSource { } return $this->_execute("PRAGMA encoding = \"{$enc}\"") !== false; } + /** * Gets the database encoding * @@ -500,6 +529,7 @@ class DboSqlite extends DboSource { function getEncoding() { return $this->fetchRow('PRAGMA encoding'); } + /** * Removes redundant primary key indexes, as they are handled in the column def of the key. * @@ -530,6 +560,7 @@ class DboSqlite extends DboSource { } return $join; } + /** * Overrides DboSource::index to handle SQLite indexe introspection * Returns an array of the indexes in given table name. @@ -566,7 +597,7 @@ class DboSqlite extends DboSource { } return $index; } - + /** * Overrides DboSource::renderStatement to handle schema generation with SQLite-style indexes * diff --git a/cake/libs/model/datasources/dbo/dbo_sybase.php b/cake/libs/model/datasources/dbo/dbo_sybase.php index 9e2a11851..762cb9048 100644 --- a/cake/libs/model/datasources/dbo/dbo_sybase.php +++ b/cake/libs/model/datasources/dbo/dbo_sybase.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Sybase layer for DBO * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for class. * @@ -33,24 +35,28 @@ * @subpackage cake.cake.libs.model.datasources.dbo */ class DboSybase extends DboSource { + /** * Driver description * * @var string */ var $description = "Sybase DBO Driver"; + /** * Start quote for quoted identifiers * * @var string */ var $startQuote = ""; + /** * End quote for quoted identifiers * * @var string */ var $endQuote = ""; + /** * Base configuration settings for Sybase driver * @@ -64,6 +70,7 @@ class DboSybase extends DboSource { 'database' => 'cake', 'port' => '4100' ); + /** * Sybase column definition * @@ -82,6 +89,7 @@ class DboSybase extends DboSource { 'binary' => array('name' => 'image'), 'boolean' => array('name' => 'bit') ); + /** * Connects to the database using options in the given configuration array. * @@ -102,6 +110,7 @@ class DboSybase extends DboSource { } return $this->connected; } + /** * Disconnects from database. * @@ -111,6 +120,7 @@ class DboSybase extends DboSource { $this->connected = !@sybase_close($this->connection); return !$this->connected; } + /** * Executes given SQL statement. * @@ -121,6 +131,7 @@ class DboSybase extends DboSource { function _execute($sql) { return sybase_query($sql, $this->connection); } + /** * Returns an array of sources (tables) in the database. * @@ -146,6 +157,7 @@ class DboSybase extends DboSource { return $tables; } } + /** * Returns an array of the fields in given table name. * @@ -178,6 +190,7 @@ class DboSybase extends DboSource { $this->__cacheDescription($model->tablePrefix.$model->table, $fields); return $fields; } + /** * Returns a quoted and escaped string of $data for use in an SQL statement. * @@ -212,6 +225,7 @@ class DboSybase extends DboSource { return "'" . $data . "'"; } + /** * Begin a transaction * @@ -228,6 +242,7 @@ class DboSybase extends DboSource { } return false; } + /** * Commit a transaction * @@ -243,6 +258,7 @@ class DboSybase extends DboSource { } return false; } + /** * Rollback a transaction * @@ -257,6 +273,7 @@ class DboSybase extends DboSource { } return false; } + /** * Returns a formatted error message from previous database operation. * @@ -266,6 +283,7 @@ class DboSybase extends DboSource { function lastError() { return null; } + /** * Returns number of affected rows in previous database operation. If no previous operation exists, * this returns false. @@ -278,6 +296,7 @@ class DboSybase extends DboSource { } return null; } + /** * Returns number of rows in previous resultset. If no previous resultset exists, * this returns false. @@ -290,6 +309,7 @@ class DboSybase extends DboSource { } return null; } + /** * Returns the ID generated from the previous INSERT operation. * @@ -300,6 +320,7 @@ class DboSybase extends DboSource { $result=$this->fetchRow('SELECT @@IDENTITY'); return $result[0]; } + /** * Converts database-layer column types to basic types * @@ -338,6 +359,7 @@ class DboSybase extends DboSource { return 'text'; } + /** * Enter description here... * @@ -361,6 +383,7 @@ class DboSybase extends DboSource { $j++; } } + /** * Fetches the next row from the current result set * diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index 8264081d6..fdc91ed42 100644 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -35,42 +36,49 @@ App::import('Core', array('Set', 'String')); * @subpackage cake.cake.libs.model.datasources */ class DboSource extends DataSource { + /** * Description string for this Database Data Source. * * @var unknown_type */ var $description = "Database Data Source"; + /** * index definition, standard cake, primary, index, unique * * @var array */ var $index = array('PRI' => 'primary', 'MUL' => 'index', 'UNI' => 'unique'); + /** * Database keyword used to assign aliases to identifiers. * * @var string */ var $alias = 'AS '; + /** * Caches fields quoted in DboSource::name() * * @var array */ var $fieldCache = array(); + /** * Bypass automatic adding of joined fields/associations. * * @var boolean */ var $__bypass = false; + /** * The set of valid SQL operations usable in a WHERE statement * * @var array */ var $__sqlOps = array('like', 'ilike', 'or', 'not', 'in', 'between', 'regexp', 'similar to'); + /** * Index of basic SQL commands * @@ -82,6 +90,7 @@ class DboSource extends DataSource { 'commit' => 'COMMIT', 'rollback' => 'ROLLBACK' ); + /** * Constructor */ @@ -98,6 +107,7 @@ class DboSource extends DataSource { return true; } } + /** * Reconnects to database server with optional new settings * @@ -111,6 +121,7 @@ class DboSource extends DataSource { return $this->connect(); } + /** * Prepares a value, or an array of values for database queries by quoting and escaping them. * @@ -137,6 +148,7 @@ class DboSource extends DataSource { return null; } } + /** * Returns an object to represent a database identifier in a query * @@ -149,6 +161,7 @@ class DboSource extends DataSource { $obj->value = $identifier; return $obj; } + /** * Returns an object to represent a database expression in a query * @@ -161,6 +174,7 @@ class DboSource extends DataSource { $obj->value = $expression; return $obj; } + /** * Executes given SQL statement. * @@ -171,6 +185,7 @@ class DboSource extends DataSource { $this->took = $this->error = $this->numRows = false; return $this->execute($sql); } + /** * Queries the database with given SQL statement, and obtains some metadata about the result * (rows affected, timing, any errors, number of rows in resultset). The query is also logged. @@ -203,6 +218,7 @@ class DboSource extends DataSource { } return $this->_result; } + /** * DataSource Query abstraction * @@ -298,6 +314,7 @@ class DboSource extends DataSource { } } } + /** * Returns a row from current resultset as an array * @@ -318,6 +335,7 @@ class DboSource extends DataSource { return null; } } + /** * Returns an array of all result rows for a given SQL query. * Returns false if no rows matched. @@ -355,6 +373,7 @@ class DboSource extends DataSource { return false; } } + /** * Returns a single field of the first of query results for a given SQL query, or false if empty. * @@ -371,6 +390,7 @@ class DboSource extends DataSource { return $data[$name]; } } + /** * Returns a quoted name of $data for use in an SQL statement. * Strips fields out of SQL functions before quoting. @@ -436,6 +456,7 @@ class DboSource extends DataSource { } return (!$array) ? $data[0] : $data; } + /** * Checks if it's connected to the database * @@ -444,6 +465,7 @@ class DboSource extends DataSource { function isConnected() { return $this->connected; } + /** * Checks if the result is valid * @@ -452,6 +474,7 @@ class DboSource extends DataSource { function hasResult() { return is_resource($this->_result); } + /** * Outputs the contents of the queries log. * @@ -484,6 +507,7 @@ class DboSource extends DataSource { } } } + /** * Log given SQL query. * @@ -507,6 +531,7 @@ class DboSource extends DataSource { return false; } } + /** * Output information about an SQL query. The SQL statement, number of rows in resultset, * and execution time in microseconds. If the query fails, an error is output instead. @@ -528,6 +553,7 @@ class DboSource extends DataSource { pr(sprintf("<p style = \"text-align:left\"><b>Query:</b> %s %s</p>", $sql, $out)); } } + /** * Gets full table name including prefix * @@ -548,6 +574,7 @@ class DboSource extends DataSource { } return $table; } + /** * The "C" in CRUD * @@ -593,6 +620,7 @@ class DboSource extends DataSource { return false; } } + /** * The "R" in CRUD * @@ -688,6 +716,7 @@ class DboSource extends DataSource { } return $resultSet; } + /** * Private method. Passes association results thru afterFind filters of corresponding model * @@ -724,6 +753,7 @@ class DboSource extends DataSource { } return $filtering; } + /** * Enter description here... * @@ -883,6 +913,7 @@ class DboSource extends DataSource { } } } + /** * A more efficient way to fetch associations. Woohoo! * @@ -899,6 +930,7 @@ class DboSource extends DataSource { } return $this->fetchAll($query, $model->cacheQueries, $model->alias); } + /** * mergeHasMany - Merge the results of hasMany relations. * @@ -938,6 +970,7 @@ class DboSource extends DataSource { } } } + /** * Enter description here... * @@ -1016,6 +1049,7 @@ class DboSource extends DataSource { } } } + /** * Generates an array representing a query or part of a query from a single model or two associated models * @@ -1185,6 +1219,7 @@ class DboSource extends DataSource { } return null; } + /** * Returns a conditions array for the constraint between two models * @@ -1225,6 +1260,7 @@ class DboSource extends DataSource { } return array(); } + /** * Builds and generates a JOIN statement from an array. Handles final clean-up before conversion. * @@ -1249,6 +1285,7 @@ class DboSource extends DataSource { } return $this->renderJoinStatement($data); } + /** * Builds and generates an SQL statement from an array. Handles final clean-up before conversion. * @@ -1278,6 +1315,7 @@ class DboSource extends DataSource { 'group' => $this->group($query['group']) )); } + /** * Renders a final SQL JOIN statement * @@ -1288,6 +1326,7 @@ class DboSource extends DataSource { extract($data); return trim("{$type} JOIN {$table} {$alias} ON ({$conditions})"); } + /** * Renders a final SQL statement by putting together the component parts in the correct order * @@ -1333,6 +1372,7 @@ class DboSource extends DataSource { break; } } + /** * Merges a mixed set of string/array conditions * @@ -1359,6 +1399,7 @@ class DboSource extends DataSource { return $assoc; } + /** * Generates and executes an SQL UPDATE statement for given model, fields, and values. * For databases that do not support aliases in UPDATE queries. @@ -1392,6 +1433,7 @@ class DboSource extends DataSource { } return true; } + /** * Quotes and prepares fields and values for an SQL UPDATE statement * @@ -1435,6 +1477,7 @@ class DboSource extends DataSource { } return $updates; } + /** * Generates and executes an SQL DELETE statement. * For databases that do not support aliases in UPDATE queries. @@ -1458,6 +1501,7 @@ class DboSource extends DataSource { } return true; } + /** * Gets a list of record IDs for the given conditions. Used for multi-record updates and deletes * in databases that do not support aliases in UPDATE/DELETE queries. @@ -1487,6 +1531,7 @@ class DboSource extends DataSource { } return $conditions; } + /** * Returns an array of SQL JOIN fragments from a model's associations * @@ -1513,6 +1558,7 @@ class DboSource extends DataSource { } return $join; } + /** * Returns an SQL calculation, i.e. COUNT() or MAX() * @@ -1543,6 +1589,7 @@ class DboSource extends DataSource { break; } } + /** * Deletes all the records in a table and resets the count of the auto-incrementing * primary key, where applicable. @@ -1554,6 +1601,7 @@ class DboSource extends DataSource { function truncate($table) { return $this->execute('TRUNCATE TABLE ' . $this->fullTableName($table)); } + /** * Begin a transaction * @@ -1569,6 +1617,7 @@ class DboSource extends DataSource { } return false; } + /** * Commit a transaction * @@ -1584,6 +1633,7 @@ class DboSource extends DataSource { } return false; } + /** * Rollback a transaction * @@ -1599,6 +1649,7 @@ class DboSource extends DataSource { } return false; } + /** * Creates a default set of conditions from the model if $conditions is null/empty. * @@ -1621,6 +1672,7 @@ class DboSource extends DataSource { } return array("{$alias}.{$model->primaryKey}" => $model->getID()); } + /** * Returns a key formatted like a string Model.fieldname(i.e. Post.title, or Country.name) * @@ -1638,6 +1690,7 @@ class DboSource extends DataSource { } return $key; } + /** * Private helper method to remove query metadata in given data array. * @@ -1652,6 +1705,7 @@ class DboSource extends DataSource { } return $data; } + /** * Generates the fields list of an SQL query. * @@ -1732,6 +1786,7 @@ class DboSource extends DataSource { } return array_unique($fields); } + /** * Creates a WHERE clause by parsing given conditions data. * @@ -1772,6 +1827,7 @@ class DboSource extends DataSource { } return $clause . $conditions; } + /** * Creates a WHERE clause by parsing given conditions array. Used by DboSource::conditions(). * @@ -1879,6 +1935,7 @@ class DboSource extends DataSource { } return $out; } + /** * Extracts a Model.field identifier and an SQL condition operator from a string, formats * and inserts values, and composes them into an SQL snippet. @@ -1962,6 +2019,7 @@ class DboSource extends DataSource { return "{$key} {$operator} {$value}"; } + /** * Quotes Model.fields * @@ -1994,6 +2052,7 @@ class DboSource extends DataSource { } return $original; } + /** * Returns a limit statement in the correct format for the particular database. * @@ -2017,6 +2076,7 @@ class DboSource extends DataSource { } return null; } + /** * Returns an ORDER BY clause as a string. * @@ -2085,6 +2145,7 @@ class DboSource extends DataSource { } return ' ORDER BY ' . $keys . ' ' . $direction; } + /** * Create a GROUP BY SQL clause * @@ -2100,6 +2161,7 @@ class DboSource extends DataSource { } return null; } + /** * Disconnects database, kills the connection and says the connection is closed, * and if DEBUG is turned on, the log for this object is shown. @@ -2111,6 +2173,7 @@ class DboSource extends DataSource { } $this->disconnect(); } + /** * Checks if the specified table contains any record matching specified SQL * @@ -2132,6 +2195,7 @@ class DboSource extends DataSource { } return false; } + /** * Gets the length of a database-native column description, or null if no length * @@ -2191,6 +2255,7 @@ class DboSource extends DataSource { } return intval($length); } + /** * Translates between PHP boolean values and Database (faked) boolean values * @@ -2207,6 +2272,7 @@ class DboSource extends DataSource { return !empty($data); } } + /** * Inserts multiple values into a table * @@ -2225,6 +2291,7 @@ class DboSource extends DataSource { $this->query("INSERT INTO {$table} ({$fields}) VALUES {$values[$x]}"); } } + /** * Returns an array of the indexes in given datasource name. * @@ -2234,6 +2301,7 @@ class DboSource extends DataSource { function index($model) { return false; } + /** * Generate a database-native schema for the given Schema object * @@ -2282,6 +2350,7 @@ class DboSource extends DataSource { } return $out; } + /** * Generate a alter syntax from CakeSchema::compare() * @@ -2291,6 +2360,7 @@ class DboSource extends DataSource { function alterSchema($compare, $table = null) { return false; } + /** * Generate a "drop table" statement for the given Schema object * @@ -2313,6 +2383,7 @@ class DboSource extends DataSource { } return $out; } + /** * Generate a database-native column schema string * @@ -2369,6 +2440,7 @@ class DboSource extends DataSource { } return $out; } + /** * Format indexes for create table * @@ -2397,6 +2469,7 @@ class DboSource extends DataSource { } return $join; } + /** * Guesses the data type of an array * diff --git a/cake/libs/model/db_acl.php b/cake/libs/model/db_acl.php index a2a943cf6..1af116e99 100644 --- a/cake/libs/model/db_acl.php +++ b/cake/libs/model/db_acl.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * This is core configuration file. * @@ -24,10 +25,12 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Load Model and AppModel */ App::import('Model', 'App'); + /** * Short description for file. * @@ -38,6 +41,7 @@ App::import('Model', 'App'); * @subpackage cake.cake.libs.model */ class AclNode extends AppModel { + /** * Explicitly disable in-memory query caching for ACL models * @@ -45,6 +49,7 @@ class AclNode extends AppModel { * @access public */ var $cacheQueries = false; + /** * ACL models use the Tree behavior * @@ -52,6 +57,7 @@ class AclNode extends AppModel { * @access public */ var $actsAs = array('Tree' => 'nested'); + /** * Constructor * @@ -63,6 +69,7 @@ class AclNode extends AppModel { } parent::__construct(); } + /** * Retrieves the Aro/Aco node for this model * @@ -194,6 +201,7 @@ class AclNode extends AppModel { return $result; } } + /** * Access Control Object * @@ -201,6 +209,7 @@ class AclNode extends AppModel { * @subpackage cake.cake.libs.model */ class Aco extends AclNode { + /** * Model name * @@ -208,6 +217,7 @@ class Aco extends AclNode { * @access public */ var $name = 'Aco'; + /** * Binds to ARO nodes through permissions settings * @@ -216,6 +226,7 @@ class Aco extends AclNode { */ var $hasAndBelongsToMany = array('Aro' => array('with' => 'Permission')); } + /** * Action for Access Control Object * @@ -223,6 +234,7 @@ class Aco extends AclNode { * @subpackage cake.cake.libs.model */ class AcoAction extends AppModel { + /** * Model name * @@ -230,6 +242,7 @@ class AcoAction extends AppModel { * @access public */ var $name = 'AcoAction'; + /** * ACO Actions belong to ACOs * @@ -238,6 +251,7 @@ class AcoAction extends AppModel { */ var $belongsTo = array('Aco'); } + /** * Access Request Object * @@ -245,6 +259,7 @@ class AcoAction extends AppModel { * @subpackage cake.cake.libs.model */ class Aro extends AclNode { + /** * Model name * @@ -252,6 +267,7 @@ class Aro extends AclNode { * @access public */ var $name = 'Aro'; + /** * AROs are linked to ACOs by means of Permission * @@ -260,6 +276,7 @@ class Aro extends AclNode { */ var $hasAndBelongsToMany = array('Aco' => array('with' => 'Permission')); } + /** * Permissions linking AROs with ACOs * @@ -267,6 +284,7 @@ class Aro extends AclNode { * @subpackage cake.cake.libs.model */ class Permission extends AppModel { + /** * Model name * @@ -274,6 +292,7 @@ class Permission extends AppModel { * @access public */ var $name = 'Permission'; + /** * Explicitly disable in-memory query caching * @@ -281,6 +300,7 @@ class Permission extends AppModel { * @access public */ var $cacheQueries = false; + /** * Override default table name * @@ -288,6 +308,7 @@ class Permission extends AppModel { * @access public */ var $useTable = 'aros_acos'; + /** * Permissions link AROs with ACOs * @@ -295,6 +316,7 @@ class Permission extends AppModel { * @access public */ var $belongsTo = array('Aro', 'Aco'); + /** * No behaviors for this model * @@ -302,6 +324,7 @@ class Permission extends AppModel { * @access public */ var $actsAs = null; + /** * Constructor, used to tell this model to use the * database configured for ACL diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index 8b11dabda..be048c74f 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -19,12 +19,14 @@ * @since CakePHP(tm) v 0.10.0.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ + /** * Included libs */ App::import('Core', array( 'ClassRegistry', 'Overloadable', 'Validation', 'ModelBehavior', 'ConnectionManager', 'Set', 'String' )); + /** * Object-relational mapper. * @@ -38,6 +40,7 @@ App::import('Core', array( * @link http://book.cakephp.org/view/66/Models */ class Model extends Overloadable { + /** * The name of the DataSource connection that this Model uses * @@ -46,6 +49,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/435/useDbConfig */ var $useDbConfig = 'default'; + /** * Custom database table name, or null/false if no table association is desired. * @@ -54,6 +58,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/436/useTable */ var $useTable = null; + /** * Custom display field name. Display fields are used by Scaffold, in SELECT boxes' OPTION elements. * @@ -62,6 +67,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/438/displayField */ var $displayField = null; + /** * Value of the primary key ID of the record that this model is currently pointing to. * Automatically set after database insertions. @@ -70,6 +76,7 @@ class Model extends Overloadable { * @access public */ var $id = false; + /** * Container for the data that this model gets from persistent storage (usually, a database). * @@ -78,6 +85,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/441/data */ var $data = array(); + /** * Table name for this Model. * @@ -85,6 +93,7 @@ class Model extends Overloadable { * @access public */ var $table = false; + /** * The name of the primary key field for this model. * @@ -93,6 +102,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/437/primaryKey */ var $primaryKey = null; + /** * Field-by-field table metadata. * @@ -101,6 +111,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/442/_schema */ var $_schema = null; + /** * List of validation rules. Append entries for validation as ('field_name' => '/^perl_compat_regexp$/') * that have to match with preg_match(). Use these rules with Model::validate() @@ -111,6 +122,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/125/Data-Validation */ var $validate = array(); + /** * List of validation errors. * @@ -119,6 +131,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/410/Validating-Data-from-the-Controller */ var $validationErrors = array(); + /** * Database table prefix for tables in model. * @@ -127,6 +140,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/475/tablePrefix */ var $tablePrefix = null; + /** * Name of the model. * @@ -135,6 +149,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/444/name */ var $name = null; + /** * Alias name for model. * @@ -142,6 +157,7 @@ class Model extends Overloadable { * @access public */ var $alias = null; + /** * List of table names included in the model description. Used for associations. * @@ -149,6 +165,7 @@ class Model extends Overloadable { * @access public */ var $tableToModel = array(); + /** * Whether or not to log transactions for this model. * @@ -156,6 +173,7 @@ class Model extends Overloadable { * @access public */ var $logTransactions = false; + /** * Whether or not to enable transactions for this model (i.e. BEGIN/COMMIT/ROLLBACK statements) * @@ -163,6 +181,7 @@ class Model extends Overloadable { * @access public */ var $transactional = false; + /** * Whether or not to cache queries for this model. This enables in-memory * caching only, the results are not stored beyond the current request. @@ -172,6 +191,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/445/cacheQueries */ var $cacheQueries = false; + /** * Detailed list of belongsTo associations. * @@ -180,6 +200,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/81/belongsTo */ var $belongsTo = array(); + /** * Detailed list of hasOne associations. * @@ -188,6 +209,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/80/hasOne */ var $hasOne = array(); + /** * Detailed list of hasMany associations. * @@ -196,6 +218,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/82/hasMany */ var $hasMany = array(); + /** * Detailed list of hasAndBelongsToMany associations. * @@ -204,6 +227,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM */ var $hasAndBelongsToMany = array(); + /** * List of behaviors to load when the model object is initialized. Settings can be * passed to behaviors by using the behavior name as index. Eg: @@ -215,6 +239,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/90/Using-Behaviors */ var $actsAs = null; + /** * Holds the Behavior objects currently bound to this model. * @@ -222,6 +247,7 @@ class Model extends Overloadable { * @access public */ var $Behaviors = null; + /** * Whitelist of fields allowed to be saved. * @@ -229,6 +255,7 @@ class Model extends Overloadable { * @access public */ var $whitelist = array(); + /** * Whether or not to cache sources for this model. * @@ -236,6 +263,7 @@ class Model extends Overloadable { * @access public */ var $cacheSources = true; + /** * Type of find query currently executing. * @@ -243,6 +271,7 @@ class Model extends Overloadable { * @access public */ var $findQueryType = null; + /** * Number of associations to recurse through during find calls. Fetches only * the first level by default. @@ -252,6 +281,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/439/recursive */ var $recursive = 1; + /** * The column name(s) and direction(s) to order find results by default. * @@ -263,6 +293,7 @@ class Model extends Overloadable { * @link http://book.cakephp.org/view/440/order */ var $order = null; + /** * Whether or not the model record exists, set by Model::exists(). * @@ -270,6 +301,7 @@ class Model extends Overloadable { * @access private */ var $__exists = null; + /** * Default list of association keys. * @@ -282,6 +314,7 @@ class Model extends Overloadable { 'hasMany' => array('className', 'foreignKey', 'conditions', 'fields', 'order', 'limit', 'offset', 'dependent', 'exclusive', 'finderQuery', 'counterQuery'), 'hasAndBelongsToMany' => array('className', 'joinTable', 'with', 'foreignKey', 'associationForeignKey', 'conditions', 'fields', 'order', 'limit', 'offset', 'unique', 'finderQuery', 'deleteQuery', 'insertQuery') ); + /** * Holds provided/generated association key names and other data for all associations. * @@ -289,6 +322,7 @@ class Model extends Overloadable { * @access private */ var $__associations = array('belongsTo', 'hasOne', 'hasMany', 'hasAndBelongsToMany'); + /** * Holds model associations temporarily to allow for dynamic (un)binding. * @@ -296,6 +330,7 @@ class Model extends Overloadable { * @access private */ var $__backAssociation = array(); + /** * The ID of the model record that was last inserted. * @@ -303,6 +338,7 @@ class Model extends Overloadable { * @access private */ var $__insertID = null; + /** * The number of records returned by the last query. * @@ -310,6 +346,7 @@ class Model extends Overloadable { * @access private */ var $__numRows = null; + /** * The number of records affected by the last query. * @@ -317,6 +354,7 @@ class Model extends Overloadable { * @access private */ var $__affectedRows = null; + /** * List of valid finder method options, supplied as the first parameter to find(). * @@ -327,6 +365,7 @@ class Model extends Overloadable { 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ); + /** * Constructor. Binds the model's database table to the object. * @@ -369,7 +408,7 @@ class Model extends Overloadable { } elseif ($table) { $this->useTable = $table; } - + if ($ds !== null) { $this->useDbConfig = $ds; } @@ -419,6 +458,7 @@ class Model extends Overloadable { $this->__createLinks(); $this->Behaviors->init($this->alias, $this->actsAs); } + /** * Handles custom method calls, like findBy<field> for DB models, * and custom RPC calls for remote data sources. @@ -442,6 +482,7 @@ class Model extends Overloadable { } return $return; } + /** * Bind model associations on the fly. * @@ -491,6 +532,7 @@ class Model extends Overloadable { } } } + /** * Bind model associations on the fly. * @@ -529,6 +571,7 @@ class Model extends Overloadable { $this->__createLinks(); return true; } + /** * Turn off associations on the fly. * @@ -561,6 +604,7 @@ class Model extends Overloadable { } return true; } + /** * Create a set of associations. * @@ -613,6 +657,7 @@ class Model extends Overloadable { } } } + /** * Private helper method to create associated models of a given class. * @@ -644,6 +689,7 @@ class Model extends Overloadable { } } } + /** * Build an array-based association from string. * @@ -727,6 +773,7 @@ class Model extends Overloadable { } } } + /** * Sets a custom table for your controller class. Used by your controller to select a database table. * @@ -753,6 +800,7 @@ class Model extends Overloadable { $this->tableToModel[$this->table] = $this->alias; $this->schema(); } + /** * This function does two things: 1) it scans the array $one for the primary key, * and if that's found, it sets the current id to the value of $one[id]. @@ -807,6 +855,7 @@ class Model extends Overloadable { } return $data; } + /** * Deconstructs a complex data type (array or object) into a single field value. * @@ -824,7 +873,7 @@ class Model extends Overloadable { $type = $this->getColumnType($field); if (in_array($type, array('datetime', 'timestamp', 'date', 'time'))) { - $useNewDate = (isset($data['year']) || isset($data['month']) || + $useNewDate = (isset($data['year']) || isset($data['month']) || isset($data['day']) || isset($data['hour']) || isset($data['minute'])); $dateFields = array('Y' => 'year', 'm' => 'month', 'd' => 'day', 'H' => 'hour', 'i' => 'min', 's' => 'sec'); @@ -881,6 +930,7 @@ class Model extends Overloadable { } return $data; } + /** * Returns an array of table metadata (column names and types) from the database. * $field => keys(type, null, default, key, length, extra) @@ -908,6 +958,7 @@ class Model extends Overloadable { } return $this->_schema; } + /** * Returns an associative array of field names and column types. * @@ -925,6 +976,7 @@ class Model extends Overloadable { } return $cols; } + /** * Returns the column type of a column in the model. * @@ -950,6 +1002,7 @@ class Model extends Overloadable { } return null; } + /** * Returns true if the supplied field exists in the model's database table. * @@ -978,6 +1031,7 @@ class Model extends Overloadable { } return false; } + /** * Initializes the model for writing a new record, loading the default values * for those fields that are not defined in $data. Especially helpful for @@ -1011,6 +1065,7 @@ class Model extends Overloadable { } return $this->data; } + /** * Returns a list of fields from the database, and sets the current model * data (Model::$data) with the record found. @@ -1043,6 +1098,7 @@ class Model extends Overloadable { return false; } } + /** * Returns the contents of a single field given the supplied conditions, in the * supplied order. @@ -1082,6 +1138,7 @@ class Model extends Overloadable { return false; } } + /** * Saves the value of a single field to the database, based on the current * model ID. @@ -1105,6 +1162,7 @@ class Model extends Overloadable { } return $this->save(array($this->alias => array($this->primaryKey => $id, $name => $value)), $options); } + /** * Saves model data (based on white-list, if supplied) to the database. By * default, validation occurs before save. @@ -1282,6 +1340,7 @@ class Model extends Overloadable { $this->whitelist = $_whitelist; return $success; } + /** * Saves model hasAndBelongsToMany data to the database. * @@ -1369,6 +1428,7 @@ class Model extends Overloadable { } } } + /** * Updates the counter cache of belongsTo associations after a save or delete operation * @@ -1425,6 +1485,7 @@ class Model extends Overloadable { } } } + /** * Helper method for Model::updateCounterCache(). Checks the fields to be updated for * @@ -1452,6 +1513,7 @@ class Model extends Overloadable { )); return array_merge($data, array('old' => $old[$this->alias])); } + /** * Saves multiple individual records for a single model; Also works with a single record, as well as * all its associated records. @@ -1640,6 +1702,7 @@ class Model extends Overloadable { } } } + /** * Private helper method used by saveAll. * @@ -1657,6 +1720,7 @@ class Model extends Overloadable { } return true; } + /** * Updates multiple model records based on a set of conditions. * @@ -1671,6 +1735,7 @@ class Model extends Overloadable { $db =& ConnectionManager::getDataSource($this->useDbConfig); return $db->update($this, $fields, null, $conditions); } + /** * @deprecated * @link http://book.cakephp.org/view/691/remove @@ -1678,6 +1743,7 @@ class Model extends Overloadable { function remove($id = null, $cascade = true) { return $this->delete($id, $cascade); } + /** * Removes record for given ID. If no ID is given, the current ID is used. Returns true on success. * @@ -1723,12 +1789,14 @@ class Model extends Overloadable { } return false; } + /** * @deprecated */ function del($id = null, $cascade = true) { return $this->delete($id, $cascade); } + /** * Cascades model deletes through associated hasMany and hasOne child records. * @@ -1771,6 +1839,7 @@ class Model extends Overloadable { $this->__backAssociation = $savedAssociatons; } } + /** * Cascades model deletes through HABTM join keys. * @@ -1798,6 +1867,7 @@ class Model extends Overloadable { } } } + /** * Deletes multiple model records based on a set of conditions. * @@ -2626,6 +2696,7 @@ class Model extends Overloadable { function setInsertID($id) { $this->__insertID = $id; } + /** * Returns the number of rows returned from the last query. * @@ -2636,6 +2707,7 @@ class Model extends Overloadable { $db =& ConnectionManager::getDataSource($this->useDbConfig); return $db->lastNumRows(); } + /** * Returns the number of rows affected by the last query. * @@ -2646,6 +2718,7 @@ class Model extends Overloadable { $db =& ConnectionManager::getDataSource($this->useDbConfig); return $db->lastAffected(); } + /** * Sets the DataSource to which this model is bound. * @@ -2674,6 +2747,7 @@ class Model extends Overloadable { return $this->cakeError('missingConnection', array(array('className' => $this->alias))); } } + /** * Gets the DataSource to which this model is bound. * Not safe for use with some versions of PHP4, because this class is overloaded. @@ -2685,6 +2759,7 @@ class Model extends Overloadable { $db =& ConnectionManager::getDataSource($this->useDbConfig); return $db; } + /** * Gets all the models with which this model is associated. * @@ -2728,6 +2803,7 @@ class Model extends Overloadable { return null; } } + /** * Gets the name and fields to be used by a join model. This allows specifying join fields * in the association definition. @@ -2750,6 +2826,7 @@ class Model extends Overloadable { E_USER_WARNING ); } + /** * Called before each find operation. Return false if you want to halt the find * call, otherwise return the (modified) query data. @@ -2763,6 +2840,7 @@ class Model extends Overloadable { function beforeFind($queryData) { return true; } + /** * Called after each find operation. Can be used to modify any results returned by find(). * Return value should be the (modified) results. @@ -2776,6 +2854,7 @@ class Model extends Overloadable { function afterFind($results, $primary = false) { return $results; } + /** * Called before each save operation, after validation. Return a non-true result * to halt the save. @@ -2787,6 +2866,7 @@ class Model extends Overloadable { function beforeSave($options = array()) { return true; } + /** * Called after each successful save operation. * @@ -2796,6 +2876,7 @@ class Model extends Overloadable { */ function afterSave($created) { } + /** * Called before every deletion operation. * @@ -2807,6 +2888,7 @@ class Model extends Overloadable { function beforeDelete($cascade = true) { return true; } + /** * Called after every deletion operation. * @@ -2815,6 +2897,7 @@ class Model extends Overloadable { */ function afterDelete() { } + /** * Called during save operations, before validation. Please note that custom * validation rules can be defined in $validate. @@ -2827,6 +2910,7 @@ class Model extends Overloadable { function beforeValidate($options = array()) { return true; } + /** * Called when a DataSource-level error occurs. * @@ -2835,6 +2919,7 @@ class Model extends Overloadable { */ function onError() { } + /** * Private method. Clears cache for this model. * @@ -2865,6 +2950,7 @@ class Model extends Overloadable { //Will use for query cache deleting } } + /** * Called when serializing a model. * @@ -2875,6 +2961,7 @@ class Model extends Overloadable { $return = array_keys(get_object_vars($this)); return $return; } + /** * Called when de-serializing a model. * diff --git a/cake/libs/model/model_behavior.php b/cake/libs/model/model_behavior.php index fdbc64e30..f2cdb0927 100644 --- a/cake/libs/model/model_behavior.php +++ b/cake/libs/model/model_behavior.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Model behaviors base class. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Model behavior base class. * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs.model */ class ModelBehavior extends Object { + /** * Contains configuration settings for use with individual model objects. This * is used because if multiple models use this Behavior, each will use the same @@ -44,6 +47,7 @@ class ModelBehavior extends Object { * @see Model::$alias */ var $settings = array(); + /** * Allows the mapping of preg-compatible regular expressions to public or * private methods in this class, where the array key is a /-delimited regular @@ -54,6 +58,7 @@ class ModelBehavior extends Object { * @access public */ var $mapMethods = array(); + /** * Setup this behavior with the specified configuration settings. * @@ -62,6 +67,7 @@ class ModelBehavior extends Object { * @access public */ function setup(&$model, $config = array()) { } + /** * Clean up any initialization this behavior has done on a model. Called when a behavior is dynamically * detached from a model using Model::detach(). @@ -75,6 +81,7 @@ class ModelBehavior extends Object { unset($this->settings[$model->alias]); } } + /** * Before find callback * @@ -84,6 +91,7 @@ class ModelBehavior extends Object { * @access public */ function beforeFind(&$model, $query) { } + /** * After find callback. Can be used to modify any results returned by find and findAll. * @@ -94,6 +102,7 @@ class ModelBehavior extends Object { * @access public */ function afterFind(&$model, $results, $primary) { } + /** * Before validate callback * @@ -102,6 +111,7 @@ class ModelBehavior extends Object { * @access public */ function beforeValidate(&$model) { } + /** * Before save callback * @@ -110,6 +120,7 @@ class ModelBehavior extends Object { * @access public */ function beforeSave(&$model) { } + /** * After save callback * @@ -118,6 +129,7 @@ class ModelBehavior extends Object { * @access public */ function afterSave(&$model, $created) { } + /** * Before delete callback * @@ -127,6 +139,7 @@ class ModelBehavior extends Object { * @access public */ function beforeDelete(&$model, $cascade = true) { } + /** * After delete callback * @@ -134,6 +147,7 @@ class ModelBehavior extends Object { * @access public */ function afterDelete(&$model) { } + /** * DataSource error callback * @@ -142,6 +156,7 @@ class ModelBehavior extends Object { * @access public */ function onError(&$model, $error) { } + /** * Overrides Object::dispatchMethod to account for PHP4's broken reference support * @@ -172,6 +187,7 @@ class ModelBehavior extends Object { break; } } + /** * If $model's whitelist property is non-empty, $field will be added to it. * Note: this method should *only* be used in beforeValidate or beforeSave to ensure @@ -205,6 +221,7 @@ class ModelBehavior extends Object { * @subpackage cake.cake.libs.model */ class BehaviorCollection extends Object { + /** * Stores a reference to the attached name * @@ -212,6 +229,7 @@ class BehaviorCollection extends Object { * @access public */ var $modelName = null; + /** * Lists the currently-attached behavior objects * @@ -219,6 +237,7 @@ class BehaviorCollection extends Object { * @access private */ var $_attached = array(); + /** * Lists the currently-attached behavior objects which are disabled * @@ -226,18 +245,21 @@ class BehaviorCollection extends Object { * @access private */ var $_disabled = array(); + /** * Keeps a list of all methods of attached behaviors * * @var array */ var $__methods = array(); + /** * Keeps a list of all methods which have been mapped with regular expressions * * @var array */ var $__mappedMethods = array(); + /** * Attaches a model object and loads a list of behaviors * @@ -253,6 +275,7 @@ class BehaviorCollection extends Object { } } } + /** * Attaches a behavior to a model * @@ -331,6 +354,7 @@ class BehaviorCollection extends Object { } return true; } + /** * Detaches a behavior from a model * @@ -350,6 +374,7 @@ class BehaviorCollection extends Object { } $this->_attached = array_values(array_diff($this->_attached, (array)$name)); } + /** * Enables callbacks on a behavior or array of behaviors * @@ -360,6 +385,7 @@ class BehaviorCollection extends Object { function enable($name) { $this->_disabled = array_diff($this->_disabled, (array)$name); } + /** * Disables callbacks on a behavior or array of behaviors. Public behavior methods are still * callable as normal. @@ -375,6 +401,7 @@ class BehaviorCollection extends Object { } } } + /** * Gets the list of currently-enabled behaviors, or, the current status of a single behavior * @@ -390,6 +417,7 @@ class BehaviorCollection extends Object { } return array_diff($this->_attached, $this->_disabled); } + /** * Dispatches a behavior method * @@ -430,6 +458,7 @@ class BehaviorCollection extends Object { } return array('unhandled'); } + /** * Dispatches a behavior callback on all attached behavior objects * @@ -466,6 +495,7 @@ class BehaviorCollection extends Object { } return true; } + /** * Gets the method list for attached behaviors, i.e. all public, non-callback methods * @@ -475,6 +505,7 @@ class BehaviorCollection extends Object { function methods() { return $this->__methods; } + /** * Gets the list of attached behaviors, or, whether the given behavior is attached * diff --git a/cake/libs/multibyte.php b/cake/libs/multibyte.php index 724b65923..2d5814153 100644 --- a/cake/libs/multibyte.php +++ b/cake/libs/multibyte.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Multibyte handling methods. * @@ -29,6 +30,7 @@ if (function_exists('mb_internal_encoding')) { mb_internal_encoding($encoding); } } + /** * Find position of first occurrence of a case-insensitive string. * @@ -43,6 +45,7 @@ if (!function_exists('mb_stripos')) { return Multibyte::stripos($haystack, $needle, $offset); } } + /** * Finds first occurrence of a string within another, case insensitive. * @@ -59,6 +62,7 @@ if (!function_exists('mb_stristr')) { return Multibyte::stristr($haystack, $needle, $part); } } + /** * Get string length. * @@ -72,6 +76,7 @@ if (!function_exists('mb_strlen')) { return Multibyte::strlen($string); } } + /** * Find position of first occurrence of a string. * @@ -87,6 +92,7 @@ if (!function_exists('mb_strpos')) { return Multibyte::strpos($haystack, $needle, $offset); } } + /** * Finds the last occurrence of a character in a string within another. * @@ -103,6 +109,7 @@ if (!function_exists('mb_strrchr')) { return Multibyte::strrchr($haystack, $needle, $part); } } + /** * Finds the last occurrence of a character in a string within another, case insensitive. * @@ -119,6 +126,7 @@ if (!function_exists('mb_strrichr')) { return Multibyte::strrichr($haystack, $needle, $part); } } + /** * Finds position of last occurrence of a string within another, case insensitive * @@ -133,6 +141,7 @@ if (!function_exists('mb_strripos')) { return Multibyte::strripos($haystack, $needle, $offset); } } + /** * Find position of last occurrence of a string in a string. * @@ -148,6 +157,7 @@ if (!function_exists('mb_strrpos')) { return Multibyte::strrpos($haystack, $needle, $offset); } } + /** * Finds first occurrence of a string within another * @@ -164,6 +174,7 @@ if (!function_exists('mb_strstr')) { return Multibyte::strstr($haystack, $needle, $part); } } + /** * Make a string lowercase * @@ -176,6 +187,7 @@ if (!function_exists('mb_strtolower')) { return Multibyte::strtolower($string); } } + /** * Make a string uppercase * @@ -188,6 +200,7 @@ if (!function_exists('mb_strtoupper')) { return Multibyte::strtoupper($string); } } + /** * Count the number of substring occurrences * @@ -201,6 +214,7 @@ if (!function_exists('mb_substr_count')) { return Multibyte::substrCount($haystack, $needle); } } + /** * Get part of string * @@ -215,6 +229,7 @@ if (!function_exists('mb_substr')) { return Multibyte::substr($string, $start, $length); } } + /** * Encode string for MIME header * @@ -234,6 +249,7 @@ if (!function_exists('mb_encode_mimeheader')) { return Multibyte::mimeEncode($str, $charset, $linefeed); } } + /** * Multibyte handling methods. * @@ -242,6 +258,7 @@ if (!function_exists('mb_encode_mimeheader')) { * @subpackage cake.cake.libs */ class Multibyte extends Object { + /** * Holds the case folding values * @@ -249,6 +266,7 @@ class Multibyte extends Object { * @access private */ var $__caseFold = array(); + /** * Holds an array of Unicode code point ranges * @@ -256,6 +274,7 @@ class Multibyte extends Object { * @access private */ var $__codeRange = array(); + /** * Holds the current code point range * @@ -263,6 +282,7 @@ class Multibyte extends Object { * @access private */ var $__table = null; + /** * Gets a reference to the Multibyte object instance * @@ -278,6 +298,7 @@ class Multibyte extends Object { } return $instance[0]; } + /** * Converts a multibyte character string * to the decimal value of the character @@ -318,6 +339,7 @@ class Multibyte extends Object { } return $map; } + /** * Converts the decimal value of a multibyte character string * to a string @@ -344,6 +366,7 @@ class Multibyte extends Object { } return $ascii; } + /** * Find position of first occurrence of a case-insensitive string. * @@ -362,6 +385,7 @@ class Multibyte extends Object { } return stripos($haystack, $needle, $offset); } + /** * Finds first occurrence of a string within another, case insensitive. * @@ -423,6 +447,7 @@ class Multibyte extends Object { } return stristr($haystack, $needle); } + /** * Get string length. * @@ -438,6 +463,7 @@ class Multibyte extends Object { } return strlen($string); } + /** * Find position of first occurrence of a string. * @@ -482,6 +508,7 @@ class Multibyte extends Object { } return strpos($haystack, $needle, $offset); } + /** * Finds the last occurrence of a character in a string within another. * @@ -542,6 +569,7 @@ class Multibyte extends Object { } return false; } + /** * Finds the last occurrence of a character in a string within another, case insensitive. * @@ -604,6 +632,7 @@ class Multibyte extends Object { } return false; } + /** * Finds position of last occurrence of a string within another, case insensitive * @@ -705,6 +734,7 @@ class Multibyte extends Object { } return strrpos($haystack, $needle, $offset); } + /** * Finds first occurrence of a string within another * @@ -764,6 +794,7 @@ class Multibyte extends Object { } return strstr($haystack, $needle); } + /** * Make a string lowercase * @@ -811,6 +842,7 @@ class Multibyte extends Object { } return Multibyte::ascii($lowerCase); } + /** * Make a string uppercase * @@ -903,6 +935,7 @@ class Multibyte extends Object { } return Multibyte::ascii($upperCase); } + /** * Count the number of substring occurrences * @@ -939,6 +972,7 @@ class Multibyte extends Object { } return $count; } + /** * Get part of string * @@ -972,6 +1006,7 @@ class Multibyte extends Object { } return Multibyte::ascii($value); } + /** * Prepare a string for mail transport, using the provided encoding * @@ -1020,6 +1055,7 @@ class Multibyte extends Object { } return $start . $string . $end; } + /** * Return the Code points range for Unicode characters * @@ -1068,6 +1104,7 @@ class Multibyte extends Object { $this->__codeRange[$decimal] = $return; return $return; } + /** * Find the related code folding values for $char * @@ -1104,6 +1141,7 @@ class Multibyte extends Object { } return $found; } + /** * Check the $string for multibyte characters * @param string $string value to test @@ -1123,4 +1161,4 @@ class Multibyte extends Object { return false; } } -?> +?> \ No newline at end of file diff --git a/cake/libs/object.php b/cake/libs/object.php index 358fd759f..1ab269b55 100644 --- a/cake/libs/object.php +++ b/cake/libs/object.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Object class, allowing __construct and __destruct in PHP4. * @@ -25,6 +26,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Object class, allowing __construct and __destruct in PHP4. * @@ -35,6 +37,7 @@ * @subpackage cake.cake.libs */ class Object { + /** * Log object * @@ -42,6 +45,7 @@ class Object { * @access protected */ var $_log = null; + /** * A hack to support __construct() on PHP 4 * Hint: descendant classes have no PHP4 class_name() constructors, @@ -57,6 +61,7 @@ class Object { } call_user_func_array(array(&$this, '__construct'), $args); } + /** * Class constructor, overridden in descendant classes. */ @@ -74,6 +79,7 @@ class Object { $class = get_class($this); return $class; } + /** * Calls a controller's method from any location. * @@ -99,6 +105,7 @@ class Object { $dispatcher = new Dispatcher; return $dispatcher->dispatch($url, $params); } + /** * Calls a method on this object with the given parameters. Provides an OO wrapper * for call_user_func_array, and improves performance by using straight method calls @@ -128,6 +135,7 @@ class Object { break; } } + /** * Stop execution of the current script * @@ -138,6 +146,7 @@ class Object { function _stop($status = 0) { exit($status); } + /** * API for logging events. * @@ -158,6 +167,7 @@ class Object { } return $this->_log->write($type, $msg); } + /** * Allows setting of multiple properties of the object in a single line of code. * @@ -175,6 +185,7 @@ class Object { } } } + /** * Used to report user friendly errors. * If there is a file app/error.php or app/app_error.php this file will be loaded @@ -203,6 +214,7 @@ class Object { } return $error; } + /** * Checks for a persistent class file, if found file is opened and true returned * If file is not found a file is created and false returned @@ -233,6 +245,7 @@ class Object { return true; } } + /** * You should choose a unique name for the persistent file * @@ -254,6 +267,7 @@ class Object { } cache($file, $data, $duration); } + /** * Open the persistent class file for reading * Used by Object::_persist() diff --git a/cake/libs/overloadable.php b/cake/libs/overloadable.php index a3b170a08..0699c63eb 100644 --- a/cake/libs/overloadable.php +++ b/cake/libs/overloadable.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Overload abstraction interface. Merges differences between PHP4 and 5. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Overloadable class selector * diff --git a/cake/libs/overloadable_php4.php b/cake/libs/overloadable_php4.php index b60411c53..c9753ac90 100644 --- a/cake/libs/overloadable_php4.php +++ b/cake/libs/overloadable_php4.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Overload abstraction interface. Merges differences between PHP4 and 5. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Overloadable class selector * @@ -31,6 +33,7 @@ * @subpackage cake.cake.libs */ class Overloadable extends Object { + /** * Constructor. * @@ -40,6 +43,7 @@ class Overloadable extends Object { $this->overload(); parent::__construct(); } + /** * Overload implementation. * @@ -89,6 +93,7 @@ Overloadable::overload('Overloadable'); * @subpackage cake.cake.libs */ class Overloadable2 extends Object { + /** * Constructor * @@ -98,6 +103,7 @@ class Overloadable2 extends Object { $this->overload(); parent::__construct(); } + /** * Overload implementation. * @@ -118,6 +124,7 @@ class Overloadable2 extends Object { } } } + /** * Magic method handler. * @@ -134,6 +141,7 @@ class Overloadable2 extends Object { $return = $this->call__($method, $params); return true; } + /** * Getter. * @@ -146,6 +154,7 @@ class Overloadable2 extends Object { $value = $this->get__($name); return true; } + /** * Setter. * diff --git a/cake/libs/overloadable_php5.php b/cake/libs/overloadable_php5.php index 906b6b378..c167961f4 100644 --- a/cake/libs/overloadable_php5.php +++ b/cake/libs/overloadable_php5.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Overload abstraction interface. Merges differences between PHP4 and 5. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Overloadable class selector * @@ -31,12 +33,14 @@ * @subpackage cake.cake.libs */ class Overloadable extends Object { + /** * Overload implementation. No need for implementation in PHP5. * * @access public */ function overload() { } + /** * Magic method handler. * @@ -61,12 +65,14 @@ class Overloadable extends Object { * @package cake */ class Overloadable2 extends Object { + /** * Overload implementation. No need for implementation in PHP5. * * @access public */ function overload() { } + /** * Magic method handler. * @@ -81,6 +87,7 @@ class Overloadable2 extends Object { } return $this->call__($method, $params); } + /** * Getter. * @@ -92,6 +99,7 @@ class Overloadable2 extends Object { function __get($name) { return $this->get__($name); } + /** * Setter. * diff --git a/cake/libs/router.php b/cake/libs/router.php index 149ab8455..c3aef6afa 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Parses the request URL into controller, action, and parameters. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Included libraries. * @@ -31,6 +33,7 @@ if (!class_exists('Object')) { App::import('Core', 'Object'); } + /** * Parses the request URL into controller, action, and parameters. * @@ -38,6 +41,7 @@ if (!class_exists('Object')) { * @subpackage cake.cake.libs */ class Router extends Object { + /** * Array of routes * @@ -45,6 +49,7 @@ class Router extends Object { * @access public */ var $routes = array(); + /** * Caches admin setting from Configure class * @@ -52,6 +57,7 @@ class Router extends Object { * @access private */ var $__admin = null; + /** * List of action prefixes used in connected routes * @@ -59,6 +65,7 @@ class Router extends Object { * @access private */ var $__prefixes = array(); + /** * Directive for Router to parse out file extensions for mapping to Content-types. * @@ -66,6 +73,7 @@ class Router extends Object { * @access private */ var $__parseExtensions = false; + /** * List of valid extensions to parse from a URL. If null, any extension is allowed. * @@ -73,6 +81,7 @@ class Router extends Object { * @access private */ var $__validExtensions = null; + /** * 'Constant' regular expression definitions for named route elements * @@ -87,6 +96,7 @@ class Router extends Object { 'ID' => '[0-9]+', 'UUID' => '[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}' ); + /** * Stores all information necessary to decide what named arguments are parsed under what conditions. * @@ -99,6 +109,7 @@ class Router extends Object { 'separator' => ':', 'rules' => false, ); + /** * The route matching the URL of the current request * @@ -106,6 +117,7 @@ class Router extends Object { * @access private */ var $__currentRoute = array(); + /** * HTTP header shortcut map. Used for evaluating header-based route expressions. * @@ -117,6 +129,7 @@ class Router extends Object { 'method' => 'request_method', 'server' => 'server_name' ); + /** * Default HTTP request method => controller action map. * @@ -131,6 +144,7 @@ class Router extends Object { array('action' => 'delete', 'method' => 'DELETE', 'id' => true), array('action' => 'edit', 'method' => 'POST', 'id' => true) ); + /** * List of resource-mapped controllers * @@ -138,6 +152,7 @@ class Router extends Object { * @access private */ var $__resourceMapped = array(); + /** * Maintains the parameter stack for the current request * @@ -145,6 +160,7 @@ class Router extends Object { * @access private */ var $__params = array(); + /** * Maintains the path stack for the current request * @@ -152,6 +168,7 @@ class Router extends Object { * @access private */ var $__paths = array(); + /** * Keeps Router state to determine if default routes have already been connected * @@ -159,6 +176,7 @@ class Router extends Object { * @access private */ var $__defaultsMapped = false; + /** * Gets a reference to the Router object instance * @@ -175,6 +193,7 @@ class Router extends Object { } return $instance[0]; } + /** * Gets the named route elements for use in app/config/routes.php * @@ -187,6 +206,7 @@ class Router extends Object { $_this =& Router::getInstance(); return $_this->__named; } + /** * Returns this object's routes array. Returns false if there are no routes available. * @@ -214,6 +234,7 @@ class Router extends Object { $_this->routes[] = array($route, $default, $params); return $_this->routes; } + /** * Specifies what named parameters CakePHP should be parsing. The most common setups are: * @@ -273,6 +294,7 @@ class Router extends Object { $_this->named['greedy'] = $options['greedy']; return $_this->named; } + /** * Creates REST resource routes for the given controller(s) * @@ -308,6 +330,7 @@ class Router extends Object { $_this->__resourceMapped[] = $urlName; } } + /** * Builds a route regular expression * @@ -380,6 +403,7 @@ class Router extends Object { } return array('#^' . join('', $parsed) . '[\/]*$#', $names); } + /** * Returns the list of prefixes used in connected routes * @@ -391,6 +415,7 @@ class Router extends Object { $_this =& Router::getInstance(); return $_this->__prefixes; } + /** * Parses given URL and returns an array of controllers, action and parameters * taken from that URL. @@ -484,6 +509,7 @@ class Router extends Object { } return $out; } + /** * Checks to see if the given URL matches the given route * @@ -522,6 +548,7 @@ class Router extends Object { } return $r; } + /** * Compiles a route by numeric key and returns the compiled expression, replacing * the existing uncompiled route. Do not call statically. @@ -544,6 +571,7 @@ class Router extends Object { ); return $this->routes[$i]; } + /** * Parses a file extension out of a URL, if Router::parseExtensions() is enabled. * @@ -575,6 +603,7 @@ class Router extends Object { } return compact('ext', 'url'); } + /** * Connects the default, built-in routes, including admin routes, and (deprecated) web services * routes. @@ -617,6 +646,7 @@ class Router extends Object { } $this->__defaultsMapped = true; } + /** * Takes parameter and path information back from the Dispatcher * @@ -640,6 +670,7 @@ class Router extends Object { } } } + /** * Gets parameter information * @@ -658,6 +689,7 @@ class Router extends Object { } return array(); } + /** * Gets URL parameter by name * @@ -674,6 +706,7 @@ class Router extends Object { } return null; } + /** * Gets path information * @@ -692,6 +725,7 @@ class Router extends Object { } return $_this->__paths[0]; } + /** * Reloads default Router settings * @@ -706,6 +740,7 @@ class Router extends Object { } $_this->__admin = Configure::read('Routing.admin'); } + /** * Promote a route (by default, the last one added) to the beginning of the list * @@ -728,6 +763,7 @@ class Router extends Object { array_unshift($_this->routes, $route); return true; } + /** * Finds URL for specified action. * @@ -932,6 +968,7 @@ class Router extends Object { return $output . $extension . $_this->queryString($q, array(), $escape) . $frag; } + /** * Maps a URL array onto a route and returns the string result, or false if no match * @@ -1036,6 +1073,7 @@ class Router extends Object { } return Router::__mapRoute($route, array_merge($filled, compact('pass', 'named', 'prefix'))); } + /** * Merges URL parameters into a route string * @@ -1092,6 +1130,7 @@ class Router extends Object { return $out; } + /** * Takes an array of URL parameters and separates the ones that can be used as named arguments * @@ -1117,6 +1156,7 @@ class Router extends Object { } return array($named, $params); } + /** * Return true if a given named $param's $val matches a given $rule depending on $context. Currently implemented * rule types are controller, action and match that can be combined with each other. @@ -1150,6 +1190,7 @@ class Router extends Object { $valueMatches = !isset($rule['match']) || preg_match(sprintf('/%s/', $rule['match']), $val); return $valueMatches; } + /** * Generates a well-formed querystring from $q * @@ -1182,6 +1223,7 @@ class Router extends Object { } return $out; } + /** * Normalizes a URL for purposes of comparison * @@ -1212,6 +1254,7 @@ class Router extends Object { } return $url; } + /** * Returns the route matching the current request URL. * @@ -1223,6 +1266,7 @@ class Router extends Object { $_this =& Router::getInstance(); return $_this->__currentRoute[0]; } + /** * Returns the route matching the current request (useful for requestAction traces) * @@ -1234,6 +1278,7 @@ class Router extends Object { $_this =& Router::getInstance(); return $_this->__currentRoute[count($_this->__currentRoute) - 1]; } + /** * Removes the plugin name from the base URL. * @@ -1256,6 +1301,7 @@ class Router extends Object { } return $base; } + /** * Strip escape characters from parameter values. * @@ -1285,6 +1331,7 @@ class Router extends Object { } return $return; } + /** * Instructs the router to parse out file extensions from the URL. For example, * http://example.com/posts.rss would yield an file extension of "rss". @@ -1308,6 +1355,7 @@ class Router extends Object { $_this->__validExtensions = func_get_args(); } } + /** * Takes an passed params and converts it to args * diff --git a/cake/libs/sanitize.php b/cake/libs/sanitize.php index 30d424faf..c72681bd1 100644 --- a/cake/libs/sanitize.php +++ b/cake/libs/sanitize.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Washes strings from unwanted noise. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Data Sanitization. * @@ -34,6 +36,7 @@ * @subpackage cake.cake.libs */ class Sanitize { + /** * Removes any non-alphanumeric characters. * @@ -60,6 +63,7 @@ class Sanitize { } return $cleaned; } + /** * Makes a string SQL-safe. * @@ -78,6 +82,7 @@ class Sanitize { $string = substr($string, 0, -1); return $string; } + /** * Returns given string safe for display as HTML. Renders entities. * @@ -97,6 +102,7 @@ class Sanitize { } return $string; } + /** * Strips extra whitespace from output * @@ -109,6 +115,7 @@ class Sanitize { $r = preg_replace('/[\n\r\t]+/', '', $str); return preg_replace('/\s{2,}/', ' ', $r); } + /** * Strips image tags from output * @@ -123,6 +130,7 @@ class Sanitize { $str = preg_replace('/<img[^>]*>/i', '', $str); return $str; } + /** * Strips scripts and stylesheets from output * @@ -134,6 +142,7 @@ class Sanitize { function stripScripts($str) { return preg_replace('/(<link[^>]+rel="[^"]*stylesheet"[^>]*>|<img[^>]*>|style="[^"]*")|<script[^>]*>.*?<\/script>|<style[^>]*>.*?<\/style>|<!--.*?-->/i', '', $str); } + /** * Strips extra whitespace, images, scripts and stylesheets from output * @@ -147,6 +156,7 @@ class Sanitize { $str = Sanitize::stripScripts($str); return $str; } + /** * Strips the specified tags from output. First parameter is string from * where to remove tags. All subsequent parameters are tags. @@ -167,6 +177,7 @@ class Sanitize { } return $str; } + /** * Sanitizes given array or value for safe input. Use the options to specify * the connection to use, and what filters should be applied (with a boolean @@ -234,6 +245,7 @@ class Sanitize { return $data; } } + /** * Formats column data from definition in DBO's $columns array * @@ -305,4 +317,4 @@ class Sanitize { } } } -?> +?> \ No newline at end of file diff --git a/cake/libs/security.php b/cake/libs/security.php index 15ec7c1bb..72513fcd8 100644 --- a/cake/libs/security.php +++ b/cake/libs/security.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for file. * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs */ class Security extends Object { + /** * Default hash method * @@ -40,6 +43,7 @@ class Security extends Object { * @access public */ var $hashType = null; + /** * Singleton implementation to get object instance. * @@ -54,6 +58,7 @@ class Security extends Object { } return $instance[0]; } + /** * Get allowed minutes of inactivity based on security level. * @@ -76,6 +81,7 @@ class Security extends Object { break; } } + /** * Generate authorization hash. * @@ -89,6 +95,7 @@ class Security extends Object { } return Security::hash(String::uuid()); } + /** * Validate authorization hash. * @@ -101,6 +108,7 @@ class Security extends Object { function validateAuthKey($authKey) { return true; } + /** * Create a hash from string using given method. * Fallback on next available method. @@ -146,6 +154,7 @@ class Security extends Object { } return md5($string); } + /** * Sets the default hash method for the Security object. This affects all objects using * Security::hash(). @@ -160,6 +169,7 @@ class Security extends Object { $_this =& Security::getInstance(); $_this->hashType = $hash; } + /** * Encrypts/Decrypts a text using the given key. * diff --git a/cake/libs/set.php b/cake/libs/set.php index d48adc7de..0d103986e 100644 --- a/cake/libs/set.php +++ b/cake/libs/set.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Library of array functions for Cake. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Class used for manipulation of arrays. * @@ -31,11 +33,13 @@ * @subpackage cake.cake.libs */ class Set extends Object { + /** * Deprecated * */ var $value = array(); + /** * This function can be thought of as a hybrid between PHP's array_merge and array_merge_recursive. The difference * to the two is that if an array key contains another array then the function behaves recursive (unlike array_merge) @@ -66,6 +70,7 @@ class Set extends Object { } return $r; } + /** * Filters empty elements out of a route array, excluding '0'. * @@ -85,6 +90,7 @@ class Set extends Object { } return false; } + /** * Pushes the differences in $array2 onto the end of $array * @@ -111,6 +117,7 @@ class Set extends Object { } return $array; } + /** * Maps the contents of the Set object to an object hierarchy. * Maintains numeric keys as arrays of objects @@ -224,6 +231,7 @@ class Set extends Object { } return $out; } + /** * Checks to see if all the values in the array are numeric * @@ -253,6 +261,7 @@ class Set extends Object { } return $numeric; } + /** * Return a value from an array list if the key exists. * @@ -282,6 +291,7 @@ class Set extends Object { } return $return; } + /** * Returns a series of values extracted from an array, formatted in a format string. * @@ -339,6 +349,7 @@ class Set extends Object { } return $out; } + /** * Implements partial support for XPath 2.0. If $path is an array or $data is empty it the call is delegated to Set::classicExtract. * @@ -503,6 +514,7 @@ class Set extends Object { } return $r; } + /** * This function can be used to see if a single item or a given xpath match certain conditions. * @@ -575,6 +587,7 @@ class Set extends Object { } return true; } + /** * Gets a value from an array or object that is contained in a given path using an array path syntax, i.e.: * "{n}.Person.{[a-z]+}" - Where "{n}" represents a numeric key, "Person" represents a string literal, @@ -665,6 +678,7 @@ class Set extends Object { } return $data; } + /** * Inserts $data into an array as defined by $path. * @@ -696,6 +710,7 @@ class Set extends Object { } return $list; } + /** * Removes an element from a Set or array as defined by $path. * @@ -729,6 +744,7 @@ class Set extends Object { } return $list; } + /** * Checks if a particular path is set in an array * @@ -761,6 +777,7 @@ class Set extends Object { } return true; } + /** * Computes the difference between a Set and an array, two Sets, or two arrays * @@ -797,6 +814,7 @@ class Set extends Object { } return $out; } + /** * Determines if two Sets or arrays are equal * @@ -809,6 +827,7 @@ class Set extends Object { function isEqual($val1, $val2 = null) { return ($val1 == $val2); } + /** * Determines if one Set or array contains the exact keys and values of another. * @@ -834,6 +853,7 @@ class Set extends Object { } return true; } + /** * Counts the dimensions of an array. If $all is set to false (which is the default) it will * only consider the dimension of the first element in the array. @@ -863,6 +883,7 @@ class Set extends Object { } return $return; } + /** * Normalizes a string or array list. * @@ -912,6 +933,7 @@ class Set extends Object { } return $list; } + /** * Creates an associative array using a $path1 as the path to build its keys, and optionally * $path2 as path to get the values. If $path2 is not specified, all values will be initialized @@ -975,6 +997,7 @@ class Set extends Object { return array_combine($keys, $vals); } + /** * Converts an object into an array. If $object is no object, reverse * will return the same value. @@ -1020,6 +1043,7 @@ class Set extends Object { } return $out; } + /** * Collapses a multi-dimensional array into a single dimension, using a delimited array path for * each array element's key, i.e. array(array('Foo' => array('Bar' => 'Far'))) becomes @@ -1055,6 +1079,7 @@ class Set extends Object { } return $result; } + /** * Flattens an array for sorting * @@ -1078,6 +1103,7 @@ class Set extends Object { } return $stack; } + /** * Sorts an array by any value, determined by a Set-compatible path * @@ -1107,6 +1133,7 @@ class Set extends Object { } return $sorted; } + /** * Deprecated, Set class should be called statically * diff --git a/cake/libs/string.php b/cake/libs/string.php index 6ea6bfd55..a266da1b1 100644 --- a/cake/libs/string.php +++ b/cake/libs/string.php @@ -18,6 +18,7 @@ * @since CakePHP(tm) v 1.2.0.5551 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ + /** * String handling methods. * @@ -26,6 +27,7 @@ * @subpackage cake.cake.libs */ class String extends Object { + /** * Gets a reference to the String object instance * @@ -41,6 +43,7 @@ class String extends Object { } return $instance[0]; } + /** * Generate a random UUID * @@ -115,6 +118,7 @@ class String extends Object { return $uuid; } + /** * Tokenizes a string using $separator, ignoring any instance of $separator that appears between * $leftBound and $rightBound @@ -192,6 +196,7 @@ class String extends Object { } return $data; } + /** * Replaces variable placeholders inside a $str with any given $data. Each key in the $data array * corresponds to a variable placeholder name in $str. @@ -266,6 +271,7 @@ class String extends Object { } return String::cleanInsert($str, $options); } + /** * Cleans up a Set::insert formated string with given $options depending on the 'clean' key in * $options. The default method used is text but html is also available. The goal of this function diff --git a/cake/libs/validation.php b/cake/libs/validation.php index be0d20c2a..a33e2d9a8 100644 --- a/cake/libs/validation.php +++ b/cake/libs/validation.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Validation Class. Used for validation of model data * @@ -24,25 +25,31 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Deprecated */ + /** * Not empty. */ define('VALID_NOT_EMPTY', '/.+/'); + /** * Numbers [0-9] only. */ define('VALID_NUMBER', '/^[-+]?\\b[0-9]*\\.?[0-9]+\\b$/'); + /** * A valid email address. */ define('VALID_EMAIL', "/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[a-z]{2,4}|museum|travel)$/i"); + /** * A valid year (1000-2999). */ define('VALID_YEAR', '/^[12][0-9]{3}$/'); + /** * Offers different validation methods. * @@ -53,6 +60,7 @@ * @since CakePHP v 1.2.0.3830 */ class Validation extends Object { + /** * Set the the value of methods $check param. * @@ -60,6 +68,7 @@ class Validation extends Object { * @access public */ var $check = null; + /** * Set to a valid regular expression in the class methods. * Can be set from $regex param also @@ -68,6 +77,7 @@ class Validation extends Object { * @access public */ var $regex = null; + /** * Some complex patterns needed in multiple places * @@ -78,6 +88,7 @@ class Validation extends Object { 'ip' => '(?:(?:25[0-5]|2[0-4][0-9]|(?:(?:1[0-9])?|[1-9]?)[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|(?:(?:1[0-9])?|[1-9]?)[0-9])', 'hostname' => '(?:[a-z0-9][-a-z0-9]*\.)*(?:[a-z0-9][-a-z0-9]{0,62})\.(?:(?:[a-z]{2}\.)?[a-z]{2,4}|museum|travel)' ); + /** * Some class methods use a country to determine proper validation. * This can be passed to methods in the $country param @@ -86,6 +97,7 @@ class Validation extends Object { * @access public */ var $country = null; + /** * Some class methods use a deeper validation when set to true * @@ -93,6 +105,7 @@ class Validation extends Object { * @access public */ var $deep = null; + /** * Some class methods use the $type param to determine which validation to perfom in the method * @@ -100,6 +113,7 @@ class Validation extends Object { * @access public */ var $type = null; + /** * Holds an array of errors messages set in this class. * These are used for debugging purposes @@ -108,6 +122,7 @@ class Validation extends Object { * @access public */ var $errors = array(); + /** * Gets a reference to the Validation object instance * @@ -123,6 +138,7 @@ class Validation extends Object { } return $instance[0]; } + /** * Checks that a string contains something other than whitespace * @@ -150,6 +166,7 @@ class Validation extends Object { $_this->regex = '/[^\s]+/m'; return $_this->_check(); } + /** * Checks that a string contains only integer or letters * @@ -177,6 +194,7 @@ class Validation extends Object { $_this->regex = '/^[\p{Ll}\p{Lm}\p{Lo}\p{Lt}\p{Lu}\p{Nd}]+$/mu'; return $_this->_check(); } + /** * Checks that a string length is within s specified range. * Spaces are included in the character count. @@ -192,6 +210,7 @@ class Validation extends Object { $length = strlen($check); return ($length >= $min && $length <= $max); } + /** * Returns true if field is left blank -OR- only whitespace characters are present in it's value * Whitespace characters include Space, Tab, Carriage Return, Newline @@ -215,6 +234,7 @@ class Validation extends Object { $_this->regex = '/[^\\s]/'; return !$_this->_check(); } + /** * Validation of credit card numbers. * Returns true if $check is in the proper credit card format. @@ -290,6 +310,7 @@ class Validation extends Object { } } } + /** * Used to compare 2 numeric values. * @@ -352,6 +373,7 @@ class Validation extends Object { } return false; } + /** * Used when a custom regular expression is needed. * @@ -375,6 +397,7 @@ class Validation extends Object { } return $_this->_check(); } + /** * Date validation, determines if the string passed is a valid date. * keys that expect full month, day and year will validate leap years @@ -476,6 +499,7 @@ class Validation extends Object { } return $_this->_check(); } + /** * Validates for an email address. * @@ -511,6 +535,7 @@ class Validation extends Object { } return false; } + /** * Check that value is exactly $comparedTo. * @@ -522,6 +547,7 @@ class Validation extends Object { function equalTo($check, $comparedTo) { return ($check === $comparedTo); } + /** * Check that value has a valid file extension. * @@ -542,6 +568,7 @@ class Validation extends Object { } return false; } + /** * Check that value is a file name * @@ -561,6 +588,7 @@ class Validation extends Object { // // return preg_match('/[\w| |_]+\.[\w]+/', $check); } + /** * Validation of an IPv4 address. * @@ -574,6 +602,7 @@ class Validation extends Object { $_this->regex = '/^' . $_this->__pattern['ip'] . '$/'; return $_this->_check(); } + /** * Checks whether the length of a string is greater or equal to a minimal length. * @@ -586,6 +615,7 @@ class Validation extends Object { $length = strlen($check); return ($length >= $min); } + /** * Checks whether the length of a string is smaller or equal to a maximal length.. * @@ -598,6 +628,7 @@ class Validation extends Object { $length = strlen($check); return ($length <= $max); } + /** * Checks that a value is a monetary amount. * @@ -617,6 +648,7 @@ class Validation extends Object { } return $_this->_check(); } + /** * Validate a multiple select. * @@ -651,6 +683,7 @@ class Validation extends Object { } return true; } + /** * Checks if a value is numeric. * @@ -661,6 +694,7 @@ class Validation extends Object { function numeric($check) { return is_numeric($check); } + /** * Check that a value is a valid phone number. * @@ -690,6 +724,7 @@ class Validation extends Object { } return $_this->_check(); } + /** * Checks that a given value is a valid postal code. * @@ -731,6 +766,7 @@ class Validation extends Object { } return $_this->_check(); } + /** * Validate that a number is in specified range. * if $lower and $upper are not set, will return true if @@ -751,6 +787,7 @@ class Validation extends Object { } return is_finite($check); } + /** * Checks that a value is a valid Social Security Number. * @@ -785,6 +822,7 @@ class Validation extends Object { } return $_this->_check(); } + /** * Checks that a value is a valid URL according to http://www.w3.org/Addressing/URL/url-spec.txt * @@ -813,6 +851,7 @@ class Validation extends Object { '(?:#' . $validChars . '*)?$/i'; return $_this->_check(); } + /** * Checks if a value is in a given list. * @@ -824,6 +863,7 @@ class Validation extends Object { function inList($check, $list) { return in_array($check, $list); } + /** * Runs an user-defined validation. * @@ -837,6 +877,7 @@ class Validation extends Object { function userDefined($check, $object, $method, $args = null) { return call_user_func_array(array(&$object, $method), array($check, $args)); } + /** * Runs a regular expression match. * @@ -853,6 +894,7 @@ class Validation extends Object { return false; } } + /** * Get the values to use when value sent to validation method is * an array. @@ -881,6 +923,7 @@ class Validation extends Object { $_this->type = $type; } } + /** * Luhn algorithm * @@ -910,6 +953,7 @@ class Validation extends Object { return ($sum % 10 == 0); } + /** * Reset internal variables for another validation run. * @@ -926,4 +970,4 @@ class Validation extends Object { $this->errors = array(); } } -?> +?> \ No newline at end of file diff --git a/cake/libs/view/elements/dump.ctp b/cake/libs/view/elements/dump.ctp index 54c59acf6..f6e311ffc 100644 --- a/cake/libs/view/elements/dump.ctp +++ b/cake/libs/view/elements/dump.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/elements/email/html/default.ctp b/cake/libs/view/elements/email/html/default.ctp index 6e51c0fd4..b6afa3e66 100644 --- a/cake/libs/view/elements/email/html/default.ctp +++ b/cake/libs/view/elements/email/html/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/elements/email/text/default.ctp b/cake/libs/view/elements/email/text/default.ctp index cbb261c64..bd5f1aca6 100644 --- a/cake/libs/view/elements/email/text/default.ctp +++ b/cake/libs/view/elements/email/text/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/error404.ctp b/cake/libs/view/errors/error404.ctp index b849db72f..eea79dfee 100644 --- a/cake/libs/view/errors/error404.ctp +++ b/cake/libs/view/errors/error404.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_action.ctp b/cake/libs/view/errors/missing_action.ctp index 857ac206c..53bb01b15 100644 --- a/cake/libs/view/errors/missing_action.ctp +++ b/cake/libs/view/errors/missing_action.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_component_class.ctp b/cake/libs/view/errors/missing_component_class.ctp index 49af6e3a3..eec14a1fc 100644 --- a/cake/libs/view/errors/missing_component_class.ctp +++ b/cake/libs/view/errors/missing_component_class.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_component_file.ctp b/cake/libs/view/errors/missing_component_file.ctp index e4eb675b9..5816985e8 100644 --- a/cake/libs/view/errors/missing_component_file.ctp +++ b/cake/libs/view/errors/missing_component_file.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_connection.ctp b/cake/libs/view/errors/missing_connection.ctp index 1a1c1ad4a..4f419e0bd 100644 --- a/cake/libs/view/errors/missing_connection.ctp +++ b/cake/libs/view/errors/missing_connection.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_controller.ctp b/cake/libs/view/errors/missing_controller.ctp index 829cc53ca..9cff61dc6 100644 --- a/cake/libs/view/errors/missing_controller.ctp +++ b/cake/libs/view/errors/missing_controller.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_helper_class.ctp b/cake/libs/view/errors/missing_helper_class.ctp index d94d1ab1d..d26b760b2 100644 --- a/cake/libs/view/errors/missing_helper_class.ctp +++ b/cake/libs/view/errors/missing_helper_class.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_helper_file.ctp b/cake/libs/view/errors/missing_helper_file.ctp index 7affb0fd4..d443927d2 100644 --- a/cake/libs/view/errors/missing_helper_file.ctp +++ b/cake/libs/view/errors/missing_helper_file.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 @@ -41,4 +42,4 @@ class <?php echo $helperClass;?> extends AppHelper { <p class="notice"> <strong><?php __('Notice'); ?>: </strong> <?php echo sprintf(__('If you want to customize this error message, create %s', true), APP_DIR.DS."views".DS."errors".DS."missing_helper_file.ctp");?> -</p> +</p> \ No newline at end of file diff --git a/cake/libs/view/errors/missing_layout.ctp b/cake/libs/view/errors/missing_layout.ctp index c41c59d45..245187cd1 100644 --- a/cake/libs/view/errors/missing_layout.ctp +++ b/cake/libs/view/errors/missing_layout.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_model.ctp b/cake/libs/view/errors/missing_model.ctp index 49cf8f7a4..aad2e2139 100644 --- a/cake/libs/view/errors/missing_model.ctp +++ b/cake/libs/view/errors/missing_model.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_scaffolddb.ctp b/cake/libs/view/errors/missing_scaffolddb.ctp index 2477d3207..56635a528 100644 --- a/cake/libs/view/errors/missing_scaffolddb.ctp +++ b/cake/libs/view/errors/missing_scaffolddb.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_table.ctp b/cake/libs/view/errors/missing_table.ctp index 341897680..f0c8d6757 100644 --- a/cake/libs/view/errors/missing_table.ctp +++ b/cake/libs/view/errors/missing_table.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/missing_view.ctp b/cake/libs/view/errors/missing_view.ctp index 184573751..cab8ab87f 100644 --- a/cake/libs/view/errors/missing_view.ctp +++ b/cake/libs/view/errors/missing_view.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/private_action.ctp b/cake/libs/view/errors/private_action.ctp index f172c50aa..7dbf7ccc6 100644 --- a/cake/libs/view/errors/private_action.ctp +++ b/cake/libs/view/errors/private_action.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/errors/scaffold_error.ctp b/cake/libs/view/errors/scaffold_error.ctp index d20843cbd..dee0501e2 100644 --- a/cake/libs/view/errors/scaffold_error.ctp +++ b/cake/libs/view/errors/scaffold_error.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/helper.php b/cake/libs/view/helper.php index 076622c73..fedb9586f 100644 --- a/cake/libs/view/helper.php +++ b/cake/libs/view/helper.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Backend for helpers. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Included libs */ @@ -38,72 +40,84 @@ App::import('Core', 'Overloadable'); * @subpackage cake.cake.libs.view */ class Helper extends Overloadable { + /** * List of helpers used by this helper * * @var array */ var $helpers = null; + /** * Base URL * * @var string */ var $base = null; + /** * Webroot path * * @var string */ var $webroot = null; + /** * Theme name * * @var string */ var $themeWeb = null; + /** * URL to current action. * * @var string */ var $here = null; + /** * Parameter array. * * @var array */ var $params = array(); + /** * Current action. * * @var string */ var $action = null; + /** * Plugin path * * @var string */ var $plugin = null; + /** * POST data for models * * @var array */ var $data = null; + /** * List of named arguments * * @var array */ var $namedArgs = null; + /** * URL argument separator character * * @var string */ var $argSeparator = null; + /** * Contains model validation errors of form post-backs * @@ -111,6 +125,7 @@ class Helper extends Overloadable { * @var array */ var $validationErrors = null; + /** * Holds tag templates. * @@ -118,6 +133,7 @@ class Helper extends Overloadable { * @var array */ var $tags = array(); + /** * Holds the content to be cleaned. * @@ -125,6 +141,7 @@ class Helper extends Overloadable { * @var mixed */ var $__tainted = null; + /** * Holds the cleaned content. * @@ -132,6 +149,7 @@ class Helper extends Overloadable { * @var mixed */ var $__cleaned = null; + /** * Default overload methods * @@ -158,6 +176,7 @@ class Helper extends Overloadable { } return $this->tags; } + /** * Finds URL for specified action. * @@ -177,6 +196,7 @@ class Helper extends Overloadable { function url($url = null, $full = false) { return h(Router::url($url, $full)); } + /** * Checks if a file exists when theme is used, if no file is found default location is returned * @@ -226,6 +246,7 @@ class Helper extends Overloadable { $this->__clean(); return $this->__cleaned; } + /** * Returns a space-delimited string with items of the $options array. If a * key of $options array happens to be one of: @@ -278,6 +299,7 @@ class Helper extends Overloadable { } return $out ? $insertBefore . $out . $insertAfter : ''; } + /** * @param string $key * @param string $value @@ -301,6 +323,7 @@ class Helper extends Overloadable { } return $attribute; } + /** * Sets this helper's model and field properties to the dot-separated value-pair in $entity. * @@ -415,6 +438,7 @@ class Helper extends Overloadable { $view->modelScope = true; } } + /** * Gets the currently-used model of the rendering context. * @@ -428,6 +452,7 @@ class Helper extends Overloadable { return $view->model; } } + /** * Gets the ID of the currently-used model of the rendering context. * @@ -437,6 +462,7 @@ class Helper extends Overloadable { $view =& ClassRegistry::getObject('view'); return $view->modelId; } + /** * Gets the currently-used model field of the rendering context. * @@ -446,6 +472,7 @@ class Helper extends Overloadable { $view =& ClassRegistry::getObject('view'); return $view->field; } + /** * Returns false if given FORM field has no errors. Otherwise it returns the constant set in the array Model->validationErrors. * @@ -473,6 +500,7 @@ class Helper extends Overloadable { return empty($errors[$model][$modelID][$field]) ? 0 : $errors[$model][$modelID][$field]; } } + /** * Generates a DOM ID for the selected element, if one is not set. * @@ -500,6 +528,7 @@ class Helper extends Overloadable { } return $options; } + /** * Gets the input field name for the current tag * @@ -541,6 +570,7 @@ class Helper extends Overloadable { return $name; } } + /** * Gets the data for the current tag * @@ -610,6 +640,7 @@ class Helper extends Overloadable { return $result; } } + /** * Sets the defaults for an input tag * @@ -631,6 +662,7 @@ class Helper extends Overloadable { } return $options; } + /** * Adds the given class to the element options * @@ -647,6 +679,7 @@ class Helper extends Overloadable { } return $options; } + /** * Returns a string generated by a helper method * @@ -658,30 +691,35 @@ class Helper extends Overloadable { function output($str) { return $str; } + /** * Before render callback. Overridden in subclasses. * */ function beforeRender() { } + /** * After render callback. Overridden in subclasses. * */ function afterRender() { } + /** * Before layout callback. Overridden in subclasses. * */ function beforeLayout() { } + /** * After layout callback. Overridden in subclasses. * */ function afterLayout() { } + /** * Transforms a recordset from a hasAndBelongsToMany association to a list of selected * options for a multiple select element @@ -709,6 +747,7 @@ class Helper extends Overloadable { } return $array; } + /** * Resets the vars used by Helper::clean() to null * @@ -718,6 +757,7 @@ class Helper extends Overloadable { $this->__tainted = null; $this->__cleaned = null; } + /** * Removes harmful content from output * diff --git a/cake/libs/view/helpers/ajax.php b/cake/libs/view/helpers/ajax.php index 97d5c9580..19a2d310b 100644 --- a/cake/libs/view/helpers/ajax.php +++ b/cake/libs/view/helpers/ajax.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Helper for AJAX operations. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * AjaxHelper helper library. * @@ -33,12 +35,14 @@ * @subpackage cake.cake.libs.view.helpers */ class AjaxHelper extends AppHelper { + /** * Included helpers. * * @var array */ var $helpers = array('Html', 'Javascript', 'Form'); + /** * HtmlHelper instance * @@ -46,6 +50,7 @@ class AjaxHelper extends AppHelper { * @access public */ var $Html = null; + /** * JavaScriptHelper instance * @@ -53,6 +58,7 @@ class AjaxHelper extends AppHelper { * @access public */ var $Javascript = null; + /** * Names of Javascript callback functions. * @@ -62,6 +68,7 @@ class AjaxHelper extends AppHelper { 'complete', 'create', 'exception', 'failure', 'interactive', 'loading', 'loaded', 'success', 'uninitialized' ); + /** * Names of AJAX options. * @@ -74,6 +81,7 @@ class AjaxHelper extends AppHelper { 'onInteractive', 'onLoaded', 'onLoading', 'onSuccess', 'onUninitialized', 'parameters', 'position', 'postBody', 'requestHeaders', 'success', 'type', 'update', 'with' ); + /** * Options for draggable. * @@ -84,6 +92,7 @@ class AjaxHelper extends AppHelper { 'starteffect', 'reverteffect', 'endeffect', 'scroll', 'scrollSensitivity', 'onStart', 'onDrag', 'onEnd' ); + /** * Options for droppable. * @@ -92,6 +101,7 @@ class AjaxHelper extends AppHelper { var $dropOptions = array( 'accept', 'containment', 'greedy', 'hoverclass', 'onHover', 'onDrop', 'overlap' ); + /** * Options for sortable. * @@ -102,6 +112,7 @@ class AjaxHelper extends AppHelper { 'onChange', 'only', 'overlap', 'scroll', 'scrollSensitivity', 'scrollSpeed', 'tag', 'tree', 'treeTag', 'update' ); + /** * Options for slider. * @@ -111,6 +122,7 @@ class AjaxHelper extends AppHelper { 'alignX', 'alignY', 'axis', 'disabled', 'handleDisabled', 'handleImage', 'increment', 'maximum', 'minimum', 'onChange', 'onSlide', 'range', 'sliderValue', 'values' ); + /** * Options for in-place editor. * @@ -122,6 +134,7 @@ class AjaxHelper extends AppHelper { 'loadingText', 'callback', 'ajaxOptions', 'clickToEditText', 'collection', 'okControl', 'cancelControl', 'submitOnBlur' ); + /** * Options for auto-complete editor. * @@ -131,12 +144,14 @@ class AjaxHelper extends AppHelper { 'afterUpdateElement', 'callback', 'frequency', 'indicator', 'minChars', 'onShow', 'onHide', 'parameters', 'paramName', 'tokens', 'updateElement' ); + /** * Output buffer for Ajax update content * * @var array */ var $__ajaxBuffer = array(); + /** * Returns link to remote action * @@ -230,6 +245,7 @@ class AjaxHelper extends AppHelper { } return $return; } + /** * Creates JavaScript function for remote AJAX call * @@ -277,6 +293,7 @@ class AjaxHelper extends AppHelper { } return $func; } + /** * Periodically call remote url via AJAX. * @@ -295,6 +312,7 @@ class AjaxHelper extends AppHelper { $code = "new PeriodicalExecuter(function() {{$callback}}, $frequency)"; return $this->Javascript->codeBlock($code); } + /** * Returns form tag that will submit using Ajax. * @@ -340,6 +358,7 @@ class AjaxHelper extends AppHelper { $script = $this->Javascript->event("'" . $htmlOptions['id']. "'", 'submit', $callback); return $form . $script; } + /** * Returns a button input tag that will submit using Ajax * @@ -370,6 +389,7 @@ class AjaxHelper extends AppHelper { $script = $this->Javascript->event('"' . $htmlOptions['id'] . '"', 'click', $callback); return $form . $script; } + /** * Observe field and call ajax on change. * @@ -410,6 +430,7 @@ class AjaxHelper extends AppHelper { $this->_buildObserver('Form.Element.' . $observer, $field, $options) ); } + /** * Observe entire form and call ajax on change. * @@ -434,6 +455,7 @@ class AjaxHelper extends AppHelper { $this->_buildObserver('Form.' . $observer, $form, $options) ); } + /** * Create a text field with Autocomplete. * @@ -494,6 +516,7 @@ class AjaxHelper extends AppHelper { return "{$text}\n{$div}\n" . $this->Javascript->codeBlock($script); } + /** * Creates an Ajax-updateable DIV element * @@ -514,6 +537,7 @@ class AjaxHelper extends AppHelper { $attr = $this->_parseAttributes(array_merge($options, array('id' => $id))); return $this->output(sprintf($this->Html->tags['blockstart'], $attr)); } + /** * Closes an Ajax-updateable DIV element * @@ -532,6 +556,7 @@ class AjaxHelper extends AppHelper { } return $this->output($this->Html->tags['blockend']); } + /** * Detects Ajax requests * @@ -540,6 +565,7 @@ class AjaxHelper extends AppHelper { function isAjax() { return (isset($this->params['isAjax']) && $this->params['isAjax'] === true); } + /** * Creates a draggable element. For a reference on the options for this function, * check out http://github.com/madrobby/scriptaculous/wikis/draggable @@ -559,6 +585,7 @@ class AjaxHelper extends AppHelper { ); return $this->Javascript->codeBlock("{$var}new Draggable('$id', " .$options . ");"); } + /** * For a reference on the options for this function, check out * http://github.com/madrobby/scriptaculous/wikis/droppables @@ -579,6 +606,7 @@ class AjaxHelper extends AppHelper { ); return $this->Javascript->codeBlock("Droppables.add('{$id}', {$options});"); } + /** * Make an element with the given $id droppable, and trigger an Ajax call when a draggable is * dropped on it. @@ -608,6 +636,7 @@ class AjaxHelper extends AppHelper { ); return $this->Javascript->codeBlock("Droppables.add('{$id}', {$options});"); } + /** * Makes a slider control. * @@ -645,6 +674,7 @@ class AjaxHelper extends AppHelper { $script = "{$var}new Control.Slider('$id', '$trackId', $options);"; return $this->Javascript->codeBlock($script); } + /** * Makes an Ajax In Place editor control. * @@ -688,6 +718,7 @@ class AjaxHelper extends AppHelper { $script = "{$var}new Ajax.{$type}('{$id}', '{$url}', {$options});"; return $this->Javascript->codeBlock($script); } + /** * Makes a list or group of floated objects sortable. * @@ -732,6 +763,7 @@ class AjaxHelper extends AppHelper { } return $this->Javascript->codeBlock($result); } + /** * Private helper function for Javascript. * @@ -805,6 +837,7 @@ class AjaxHelper extends AppHelper { } return $this->_buildOptions($jsOptions, $this->ajaxOptions); } + /** * Private Method to return a string of html options * option data as a JavaScript options hash. @@ -822,6 +855,7 @@ class AjaxHelper extends AppHelper { } return $options; } + /** * Returns a string of JavaScript with the given option data as a JavaScript options hash. * @@ -853,6 +887,7 @@ class AjaxHelper extends AppHelper { return false; } } + /** * Return JavaScript text for an observer... * @@ -872,6 +907,7 @@ class AjaxHelper extends AppHelper { return "new $klass('$name', {$frequency}function(element, value) {{$callback}})"; } + /** * Return Javascript text for callbacks. * @@ -916,6 +952,7 @@ class AjaxHelper extends AppHelper { } return $callbacks; } + /** * Returns a string of JavaScript with a string representation of given options array. * @@ -943,6 +980,7 @@ class AjaxHelper extends AppHelper { } return $options; } + /** * Executed after a view has rendered, used to include bufferred code * blocks. diff --git a/cake/libs/view/helpers/app_helper.php b/cake/libs/view/helpers/app_helper.php index c57f438b8..05b94944d 100644 --- a/cake/libs/view/helpers/app_helper.php +++ b/cake/libs/view/helpers/app_helper.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -26,6 +27,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ App::import('Core', 'Helper'); + /** * This is a placeholder class. * Create the same file in app/app_helper.php diff --git a/cake/libs/view/helpers/cache.php b/cake/libs/view/helpers/cache.php index d8e60b12f..30e6378f3 100644 --- a/cake/libs/view/helpers/cache.php +++ b/cake/libs/view/helpers/cache.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for file. * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs.view.helpers */ class CacheHelper extends AppHelper { + /** * Array of strings replaced in cached views. * The strings are found between <cake:nocache><cake:nocache> in views @@ -41,6 +44,7 @@ class CacheHelper extends AppHelper { * @access private */ var $__replace = array(); + /** * Array of string that are replace with there var replace above. * The strings are any content inside <cake:nocache><cake:nocache> and includes the tags in views @@ -49,6 +53,7 @@ class CacheHelper extends AppHelper { * @access private */ var $__match = array(); + /** * holds the View object passed in final call to CacheHelper::cache() * @@ -56,6 +61,7 @@ class CacheHelper extends AppHelper { * @access public */ var $view; + /** * cache action time * @@ -63,6 +69,7 @@ class CacheHelper extends AppHelper { * @access public */ var $cacheAction; + /** * Main method used to cache a view * @@ -144,6 +151,7 @@ class CacheHelper extends AppHelper { return $out; } } + /** * Parse file searching for no cache tags * @@ -181,6 +189,7 @@ class CacheHelper extends AppHelper { } } } + /** * Parse the output and replace cache tags * @@ -214,6 +223,7 @@ class CacheHelper extends AppHelper { } return $cache; } + /** * Write a cached version of the file * diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index 6394ce5ee..72b203977 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Automatic generation of HTML FORMs from given data. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Form helper library. * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs.view.helpers */ class FormHelper extends AppHelper { + /** * Other helpers used by FormHelper * @@ -40,6 +43,7 @@ class FormHelper extends AppHelper { * @access public */ var $helpers = array('Html'); + /** * Holds the fields array('field_name' => array('type'=> 'string', 'length'=> 100), * primaryKey and validates array('field_name') @@ -47,6 +51,7 @@ class FormHelper extends AppHelper { * @access public */ var $fieldset = array('fields' => array(), 'key' => 'id', 'validates' => array()); + /** * Options used by DateTime fields * @@ -56,6 +61,7 @@ class FormHelper extends AppHelper { 'day' => array(), 'minute' => array(), 'hour' => array(), 'month' => array(), 'year' => array(), 'meridian' => array() ); + /** * List of fields created, used with secure forms. * @@ -63,6 +69,7 @@ class FormHelper extends AppHelper { * @access public */ var $fields = array(); + /** * Defines the type of form being created. Set by FormHelper::create(). * @@ -70,6 +77,7 @@ class FormHelper extends AppHelper { * @access public */ var $requestType = null; + /** * Returns an HTML FORM element. * @@ -247,6 +255,7 @@ class FormHelper extends AppHelper { $attributes = $this->_parseAttributes($htmlAttributes, null, ''); return $this->output(sprintf($this->Html->tags['form'], $attributes)) . $append; } + /** * Closes an HTML form, cleans up values set by FormHelper::create(), and writes hidden * input fields where appropriate. @@ -299,6 +308,7 @@ class FormHelper extends AppHelper { $view->modelScope = false; return $this->output($out); } + /** * Generates a hidden field with a security hash based on the fields used in the form. * @@ -332,6 +342,7 @@ class FormHelper extends AppHelper { )); return $out .= '</fieldset>'; } + /** * Determine which fields of a form should be used for hash * @@ -363,6 +374,7 @@ class FormHelper extends AppHelper { $this->fields[] = $field; } } + /** * Returns true if there is an error for the given field, otherwise false * @@ -374,6 +386,7 @@ class FormHelper extends AppHelper { $this->setEntity($field); return (bool)$this->tagIsInvalid(); } + /** * Returns a formatted error message for given FORM field, NULL if no errors. * @@ -435,6 +448,7 @@ class FormHelper extends AppHelper { return null; } } + /** * Returns a formatted LABEL element for HTML FORMs. * @@ -478,6 +492,7 @@ class FormHelper extends AppHelper { $this->_parseAttributes($attributes), $text )); } + /** * Will display all the fields passed in an array expects fieldName as an array key * replaces generateFields @@ -560,10 +575,11 @@ class FormHelper extends AppHelper { return $out; } } + /** * Generates a form input element complete with label and wrapper div * - * Options - See each field type method for more information. Any options that are part of + * Options - See each field type method for more information. Any options that are part of * $attributes or $options for the different type methods can be included in $options for input(). * * - 'type' - Force the type of widget you want. e.g. ```type => 'select'``` @@ -830,6 +846,7 @@ class FormHelper extends AppHelper { } return $out; } + /** * Creates a checkbox input widget. * @@ -868,6 +885,7 @@ class FormHelper extends AppHelper { $this->_parseAttributes($options, array('name'), null, ' ') )); } + /** * Creates a set of radio widgets. * @@ -952,6 +970,7 @@ class FormHelper extends AppHelper { } return $this->output($out); } + /** * Creates a text input widget. * @@ -969,6 +988,7 @@ class FormHelper extends AppHelper { $this->_parseAttributes($options, array('name'), null, ' ') )); } + /** * Creates a password input widget. * @@ -984,6 +1004,7 @@ class FormHelper extends AppHelper { $this->_parseAttributes($options, array('name'), null, ' ') )); } + /** * Creates a textarea widget. * @@ -1009,6 +1030,7 @@ class FormHelper extends AppHelper { $value )); } + /** * Creates a hidden input field. * @@ -1039,6 +1061,7 @@ class FormHelper extends AppHelper { $this->_parseAttributes($options, array('name', 'class'), '', ' ') )); } + /** * Creates file input widget. * @@ -1060,6 +1083,7 @@ class FormHelper extends AppHelper { $attributes = $this->_parseAttributes($options, array('name'), '', ' '); return $this->output(sprintf($this->Html->tags['file'], $options['name'], $attributes)); } + /** * Creates a button tag. * @@ -1085,6 +1109,7 @@ class FormHelper extends AppHelper { $this->_parseAttributes($options, array('type'), '', ' ') )); } + /** * Creates a submit button element. * @@ -1092,7 +1117,7 @@ class FormHelper extends AppHelper { * extension .jpg, .jpe, .jpeg, .gif, .png use an image if the extension * exists, AND the first character is /, image is relative to webroot, * OR if the first character is not /, image is relative to webroot/img. - * @param array $options + * @param array $options * @return string A HTML submit button */ function submit($caption = null, $options = array()) { @@ -1151,6 +1176,7 @@ class FormHelper extends AppHelper { } return $out; } + /** * Returns a formatted SELECT element. * @@ -1244,6 +1270,7 @@ class FormHelper extends AppHelper { $select[] = $this->Html->tags[$template]; return $this->output(implode("\n", $select)); } + /** * Returns a SELECT element for days. * @@ -1278,6 +1305,7 @@ class FormHelper extends AppHelper { $fieldName . ".day", $this->__generateOptions('day'), $selected, $attributes, $showEmpty ); } + /** * Returns a SELECT element for years * @@ -1319,6 +1347,7 @@ class FormHelper extends AppHelper { $selected, $attributes, $showEmpty ); } + /** * Returns a SELECT element for months. * @@ -1364,6 +1393,7 @@ class FormHelper extends AppHelper { $selected, $attributes, $showEmpty ); } + /** * Returns a SELECT element for hours. * @@ -1407,6 +1437,7 @@ class FormHelper extends AppHelper { $selected, $attributes, $showEmpty ); } + /** * Returns a SELECT element for minutes. * @@ -1448,6 +1479,7 @@ class FormHelper extends AppHelper { $selected, $attributes, $showEmpty ); } + /** * Returns a SELECT element for AM or PM. * @@ -1481,6 +1513,7 @@ class FormHelper extends AppHelper { $selected, $attributes, $showEmpty ); } + /** * Returns a set of SELECT elements for a full datetime setup: day, month and year, and then time. * @@ -1634,6 +1667,7 @@ class FormHelper extends AppHelper { } return $opt; } + /** * Gets the input field name for the current tag * @@ -1668,6 +1702,7 @@ class FormHelper extends AppHelper { } return parent::__name($options, $field, $key); } + /** * Returns an array of formatted OPTION/OPTGROUP elements * @access private @@ -1757,6 +1792,7 @@ class FormHelper extends AppHelper { return array_reverse($select, true); } + /** * Generates option lists for common <select /> menus * @access private @@ -1854,12 +1890,13 @@ class FormHelper extends AppHelper { $this->__options[$name] = $data; return $this->__options[$name]; } + /** * Sets field defaults and adds field to form security input hash - * + * * Options * - secure - boolean whether or not the the field should be added to the security fields. - * + * * @param string $field * @param array $options * @return array diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index cb9408998..31c4a2e8c 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Html Helper class file. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Html Helper class for easy use of HTML widgets. * @@ -31,12 +33,15 @@ * @subpackage cake.cake.libs.view.helpers */ class HtmlHelper extends AppHelper { + /************************************************************************* * Public variables *************************************************************************/ + /**#@+ * @access public */ + /** * html tags used by this helper. * @@ -96,43 +101,52 @@ class HtmlHelper extends AppHelper { 'li' => '<li%s>%s</li>', 'error' => '<div%s>%s</div>' ); + /** * Base URL * * @var string */ var $base = null; + /** * URL to current action. * * @var string */ var $here = null; + /** * Parameter array. * * @var array */ var $params = array(); + /** * Current action. * * @var string */ var $action = null; + /** * Enter description here... * * @var array */ var $data = null; + /**#@-*/ + /************************************************************************* * Private variables *************************************************************************/ + /**#@+ * @access private */ + /** * Breadcrumbs. * @@ -140,6 +154,7 @@ class HtmlHelper extends AppHelper { * @access private */ var $_crumbs = array(); + /** * Document type definitions * @@ -155,6 +170,7 @@ class HtmlHelper extends AppHelper { 'xhtml-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">', 'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">' ); + /** * Adds a link to the breadcrumbs array. * @@ -165,6 +181,7 @@ class HtmlHelper extends AppHelper { function addCrumb($name, $link = null, $options = null) { $this->_crumbs[] = array($name, $link, $options); } + /** * Returns a doctype string. * @@ -186,6 +203,7 @@ class HtmlHelper extends AppHelper { } return null; } + /** * Creates a link to an external resource and handles basic meta tags * @@ -248,6 +266,7 @@ class HtmlHelper extends AppHelper { $view->addScript($out); } } + /** * Returns a charset META-tag. * @@ -260,6 +279,7 @@ class HtmlHelper extends AppHelper { } return $this->output(sprintf($this->tags['charset'], (!empty($charset) ? $charset : 'utf-8'))); } + /** * Creates an HTML link. * @@ -313,6 +333,7 @@ class HtmlHelper extends AppHelper { } return $this->output(sprintf($this->tags['link'], $url, $this->_parseAttributes($htmlAttributes), $title)); } + /** * Creates a link element for CSS stylesheets. * @@ -378,6 +399,7 @@ class HtmlHelper extends AppHelper { $view->addScript($out); } } + /** * Builds CSS style data from an array of CSS properties * @@ -398,6 +420,7 @@ class HtmlHelper extends AppHelper { } return join("\n", $out); } + /** * Returns the breadcrumb trail as a sequence of »-separated links. * @@ -424,6 +447,7 @@ class HtmlHelper extends AppHelper { return null; } } + /** * Creates a formatted IMG element. * @@ -462,6 +486,7 @@ class HtmlHelper extends AppHelper { return $this->output($image); } + /** * Returns a row of formatted and named TABLE headers. * @@ -478,6 +503,7 @@ class HtmlHelper extends AppHelper { $data = sprintf($this->tags['tablerow'], $this->_parseAttributes($trOptions), join(' ', $out)); return $this->output($data); } + /** * Returns a formatted string of table rows (TR's with TD's in them). * @@ -529,6 +555,7 @@ class HtmlHelper extends AppHelper { } return $this->output(join("\n", $out)); } + /** * Returns a formatted block tag, i.e DIV, SPAN, P. * @@ -553,6 +580,7 @@ class HtmlHelper extends AppHelper { } return $this->output(sprintf($this->tags[$tag], $name, $this->_parseAttributes($attributes, null, ' ', ''), $text, $name)); } + /** * Returns a formatted DIV tag for HTML FORMs. * @@ -569,6 +597,7 @@ class HtmlHelper extends AppHelper { } return $this->tag('div', $text, $attributes, $escape); } + /** * Returns a formatted P tag. * @@ -592,6 +621,7 @@ class HtmlHelper extends AppHelper { } return $this->output(sprintf($this->tags[$tag], $this->_parseAttributes($attributes, null, ' ', ''), $text)); } + /** * Build a nested list (UL/OL) out of an associative array. * @@ -610,6 +640,7 @@ class HtmlHelper extends AppHelper { $items = $this->__nestedListItem($list, $attributes, $itemAttributes, $tag); return sprintf($this->tags[$tag], $this->_parseAttributes($attributes, null, ' ', ''), $items); } + /** * Internal function to build a nested list (UL/OL) out of an associative array. * diff --git a/cake/libs/view/helpers/javascript.php b/cake/libs/view/helpers/javascript.php index 7f4145d7c..ba2c5a383 100644 --- a/cake/libs/view/helpers/javascript.php +++ b/cake/libs/view/helpers/javascript.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Javascript Helper class file. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Javascript Helper class for easy use of JavaScript. * @@ -31,6 +33,7 @@ * @subpackage cake.cake.libs.view.helpers */ class JavascriptHelper extends AppHelper { + /** * Determines whether native JSON extension is used for encoding. Set by object constructor. * @@ -38,6 +41,7 @@ class JavascriptHelper extends AppHelper { * @access public */ var $useNative = false; + /** * If true, automatically writes events to the end of a script or to an external JavaScript file * at the end of page execution @@ -46,6 +50,7 @@ class JavascriptHelper extends AppHelper { * @access public */ var $enabled = true; + /** * Indicates whether <script /> blocks should be written 'safely,' i.e. wrapped in CDATA blocks * @@ -53,6 +58,7 @@ class JavascriptHelper extends AppHelper { * @access public */ var $safe = false; + /** * HTML tags used by this helper. * @@ -65,6 +71,7 @@ class JavascriptHelper extends AppHelper { 'javascriptblock' => '<script type="text/javascript">%s</script>', 'javascriptlink' => '<script type="text/javascript" src="%s"></script>' ); + /** * Holds options passed to codeBlock(), saved for when block is dumped to output * @@ -73,6 +80,7 @@ class JavascriptHelper extends AppHelper { * @see JavascriptHelper::codeBlock() */ var $_blockOptions = array(); + /** * Caches events written by event() for output at the end of page execution * @@ -81,6 +89,7 @@ class JavascriptHelper extends AppHelper { * @see JavascriptHelper::event() */ var $_cachedEvents = array(); + /** * Indicates whether generated events should be cached for later output (can be written at the * end of the page, in the <head />, or to an external file). @@ -91,6 +100,7 @@ class JavascriptHelper extends AppHelper { * @see JavascriptHelper::writeEvents() */ var $_cacheEvents = false; + /** * Indicates whether cached events should be written to an external file * @@ -100,6 +110,7 @@ class JavascriptHelper extends AppHelper { * @see JavascriptHelper::writeEvents() */ var $_cacheToFile = false; + /** * Indicates whether *all* generated JavaScript should be cached for later output * @@ -109,6 +120,7 @@ class JavascriptHelper extends AppHelper { * @see JavascriptHelper::blockEnd() */ var $_cacheAll = false; + /** * Contains event rules attached with CSS selectors. Used with the event:Selectors JavaScript * library. @@ -119,11 +131,13 @@ class JavascriptHelper extends AppHelper { * @link http://alternateidea.com/event-selectors/ */ var $_rules = array(); + /** * @var string * @access private */ var $__scriptBuffer = null; + /** * Constructor. Checks for presence of native PHP JSON extension to use for object encoding * @@ -149,6 +163,7 @@ class JavascriptHelper extends AppHelper { $this->useNative = function_exists('json_encode'); return parent::__construct($options); } + /** * Returns a JavaScript script tag. * @@ -197,6 +212,7 @@ class JavascriptHelper extends AppHelper { $view->addScript(sprintf($this->tags['javascriptblock'], $script)); } } + /** * Ends a block of cached JavaScript code * @@ -214,13 +230,14 @@ class JavascriptHelper extends AppHelper { $options = $this->_blockOptions; $this->_blockOptions = array(); $this->inBlock = false; - + if (empty($script)) { return null; } - + return $this->codeBlock($script, $options); } + /** * Returns a JavaScript include tag (SCRIPT element). If the filename is prefixed with "/", * the path will be relative to the base path of your application. Otherwise, the path will @@ -277,6 +294,7 @@ class JavascriptHelper extends AppHelper { $view->addScript($out); } } + /** * Escape carriage returns and single and double quotes for JavaScript segments. * @@ -288,6 +306,7 @@ class JavascriptHelper extends AppHelper { $script = str_replace(array('"', "'"), array('\"', "\\'"), $script); return $script; } + /** * Escape a string to be JavaScript friendly. * @@ -307,6 +326,7 @@ class JavascriptHelper extends AppHelper { $string = str_replace(array_keys($escape), array_values($escape), $string); return $this->_utf8ToHex($string); } + /** * Encode a string into JSON. Converts and escapes necessary characters. * @@ -401,6 +421,7 @@ class JavascriptHelper extends AppHelper { } return $return; } + /** * Attach an event to an element. Used with the Prototype library. * @@ -463,6 +484,7 @@ class JavascriptHelper extends AppHelper { } } } + /** * Cache JavaScript events created with event() * @@ -475,6 +497,7 @@ class JavascriptHelper extends AppHelper { $this->_cacheToFile = $file; $this->_cacheAll = $all; } + /** * Gets (and clears) the current JavaScript event cache * @@ -503,6 +526,7 @@ class JavascriptHelper extends AppHelper { } return $data; } + /** * Write cached JavaScript events * @@ -541,6 +565,7 @@ class JavascriptHelper extends AppHelper { $view->addScript($out); } } + /** * Includes the Prototype Javascript library (and anything else) inside a single script tag. * @@ -568,6 +593,7 @@ class JavascriptHelper extends AppHelper { } return $this->codeBlock("\n\n" . $javascript, $options); } + /** * Generates a JavaScript object in JavaScript Object Notation (JSON) * from an array @@ -650,6 +676,7 @@ class JavascriptHelper extends AppHelper { return $rt; } + /** * Converts a PHP-native variable of any type to a JSON-equivalent representation * @@ -683,6 +710,7 @@ class JavascriptHelper extends AppHelper { } return $val; } + /** * AfterRender callback. Writes any cached events to the view, or to a temp file. * diff --git a/cake/libs/view/helpers/js.php b/cake/libs/view/helpers/js.php index 15e25099f..ccbe41de9 100644 --- a/cake/libs/view/helpers/js.php +++ b/cake/libs/view/helpers/js.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Javascript Generator class file. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Javascript Generator helper class for easy use of JavaScript. * @@ -101,6 +103,7 @@ class JsHelper extends Overloadable2 { function prompt_($message, $default = '') { return 'prompt("' . $this->escape($message) . '", "' . $this->escape($default) . '");'; } + /* * Tries a series of expressions, and executes after first successful completion. * (See Prototype's Try.these). @@ -109,6 +112,7 @@ class JsHelper extends Overloadable2 { */ function tryThese_($expr1, $expr2, $expr3) { } + /** * Loads a remote URL * @@ -154,6 +158,7 @@ class JsHelper extends Overloadable2 { } return $func; } + /** * Redirects to a URL * @@ -164,6 +169,7 @@ class JsHelper extends Overloadable2 { function redirect_($url = null) { return 'window.location = "' . Router::url($url) . '";'; } + /** * Escape a string to be JavaScript friendly. * @@ -201,6 +207,7 @@ class JsHelper extends Overloadable2 { } return $this->__objects[$name]; } + /** * Generates a JavaScript object in JavaScript Object Notation (JSON) * from an array diff --git a/cake/libs/view/helpers/number.php b/cake/libs/view/helpers/number.php index 6c814e0f8..8949d6c1c 100644 --- a/cake/libs/view/helpers/number.php +++ b/cake/libs/view/helpers/number.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Number Helper. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Number helper library. * @@ -33,6 +35,7 @@ * @subpackage cake.cake.libs.view.helpers */ class NumberHelper extends AppHelper { + /** * Formats a number with a level of precision. * @@ -44,6 +47,7 @@ class NumberHelper extends AppHelper { function precision($number, $precision = 3) { return sprintf("%01.{$precision}f", $number); } + /** * Returns a formatted-for-humans file size. * @@ -65,6 +69,7 @@ class NumberHelper extends AppHelper { return sprintf(__('%.2f TB', true), $this->precision($size / 1024 / 1024 / 1024 / 1024, 2)); } } + /** * Formats a number into a percentage string. * @@ -76,6 +81,7 @@ class NumberHelper extends AppHelper { function toPercentage($number, $precision = 2) { return $this->precision($number, $precision) . '%'; } + /** * Formats a number into a currency format. * @@ -119,6 +125,7 @@ class NumberHelper extends AppHelper { } return $out; } + /** * Formats a number into a currency format. * diff --git a/cake/libs/view/helpers/paginator.php b/cake/libs/view/helpers/paginator.php index 42b0cd286..c1a92996c 100644 --- a/cake/libs/view/helpers/paginator.php +++ b/cake/libs/view/helpers/paginator.php @@ -17,6 +17,7 @@ * @since CakePHP(tm) v 1.2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ + /** * Pagination Helper class for easy generation of pagination links. * @@ -26,18 +27,21 @@ * @subpackage cake.cake.libs.view.helpers */ class PaginatorHelper extends AppHelper { + /** * Helper dependencies * * @var array */ var $helpers = array('Html', 'Ajax'); + /** * Holds the default model for paged recordsets * * @var string */ var $__defaultModel = null; + /** * Holds the default options for pagination links * @@ -61,6 +65,7 @@ class PaginatorHelper extends AppHelper { * @var array */ var $options = array(); + /** * Gets the current page of the in the recordset for the given model * @@ -76,6 +81,7 @@ class PaginatorHelper extends AppHelper { } return $this->params['paging'][$model]; } + /** * Sets default options for all pagination links * @@ -107,6 +113,7 @@ class PaginatorHelper extends AppHelper { } $this->options = array_filter(array_merge($this->options, $options)); } + /** * Gets the current page of the recordset for the given model * @@ -121,6 +128,7 @@ class PaginatorHelper extends AppHelper { } return 1; } + /** * Gets the current key by which the recordset is sorted * @@ -152,6 +160,7 @@ class PaginatorHelper extends AppHelper { } return null; } + /** * Gets the current direction the recordset is sorted * @@ -179,6 +188,7 @@ class PaginatorHelper extends AppHelper { } return 'asc'; } + /** * Generates a "previous" link for a set of paged records * @@ -191,6 +201,7 @@ class PaginatorHelper extends AppHelper { function prev($title = '<< Previous', $options = array(), $disabledTitle = null, $disabledOptions = array()) { return $this->__pagingLink('Prev', $title, $options, $disabledTitle, $disabledOptions); } + /** * Generates a "next" link for a set of paged records * @@ -203,6 +214,7 @@ class PaginatorHelper extends AppHelper { function next($title = 'Next >>', $options = array(), $disabledTitle = null, $disabledOptions = array()) { return $this->__pagingLink('Next', $title, $options, $disabledTitle, $disabledOptions); } + /** * Generates a sorting link * @@ -236,6 +248,7 @@ class PaginatorHelper extends AppHelper { $url = array_merge(array('sort' => $key, 'direction' => $dir), $url, array('order' => null)); return $this->link($title, $url, $options); } + /** * Generates a plain or Ajax link with pagination parameters * @@ -263,6 +276,7 @@ class PaginatorHelper extends AppHelper { $url = array_merge(Set::filter($url, true), array_intersect_key($url, array('plugin'=>true))); return $this->{$obj}->link($title, $url, $options); } + /** * Merges passed URL options with current pagination state to generate a pagination URL. * @@ -291,6 +305,7 @@ class PaginatorHelper extends AppHelper { } return parent::url($url); } + /** * Protected method for generating prev/next links * @@ -322,6 +337,7 @@ class PaginatorHelper extends AppHelper { return $this->Html->tag($tag, $title, $options, $escape); } } + /** * Returns true if the given result set is not at the first page * @@ -331,6 +347,7 @@ class PaginatorHelper extends AppHelper { function hasPrev($model = null) { return $this->__hasPage($model, 'prev'); } + /** * Returns true if the given result set is not at the last page * @@ -340,6 +357,7 @@ class PaginatorHelper extends AppHelper { function hasNext($model = null) { return $this->__hasPage($model, 'next'); } + /** * Returns true if the given result set has the page number given by $page * @@ -355,6 +373,7 @@ class PaginatorHelper extends AppHelper { $paging = $this->params($model); return $page <= $paging['pageCount']; } + /** * Protected method * @@ -368,6 +387,7 @@ class PaginatorHelper extends AppHelper { } return false; } + /** * Gets the default model of the paged sets * @@ -383,6 +403,7 @@ class PaginatorHelper extends AppHelper { list($this->__defaultModel) = array_keys($this->params['paging']); return $this->__defaultModel; } + /** * Returns a counter string for the paged result set * @@ -446,6 +467,7 @@ class PaginatorHelper extends AppHelper { } return $this->output($out); } + /** * Returns a set of numbers for the paged result set * uses a modulus to decide how many numbers to show on each side of the current page (default: 8) @@ -559,6 +581,7 @@ class PaginatorHelper extends AppHelper { return $this->output($out); } + /** * Returns a first or set of numbers for the first pages * @@ -604,6 +627,7 @@ class PaginatorHelper extends AppHelper { } return $out; } + /** * Returns a last or set of numbers for the last pages * @@ -653,4 +677,4 @@ class PaginatorHelper extends AppHelper { return $out; } } -?> +?> \ No newline at end of file diff --git a/cake/libs/view/helpers/rss.php b/cake/libs/view/helpers/rss.php index a7889a2e0..5c0b294d1 100644 --- a/cake/libs/view/helpers/rss.php +++ b/cake/libs/view/helpers/rss.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * RSS Helper class file. * @@ -33,6 +34,7 @@ App::import('Helper', 'Xml'); * @subpackage cake.cake.libs.view.helpers */ class RssHelper extends XmlHelper { + /** * Helpers used by RSS Helper * @@ -40,6 +42,7 @@ class RssHelper extends XmlHelper { * @access public **/ var $helpers = array('Time'); + /** * Base URL * @@ -47,6 +50,7 @@ class RssHelper extends XmlHelper { * @var string */ var $base = null; + /** * URL to current action. * @@ -54,6 +58,7 @@ class RssHelper extends XmlHelper { * @var string */ var $here = null; + /** * Parameter array. * @@ -61,6 +66,7 @@ class RssHelper extends XmlHelper { * @var array */ var $params = array(); + /** * Current action. * @@ -68,6 +74,7 @@ class RssHelper extends XmlHelper { * @var string */ var $action = null; + /** * POSTed model data * @@ -75,6 +82,7 @@ class RssHelper extends XmlHelper { * @var array */ var $data = null; + /** * Name of the current model * @@ -82,6 +90,7 @@ class RssHelper extends XmlHelper { * @var string */ var $model = null; + /** * Name of the current field * @@ -89,6 +98,7 @@ class RssHelper extends XmlHelper { * @var string */ var $field = null; + /** * Default spec version of generated RSS * @@ -96,6 +106,7 @@ class RssHelper extends XmlHelper { * @var string */ var $version = '2.0'; + /** * Returns an RSS document wrapped in <rss /> tags * @@ -113,6 +124,7 @@ class RssHelper extends XmlHelper { return $this->elem('rss', $attrib, $content); } + /** * Returns an RSS <channel /> element * @@ -157,6 +169,7 @@ class RssHelper extends XmlHelper { } return $this->elem('channel', $attrib, $elems . $content, !($content === null)); } + /** * Transforms an array of data using an optional callback, and maps it to a set * of <item /> tags @@ -179,6 +192,7 @@ class RssHelper extends XmlHelper { } return $out; } + /** * Converts an array into an <item /> element and its contents * @@ -263,6 +277,7 @@ class RssHelper extends XmlHelper { } return $this->output($this->elem('item', $att, $content, !($content === null))); } + /** * Converts a time in any format to an RSS time * diff --git a/cake/libs/view/helpers/session.php b/cake/libs/view/helpers/session.php index d78170ab1..3b67d32ec 100644 --- a/cake/libs/view/helpers/session.php +++ b/cake/libs/view/helpers/session.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -38,18 +39,21 @@ if (!class_exists('cakesession')) { * */ class SessionHelper extends CakeSession { + /** * List of helpers used by this helper * * @var array */ var $helpers = null; + /** * Used to determine if methods implementation is used, or bypassed * * @var boolean */ var $__active = true; + /** * Class constructor * @@ -62,6 +66,7 @@ class SessionHelper extends CakeSession { $this->__active = false; } } + /** * Turn sessions on if 'Session.start' is set to false in core.php * @@ -70,6 +75,7 @@ class SessionHelper extends CakeSession { function activate($base = null) { $this->__active = true; } + /** * Used to read a session values set in a controller for a key or return values for all keys. * @@ -87,6 +93,7 @@ class SessionHelper extends CakeSession { } return false; } + /** * Used to check is a session key has been set * @@ -102,6 +109,7 @@ class SessionHelper extends CakeSession { } return false; } + /** * Returns last error encountered in a session * @@ -116,6 +124,7 @@ class SessionHelper extends CakeSession { } return false; } + /** * Used to render the message set in Controller::Session::setFlash() * @@ -154,6 +163,7 @@ class SessionHelper extends CakeSession { } return false; } + /** * Used to check is a session is valid in a view * @@ -165,6 +175,7 @@ class SessionHelper extends CakeSession { return parent::valid(); } } + /** * Override CakeSession::write(). * This method should not be used in a view @@ -175,6 +186,7 @@ class SessionHelper extends CakeSession { function write() { trigger_error(__('You can not write to a Session from the view', true), E_USER_WARNING); } + /** * Session id * @@ -184,6 +196,7 @@ class SessionHelper extends CakeSession { function id() { return parent::id(); } + /** * Determine if Session has been started * and attempt to start it if not diff --git a/cake/libs/view/helpers/text.php b/cake/libs/view/helpers/text.php index a3ae2bee4..1411f171d 100644 --- a/cake/libs/view/helpers/text.php +++ b/cake/libs/view/helpers/text.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Text Helper * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Included libraries. * @@ -34,6 +36,7 @@ if (!class_exists('HtmlHelper')) { if (!class_exists('Multibyte')) { App::import('Core', 'Multibyte'); } + /** * Text helper library. * @@ -43,6 +46,7 @@ if (!class_exists('Multibyte')) { * @subpackage cake.cake.libs.view.helpers */ class TextHelper extends AppHelper { + /** * Highlights a given phrase in a text. You can specify any expression in highlighter that * may include the \1 expression to include the $phrase found. @@ -84,6 +88,7 @@ class TextHelper extends AppHelper { return preg_replace('|'.$phrase.'|iu', $highlighter, $text); } } + /** * Strips given text of all links (<a href=....) * @@ -94,6 +99,7 @@ class TextHelper extends AppHelper { function stripLinks($text) { return preg_replace('|<a\s+[^>]+>|im', '', preg_replace('|<\/a>|im', '', $text)); } + /** * Adds links (<a href=....) to a given text, by finding text that begins with * strings like http:// and ftp://. @@ -117,6 +123,7 @@ class TextHelper extends AppHelper { return preg_replace_callback('#(?<!href="|">)(?<!http://|https://|ftp://|nntp://)(www\.[^\n\%\ <]+[^<\n\%\,\.\ <])(?<!\))#i', create_function('$matches', '$Html = new HtmlHelper(); $Html->tags = $Html->loadConfig(); return $Html->link($matches[0], "http://" . strtolower($matches[0]),' . $options . ');'), $text); } + /** * Adds email links (<a href="mailto:....) to a given text. * @@ -136,6 +143,7 @@ class TextHelper extends AppHelper { return preg_replace_callback('#([_A-Za-z0-9+-]+(?:\.[_A-Za-z0-9+-]+)*@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)*)#', create_function('$matches', '$Html = new HtmlHelper(); $Html->tags = $Html->loadConfig(); return $Html->link($matches[0], "mailto:" . $matches[0],' . $options . ');'), $text); } + /** * Convert all links and email adresses to HTML links. * @@ -147,6 +155,7 @@ class TextHelper extends AppHelper { function autoLink($text, $htmlOptions = array()) { return $this->autoLinkEmails($this->autoLinkUrls($text, $htmlOptions), $htmlOptions); } + /** * Truncates text. * @@ -246,6 +255,7 @@ class TextHelper extends AppHelper { return $truncate; } + /** * Alias for truncate(). * @@ -256,6 +266,7 @@ class TextHelper extends AppHelper { $args = func_get_args(); return call_user_func_array(array(&$this, 'truncate'), $args); } + /** * Extracts an excerpt from the text surrounding the phrase with a number of characters on each side determined by radius. * @@ -301,6 +312,7 @@ class TextHelper extends AppHelper { return $excerpt; } + /** * Creates a comma separated list where the last two items are joined with 'and', forming natural English * @@ -320,6 +332,7 @@ class TextHelper extends AppHelper { } return $r; } + /** * Text-to-html parser, similar to Textile or RedCloth, only with a little different syntax. * @@ -337,6 +350,7 @@ class TextHelper extends AppHelper { } return Flay::toHtml($text, false, $allowHtml); } + /** * @codeCoverageIgnoreEnd */ diff --git a/cake/libs/view/helpers/time.php b/cake/libs/view/helpers/time.php index 066d97906..8a8f4319b 100644 --- a/cake/libs/view/helpers/time.php +++ b/cake/libs/view/helpers/time.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Time Helper class file. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Time Helper class for easy use of time data. * @@ -31,6 +33,7 @@ * @subpackage cake.cake.libs.view.helpers */ class TimeHelper extends AppHelper { + /** * Converts given time (in server's time zone) to user's local time, given his/her offset from GMT. * @@ -44,6 +47,7 @@ class TimeHelper extends AppHelper { $userTime = $gmtTime + $userOffset * (60*60); return $userTime; } + /** * Returns server's offset from GMT in seconds. * @@ -52,6 +56,7 @@ class TimeHelper extends AppHelper { function serverOffset() { return date('Z', time()); } + /** * Returns a UNIX timestamp, given either a UNIX timestamp or a valid strtotime() date string. * @@ -73,6 +78,7 @@ class TimeHelper extends AppHelper { } return $date; } + /** * Returns a nicely formatted date string for given Datetime string. * @@ -90,6 +96,7 @@ class TimeHelper extends AppHelper { $ret = date("D, M jS Y, H:i", $date); return $this->output($ret); } + /** * Returns a formatted descriptive date string for given datetime string. * @@ -117,6 +124,7 @@ class TimeHelper extends AppHelper { return $this->output($ret); } + /** * Returns a partial SQL string to search for all records between two dates. * @@ -135,6 +143,7 @@ class TimeHelper extends AppHelper { $ret ="($fieldName >= '$begin') AND ($fieldName <= '$end')"; return $this->output($ret); } + /** * Returns a partial SQL string to search for all records between two times * occurring on the same day. @@ -149,6 +158,7 @@ class TimeHelper extends AppHelper { $ret = $this->daysAsSql($dateString, $dateString, $fieldName); return $this->output($ret); } + /** * Returns true if given datetime string is today. * @@ -160,6 +170,7 @@ class TimeHelper extends AppHelper { $date = $this->fromString($dateString, $userOffset); return date('Y-m-d', $date) == date('Y-m-d', time()); } + /** * Returns true if given datetime string is within this week * @param string $dateString @@ -170,6 +181,7 @@ class TimeHelper extends AppHelper { $date = $this->fromString($dateString, $userOffset); return date('W Y', $date) == date('W Y', time()); } + /** * Returns true if given datetime string is within this month * @param string $dateString @@ -180,6 +192,7 @@ class TimeHelper extends AppHelper { $date = $this->fromString($dateString); return date('m Y',$date) == date('m Y', time()); } + /** * Returns true if given datetime string is within current year. * @@ -190,6 +203,7 @@ class TimeHelper extends AppHelper { $date = $this->fromString($dateString, $userOffset); return date('Y', $date) == date('Y', time()); } + /** * Returns true if given datetime string was yesterday. * @@ -201,6 +215,7 @@ class TimeHelper extends AppHelper { $date = $this->fromString($dateString, $userOffset); return date('Y-m-d', $date) == date('Y-m-d', strtotime('yesterday')); } + /** * Returns true if given datetime string is tomorrow. * @@ -212,6 +227,7 @@ class TimeHelper extends AppHelper { $date = $this->fromString($dateString, $userOffset); return date('Y-m-d', $date) == date('Y-m-d', strtotime('tomorrow')); } + /** * Returns the quart * @param string $dateString @@ -246,6 +262,7 @@ class TimeHelper extends AppHelper { } return $this->output($date); } + /** * Returns a UNIX timestamp from a textual datetime description. Wrapper for PHP function strtotime(). * @@ -257,6 +274,7 @@ class TimeHelper extends AppHelper { $ret = $this->fromString($dateString, $userOffset); return $this->output($ret); } + /** * Returns a date formatted for Atom RSS feeds. * @@ -269,6 +287,7 @@ class TimeHelper extends AppHelper { $ret = date('Y-m-d\TH:i:s\Z', $date); return $this->output($ret); } + /** * Formats date for RSS feeds * @@ -281,6 +300,7 @@ class TimeHelper extends AppHelper { $ret = date("r", $date); return $this->output($ret); } + /** * Returns either a relative date or a formatted date depending * on the difference between the current time and given datetime. @@ -460,6 +480,7 @@ class TimeHelper extends AppHelper { } return $this->output($relativeDate); } + /** * Alias for timeAgoInWords * @@ -472,6 +493,7 @@ class TimeHelper extends AppHelper { function relativeTime($dateTime, $options = array()) { return $this->timeAgoInWords($dateTime, $options); } + /** * Returns true if specified datetime was within the interval specified, else false. * @@ -495,6 +517,7 @@ class TimeHelper extends AppHelper { return false; } + /** * Returns gmt, given either a UNIX timestamp or a valid strtotime() date string. * @@ -518,6 +541,7 @@ class TimeHelper extends AppHelper { $return = gmmktime($hour, $minute, $second, $month, $day, $year); return $return; } + /** * Returns a UNIX timestamp, given either a UNIX timestamp or a valid strtotime() date string. * diff --git a/cake/libs/view/helpers/xml.php b/cake/libs/view/helpers/xml.php index 6377a5260..2a2bb3f52 100644 --- a/cake/libs/view/helpers/xml.php +++ b/cake/libs/view/helpers/xml.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * XML Helper class file. * @@ -33,6 +34,7 @@ App::import('Core', array('Xml', 'Set')); * @subpackage cake.cake.libs.view.helpers */ class XmlHelper extends AppHelper { + /** * Default document encoding * @@ -40,6 +42,7 @@ class XmlHelper extends AppHelper { * @var string */ var $encoding = 'UTF-8'; + /** * Constructor * @return void @@ -49,6 +52,7 @@ class XmlHelper extends AppHelper { $this->Xml =& new Xml(); $this->Xml->options(array('verifyNs' => false)); } + /** * Returns an XML document header * @@ -69,6 +73,7 @@ class XmlHelper extends AppHelper { return $this->output($this->Xml->header($attrib)); } + /** * Adds a namespace to any documents generated * @@ -82,6 +87,7 @@ class XmlHelper extends AppHelper { function addNs($name, $url = null) { return $this->Xml->addNamespace($name, $url); } + /** * Removes a namespace added in addNs() * @@ -92,6 +98,7 @@ class XmlHelper extends AppHelper { function removeNs($name) { return $this->Xml->removeGlobalNamespace($name); } + /** * Generates an XML element * @@ -132,6 +139,7 @@ class XmlHelper extends AppHelper { } return $this->output($out); } + /** * Create closing tag for current element * @@ -144,6 +152,7 @@ class XmlHelper extends AppHelper { } return $this->output('</' . $name . '>'); } + /** * Serializes a model resultset into XML * diff --git a/cake/libs/view/layouts/ajax.ctp b/cake/libs/view/layouts/ajax.ctp index ca3459af8..4da27c73a 100644 --- a/cake/libs/view/layouts/ajax.ctp +++ b/cake/libs/view/layouts/ajax.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/layouts/default.ctp b/cake/libs/view/layouts/default.ctp index 3b6fac081..0b326d6c0 100644 --- a/cake/libs/view/layouts/default.ctp +++ b/cake/libs/view/layouts/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/layouts/email/html/default.ctp b/cake/libs/view/layouts/email/html/default.ctp index a41315a3a..8668b9983 100644 --- a/cake/libs/view/layouts/email/html/default.ctp +++ b/cake/libs/view/layouts/email/html/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/layouts/email/text/default.ctp b/cake/libs/view/layouts/email/text/default.ctp index 4b0b62c41..eebf48a62 100644 --- a/cake/libs/view/layouts/email/text/default.ctp +++ b/cake/libs/view/layouts/email/text/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 @@ -25,4 +26,3 @@ <?php echo $content_for_layout;?> This email was sent using the CakePHP Framework, http://cakephp.org. - diff --git a/cake/libs/view/layouts/flash.ctp b/cake/libs/view/layouts/flash.ctp index d896896eb..6be3e4d29 100644 --- a/cake/libs/view/layouts/flash.ctp +++ b/cake/libs/view/layouts/flash.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/media.php b/cake/libs/view/media.php index 5be837840..739199335 100644 --- a/cake/libs/view/media.php +++ b/cake/libs/view/media.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Methods to display or download any type of file * @@ -23,6 +24,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ class MediaView extends View { + /** * Holds known mime type mappings * @@ -79,6 +81,7 @@ class MediaView extends View { 'iges' => 'model/iges', 'igs' => 'model/iges', 'mesh' => 'model/mesh', 'msh' => 'model/mesh', 'silo' => 'model/mesh', 'vrml' => 'model/vrml', 'wrl' => 'model/vrml', 'mime' => 'www/mime', 'pdb' => 'chemical/x-pdb', 'xyz' => 'chemical/x-pdb'); + /** * Holds headers sent to browser before rendering media * @@ -86,6 +89,7 @@ class MediaView extends View { * @access protected */ var $_headers = array(); + /** * Constructor * @@ -94,6 +98,7 @@ class MediaView extends View { function __construct(&$controller) { parent::__construct($controller); } + /** * Display or download the given file * @@ -215,6 +220,7 @@ class MediaView extends View { } return false; } + /** * Method to set headers * @param mixed $header @@ -235,6 +241,7 @@ class MediaView extends View { $this->_headers[] = array($header => $boolean); return; } + /** * Method to output headers * @access protected diff --git a/cake/libs/view/pages/home.ctp b/cake/libs/view/pages/home.ctp index f0e3d9c63..46cc3db3d 100644 --- a/cake/libs/view/pages/home.ctp +++ b/cake/libs/view/pages/home.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/scaffolds/edit.ctp b/cake/libs/view/scaffolds/edit.ctp index fd537d239..faa4ec440 100644 --- a/cake/libs/view/scaffolds/edit.ctp +++ b/cake/libs/view/scaffolds/edit.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/scaffolds/index.ctp b/cake/libs/view/scaffolds/index.ctp index 5d18fef54..5f2220ee8 100644 --- a/cake/libs/view/scaffolds/index.ctp +++ b/cake/libs/view/scaffolds/index.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/scaffolds/view.ctp b/cake/libs/view/scaffolds/view.ctp index 0c5ef7420..ef17dbc5c 100644 --- a/cake/libs/view/scaffolds/view.ctp +++ b/cake/libs/view/scaffolds/view.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/libs/view/theme.php b/cake/libs/view/theme.php index 97e2569a5..697328fbb 100644 --- a/cake/libs/view/theme.php +++ b/cake/libs/view/theme.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * A custom view class that is used for themeing * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Theme view class * @@ -29,24 +31,28 @@ * @subpackage cake.cake.libs.view */ class ThemeView extends View { + /** * System path to themed element: themed . DS . theme . DS . elements . DS * * @var string */ var $themeElement = null; + /** * System path to themed layout: themed . DS . theme . DS . layouts . DS * * @var string */ var $themeLayout = null; + /** * System path to themed: themed . DS . theme . DS * * @var string */ var $themePath = null; + /** * Enter description here... * diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index 4b5d56644..42a4b273b 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Methods for displaying presentation data in the view. * @@ -22,10 +23,12 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Included libraries. */ App::import('Core', array('Helper', 'ClassRegistry')); + /** * View, the V in the MVC triad. * @@ -35,6 +38,7 @@ App::import('Core', array('Helper', 'ClassRegistry')); * @subpackage cake.cake.libs.view */ class View extends Object { + /** * Path parts for creating links in views. * @@ -42,12 +46,14 @@ class View extends Object { * @access public */ var $base = null; + /** * Stores the current URL (for links etc.) * * @var string Current URL */ var $here = null; + /** * Name of the plugin. * @@ -55,6 +61,7 @@ class View extends Object { * @var string */ var $plugin = null; + /** * Name of the controller. * @@ -62,6 +69,7 @@ class View extends Object { * @access public */ var $name = null; + /** * Action to be performed. * @@ -69,24 +77,28 @@ class View extends Object { * @access public */ var $action = null; + /** * Array of parameter data * * @var array Parameter data */ var $params = array(); + /** * Current passed params * * @var mixed */ var $passedArgs = array(); + /** * Array of data * * @var array Parameter data */ var $data = array(); + /** * An array of names of built-in helpers to include. * @@ -94,12 +106,14 @@ class View extends Object { * @access public */ var $helpers = array('Html'); + /** * Path to View. * * @var string Path to View */ var $viewPath = null; + /** * Variables for the view * @@ -107,6 +121,7 @@ class View extends Object { * @access public */ var $viewVars = array(); + /** * Name of layout to use with this View. * @@ -114,12 +129,14 @@ class View extends Object { * @access public */ var $layout = 'default'; + /** * Path to Layout. * * @var string Path to Layout */ var $layoutPath = null; + /** * Title HTML element of this View. * @@ -127,6 +144,7 @@ class View extends Object { * @access public */ var $pageTitle = false; + /** * Turns on or off Cake's conventional mode of rendering views. On by default. * @@ -134,6 +152,7 @@ class View extends Object { * @access public */ var $autoRender = true; + /** * Turns on or off Cake's conventional mode of finding layout files. On by default. * @@ -141,24 +160,28 @@ class View extends Object { * @access public */ var $autoLayout = true; + /** * File extension. Defaults to Cake's template ".ctp". * * @var string */ var $ext = '.ctp'; + /** * Sub-directory for this view file. * * @var string */ var $subDir = null; + /** * Theme name. * * @var string */ var $themeWeb = null; + /** * Used to define methods a controller that will be cached. * @@ -167,72 +190,84 @@ class View extends Object { * @access public */ var $cacheAction = false; + /** * holds current errors for the model validation * * @var array */ var $validationErrors = array(); + /** * True when the view has been rendered. * * @var boolean */ var $hasRendered = false; + /** * Array of loaded view helpers. * * @var array */ var $loaded = array(); + /** * True if in scope of model-specific region * * @var boolean */ var $modelScope = false; + /** * Name of current model this view context is attached to * * @var string */ var $model = null; + /** * Name of association model this view context is attached to * * @var string */ var $association = null; + /** * Name of current model field this view context is attached to * * @var string */ var $field = null; + /** * Suffix of current field this view context is attached to * * @var string */ var $fieldSuffix = null; + /** * The current model ID this view context is attached to * * @var mixed */ var $modelId = null; + /** * List of generated DOM UUIDs * * @var array */ var $uuids = array(); + /** * Holds View output. * * @var string **/ var $output = false; + /** * List of variables to collect from the associated controller * @@ -244,6 +279,7 @@ class View extends Object { 'helpers', 'here', 'layout', 'name', 'pageTitle', 'layoutPath', 'viewPath', 'params', 'data', 'plugin', 'passedArgs', 'cacheAction' ); + /** * Scripts (and/or other <head /> tags) for the layout * @@ -251,12 +287,14 @@ class View extends Object { * @access private */ var $__scripts = array(); + /** * Holds an array of paths. * * @var array */ var $__paths = array(); + /** * Constructor * @@ -276,6 +314,7 @@ class View extends Object { ClassRegistry::addObject('view', $this); } } + /** * Renders a piece of PHP with provided parameters and returns HTML, XML, or any other string. * @@ -352,6 +391,7 @@ class View extends Object { return "Not Found: " . $file; } } + /** * Renders view for given action and layout. If $file is given, that is used * for a view filename (e.g. customFunkyView.ctp). @@ -404,6 +444,7 @@ class View extends Object { } return $out; } + /** * Renders a layout. Returns output from _render(). Returns false on error. * Several variables are created for use in layout. @@ -467,6 +508,7 @@ class View extends Object { return $this->output; } + /** * Fire a callback on all loaded Helpers * @@ -488,6 +530,7 @@ class View extends Object { } } } + /** * Render cached view * @@ -517,6 +560,7 @@ class View extends Object { } } } + /** * Returns a list of variables available in the current View context * @@ -526,6 +570,7 @@ class View extends Object { function getVars() { return array_keys($this->viewVars); } + /** * Returns the contents of the given View variable(s) * @@ -539,6 +584,7 @@ class View extends Object { return $this->viewVars[$var]; } } + /** * Adds a script block or other element to be inserted in $scripts_for_layout in * the <head /> of a document layout @@ -557,6 +603,7 @@ class View extends Object { $this->__scripts[$name] = $content; } } + /** * Generates a unique, non-random DOM ID for an object, based on the object type and the target URL. * @@ -576,6 +623,7 @@ class View extends Object { $this->uuids[] = $hash; return $hash; } + /** * Returns the entity reference of the current context as an array of identity parts * @@ -587,6 +635,7 @@ class View extends Object { array($assoc, $this->modelId, $this->field, $this->fieldSuffix) )); } + /** * Allows a template or element to set a variable that will be available in * a layout or other element. Analagous to Controller::set. @@ -621,6 +670,7 @@ class View extends Object { } } } + /** * Displays an error page to the user. Uses layouts/error.ctp to render the page. * @@ -635,6 +685,7 @@ class View extends Object { array('code' => $code, 'name' => $name, 'message' => $message) )); } + /** * Renders and returns output for given view filename with its * array of data. @@ -693,6 +744,7 @@ class View extends Object { } return $out; } + /** * Loads helpers, with their dependencies. * @@ -768,6 +820,7 @@ class View extends Object { } return $loaded; } + /** * Returns filename of given action's template file (.ctp) as a string. * CamelCased action names will be under_scored! This means that you can have @@ -857,6 +910,7 @@ class View extends Object { } return $this->_missingView($paths[0] . $file . $this->ext, 'missingLayout'); } + /** * Return a misssing view error message * @@ -882,6 +936,7 @@ class View extends Object { return false; } } + /** * Return all possible paths to find view files in order * @@ -915,6 +970,7 @@ class View extends Object { } return $paths; } + /** * @deprecated * @see View::element diff --git a/cake/libs/xml.php b/cake/libs/xml.php index 3c79eb630..3d908bea6 100644 --- a/cake/libs/xml.php +++ b/cake/libs/xml.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * XML handling for Cake. * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ App::import('Core', 'Set'); + /** * XML node. * @@ -35,6 +37,7 @@ App::import('Core', 'Set'); * @since CakePHP v .0.10.3.1400 */ class XmlNode extends Object { + /** * Name of node * @@ -42,6 +45,7 @@ class XmlNode extends Object { * @access public */ var $name = null; + /** * Node namespace * @@ -49,6 +53,7 @@ class XmlNode extends Object { * @access public */ var $namespace = null; + /** * Namespaces defined for this node and all child nodes * @@ -56,6 +61,7 @@ class XmlNode extends Object { * @access public */ var $namespaces = array(); + /** * Value of node * @@ -63,6 +69,7 @@ class XmlNode extends Object { * @access public */ var $value; + /** * Attributes on this node * @@ -70,6 +77,7 @@ class XmlNode extends Object { * @access public */ var $attributes = array(); + /** * This node's children * @@ -77,6 +85,7 @@ class XmlNode extends Object { * @access public */ var $children = array(); + /** * Reference to parent node. * @@ -84,6 +93,7 @@ class XmlNode extends Object { * @access private */ var $__parent = null; + /** * Constructor. * @@ -125,6 +135,7 @@ class XmlNode extends Object { } return false; } + /** * Adds a namespace to the current node * @@ -138,6 +149,7 @@ class XmlNode extends Object { } return false; } + /** * Creates an XmlNode object that can be appended to this document or a node in it * @@ -151,6 +163,7 @@ class XmlNode extends Object { $node->setParent($this); return $node; } + /** * Creates an XmlElement object that can be appended to this document or a node in it * @@ -165,6 +178,7 @@ class XmlNode extends Object { $element->setParent($this); return $element; } + /** * Creates an XmlTextNode object that can be appended to this document or a node in it * @@ -176,6 +190,7 @@ class XmlNode extends Object { $node->setParent($this); return $node; } + /** * Gets the XML element properties from an object. * @@ -281,6 +296,7 @@ class XmlNode extends Object { } return $children; } + /** * Gets the tag-specific options for the given node name * @@ -308,6 +324,7 @@ class XmlNode extends Object { } return null; } + /** * Returns the fully-qualified XML node name, with namespace * @@ -322,6 +339,7 @@ class XmlNode extends Object { } return $this->name; } + /** * Sets the parent node of this XmlNode. * @@ -349,6 +367,7 @@ class XmlNode extends Object { $this->__parent =& $parent; } } + /** * Returns a copy of self. * @@ -358,6 +377,7 @@ class XmlNode extends Object { function cloneNode() { return clone($this); } + /** * Compares $node to this XmlNode object * @@ -369,6 +389,7 @@ class XmlNode extends Object { $keys = array(get_object_vars($this), get_object_vars($node)); return ($keys[0] === $keys[1]); } + /** * Append given node as a child. * @@ -423,6 +444,7 @@ class XmlNode extends Object { return $child; } + /** * Returns first child node, or null if empty. * @@ -437,6 +459,7 @@ class XmlNode extends Object { return $return; } } + /** * Returns last child node, or null if empty. * @@ -451,6 +474,7 @@ class XmlNode extends Object { return $return; } } + /** * Returns child node with given ID. * @@ -476,6 +500,7 @@ class XmlNode extends Object { } return $null; } + /** * Gets a list of childnodes with the given tag name. * @@ -493,6 +518,7 @@ class XmlNode extends Object { } return $nodes; } + /** * Gets a reference to the next child node in the list of this node's parent. * @@ -512,6 +538,7 @@ class XmlNode extends Object { } return $null; } + /** * Gets a reference to the previous child node in the list of this node's parent. * @@ -531,6 +558,7 @@ class XmlNode extends Object { } return $null; } + /** * Returns parent node. * @@ -540,6 +568,7 @@ class XmlNode extends Object { function &parent() { return $this->__parent; } + /** * Returns the XML document to which this node belongs * @@ -556,6 +585,7 @@ class XmlNode extends Object { } return $document; } + /** * Returns true if this structure has child nodes. * @@ -568,6 +598,7 @@ class XmlNode extends Object { } return false; } + /** * Returns this XML structure as a string. * @@ -651,6 +682,7 @@ class XmlNode extends Object { } return $d; } + /** * Return array representation of current object. * @@ -717,6 +749,7 @@ class XmlNode extends Object { } return $out; } + /** * Returns data from toString when this object is converted to a string. * @@ -726,6 +759,7 @@ class XmlNode extends Object { function __toString() { return $this->toString(); } + /** * Debug method. Deletes the parent. Also deletes this node's children, * if given the $recursive parameter. @@ -761,6 +795,7 @@ class Xml extends XmlNode { * @access private */ var $__parser; + /** * File handle to XML indata file. * @@ -768,6 +803,7 @@ class Xml extends XmlNode { * @access private */ var $__file; + /** * Raw XML string data (for loading purposes) * @@ -858,6 +894,7 @@ class Xml extends XmlNode { // $this->encoding = Configure::read('App.encoding'); // } } + /** * Initialize XML object from a given XML string. Returns false on error. * @@ -886,6 +923,7 @@ class Xml extends XmlNode { } return $this->parse(); } + /** * Parses and creates XML nodes from the __rawData property. * @@ -928,6 +966,7 @@ class Xml extends XmlNode { } return true; } + /** * Initializes the XML parser resource * @@ -942,6 +981,7 @@ class Xml extends XmlNode { xml_parser_set_option($this->__parser, XML_OPTION_SKIP_WHITE, 1); } } + /** * Returns a string representation of the XML object * @@ -955,6 +995,7 @@ class Xml extends XmlNode { function compose($options = array()) { return $this->toString($options); } + /** * If debug mode is on, this method echoes an error message. * @@ -968,6 +1009,7 @@ class Xml extends XmlNode { echo $msg . " " . $code . " " . $line; } } + /** * Returns a string with a textual description of the error code, or FALSE if no description was found. * @@ -992,6 +1034,7 @@ class Xml extends XmlNode { $return = null; return $return; } + /** * Get previous element. NOT implemented. * @@ -1002,6 +1045,7 @@ class Xml extends XmlNode { $return = null; return $return; } + /** * Get parent element. NOT implemented. * @@ -1012,6 +1056,7 @@ class Xml extends XmlNode { $return = null; return $return; } + /** * Adds a namespace to the current document * @@ -1028,6 +1073,7 @@ class Xml extends XmlNode { } return parent::addNamespace($prefix, $url); } + /** * Removes a namespace to the current document * @@ -1043,6 +1089,7 @@ class Xml extends XmlNode { } return parent::removeNamespace($prefix); } + /** * Return string representation of current object. * @@ -1067,6 +1114,7 @@ class Xml extends XmlNode { return $data; } + /** * Return a header used on the first line of the xml file * @@ -1097,6 +1145,7 @@ class Xml extends XmlNode { xml_parser_free($this->__parser); } } + /** * Adds a namespace to any XML documents generated or parsed * @@ -1115,6 +1164,7 @@ class Xml extends XmlNode { } return false; } + /** * Resolves current namespace * @@ -1137,6 +1187,7 @@ class Xml extends XmlNode { } return array($name => $url); } + /** * Alias to Xml::addNs * @@ -1146,6 +1197,7 @@ class Xml extends XmlNode { function addGlobalNamespace($name, $url = null) { return Xml::addGlobalNs($name, $url); } + /** * Removes a namespace added in addNs() * @@ -1172,6 +1224,7 @@ class Xml extends XmlNode { } return false; } + /** * Alias to Xml::removeNs * @@ -1181,6 +1234,7 @@ class Xml extends XmlNode { function removeGlobalNamespace($name) { return Xml::removeGlobalNs($name); } + /** * Sets/gets global XML options * @@ -1195,11 +1249,13 @@ class Xml extends XmlNode { return $_this->options; } } + /** * The XML Element * */ class XmlElement extends XmlNode { + /** * Construct an Xml element * @@ -1213,6 +1269,7 @@ class XmlElement extends XmlNode { parent::__construct($name, $value, $namespace); $this->addAttribute($attributes); } + /** * Get all the attributes for this element * @@ -1221,6 +1278,7 @@ class XmlElement extends XmlNode { function attributes() { return $this->attributes; } + /** * Add attributes to this element * @@ -1257,6 +1315,7 @@ class XmlElement extends XmlNode { } return false; } + /** * Remove attributes to this element * @@ -1282,18 +1341,21 @@ class XmlElement extends XmlNode { * @since CakePHP v .1.2.6000 */ class XmlTextNode extends XmlNode { + /** * Harcoded XML node name, represents this object as a text node * * @var string */ var $name = '#text'; + /** * The text/data value which this node contains * * @var string */ var $value = null; + /** * Construct text node with the given parent object and data * @@ -1303,6 +1365,7 @@ class XmlTextNode extends XmlNode { function __construct($value = null) { $this->value = $value; } + /** * Looks for child nodes in this element * @@ -1311,6 +1374,7 @@ class XmlTextNode extends XmlNode { function hasChildren() { return false; } + /** * Append an XML node: XmlTextNode does not support this operation * @@ -1320,6 +1384,7 @@ class XmlTextNode extends XmlNode { function append() { return false; } + /** * Return string representation of current text node object. * @@ -1350,6 +1415,7 @@ class XmlTextNode extends XmlNode { return $val; } } + /** * Manages application-wide namespaces and XML parsing/generation settings. * Private class, used exclusively within scope of XML class. @@ -1365,6 +1431,7 @@ class XmlManager { * @access public */ var $namespaces = array(); + /** * Global XML document parsing/generation settings. * @@ -1372,6 +1439,7 @@ class XmlManager { * @access public */ var $options = array(); + /** * Map of common namespace URIs * @@ -1390,6 +1458,7 @@ class XmlManager { 'xhtml' => 'http://www.w3.org/1999/xhtml', // XHTML, 'atom' => 'http://www.w3.org/2005/Atom' // Atom ); + /** * Returns a reference to the global XML object that manages app-wide XML settings * diff --git a/cake/tests/cases/basics.test.php b/cake/tests/cases/basics.test.php index c7ec6a803..972fa0f92 100644 --- a/cake/tests/cases/basics.test.php +++ b/cake/tests/cases/basics.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * BasicsTest file * @@ -26,6 +27,7 @@ */ require_once CAKE . 'basics.php'; App::import('Core', 'Folder'); + /** * BasicsTest class * @@ -33,6 +35,7 @@ App::import('Core', 'Folder'); * @subpackage cake.tests.cases */ class BasicsTest extends CakeTestCase { + /** * setUp method * @@ -45,6 +48,7 @@ class BasicsTest extends CakeTestCase { )); $this->_language = Configure::read('Config.language'); } + /** * tearDown method * @@ -55,6 +59,7 @@ class BasicsTest extends CakeTestCase { App::build(); Configure::write('Config.language', $this->_language); } + /** * testHttpBase method * @@ -111,10 +116,10 @@ class BasicsTest extends CakeTestCase { $_SERVER['HTTPS'] = 'off'; $this->assertFalse(env('HTTPS')); - + $_SERVER['HTTPS'] = false; $this->assertFalse(env('HTTPS')); - + $_SERVER['HTTPS'] = ''; $this->assertFalse(env('HTTPS')); @@ -142,6 +147,7 @@ class BasicsTest extends CakeTestCase { $_SERVER = $__SERVER; $_ENV = $__ENV; } + /** * test uses() * @@ -159,6 +165,7 @@ class BasicsTest extends CakeTestCase { $this->assertTrue(class_exists('Security')); $this->assertTrue(class_exists('Sanitize')); } + /** * Test h() * @@ -175,6 +182,7 @@ class BasicsTest extends CakeTestCase { $expected = array('this & that', '<p>Which one</p>'); $this->assertEqual($expected, $result); } + /** * Test a() * @@ -185,6 +193,7 @@ class BasicsTest extends CakeTestCase { $result = a('this', 'that', 'bar'); $this->assertEqual(array('this', 'that', 'bar'), $result); } + /** * Test aa() * @@ -200,6 +209,7 @@ class BasicsTest extends CakeTestCase { $expected = array('a' => 'b', 'c' => 'd', 'e' => null); $this->assertEqual($result, $expected); } + /** * Test am() * @@ -215,6 +225,7 @@ class BasicsTest extends CakeTestCase { $expected = array('one' => array(4, 5),'two' => array('foo')); $this->assertEqual($result, $expected); } + /** * test cache() * @@ -247,6 +258,7 @@ class BasicsTest extends CakeTestCase { Configure::write('Cache.disable', $_cacheDisable); } + /** * test clearCache() * @@ -289,6 +301,7 @@ class BasicsTest extends CakeTestCase { $this->assertFalse(file_exists(CACHE . 'models' . DS . 'basics_test_2.cache')); $this->assertFalse(file_exists(CACHE . 'models' . DS . 'basics_test_3.cache')); } + /** * test __() * @@ -312,6 +325,7 @@ class BasicsTest extends CakeTestCase { $expected = 'Plural Rule 1 (from core translated)'; $this->assertEqual($result, $expected); } + /** * test __n() * @@ -339,6 +353,7 @@ class BasicsTest extends CakeTestCase { $expected = '%d = 0 or > 1 (from core translated)'; $this->assertEqual($result, $expected); } + /** * test __d() * @@ -366,6 +381,7 @@ class BasicsTest extends CakeTestCase { $expected = 'Plural Rule 1 (from core translated)'; $this->assertEqual($result, $expected); } + /** * test __dn() * @@ -397,6 +413,7 @@ class BasicsTest extends CakeTestCase { $expected = '%d = 0 or > 1 (from core translated)'; $this->assertEqual($result, $expected); } + /** * test __c() * @@ -420,6 +437,7 @@ class BasicsTest extends CakeTestCase { $expected = 'Plural Rule 1 (from core translated)'; $this->assertEqual($result, $expected); } + /** * test __dc() * @@ -451,6 +469,7 @@ class BasicsTest extends CakeTestCase { $expected = 'Plural Rule 1 (from core translated)'; $this->assertEqual($result, $expected); } + /** * test __dcn() * @@ -478,6 +497,7 @@ class BasicsTest extends CakeTestCase { $expected = '%d = 1 (from core translated)'; $this->assertEqual($result, $expected); } + /** * test LogError() * @@ -495,6 +515,7 @@ class BasicsTest extends CakeTestCase { $this->assertNoPattern("/Error: Testing with\nmulti-line\nstring/", $result); $this->assertPattern('/Error: Testing with multi-line string/', $result); } + /** * test fileExistsInPath() * @@ -539,6 +560,7 @@ class BasicsTest extends CakeTestCase { ini_set('include_path', $_includePath); } + /** * test convertSlash() * @@ -554,6 +576,7 @@ class BasicsTest extends CakeTestCase { $expected = 'path_to_location'; $this->assertEqual($result, $expected); } + /** * test debug() * @@ -577,6 +600,7 @@ class BasicsTest extends CakeTestCase { $pattern .= '.*line.*' . (__LINE__ - 4) . '.*<div>this-is-a-test<\/div>.*/s'; $this->assertPattern($pattern, $result); } + /** * test pr() * @@ -596,6 +620,7 @@ class BasicsTest extends CakeTestCase { $expected = "<pre>Array\n(\n [this] => is\n [a] => test\n)\n</pre>"; $this->assertEqual($result, $expected); } + /** * test params() * @@ -613,6 +638,7 @@ class BasicsTest extends CakeTestCase { $multiple = array(array('weekend'), 'jean-luc', 'godard'); $this->assertEqual(params($multiple), $multiple); } + /** * test stripslashes_deep() * @@ -650,6 +676,7 @@ class BasicsTest extends CakeTestCase { ); $this->assertEqual(stripslashes_deep($nested), $expected); } + /** * test stripslashes_deep() with magic_quotes_sybase on * @@ -683,6 +710,7 @@ class BasicsTest extends CakeTestCase { ); $this->assertEqual(stripslashes_deep($nested), $expected); } + /** * test ife() * diff --git a/cake/tests/cases/console/cake.test.php b/cake/tests/cases/console/cake.test.php index 901dfc685..333b105fa 100644 --- a/cake/tests/cases/console/cake.test.php +++ b/cake/tests/cases/console/cake.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ShellDispatcherTest file * @@ -34,6 +35,7 @@ if (!class_exists('ShellDispatcher')) { require CAKE . 'console' . DS . 'cake.php'; ob_end_clean(); } + /** * TestShellDispatcher class * @@ -41,6 +43,7 @@ if (!class_exists('ShellDispatcher')) { * @subpackage cake.tests.cases.console */ class TestShellDispatcher extends ShellDispatcher { + /** * params property * @@ -48,6 +51,7 @@ class TestShellDispatcher extends ShellDispatcher { * @access public */ var $params = array(); + /** * stdout property * @@ -55,6 +59,7 @@ class TestShellDispatcher extends ShellDispatcher { * @access public */ var $stdout = ''; + /** * stderr property * @@ -62,6 +67,7 @@ class TestShellDispatcher extends ShellDispatcher { * @access public */ var $stderr = ''; + /** * stopped property * @@ -69,6 +75,7 @@ class TestShellDispatcher extends ShellDispatcher { * @access public */ var $stopped = null; + /** * _initEnvironment method * @@ -77,6 +84,7 @@ class TestShellDispatcher extends ShellDispatcher { */ function _initEnvironment() { } + /** * stderr method * @@ -86,6 +94,7 @@ class TestShellDispatcher extends ShellDispatcher { function stderr($string) { $this->stderr .= rtrim($string, ' '); } + /** * stdout method * @@ -99,6 +108,7 @@ class TestShellDispatcher extends ShellDispatcher { $this->stdout .= rtrim($string, ' '); } } + /** * _stop method * @@ -109,6 +119,7 @@ class TestShellDispatcher extends ShellDispatcher { $this->stopped = 'Stopped with status: ' . $status; } } + /** * ShellDispatcherTest * @@ -116,6 +127,7 @@ class TestShellDispatcher extends ShellDispatcher { * @subpackage cake.tests.cases.libs */ class ShellDispatcherTest extends UnitTestCase { + /** * setUp method * @@ -133,6 +145,7 @@ class ShellDispatcherTest extends UnitTestCase { ) ), true); } + /** * tearDown method * @@ -142,6 +155,7 @@ class ShellDispatcherTest extends UnitTestCase { function tearDown() { App::build(); } + /** * testParseParams method * @@ -395,6 +409,7 @@ class ShellDispatcherTest extends UnitTestCase { $Dispatcher->parseParams($params); $this->assertEqual($expected, $Dispatcher->params); } + /** * testBuildPaths method * @@ -417,6 +432,7 @@ class ShellDispatcherTest extends UnitTestCase { $this->assertIdentical(array_diff($result, $expected), array()); $this->assertIdentical(array_diff($expected, $result), array()); } + /** * testDispatch method * @@ -433,6 +449,7 @@ class ShellDispatcherTest extends UnitTestCase { $Dispatcher =& new TestShellDispatcher(array('test_plugin_two.welcome', 'say_hello')); $this->assertPattern('/This is the say_hello method called from TestPluginTwo.WelcomeShell/', $Dispatcher->stdout); } + /** * testHelpCommand method * diff --git a/cake/tests/cases/console/libs/acl.test.php b/cake/tests/cases/console/libs/acl.test.php index df4e337d8..30962e90a 100644 --- a/cake/tests/cases/console/libs/acl.test.php +++ b/cake/tests/cases/console/libs/acl.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * AclShell Test file * @@ -47,6 +48,7 @@ Mock::generatePartial( 'AclShell', 'MockAclShell', array('in', 'out', 'hr', 'createFile') ); + /** * AclShellTest class * @@ -55,6 +57,7 @@ Mock::generatePartial( */ class AclShellTest extends CakeTestCase { var $fixtures = array('core.aco', 'core.aro', 'core.aros_aco'); + /** * configure Configure for testcase * @@ -77,6 +80,7 @@ class AclShellTest extends CakeTestCase { Configure::write('Acl.database', $this->_aclDb); Configure::write('Acl.classname', $this->_aclClass); } + /** * setUp method * diff --git a/cake/tests/cases/console/libs/api.test.php b/cake/tests/cases/console/libs/api.test.php index 0f0360059..5bc427822 100644 --- a/cake/tests/cases/console/libs/api.test.php +++ b/cake/tests/cases/console/libs/api.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * TestTaskTest file * @@ -57,6 +58,7 @@ Mock::generatePartial( * @subpackage cake.tests.cases.console.libs.tasks */ class TestTaskTest extends CakeTestCase { + /** * setUp method * @@ -68,6 +70,7 @@ class TestTaskTest extends CakeTestCase { $this->Shell =& new MockApiShell($this->Dispatcher); $this->Shell->Dispatch = new $this->Dispatcher; } + /** * tearDown method * @@ -77,6 +80,7 @@ class TestTaskTest extends CakeTestCase { function endTest() { ClassRegistry::flush(); } + /** * Test that method names are detected properly including those with no arguments. * diff --git a/cake/tests/cases/console/libs/bake.test.php b/cake/tests/cases/console/libs/bake.test.php index 925953e09..4bf6e708f 100644 --- a/cake/tests/cases/console/libs/bake.test.php +++ b/cake/tests/cases/console/libs/bake.test.php @@ -56,12 +56,14 @@ if (!class_exists('UsersController')) { } class BakeShellTestCase extends CakeTestCase { + /** * fixtures * * @var array **/ var $fixtures = array('core.user'); + /** * start test * @@ -73,6 +75,7 @@ class BakeShellTestCase extends CakeTestCase { $this->Shell->Dispatch =& $this->Dispatch; $this->Shell->Dispatch->shellPaths = App::path('shells'); } + /** * endTest method * @@ -81,6 +84,7 @@ class BakeShellTestCase extends CakeTestCase { function endTest() { unset($this->Dispatch, $this->Shell); } + /** * test bake all * diff --git a/cake/tests/cases/console/libs/shell.test.php b/cake/tests/cases/console/libs/shell.test.php index d622cda54..3936824b3 100644 --- a/cake/tests/cases/console/libs/shell.test.php +++ b/cake/tests/cases/console/libs/shell.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ShellTest file * @@ -41,6 +42,7 @@ Mock::generatePartial( 'ShellDispatcher', 'TestShellMockShellDispatcher', array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment') ); + /** * TestShell class * @@ -49,6 +51,7 @@ Mock::generatePartial( */ class TestShell extends Shell { } + /** * TestAppleTask class * @@ -57,6 +60,7 @@ class TestShell extends Shell { */ class TestAppleTask extends Shell { } + /** * TestBananaTask class * @@ -65,6 +69,7 @@ class TestAppleTask extends Shell { */ class TestBananaTask extends Shell { } + /** * ShellTest class * @@ -72,6 +77,7 @@ class TestBananaTask extends Shell { * @subpackage cake.tests.cases.console.libs */ class ShellTest extends CakeTestCase { + /** * Fixtures used in this test case * @@ -82,6 +88,7 @@ class ShellTest extends CakeTestCase { 'core.post', 'core.comment', 'core.article', 'core.user', 'core.tag', 'core.articles_tag', 'core.attachment' ); + /** * setUp method * @@ -92,6 +99,7 @@ class ShellTest extends CakeTestCase { $this->Dispatcher =& new TestShellMockShellDispatcher(); $this->Shell =& new TestShell($this->Dispatcher); } + /** * tearDown method * @@ -101,6 +109,7 @@ class ShellTest extends CakeTestCase { function tearDown() { ClassRegistry::flush(); } + /** * testConstruct method * @@ -112,6 +121,7 @@ class ShellTest extends CakeTestCase { $this->assertEqual($this->Shell->name, 'TestShell'); $this->assertEqual($this->Shell->alias, 'TestShell'); } + /** * testInitialize method * @@ -144,6 +154,7 @@ class ShellTest extends CakeTestCase { App::build(); } + /** * testOut method * @@ -157,6 +168,7 @@ class ShellTest extends CakeTestCase { $this->Shell->Dispatch->expectAt(1, 'stdout', array("Just\na\ntest\n", true)); $this->Shell->out(array('Just', 'a', 'test')); } + /** * testIn method * @@ -194,6 +206,7 @@ class ShellTest extends CakeTestCase { $result = $this->Shell->in('Just a test?', 'y/n', 'n'); $this->assertEqual($result, 'n'); } + /** * testLoadTasks method * @@ -236,6 +249,7 @@ class ShellTest extends CakeTestCase { $this->assertIsA($this->Shell->TestApple, 'TestAppleTask'); $this->assertIsA($this->Shell->TestBanana, 'TestBananaTask'); } + /** * testShortPath method * @@ -277,6 +291,7 @@ class ShellTest extends CakeTestCase { $expected = DS . basename(APP) . DS . 'index.php'; $this->assertEqual($this->Shell->shortPath($path), $expected); } + /** * testCreateFile method * @@ -327,6 +342,7 @@ class ShellTest extends CakeTestCase { $Folder = new Folder($path); $Folder->delete(); } + /** * testCreateFileWindows method * diff --git a/cake/tests/cases/console/libs/tasks/controller.test.php b/cake/tests/cases/console/libs/tasks/controller.test.php index f43ce27b5..dfcfcc705 100644 --- a/cake/tests/cases/console/libs/tasks/controller.test.php +++ b/cake/tests/cases/console/libs/tasks/controller.test.php @@ -65,7 +65,7 @@ $imported = $imported || App::import('Model', 'Tag'); if (!$imported) { define('ARTICLE_MODEL_CREATED', true); App::import('Core', 'Model'); - + class Article extends Model { var $name = 'Article'; var $hasMany = array('Comment'); @@ -81,12 +81,14 @@ if (!$imported) { * @subpackage cake.tests.cases.console.libs.tasks */ class ControllerTaskTest extends CakeTestCase { + /** * fixtures * * @var array **/ var $fixtures = array('core.article', 'core.comment', 'core.articles_tag', 'core.tag'); + /** * startTest method * @@ -104,6 +106,7 @@ class ControllerTaskTest extends CakeTestCase { $this->Task->Project =& new ControllerMockProjectTask($this->Task->Dispatch); $this->Task->Test =& new ControllerMockTestTask(); } + /** * endTest method * @@ -114,6 +117,7 @@ class ControllerTaskTest extends CakeTestCase { unset($this->Task, $this->Dispatcher); ClassRegistry::flush(); } + /** * test ListAll * @@ -140,8 +144,9 @@ class ControllerTaskTest extends CakeTestCase { $result = $this->Task->listAll(); $expected = array('articles', 'articles_tags', 'comments', 'tags'); - $this->assertEqual($result, $expected); + $this->assertEqual($result, $expected); } + /** * Test that getName interacts with the user and returns the controller name. * @@ -168,6 +173,7 @@ class ControllerTaskTest extends CakeTestCase { $result = $this->Task->getName('test_suite'); $this->Task->expectOnce('err'); } + /** * test helper interactions * @@ -190,6 +196,7 @@ class ControllerTaskTest extends CakeTestCase { $expected = array('Javascript', 'Ajax', 'CustomOne'); $this->assertEqual($result, $expected); } + /** * test component interactions * @@ -212,6 +219,7 @@ class ControllerTaskTest extends CakeTestCase { $expected = array('RequestHandler', 'Security'); $this->assertEqual($result, $expected); } + /** * test Confirming controller user interaction * @@ -229,6 +237,7 @@ class ControllerTaskTest extends CakeTestCase { $this->Task->expectAt(4, 'out', array("Components:\n\tAcl, Auth")); $this->Task->confirmController($controller, $scaffold, $helpers, $components); } + /** * test the bake method * @@ -251,6 +260,7 @@ class ControllerTaskTest extends CakeTestCase { $this->assertNoPattern('/helpers/', $result); $this->assertNoPattern('/components/', $result); } + /** * test bake() with a -plugin param * @@ -265,20 +275,21 @@ class ControllerTaskTest extends CakeTestCase { $path = APP . 'plugins' . DS . 'controller_test' . DS . 'controllers' . DS . 'articles_controller.php'; $this->Task->expectAt(0, 'createFile', array($path, '*')); $this->Task->bake('Articles', '--actions--', array(), array(), array()); - + $this->Task->plugin = 'controllerTest'; $path = APP . 'plugins' . DS . 'controller_test' . DS . 'controllers' . DS . 'articles_controller.php'; $this->Task->expectAt(1, 'createFile', array( $path, new PatternExpectation('/ArticlesController extends ControllerTestAppController/'))); $this->Task->bake('Articles', '--actions--', array(), array(), array()); } + /** * test that bakeActions is creating the correct controller Code. (Using sessions) * * @return void **/ function testBakeActionsUsingSessions() { - $skip = $this->skipIf(!defined('ARTICLE_MODEL_CREATED'), + $skip = $this->skipIf(!defined('ARTICLE_MODEL_CREATED'), 'Testing bakeActions requires Article, Comment & Tag Model to be undefined. %s'); if ($skip) { return; @@ -314,13 +325,14 @@ class ControllerTaskTest extends CakeTestCase { $this->assertTrue(strpos($result, 'function admin_edit($id = null)') !== false); $this->assertTrue(strpos($result, 'function admin_delete($id = null)') !== false); } + /** * Test baking with Controller::flash() or no sessions. * * @return void **/ function testBakeActionsWithNoSessions() { - $skip = $this->skipIf(!defined('ARTICLE_MODEL_CREATED'), + $skip = $this->skipIf(!defined('ARTICLE_MODEL_CREATED'), 'Testing bakeActions requires Article, Tag, Comment Models to be undefined. %s'); if ($skip) { return; @@ -348,6 +360,7 @@ class ControllerTaskTest extends CakeTestCase { $this->assertTrue(strpos($result, 'if ($this->Article->del($id))') !== false); $this->assertTrue(strpos($result, "\$this->flash(__('Article deleted', true), array('action' => 'index'))") !== false); } + /** * test baking a test * @@ -363,6 +376,7 @@ class ControllerTaskTest extends CakeTestCase { $this->assertEqual($this->Task->plugin, $this->Task->Test->plugin); $this->assertEqual($this->Task->connection, $this->Task->Test->connection); } + /** * test Interactive mode. * @@ -386,6 +400,7 @@ class ControllerTaskTest extends CakeTestCase { $filename = '/my/path/articles_controller.php'; $this->Task->expectAt(0, 'createFile', array($filename, new PatternExpectation('/class ArticlesController/'))); } + /** * test that execute runs all when the first arg == all * @@ -410,6 +425,7 @@ class ControllerTaskTest extends CakeTestCase { $this->Task->execute(); } + /** * test that `cake bake controller foo scaffold` works. * @@ -432,13 +448,14 @@ class ControllerTaskTest extends CakeTestCase { $this->Task->execute(); } + /** * test that `cake bake controller foo scaffold admin` works * * @return void **/ function testExecuteWithAdminScaffoldParams() { - $skip = $this->skipIf(!defined('ARTICLE_MODEL_CREATED'), + $skip = $this->skipIf(!defined('ARTICLE_MODEL_CREATED'), 'Execute with scaffold admin param requires no Article, Tag or Comment model to be defined. %s'); if ($skip) { return; diff --git a/cake/tests/cases/console/libs/tasks/db_config.test.php b/cake/tests/cases/console/libs/tasks/db_config.test.php index bfd999e0d..b45a9d060 100644 --- a/cake/tests/cases/console/libs/tasks/db_config.test.php +++ b/cake/tests/cases/console/libs/tasks/db_config.test.php @@ -54,7 +54,7 @@ class TEST_DATABASE_CONFIG { 'database' => 'database_name', 'prefix' => '', ); - + var $otherOne = array( 'driver' => 'mysql', 'persistent' => false, @@ -73,6 +73,7 @@ class TEST_DATABASE_CONFIG { * @subpackage cake.tests.cases.console.libs.tasks */ class DbConfigTaskTest extends CakeTestCase { + /** * startTest method * @@ -88,6 +89,7 @@ class DbConfigTaskTest extends CakeTestCase { $this->Task->params['working'] = rtrim(APP, '/'); $this->Task->databaseClassName = 'TEST_DATABASE_CONFIG'; } + /** * endTest method * @@ -98,6 +100,7 @@ class DbConfigTaskTest extends CakeTestCase { unset($this->Task, $this->Dispatcher); ClassRegistry::flush(); } + /** * Test the getConfig method. * @@ -108,6 +111,7 @@ class DbConfigTaskTest extends CakeTestCase { $result = $this->Task->getConfig(); $this->assertEqual($result, 'otherOne'); } + /** * test that initialize sets the path up. * @@ -118,8 +122,9 @@ class DbConfigTaskTest extends CakeTestCase { $this->Task->initialize(); $this->assertFalse(empty($this->Task->path)); $this->assertEqual($this->Task->path, APP . 'config' . DS); - + } + /** * test execute and by extension __interactive * diff --git a/cake/tests/cases/console/libs/tasks/extract.test.php b/cake/tests/cases/console/libs/tasks/extract.test.php index d393a5275..f52ef25fb 100644 --- a/cake/tests/cases/console/libs/tasks/extract.test.php +++ b/cake/tests/cases/console/libs/tasks/extract.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ExtractTaskTest file * @@ -45,6 +46,7 @@ Mock::generatePartial( 'ShellDispatcher', 'TestExtractTaskMockShellDispatcher', array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment') ); + /** * ExtractTaskTest class * @@ -52,6 +54,7 @@ Mock::generatePartial( * @subpackage cake.tests.cases.console.libs.tasks */ class ExtractTaskTest extends CakeTestCase { + /** * setUp method * @@ -62,6 +65,7 @@ class ExtractTaskTest extends CakeTestCase { $this->Dispatcher =& new TestExtractTaskMockShellDispatcher(); $this->Task =& new ExtractTask($this->Dispatcher); } + /** * tearDown method * @@ -71,6 +75,7 @@ class ExtractTaskTest extends CakeTestCase { function tearDown() { ClassRegistry::flush(); } + /** * testExecute method * diff --git a/cake/tests/cases/console/libs/tasks/fixture.test.php b/cake/tests/cases/console/libs/tasks/fixture.test.php index 9705e9452..554a98b4f 100644 --- a/cake/tests/cases/console/libs/tasks/fixture.test.php +++ b/cake/tests/cases/console/libs/tasks/fixture.test.php @@ -47,6 +47,7 @@ Mock::generatePartial( 'Shell', 'MockFixtureModelTask', array('in', 'out', 'err', 'createFile', '_stop', 'getName', 'getTable', 'listAll') ); + /** * FixtureTaskTest class * @@ -54,12 +55,14 @@ Mock::generatePartial( * @subpackage cake.tests.cases.console.libs.tasks */ class FixtureTaskTest extends CakeTestCase { + /** * fixtures * * @var array **/ var $fixtures = array('core.article', 'core.comment'); + /** * startTest method * @@ -75,6 +78,7 @@ class FixtureTaskTest extends CakeTestCase { $this->Task->Dispatch->shellPaths = App::path('shells'); $this->Task->Template->initialize(); } + /** * endTest method * @@ -85,6 +89,7 @@ class FixtureTaskTest extends CakeTestCase { unset($this->Task, $this->Dispatcher); ClassRegistry::flush(); } + /** * test that initialize sets the path * @@ -97,6 +102,7 @@ class FixtureTaskTest extends CakeTestCase { $expected = '/my/path/tests/fixtures/'; $this->assertEqual($Task->path, $expected); } + /** * test import option array generation * @@ -117,7 +123,7 @@ class FixtureTaskTest extends CakeTestCase { $result = $this->Task->importOptions('Article'); $expected = array(); $this->assertEqual($result, $expected); - + $this->Task->setReturnValueAt(5, 'in', 'n'); $this->Task->setReturnValueAt(6, 'in', 'n'); $this->Task->setReturnValueAt(7, 'in', 'y'); @@ -125,6 +131,7 @@ class FixtureTaskTest extends CakeTestCase { $expected = array('fromTable' => true); $this->assertEqual($result, $expected); } + /** * test generating a fixture with database conditions. * @@ -143,6 +150,7 @@ class FixtureTaskTest extends CakeTestCase { $this->assertPattern('/Second Article/', $result, 'Missing import data %s'); $this->assertPattern('/Third Article/', $result, 'Missing import data %s'); } + /** * test that execute passes runs bake depending with named model. * @@ -156,6 +164,7 @@ class FixtureTaskTest extends CakeTestCase { $this->Task->expectAt(0, 'createFile', array($filename, new PatternExpectation('/class ArticleFixture/'))); $this->Task->execute(); } + /** * test that execute runs all() when args[0] = all * @@ -175,6 +184,7 @@ class FixtureTaskTest extends CakeTestCase { $this->Task->expectAt(1, 'createFile', array($filename, new PatternExpectation('/class CommentFixture/'))); $this->Task->execute(); } + /** * test interactive mode of execute * @@ -183,7 +193,7 @@ class FixtureTaskTest extends CakeTestCase { function testExecuteInteractive() { $this->Task->connection = 'test_suite'; $this->Task->path = '/my/path/'; - + $this->Task->setReturnValue('in', 'y'); $this->Task->Model->setReturnValue('getName', 'Article'); $this->Task->Model->setReturnValue('getTable', 'articles', array('Article')); @@ -192,6 +202,7 @@ class FixtureTaskTest extends CakeTestCase { $this->Task->expectAt(0, 'createFile', array($filename, new PatternExpectation('/class ArticleFixture/'))); $this->Task->execute(); } + /** * Test that bake works * @@ -225,6 +236,7 @@ class FixtureTaskTest extends CakeTestCase { $this->assertNoPattern('/var \$fields/', $result); $this->assertNoPattern('/var \$records/', $result); } + /** * Test that file generation includes headers and correct path for plugins. * @@ -241,6 +253,7 @@ class FixtureTaskTest extends CakeTestCase { $this->Task->expectAt(1, 'createFile', array($filename, new PatternExpectation('/\<\?php(.*)\?\>/ms'))); $result = $this->Task->generateFixtureFile('Article', array()); } + /** * test generating files into plugins. * diff --git a/cake/tests/cases/console/libs/tasks/model.test.php b/cake/tests/cases/console/libs/tasks/model.test.php index 540414d87..2da87d811 100644 --- a/cake/tests/cases/console/libs/tasks/model.test.php +++ b/cake/tests/cases/console/libs/tasks/model.test.php @@ -55,6 +55,7 @@ Mock::generate( Mock::generate( 'FixtureTask', 'MockModelTaskFixtureTask' ); + /** * ModelTaskTest class * @@ -62,12 +63,14 @@ Mock::generate( * @subpackage cake.tests.cases.console.libs.tasks */ class ModelTaskTest extends CakeTestCase { + /** * fixtures * * @var array **/ var $fixtures = array('core.article', 'core.comment', 'core.articles_tag', 'core.tag', 'core.category_thread'); + /** * starTest method * @@ -83,6 +86,7 @@ class ModelTaskTest extends CakeTestCase { $this->Task->Fixture =& new MockModelTaskFixtureTask(); $this->Task->Test =& new MockModelTaskFixtureTask(); } + /** * endTest method * @@ -93,6 +97,7 @@ class ModelTaskTest extends CakeTestCase { unset($this->Task, $this->Dispatcher); ClassRegistry::flush(); } + /** * Test that listAll scans the database connection and lists all the tables in it.s * @@ -107,7 +112,7 @@ class ModelTaskTest extends CakeTestCase { $result = $this->Task->listAll('test_suite'); $expected = array('articles', 'articles_tags', 'category_threads', 'comments', 'tags'); $this->assertEqual($result, $expected); - + $this->Task->expectAt(7, 'out', array('1. Article')); $this->Task->expectAt(8, 'out', array('2. ArticlesTag')); $this->Task->expectAt(9, 'out', array('3. CategoryThread')); @@ -119,6 +124,7 @@ class ModelTaskTest extends CakeTestCase { $expected = array('articles', 'articles_tags', 'category_threads', 'comments', 'tags'); $this->assertEqual($result, $expected); } + /** * Test that getName interacts with the user and returns the model name. * @@ -145,6 +151,7 @@ class ModelTaskTest extends CakeTestCase { $result = $this->Task->getName('test_suite'); $this->Task->expectOnce('err'); } + /** * Test table name interactions * @@ -162,6 +169,7 @@ class ModelTaskTest extends CakeTestCase { $expected = 'my_table'; $this->assertEqual($result, $expected); } + /** * test that initializing the validations works. * @@ -171,6 +179,7 @@ class ModelTaskTest extends CakeTestCase { $result = $this->Task->initValidations(); $this->assertTrue(in_array('notempty', $result)); } + /** * test that individual field validation works, with interactive = false * tests the guessing features of validation @@ -192,13 +201,14 @@ class ModelTaskTest extends CakeTestCase { $result = $this->Task->fieldValidation('email', array('type' => 'string', 'length' => 10, 'null' => false)); $expected = array('email' => 'email'); - + $result = $this->Task->fieldValidation('test', array('type' => 'integer', 'length' => 10, 'null' => false)); $expected = array('numeric' => 'numeric'); $result = $this->Task->fieldValidation('test', array('type' => 'boolean', 'length' => 10, 'null' => false)); $expected = array('numeric' => 'numeric'); } + /** * test that interactive field validation works and returns multiple validators. * @@ -216,6 +226,7 @@ class ModelTaskTest extends CakeTestCase { $expected = array('notempty' => 'notempty', 'maxlength' => 'maxlength'); $this->assertEqual($result, $expected); } + /** * test the validation Generation routine * @@ -276,6 +287,7 @@ class ModelTaskTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * test that finding primary key works * @@ -293,15 +305,16 @@ class ModelTaskTest extends CakeTestCase { $expected = 'my_field'; $this->assertEqual($result, $expected); } + /** * test finding Display field * * @return void **/ function testFindDisplayField() { - $fields = array('id' => array(), 'tagname' => array(), 'body' => array(), + $fields = array('id' => array(), 'tagname' => array(), 'body' => array(), 'created' => array(), 'modified' => array()); - + $this->Task->setReturnValue('in', 'n'); $this->Task->setReturnValueAt(0, 'in', 'n'); $result = $this->Task->findDisplayField($fields); @@ -312,6 +325,7 @@ class ModelTaskTest extends CakeTestCase { $result = $this->Task->findDisplayField($fields); $this->assertEqual($result, 'tagname'); } + /** * test that belongsTo generation works. * @@ -350,6 +364,7 @@ class ModelTaskTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * test that hasOne and/or hasMany relations are generated properly. * @@ -399,6 +414,7 @@ class ModelTaskTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * test that habtm generation works * @@ -422,6 +438,7 @@ class ModelTaskTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * test non interactive doAssociations * @@ -450,8 +467,9 @@ class ModelTaskTest extends CakeTestCase { ), ), ); - + } + /** * Ensure that the fixutre object is correctly called. * @@ -464,6 +482,7 @@ class ModelTaskTest extends CakeTestCase { $this->assertEqual($this->Task->plugin, $this->Task->Fixture->plugin); $this->assertEqual($this->Task->connection, $this->Task->Fixture->connection); } + /** * Ensure that the test object is correctly called. * @@ -476,6 +495,7 @@ class ModelTaskTest extends CakeTestCase { $this->assertEqual($this->Task->plugin, $this->Task->Test->plugin); $this->assertEqual($this->Task->connection, $this->Task->Test->connection); } + /** * test confirming of associations, and that when an association is hasMany * a question for the hasOne is also not asked. @@ -516,6 +536,7 @@ class ModelTaskTest extends CakeTestCase { $this->assertTrue(empty($result['hasMany'])); $this->assertTrue(empty($result['hasOne'])); } + /** * test that inOptions generates questions and only accepts a valid answer * @@ -527,7 +548,7 @@ class ModelTaskTest extends CakeTestCase { $this->Task->expectAt(1, 'out', array('2. two')); $this->Task->expectAt(2, 'out', array('3. three')); $this->Task->setReturnValueAt(0, 'in', 10); - + $this->Task->expectAt(3, 'out', array('1. one')); $this->Task->expectAt(4, 'out', array('2. two')); $this->Task->expectAt(5, 'out', array('3. three')); @@ -535,6 +556,7 @@ class ModelTaskTest extends CakeTestCase { $result = $this->Task->inOptions($options, 'Pick a number'); $this->assertEqual($result, 1); } + /** * test baking validation * @@ -562,6 +584,7 @@ class ModelTaskTest extends CakeTestCase { $pattern = '/' . preg_quote("'notempty' => array('rule' => array('notempty')),", '/') . '/'; $this->assertPattern($pattern, $result); } + /** * test baking relations * @@ -615,6 +638,7 @@ class ModelTaskTest extends CakeTestCase { $this->assertPattern('/SomethingElse/', $result); $this->assertPattern('/Comment/', $result); } + /** * test bake() with a -plugin param * @@ -626,7 +650,7 @@ class ModelTaskTest extends CakeTestCase { $path = APP . 'plugins' . DS . 'controller_test' . DS . 'models' . DS . 'article.php'; $this->Task->expectAt(0, 'createFile', array($path, '*')); $this->Task->bake('Article', array(), array()); - + $this->Task->plugin = 'controllerTest'; $path = APP . 'plugins' . DS . 'controller_test' . DS . 'models' . DS . 'article.php'; @@ -634,6 +658,7 @@ class ModelTaskTest extends CakeTestCase { $path, new PatternExpectation('/Article extends ControllerTestAppModel/'))); $this->Task->bake('Article', array(), array()); } + /** * test that execute passes runs bake depending with named model. * @@ -648,6 +673,7 @@ class ModelTaskTest extends CakeTestCase { $this->Task->expectAt(0, 'createFile', array($filename, new PatternExpectation('/class Article extends AppModel/'))); $this->Task->execute(); } + /** * test that execute runs all() when args[0] = all * @@ -679,6 +705,7 @@ class ModelTaskTest extends CakeTestCase { $this->Task->execute(); } + /** * test the interactive side of bake. * @@ -707,6 +734,7 @@ class ModelTaskTest extends CakeTestCase { $this->Task->expectAt(0, 'createFile', array($filename, new PatternExpectation('/class Article/'))); $this->Task->execute(); } + /** * test using bake interactively with a table that does not exist. * @@ -718,7 +746,7 @@ class ModelTaskTest extends CakeTestCase { $this->Task->expectOnce('_stop'); $this->Task->expectOnce('err'); - + $this->Task->setReturnValueAt(0, 'in', 'Foobar'); $this->Task->setReturnValueAt(1, 'in', 'y'); $this->Task->execute(); diff --git a/cake/tests/cases/console/libs/tasks/plugin.test.php b/cake/tests/cases/console/libs/tasks/plugin.test.php index ca07503f3..ded6640b0 100644 --- a/cake/tests/cases/console/libs/tasks/plugin.test.php +++ b/cake/tests/cases/console/libs/tasks/plugin.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * PluginTask Test file * @@ -56,6 +57,7 @@ Mock::generate('ModelTask', 'PluginTestMockModelTask'); * @subpackage cake.tests.cases.console.libs.tasks */ class PluginTaskTest extends CakeTestCase { + /** * startTest method * @@ -69,6 +71,7 @@ class PluginTaskTest extends CakeTestCase { $this->Task->Dispatch =& $this->Dispatcher; $this->Task->path = TMP . 'tests' . DS; } + /** * startCase methods * @@ -79,6 +82,7 @@ class PluginTaskTest extends CakeTestCase { $this->_testPath = array_push($paths, TMP . 'tests' . DS); App::build(array('plugins' => $paths)); } + /** * endCase * @@ -87,6 +91,7 @@ class PluginTaskTest extends CakeTestCase { function endCase() { App::build(array('plugins' => $this->_paths)); } + /** * endTest method * @@ -96,6 +101,7 @@ class PluginTaskTest extends CakeTestCase { function endTest() { ClassRegistry::flush(); } + /** * test bake() * @@ -149,7 +155,7 @@ class PluginTaskTest extends CakeTestCase { ); $this->assertTrue( - is_dir($path . DS . 'tests' . DS . 'cases' . DS . 'controllers'), + is_dir($path . DS . 'tests' . DS . 'cases' . DS . 'controllers'), 'No controllers cases dir %s' ); $this->assertTrue( @@ -184,6 +190,7 @@ class PluginTaskTest extends CakeTestCase { $Folder =& new Folder($this->Task->path . 'bake_test_plugin'); $Folder->delete(); } + /** * test execute with no args, flowing into interactive, * @@ -205,6 +212,7 @@ class PluginTaskTest extends CakeTestCase { $this->Task->args = array(); $this->Task->execute(); } + /** * Test Execute * @@ -228,6 +236,7 @@ class PluginTaskTest extends CakeTestCase { $Folder =& new Folder($this->Task->path . 'bake_test_plugin'); $Folder->delete(); } + /** * test execute chaining into MVC parts * diff --git a/cake/tests/cases/console/libs/tasks/project.test.php b/cake/tests/cases/console/libs/tasks/project.test.php index 928f54b0b..1488796cd 100644 --- a/cake/tests/cases/console/libs/tasks/project.test.php +++ b/cake/tests/cases/console/libs/tasks/project.test.php @@ -53,6 +53,7 @@ Mock::generatePartial( * @subpackage cake.tests.cases.console.libs.tasks */ class ProjectTaskTest extends CakeTestCase { + /** * startTest method * @@ -66,6 +67,7 @@ class ProjectTaskTest extends CakeTestCase { $this->Task->Dispatch =& $this->Dispatcher; $this->Task->path = TMP . 'tests' . DS; } + /** * endTest method * @@ -78,6 +80,7 @@ class ProjectTaskTest extends CakeTestCase { $Folder =& new Folder($this->Task->path . 'bake_test_app'); $Folder->delete(); } + /** * creates a test project that is used for testing project task. * @@ -89,6 +92,7 @@ class ProjectTaskTest extends CakeTestCase { $this->Task->setReturnValueAt(1, 'in', 'n'); $this->Task->bake($this->Task->path . 'bake_test_app', $skel); } + /** * test bake() method and directory creation. * @@ -109,6 +113,7 @@ class ProjectTaskTest extends CakeTestCase { $this->assertTrue(is_dir($path . DS . 'tests' . DS . 'groups'), 'No groups dir %s'); $this->assertTrue(is_dir($path . DS . 'tests' . DS . 'fixtures'), 'No fixtures dir %s'); } + /** * test generation of Security.salt * @@ -125,6 +130,7 @@ class ProjectTaskTest extends CakeTestCase { $contents = $file->read(); $this->assertNoPattern('/DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi/', $contents, 'Default Salt left behind. %s'); } + /** * test getAdmin method, and that it returns Routing.admin or writes to config file. * @@ -143,6 +149,7 @@ class ProjectTaskTest extends CakeTestCase { $result = $this->Task->getAdmin(); $this->assertEqual($result, 'super_duper_admin_'); } + /** * Test execute method with one param to destination folder. * diff --git a/cake/tests/cases/console/libs/tasks/template.test.php b/cake/tests/cases/console/libs/tasks/template.test.php index 6d13ae2d7..66af81bc8 100644 --- a/cake/tests/cases/console/libs/tasks/template.test.php +++ b/cake/tests/cases/console/libs/tasks/template.test.php @@ -52,6 +52,7 @@ Mock::generatePartial( * @subpackage cake.tests.cases.console.libs.tasks */ class TemplateTaskTest extends CakeTestCase { + /** * startTest method * @@ -64,6 +65,7 @@ class TemplateTaskTest extends CakeTestCase { $this->Task->Dispatch =& $this->Dispatcher; $this->Task->Dispatch->shellPaths = App::path('shells'); } + /** * endTest method * @@ -74,6 +76,7 @@ class TemplateTaskTest extends CakeTestCase { unset($this->Task, $this->Dispatcher); ClassRegistry::flush(); } + /** * test that set sets variables * @@ -90,8 +93,9 @@ class TemplateTaskTest extends CakeTestCase { $this->assertTrue(isset($this->Task->templateVars['four'])); $this->assertEqual($this->Task->templateVars['four'], 'five'); } + /** - * test finding themes installed in + * test finding themes installed in * * @return void **/ @@ -101,6 +105,7 @@ class TemplateTaskTest extends CakeTestCase { $this->Task->initialize(); $this->assertEqual($this->Task->templatePaths, array('default' => $consoleLibs . 'templates' . DS . 'default' . DS)); } + /** * test getting the correct theme name. Ensure that with only one theme, or a theme param * that the user is not bugged. If there are more, find and return the correct theme name @@ -126,6 +131,7 @@ class TemplateTaskTest extends CakeTestCase { $this->assertEqual($result, $defaultTheme); $this->assertEqual($this->Dispatcher->params['theme'], 'default'); } + /** * test generate * @@ -140,6 +146,7 @@ class TemplateTaskTest extends CakeTestCase { $expected = "I got rendered\nfoo"; $this->assertEqual($result, $expected); } + /** * test generate with a missing template in the chosen theme. * ensure fallback to default works. diff --git a/cake/tests/cases/console/libs/tasks/test.test.php b/cake/tests/cases/console/libs/tasks/test.test.php index 7525ff0bf..428c4615d 100644 --- a/cake/tests/cases/console/libs/tasks/test.test.php +++ b/cake/tests/cases/console/libs/tasks/test.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * TestTaskTest file * @@ -91,11 +92,12 @@ class TestTaskTag extends Model { ) ); } + /** * Simulated Plugin **/ class TestTaskAppModel extends Model { - + } class TestTaskComment extends TestTaskAppModel { var $name = 'TestTaskComment'; @@ -122,6 +124,7 @@ class TestTaskCommentsController extends Controller { class TestTaskTest extends CakeTestCase { var $fixtures = array('core.article', 'core.comment', 'core.articles_tag', 'core.tag'); + /** * startTest method * @@ -135,6 +138,7 @@ class TestTaskTest extends CakeTestCase { $this->Task->Dispatch =& $this->Dispatcher; $this->Task->Template =& new TemplateTask($this->Dispatcher); } + /** * endTest method * @@ -144,6 +148,7 @@ class TestTaskTest extends CakeTestCase { function endTest() { ClassRegistry::flush(); } + /** * Test that file path generation doesn't continuously append paths. * @@ -167,8 +172,9 @@ class TestTaskTest extends CakeTestCase { $this->Task->expectAt(2, 'createFile', array($file, '*')); $this->Task->bake('Controller', 'Comments'); } + /** - * Test that method introspection pulls all relevant non parent class + * Test that method introspection pulls all relevant non parent class * methods into the test case. * * @return void @@ -178,6 +184,7 @@ class TestTaskTest extends CakeTestCase { $expected = array('doSomething', 'doSomethingElse'); $this->assertEqual($result, $expected); } + /** * test that the generation of fixtures works correctly. * @@ -186,11 +193,12 @@ class TestTaskTest extends CakeTestCase { function testFixtureArrayGenerationFromModel() { $subject = ClassRegistry::init('TestTaskArticle'); $result = $this->Task->generateFixtureList($subject); - $expected = array('plugin.test_task.test_task_comment', 'app.articles_tags', + $expected = array('plugin.test_task.test_task_comment', 'app.articles_tags', 'app.test_task_article', 'app.test_task_tag'); $this->assertEqual(sort($result), sort($expected)); } + /** * test that the generation of fixtures works correctly. * @@ -199,11 +207,12 @@ class TestTaskTest extends CakeTestCase { function testFixtureArrayGenerationFromController() { $subject = new TestTaskCommentsController(); $result = $this->Task->generateFixtureList($subject); - $expected = array('plugin.test_task.test_task_comment', 'app.articles_tags', + $expected = array('plugin.test_task.test_task_comment', 'app.articles_tags', 'app.test_task_article', 'app.test_task_tag'); $this->assertEqual(sort($result), sort($expected)); } + /** * test user interaction to get object type * @@ -218,6 +227,7 @@ class TestTaskTest extends CakeTestCase { $result = $this->Task->getObjectType(); $this->assertEqual($result, $this->Task->classTypes[1]); } + /** * creating test subjects should clear the registry so the registry is always fresh * @@ -241,6 +251,7 @@ class TestTaskTest extends CakeTestCase { $keys = ClassRegistry::keys(); $this->assertFalse(in_array('random', $keys)); } + /** * test that getClassName returns the user choice as a classname. * @@ -261,6 +272,7 @@ class TestTaskTest extends CakeTestCase { $options = Configure::listObjects('model'); $this->assertEqual($result, $options[0]); } + /** * Test the user interaction for defining additional fixtures. * @@ -273,6 +285,7 @@ class TestTaskTest extends CakeTestCase { $expected = array('app.pizza', 'app.topping', 'app.side_dish'); $this->assertEqual($result, $expected); } + /** * test that resolving classnames works * @@ -294,6 +307,7 @@ class TestTaskTest extends CakeTestCase { $result = $this->Task->getRealClassname('Component', 'Auth'); $this->assertEqual($result, 'AuthComponent'); } + /** * test baking files. * @@ -322,6 +336,7 @@ class TestTaskTest extends CakeTestCase { $this->assertPattern("/'app\.test_task_tag'/", $result); $this->assertPattern("/'app\.articles_tag'/", $result); } + /** * test baking controller test files, ensure that the stub class is generated. * @@ -351,6 +366,7 @@ class TestTaskTest extends CakeTestCase { $this->assertPattern("/'app\.test_task_tag'/", $result); $this->assertPattern("/'app\.articles_tag'/", $result); } + /** * test Constructor generation ensure that constructClasses is called for controllers * @@ -369,6 +385,7 @@ class TestTaskTest extends CakeTestCase { $expected = "new FormHelper()\n"; $this->assertEqual($result, $expected); } + /** * Test that mock class generation works for the appropriate classes * @@ -378,6 +395,7 @@ class TestTaskTest extends CakeTestCase { $result = $this->Task->hasMockClass('controller'); $this->assertTrue($result); } + /** * test bake() with a -plugin param * @@ -390,6 +408,7 @@ class TestTaskTest extends CakeTestCase { $this->Task->expectAt(0, 'createFile', array($path, '*')); $this->Task->bake('Helper', 'Form'); } + /** * Test filename generation for each type + plugins * @@ -423,6 +442,7 @@ class TestTaskTest extends CakeTestCase { $expected = APP . 'plugins' . DS . 'test_test' . DS . 'tests' . DS . 'cases' . DS . 'models' . DS . 'post.test.php'; $this->assertEqual($result, $expected); } + /** * test execute with a type defined * @@ -435,6 +455,7 @@ class TestTaskTest extends CakeTestCase { $this->Task->expectAt(0, 'createFile', array('*', new PatternExpectation('/class TestTaskTagTestCase extends CakeTestCase/'))); $this->Task->execute(); } + /** * test execute with type and class name defined * diff --git a/cake/tests/cases/console/libs/tasks/view.test.php b/cake/tests/cases/console/libs/tasks/view.test.php index ca2251f89..68f4d0364 100644 --- a/cake/tests/cases/console/libs/tasks/view.test.php +++ b/cake/tests/cases/console/libs/tasks/view.test.php @@ -116,6 +116,7 @@ class ViewTaskArticlesController extends Controller { class ViewTaskTest extends CakeTestCase { var $fixtures = array('core.article', 'core.comment', 'core.articles_tag', 'core.tag'); + /** * startTest method * @@ -132,6 +133,7 @@ class ViewTaskTest extends CakeTestCase { $this->Task->Project =& new ViewTaskMockProjectTask(); $this->Task->path = TMP; } + /** * endTest method * @@ -141,6 +143,7 @@ class ViewTaskTest extends CakeTestCase { function endTest() { ClassRegistry::flush(); } + /** * Test getContent and parsing of Templates. * @@ -170,6 +173,7 @@ class ViewTaskTest extends CakeTestCase { $this->assertPattern('/testViewModel\[\'TestViewModel\'\]\[\'name\'\]/', $result); $this->assertPattern('/testViewModel\[\'TestViewModel\'\]\[\'body\'\]/', $result); } + /** * test getContent() using an admin_prefixed action. * @@ -203,6 +207,7 @@ class ViewTaskTest extends CakeTestCase { Configure::write('Routing.admin', $_back); } + /** * test Bake method * @@ -227,6 +232,7 @@ class ViewTaskTest extends CakeTestCase { )); $this->Task->bake('index', true); } + /** * test bake() with a -plugin param * @@ -241,6 +247,7 @@ class ViewTaskTest extends CakeTestCase { $this->Task->expectAt(0, 'createFile', array($path, '*')); $this->Task->bake('view', true); } + /** * test bake actions baking multiple actions. * @@ -265,6 +272,7 @@ class ViewTaskTest extends CakeTestCase { $this->Task->bakeActions(array('view', 'edit', 'index'), array()); } + /** * test baking a customAction (non crud) * @@ -282,6 +290,7 @@ class ViewTaskTest extends CakeTestCase { $this->Task->customAction(); } + /** * Test all() * @@ -301,6 +310,7 @@ class ViewTaskTest extends CakeTestCase { $this->Task->execute(); } + /** * test `cake bake view $controller view` * @@ -314,8 +324,9 @@ class ViewTaskTest extends CakeTestCase { $this->Task->expectAt(0, 'createFile', array(TMP . 'view_task_comments' . DS . 'view.ctp', '*')); $this->Task->execute(); } + /** - * test `cake bake view $controller` + * test `cake bake view $controller` * Ensure that views are only baked for actions that exist in the controller. * * @return void @@ -329,6 +340,7 @@ class ViewTaskTest extends CakeTestCase { $this->Task->execute(); } + /** * test `cake bake view $controller -admin` * Which only bakes admin methods, not non-admin methods. @@ -350,6 +362,7 @@ class ViewTaskTest extends CakeTestCase { $this->Task->execute(); Configure::write('Routing.admin', $_back); } + /** * test execute into interactive. * @@ -386,6 +399,7 @@ class ViewTaskTest extends CakeTestCase { $this->Task->execute(); } + /** * test execute into interactive() with admin methods. * diff --git a/cake/tests/cases/dispatcher.test.php b/cake/tests/cases/dispatcher.test.php index 5afb17481..44b915b6e 100644 --- a/cake/tests/cases/dispatcher.test.php +++ b/cake/tests/cases/dispatcher.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DispatcherTest file * @@ -31,6 +32,7 @@ if (!class_exists('AppController')) { } elseif (!defined('APP_CONTROLLER_EXISTS')){ define('APP_CONTROLLER_EXISTS', true); } + /** * TestDispatcher class * @@ -38,6 +40,7 @@ if (!class_exists('AppController')) { * @subpackage cake.tests.cases */ class TestDispatcher extends Dispatcher { + /** * invoke method * @@ -58,6 +61,7 @@ class TestDispatcher extends Dispatcher { return $controller; } + /** * cakeError method * @@ -68,6 +72,7 @@ class TestDispatcher extends Dispatcher { function cakeError($filename, $params) { return array($filename, $params); } + /** * _stop method * @@ -78,6 +83,7 @@ class TestDispatcher extends Dispatcher { return true; } } + /** * MyPluginAppController class * @@ -86,6 +92,7 @@ class TestDispatcher extends Dispatcher { */ class MyPluginAppController extends AppController { } + /** * MyPluginController class * @@ -93,6 +100,7 @@ class MyPluginAppController extends AppController { * @subpackage cake.tests.cases */ class MyPluginController extends MyPluginAppController { + /** * name property * @@ -100,6 +108,7 @@ class MyPluginController extends MyPluginAppController { * @access public */ var $name = 'MyPlugin'; + /** * uses property * @@ -107,6 +116,7 @@ class MyPluginController extends MyPluginAppController { * @access public */ var $uses = array(); + /** * index method * @@ -116,6 +126,7 @@ class MyPluginController extends MyPluginAppController { function index() { return true; } + /** * add method * @@ -125,6 +136,7 @@ class MyPluginController extends MyPluginAppController { function add() { return true; } + /** * admin_add method * @@ -136,6 +148,7 @@ class MyPluginController extends MyPluginAppController { return $id; } } + /** * SomePagesController class * @@ -143,6 +156,7 @@ class MyPluginController extends MyPluginAppController { * @subpackage cake.tests.cases */ class SomePagesController extends AppController { + /** * name property * @@ -150,6 +164,7 @@ class SomePagesController extends AppController { * @access public */ var $name = 'SomePages'; + /** * uses property * @@ -157,6 +172,7 @@ class SomePagesController extends AppController { * @access public */ var $uses = array(); + /** * display method * @@ -167,6 +183,7 @@ class SomePagesController extends AppController { function display($page = null) { return $page; } + /** * index method * @@ -176,6 +193,7 @@ class SomePagesController extends AppController { function index() { return true; } + /** * protected method * @@ -185,6 +203,7 @@ class SomePagesController extends AppController { function _protected() { return true; } + /** * redirect method overriding * @@ -195,6 +214,7 @@ class SomePagesController extends AppController { echo 'this should not be accessible'; } } + /** * OtherPagesController class * @@ -202,6 +222,7 @@ class SomePagesController extends AppController { * @subpackage cake.tests.cases */ class OtherPagesController extends MyPluginAppController { + /** * name property * @@ -209,6 +230,7 @@ class OtherPagesController extends MyPluginAppController { * @access public */ var $name = 'OtherPages'; + /** * uses property * @@ -216,6 +238,7 @@ class OtherPagesController extends MyPluginAppController { * @access public */ var $uses = array(); + /** * display method * @@ -226,6 +249,7 @@ class OtherPagesController extends MyPluginAppController { function display($page = null) { return $page; } + /** * index method * @@ -236,6 +260,7 @@ class OtherPagesController extends MyPluginAppController { return true; } } + /** * TestDispatchPagesController class * @@ -243,6 +268,7 @@ class OtherPagesController extends MyPluginAppController { * @subpackage cake.tests.cases */ class TestDispatchPagesController extends AppController { + /** * name property * @@ -250,6 +276,7 @@ class TestDispatchPagesController extends AppController { * @access public */ var $name = 'TestDispatchPages'; + /** * uses property * @@ -257,6 +284,7 @@ class TestDispatchPagesController extends AppController { * @access public */ var $uses = array(); + /** * admin_index method * @@ -266,6 +294,7 @@ class TestDispatchPagesController extends AppController { function admin_index() { return true; } + /** * camelCased method * @@ -276,6 +305,7 @@ class TestDispatchPagesController extends AppController { return true; } } + /** * ArticlesTestAppController class * @@ -284,6 +314,7 @@ class TestDispatchPagesController extends AppController { */ class ArticlesTestAppController extends AppController { } + /** * ArticlesTestController class * @@ -291,6 +322,7 @@ class ArticlesTestAppController extends AppController { * @subpackage cake.tests.cases */ class ArticlesTestController extends ArticlesTestAppController { + /** * name property * @@ -298,6 +330,7 @@ class ArticlesTestController extends ArticlesTestAppController { * @access public */ var $name = 'ArticlesTest'; + /** * uses property * @@ -305,6 +338,7 @@ class ArticlesTestController extends ArticlesTestAppController { * @access public */ var $uses = array(); + /** * admin_index method * @@ -315,6 +349,7 @@ class ArticlesTestController extends ArticlesTestAppController { return true; } } + /** * SomePostsController class * @@ -322,6 +357,7 @@ class ArticlesTestController extends ArticlesTestAppController { * @subpackage cake.tests.cases */ class SomePostsController extends AppController { + /** * name property * @@ -329,6 +365,7 @@ class SomePostsController extends AppController { * @access public */ var $name = 'SomePosts'; + /** * uses property * @@ -336,6 +373,7 @@ class SomePostsController extends AppController { * @access public */ var $uses = array(); + /** * autoRender property * @@ -343,6 +381,7 @@ class SomePostsController extends AppController { * @access public */ var $autoRender = false; + /** * beforeFilter method * @@ -357,6 +396,7 @@ class SomePostsController extends AppController { } $this->params['pass'] = array('changed'); } + /** * index method * @@ -366,6 +406,7 @@ class SomePostsController extends AppController { function index() { return true; } + /** * change method * @@ -376,6 +417,7 @@ class SomePostsController extends AppController { return true; } } + /** * TestCachedPagesController class * @@ -383,6 +425,7 @@ class SomePostsController extends AppController { * @subpackage cake.tests.cases */ class TestCachedPagesController extends AppController { + /** * name property * @@ -390,6 +433,7 @@ class TestCachedPagesController extends AppController { * @access public */ var $name = 'TestCachedPages'; + /** * uses property * @@ -397,6 +441,7 @@ class TestCachedPagesController extends AppController { * @access public */ var $uses = array(); + /** * helpers property * @@ -404,6 +449,7 @@ class TestCachedPagesController extends AppController { * @access public */ var $helpers = array('Cache'); + /** * cacheAction property * @@ -414,6 +460,7 @@ class TestCachedPagesController extends AppController { 'index'=> '+2 sec', 'test_nocache_tags'=>'+2 sec', 'view/' => '+2 sec' ); + /** * viewPath property * @@ -421,6 +468,7 @@ class TestCachedPagesController extends AppController { * @access public */ var $viewPath = 'posts'; + /** * index method * @@ -430,6 +478,7 @@ class TestCachedPagesController extends AppController { function index() { $this->render(); } + /** * test_nocache_tags method * @@ -439,6 +488,7 @@ class TestCachedPagesController extends AppController { function test_nocache_tags() { $this->render(); } + /** * view method * @@ -449,6 +499,7 @@ class TestCachedPagesController extends AppController { $this->render('index'); } } + /** * TimesheetsController class * @@ -456,6 +507,7 @@ class TestCachedPagesController extends AppController { * @subpackage cake.tests.cases */ class TimesheetsController extends AppController { + /** * name property * @@ -463,6 +515,7 @@ class TimesheetsController extends AppController { * @access public */ var $name = 'Timesheets'; + /** * uses property * @@ -470,6 +523,7 @@ class TimesheetsController extends AppController { * @access public */ var $uses = array(); + /** * index method * @@ -480,6 +534,7 @@ class TimesheetsController extends AppController { return true; } } + /** * DispatcherTest class * @@ -487,6 +542,7 @@ class TimesheetsController extends AppController { * @subpackage cake.tests.cases */ class DispatcherTest extends CakeTestCase { + /** * setUp method * @@ -513,6 +569,7 @@ class DispatcherTest extends CakeTestCase { App::build(App::core()); } + /** * tearDown method * @@ -529,6 +586,7 @@ class DispatcherTest extends CakeTestCase { Configure::write('Cache', $this->_cache); Configure::write('debug', $this->_debug); } + /** * testParseParamsWithoutZerosAndEmptyPost method * @@ -545,6 +603,7 @@ class DispatcherTest extends CakeTestCase { $this->assertIdentical($test['pass'][2], 'params3'); $this->assertFalse(!empty($test['form'])); } + /** * testParseParamsReturnsPostedData method * @@ -558,6 +617,7 @@ class DispatcherTest extends CakeTestCase { $this->assertTrue($test['form'], "Parsed URL not returning post data"); $this->assertIdentical($test['form']['testdata'], "My Posted Content"); } + /** * testParseParamsWithSingleZero method * @@ -573,6 +633,7 @@ class DispatcherTest extends CakeTestCase { $this->assertPattern('/\\A(?:0)\\z/', $test['pass'][1]); $this->assertIdentical($test['pass'][2], '23'); } + /** * testParseParamsWithManySingleZeros method * @@ -589,6 +650,7 @@ class DispatcherTest extends CakeTestCase { $this->assertPattern('/\\A(?:0)\\z/', $test['pass'][4]); $this->assertPattern('/\\A(?:0)\\z/', $test['pass'][5]); } + /** * testParseParamsWithManyZerosInEachSectionOfUrl method * @@ -605,6 +667,7 @@ class DispatcherTest extends CakeTestCase { $this->assertPattern('/\\A(?:000000)\\z/', $test['pass'][4]); $this->assertPattern('/\\A(?:0000000)\\z/', $test['pass'][5]); } + /** * testParseParamsWithMixedOneToManyZerosInEachSectionOfUrl method * @@ -621,6 +684,7 @@ class DispatcherTest extends CakeTestCase { $this->assertPattern('/\\A(?:000030)\\z/', $test['pass'][4]); $this->assertPattern('/\\A(?:0000400)\\z/', $test['pass'][5]); } + /** * testQueryStringOnRoot method * @@ -650,6 +714,7 @@ class DispatcherTest extends CakeTestCase { $this->assertTrue(isset($result['url']['coffee'])); $this->assertEqual($result['url']['coffee'], 'life'); } + /** * testFileUploadArrayStructure method * @@ -876,6 +941,7 @@ class DispatcherTest extends CakeTestCase { ); $this->assertEqual($result['data'], $expected); } + /** * testGetUrl method * @@ -915,6 +981,7 @@ class DispatcherTest extends CakeTestCase { $this->assertEqual($expected, $result); } + /** * testBaseUrlAndWebrootWithModRewrite method * @@ -990,6 +1057,7 @@ class DispatcherTest extends CakeTestCase { $expectedWebroot = '/clients/PewterReport/code/'; $this->assertEqual($expectedWebroot, $Dispatcher->webroot); } + /** * testBaseUrlwithModRewriteAlias method * @@ -1024,6 +1092,7 @@ class DispatcherTest extends CakeTestCase { $expectedWebroot = '/newaffiliate/'; $this->assertEqual($expectedWebroot, $Dispatcher->webroot); } + /** * testBaseUrlAndWebrootWithBaseUrl method * @@ -1093,6 +1162,7 @@ class DispatcherTest extends CakeTestCase { $expectedWebroot = '/dbhauser/app/webroot/'; $this->assertEqual($expectedWebroot, $Dispatcher->webroot); } + /** * testBaseUrlAndWebrootWithBase method * @@ -1123,6 +1193,7 @@ class DispatcherTest extends CakeTestCase { $expectedWebroot = '/cake/testbed/webroot/'; $this->assertEqual($expectedWebroot, $Dispatcher->webroot); } + /** * testMissingController method * @@ -1142,6 +1213,7 @@ class DispatcherTest extends CakeTestCase { ))); $this->assertEqual($expected, $controller); } + /** * testPrivate method * @@ -1164,6 +1236,7 @@ class DispatcherTest extends CakeTestCase { ))); $this->assertEqual($controller, $expected); } + /** * testMissingAction method * @@ -1201,6 +1274,7 @@ class DispatcherTest extends CakeTestCase { ))); $this->assertEqual($expected, $controller); } + /** * testDispatch method * @@ -1255,6 +1329,7 @@ class DispatcherTest extends CakeTestCase { $controller = $Dispatcher->dispatch($url, array('return' => 1)); $this->assertEqual('TestDispatchPages', $controller->name); } + /** * testDispatchWithArray method * @@ -1274,6 +1349,7 @@ class DispatcherTest extends CakeTestCase { $expected = array('0' => 'home', 'param' => 'value', 'param2' => 'value2'); $this->assertIdentical($expected, $controller->passedArgs); } + /** * testAdminDispatch method * @@ -1304,6 +1380,7 @@ class DispatcherTest extends CakeTestCase { $expected = '/cake/repo/branches/1.2.x.x/index.php'; $this->assertIdentical($expected, $controller->base); } + /** * testPluginDispatch method * @@ -1352,6 +1429,7 @@ class DispatcherTest extends CakeTestCase { $expected = '/cake/repo/branches/1.2.x.x'; $this->assertIdentical($expected, $controller->base); } + /** * testAutomaticPluginDispatch method * @@ -1389,6 +1467,7 @@ class DispatcherTest extends CakeTestCase { $expected = '/cake/repo/branches/1.2.x.x'; $this->assertIdentical($expected, $controller->base); } + /** * testAutomaticPluginControllerDispatch method * @@ -1489,6 +1568,7 @@ class DispatcherTest extends CakeTestCase { ); $this->assertEqual($controller->params, $expected); } + /** * test Plugin dispatching without controller name and using * plugin short form instead. @@ -1538,6 +1618,7 @@ class DispatcherTest extends CakeTestCase { $controller = $Dispatcher->dispatch($url, array('return' => 1)); $this->assertIdentical('1',$controller->params['pass'][0]); } + /** * testAutomaticPluginControllerMissingActionDispatch method * @@ -1580,6 +1661,7 @@ class DispatcherTest extends CakeTestCase { ))); $this->assertIdentical($expected, $controller); } + /** * testPrefixProtection method * @@ -1608,6 +1690,7 @@ class DispatcherTest extends CakeTestCase { ))); $this->assertIdentical($expected, $controller); } + /** * undocumented function * @@ -1627,6 +1710,7 @@ class DispatcherTest extends CakeTestCase { App::build(); } + /** * testChangingParamsFromBeforeFilter method * @@ -1660,6 +1744,7 @@ class DispatcherTest extends CakeTestCase { $expected = array('changed'); $this->assertIdentical($expected, $controller->params['pass']); } + /** * testStaticAssets method * @@ -1712,6 +1797,7 @@ class DispatcherTest extends CakeTestCase { header('Content-type: text/html');//reset the header content-type without page can render as plain text. } + /** * testFullPageCachingDispatch method * @@ -1847,6 +1933,7 @@ class DispatcherTest extends CakeTestCase { $this->assertTrue(file_exists($filename)); unlink($filename); } + /** * testHttpMethodOverrides method * @@ -1917,6 +2004,7 @@ class DispatcherTest extends CakeTestCase { $expected = '/index.php/h1 onclick=alert(xss);heya'; $this->assertEqual($result, $expected); } + /** * testEnvironmentDetection method * @@ -2022,6 +2110,7 @@ class DispatcherTest extends CakeTestCase { } $this->__loadEnvironment(array_merge(array('reload' => true), $backup)); } + /** * Tests that the Dispatcher does not return an empty action * @@ -2047,6 +2136,7 @@ class DispatcherTest extends CakeTestCase { $result = $Dispatcher->parseParams($url); $this->assertEqual('index', $result['action']); } + /** * backupEnvironment method * @@ -2061,6 +2151,7 @@ class DispatcherTest extends CakeTestCase { 'SERVER'=> $_SERVER ); } + /** * reloadEnvironment method * @@ -2079,6 +2170,7 @@ class DispatcherTest extends CakeTestCase { } Configure::write('App', array()); } + /** * loadEnvironment method * @@ -2113,6 +2205,7 @@ class DispatcherTest extends CakeTestCase { } } } + /** * cachePath method * diff --git a/cake/tests/cases/libs/cache.test.php b/cake/tests/cases/libs/cache.test.php index 37d5ec633..76f15bfb8 100644 --- a/cake/tests/cases/libs/cache.test.php +++ b/cake/tests/cases/libs/cache.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CacheTest file * @@ -27,6 +28,7 @@ if (!class_exists('Cache')) { require LIBS . 'cache.php'; } + /** * CacheTest class * @@ -34,6 +36,7 @@ if (!class_exists('Cache')) { * @subpackage cake.tests.cases.libs */ class CacheTest extends CakeTestCase { + /** * setUp method * @@ -49,6 +52,7 @@ class CacheTest extends CakeTestCase { Cache::engine('File', array('path' => TMP . 'tests')); } + /** * tearDown method * @@ -60,6 +64,7 @@ class CacheTest extends CakeTestCase { Cache::config('default', $this->_defaultCacheConfig['settings']); Cache::engine('File'); } + /** * testConfig method * @@ -71,6 +76,7 @@ class CacheTest extends CakeTestCase { $results = Cache::config('new', $settings); $this->assertEqual($results, Cache::config('new')); } + /** * testConfigChange method * @@ -90,6 +96,7 @@ class CacheTest extends CakeTestCase { Cache::config('sessions', $_cacheConfigSessions['settings']); Cache::config('tests', $_cacheConfigTests['settings']); } + /** * testWritingWithConfig method * @@ -115,6 +122,7 @@ class CacheTest extends CakeTestCase { Cache::config('sessions', $_cacheConfigSessions['settings']); } + /** * testInitSettings method * @@ -139,6 +147,7 @@ class CacheTest extends CakeTestCase { Cache::engine('File'); } + /** * testWriteEmptyValues method * @@ -161,6 +170,7 @@ class CacheTest extends CakeTestCase { Cache::write('App.zeroTest2', '0'); $this->assertIdentical(Cache::read('App.zeroTest2'), '0'); } + /** * testCacheDisable method * @@ -204,6 +214,7 @@ class CacheTest extends CakeTestCase { $this->assertFalse(Cache::write('key_6', 'hello')); $this->assertFalse(Cache::read('key_6')); } + /** * testSet method * diff --git a/cake/tests/cases/libs/cache/apc.test.php b/cake/tests/cases/libs/cache/apc.test.php index 5dd30c502..27cecbca9 100644 --- a/cake/tests/cases/libs/cache/apc.test.php +++ b/cake/tests/cases/libs/cache/apc.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ApcEngineTest file * @@ -27,6 +28,7 @@ if (!class_exists('Cache')) { require LIBS . 'cache.php'; } + /** * ApcEngineTest class * @@ -34,6 +36,7 @@ if (!class_exists('Cache')) { * @subpackage cake.tests.cases.libs.cache */ class ApcEngineTest extends UnitTestCase { + /** * skip method * @@ -47,6 +50,7 @@ class ApcEngineTest extends UnitTestCase { } $this->skipIf($skip, '%s Apc is not installed or configured properly'); } + /** * setUp method * @@ -58,6 +62,7 @@ class ApcEngineTest extends UnitTestCase { Configure::write('Cache.disable', false); Cache::config('apc', array('engine' => 'Apc', 'prefix' => 'cake_')); } + /** * tearDown method * @@ -68,6 +73,7 @@ class ApcEngineTest extends UnitTestCase { Configure::write('Cache.disable', $this->_cacheDisable); Cache::config('default'); } + /** * testReadAndWriteCache method * @@ -91,6 +97,7 @@ class ApcEngineTest extends UnitTestCase { Cache::delete('test'); } + /** * testExpiry method * @@ -125,6 +132,7 @@ class ApcEngineTest extends UnitTestCase { $result = Cache::read('other_test'); $this->assertFalse($result); } + /** * testDeleteCache method * diff --git a/cake/tests/cases/libs/cache/file.test.php b/cake/tests/cases/libs/cache/file.test.php index 89ee671bc..45f191f95 100644 --- a/cake/tests/cases/libs/cache/file.test.php +++ b/cake/tests/cases/libs/cache/file.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * FileEngineTest file * @@ -30,6 +31,7 @@ if (!class_exists('Cache')) { if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { define('CAKEPHP_UNIT_TEST_EXECUTION', 1); } + /** * FileEngineTest class * @@ -37,6 +39,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { * @subpackage cake.tests.cases.libs.cache */ class FileEngineTest extends CakeTestCase { + /** * config property * @@ -44,6 +47,7 @@ class FileEngineTest extends CakeTestCase { * @access public */ var $config = array(); + /** * startCase method * @@ -56,6 +60,7 @@ class FileEngineTest extends CakeTestCase { Configure::write('Cache.disable', false); Cache::config('default', array('engine' => 'File', 'path' => CACHE)); } + /** * endCase method * @@ -66,6 +71,7 @@ class FileEngineTest extends CakeTestCase { Configure::write('Cache.disable', $this->_cacheDisable); Cache::config('default', $this->_cacheConfig['settings']); } + /** * testCacheDirChange method * @@ -81,6 +87,7 @@ class FileEngineTest extends CakeTestCase { $this->assertEqual($result['settings'], Cache::settings('File')); $this->assertNotEqual($result, Cache::settings('File')); } + /** * testReadAndWriteCache method * @@ -109,6 +116,7 @@ class FileEngineTest extends CakeTestCase { Cache::delete('test'); } + /** * testExpiry method * @@ -139,6 +147,7 @@ class FileEngineTest extends CakeTestCase { $result = Cache::read('other_test'); $this->assertFalse($result); } + /** * testDeleteCache method * @@ -158,6 +167,7 @@ class FileEngineTest extends CakeTestCase { $this->assertFalse($result); } + /** * testSerialize method * @@ -182,6 +192,7 @@ class FileEngineTest extends CakeTestCase { $this->assertIdentical(unserialize($newread), $data); } + /** * testClear method * @@ -275,6 +286,7 @@ class FileEngineTest extends CakeTestCase { Cache::engine('File', array('path' => CACHE)); } + /** * testKeyPath method * @@ -292,6 +304,7 @@ class FileEngineTest extends CakeTestCase { $result = Cache::clear(); $this->assertTrue($result); } + /** * testRemoveWindowsSlashesFromCache method * @@ -334,6 +347,7 @@ class FileEngineTest extends CakeTestCase { Cache::delete('test_dir_map'); $this->assertEqual($expected, $data); } + /** * testWriteQuotedString method * diff --git a/cake/tests/cases/libs/cache/memcache.test.php b/cake/tests/cases/libs/cache/memcache.test.php index 8a48df86c..a5c321e50 100644 --- a/cake/tests/cases/libs/cache/memcache.test.php +++ b/cake/tests/cases/libs/cache/memcache.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * MemcacheEngineTest file * @@ -27,12 +28,14 @@ if (!class_exists('Cache')) { require LIBS . 'cache.php'; } + /** * MemcacheEngineTest class * * @package cake * @subpackage cake.tests.cases.libs.cache */ + /** * MemcacheEngineTest class * @@ -40,6 +43,7 @@ if (!class_exists('Cache')) { * @subpackage cake.tests.cases.libs.cache */ class MemcacheEngineTest extends CakeTestCase { + /** * skip method * @@ -53,6 +57,7 @@ class MemcacheEngineTest extends CakeTestCase { } $this->skipIf($skip, '%s Memcache is not installed or configured properly'); } + /** * setUp method * @@ -64,6 +69,7 @@ class MemcacheEngineTest extends CakeTestCase { Configure::write('Cache.disable', false); Cache::config('memcache', array('engine' => 'Memcache', 'prefix' => 'cake_')); } + /** * tearDown method * @@ -74,6 +80,7 @@ class MemcacheEngineTest extends CakeTestCase { Configure::write('Cache.disable', $this->_cacheDisable); Cache::config('default'); } + /** * testSettings method * @@ -91,6 +98,7 @@ class MemcacheEngineTest extends CakeTestCase { ); $this->assertEqual($settings, $expecting); } + /** * testSettings method * @@ -122,6 +130,7 @@ class MemcacheEngineTest extends CakeTestCase { $settings = Cache::settings(); $this->assertEqual($servers, $settings['servers']); } + /** * testConnect method * @@ -133,6 +142,7 @@ class MemcacheEngineTest extends CakeTestCase { $result = $Cache->_Engine['Memcache']->connect('127.0.0.1'); $this->assertTrue($result); } + /** * testReadAndWriteCache method * @@ -156,6 +166,7 @@ class MemcacheEngineTest extends CakeTestCase { Cache::delete('test'); } + /** * testExpiry method * @@ -207,6 +218,7 @@ class MemcacheEngineTest extends CakeTestCase { Cache::engine('Memcache', array('duration' => 3600)); } + /** * testDeleteCache method * diff --git a/cake/tests/cases/libs/cache/xcache.test.php b/cake/tests/cases/libs/cache/xcache.test.php index 842cbfa7b..9ca8cf23a 100644 --- a/cake/tests/cases/libs/cache/xcache.test.php +++ b/cake/tests/cases/libs/cache/xcache.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * XcacheEngineTest file * @@ -27,6 +28,7 @@ if (!class_exists('Cache')) { require LIBS . 'cache.php'; } + /** * XcacheEngineTest class * @@ -34,6 +36,7 @@ if (!class_exists('Cache')) { * @subpackage cake.tests.cases.libs.cache */ class XcacheEngineTest extends UnitTestCase { + /** * skip method * @@ -47,6 +50,7 @@ class XcacheEngineTest extends UnitTestCase { } $this->skipIf($skip, '%s Xcache is not installed or configured properly'); } + /** * setUp method * @@ -58,6 +62,7 @@ class XcacheEngineTest extends UnitTestCase { Configure::write('Cache.disable', false); Cache::config('xcache', array('engine' => 'Xcache', 'prefix' => 'cake_')); } + /** * tearDown method * @@ -68,6 +73,7 @@ class XcacheEngineTest extends UnitTestCase { Configure::write('Cache.disable', $this->_cacheDisable); Cache::config('default'); } + /** * testSettings method * @@ -85,6 +91,7 @@ class XcacheEngineTest extends UnitTestCase { ); $this->assertEqual($settings, $expecting); } + /** * testReadAndWriteCache method * @@ -108,6 +115,7 @@ class XcacheEngineTest extends UnitTestCase { Cache::delete('test'); } + /** * testExpiry method * @@ -137,6 +145,7 @@ class XcacheEngineTest extends UnitTestCase { $result = Cache::read('other_test'); $this->assertFalse($result); } + /** * testDeleteCache method * @@ -151,6 +160,7 @@ class XcacheEngineTest extends UnitTestCase { $result = Cache::delete('delete_test'); $this->assertTrue($result); } + /** * testClearCache method * diff --git a/cake/tests/cases/libs/cake_log.test.php b/cake/tests/cases/libs/cake_log.test.php index 05dc39452..d548de6b8 100644 --- a/cake/tests/cases/libs/cake_log.test.php +++ b/cake/tests/cases/libs/cake_log.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CakeLogTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Log'); + /** * CakeLogTest class * @@ -32,6 +34,7 @@ App::import('Core', 'Log'); * @subpackage cake.tests.cases.libs */ class CakeLogTest extends CakeTestCase { + /** * testLogFileWriting method * diff --git a/cake/tests/cases/libs/cake_session.test.php b/cake/tests/cases/libs/cake_session.test.php index 9fcd844f4..de5cda82c 100644 --- a/cake/tests/cases/libs/cake_session.test.php +++ b/cake/tests/cases/libs/cake_session.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * SessionTest file * @@ -27,6 +28,7 @@ if (!class_exists('CakeSession')) { App::import('Core', 'CakeSession'); } + /** * SessionTest class * @@ -34,6 +36,7 @@ if (!class_exists('CakeSession')) { * @subpackage cake.tests.cases.libs */ class SessionTest extends CakeTestCase { + /** * Fixtures used in the SessionTest * @@ -41,6 +44,7 @@ class SessionTest extends CakeTestCase { * @access public */ var $fixtures = array('core.session'); + /** * startCase method * @@ -52,6 +56,7 @@ class SessionTest extends CakeTestCase { $this->__gc_divisor = ini_get('session.gc_divisor'); ini_set('session.gc_divisor', '1'); } + /** * endCase method * @@ -62,6 +67,7 @@ class SessionTest extends CakeTestCase { // Revert to the default setting ini_set('session.gc_divisor', $this->__gc_divisor); } + /** * setUp method * @@ -73,16 +79,18 @@ class SessionTest extends CakeTestCase { $this->Session->start(); $this->Session->_checkValid(); } + /** * tearDown method * * @access public * @return void - */ + */ function tearDown() { unset($_SESSION); session_destroy(); } + /** * testSessionPath * @@ -99,6 +107,7 @@ class SessionTest extends CakeTestCase { $Session = new CakeSession(''); $this->assertEqual('/', $Session->path, 'Session path is empty, with "" as $base needs to be / %s'); } + /** * testCheck method * @@ -111,6 +120,7 @@ class SessionTest extends CakeTestCase { $this->assertFalse($this->Session->check('NotExistingSessionTestCase'), false); } + /** * testSimpleRead method * @@ -138,6 +148,7 @@ class SessionTest extends CakeTestCase { $result = $this->Session->read('This.is.a.deep.array.my.friend'); $this->assertEqual('value', $result); } + /** * testId method * @@ -153,6 +164,7 @@ class SessionTest extends CakeTestCase { $result = $this->Session->id(); $this->assertEqual($result, 'MySessionId'); } + /** * testStarted method * @@ -166,6 +178,7 @@ class SessionTest extends CakeTestCase { $this->assertFalse($this->Session->started()); $this->assertTrue($this->Session->start()); } + /** * testError method * @@ -181,6 +194,7 @@ class SessionTest extends CakeTestCase { $result = $this->Session->error(); $this->assertEqual($result, "Failing.delete doesn't exist"); } + /** * testDel method * @@ -198,6 +212,7 @@ class SessionTest extends CakeTestCase { $this->assertFalse($this->Session->check('Clearing.sale')); $this->assertFalse($this->Session->check('Clearing')); } + /** * testWatchVar method * @@ -217,6 +232,7 @@ class SessionTest extends CakeTestCase { $this->assertFalse($this->Session->watch('Invalid.key')); } + /** * testIgnore method * @@ -229,6 +245,7 @@ class SessionTest extends CakeTestCase { $this->Session->ignore('Watching'); $this->assertTrue($this->Session->write('Watching', 'They found us!')); } + /** * testDestroy method * @@ -242,6 +259,7 @@ class SessionTest extends CakeTestCase { $this->assertFalse($this->Session->check('bulletProof')); $this->assertNotEqual($id, $this->Session->id()); } + /** * testCheckingSavedEmpty method * @@ -261,6 +279,7 @@ class SessionTest extends CakeTestCase { $this->assertTrue($this->Session->write('SessionTestCase', null)); $this->assertFalse($this->Session->check('SessionTestCase')); } + /** * testCheckKeyWithSpaces method * @@ -275,6 +294,7 @@ class SessionTest extends CakeTestCase { $this->assertTrue($this->Session->write('Session Test.Test Case', "test")); $this->assertTrue($this->Session->check('Session Test.Test Case')); } + /** * testReadingSavedEmpty method * @@ -295,6 +315,7 @@ class SessionTest extends CakeTestCase { $this->Session->write('SessionTestCase', null); $this->assertEqual($this->Session->read('SessionTestCase'), null); } + /** * testCheckUserAgentFalse method * @@ -306,6 +327,7 @@ class SessionTest extends CakeTestCase { $this->Session->_userAgent = md5('http://randomdomainname.com' . Configure::read('Security.salt')); $this->assertTrue($this->Session->valid()); } + /** * testCheckUserAgentTrue method * @@ -317,6 +339,7 @@ class SessionTest extends CakeTestCase { $this->Session->_userAgent = md5('http://randomdomainname.com' . Configure::read('Security.salt')); $this->assertFalse($this->Session->valid()); } + /** * testReadAndWriteWithDatabaseStorage method * @@ -353,6 +376,7 @@ class SessionTest extends CakeTestCase { $this->Session->destroy(); $this->assertFalse($this->Session->read('SessionTestCase')); } + /** * testReadAndWriteWithDatabaseStorage method * @@ -389,6 +413,7 @@ class SessionTest extends CakeTestCase { $this->Session->destroy(); $this->assertFalse($this->Session->read('SessionTestCase')); } + /** * testReadAndWriteWithDatabaseStorage method * diff --git a/cake/tests/cases/libs/cake_socket.test.php b/cake/tests/cases/libs/cake_socket.test.php index 83a4d9802..07cf73109 100644 --- a/cake/tests/cases/libs/cake_socket.test.php +++ b/cake/tests/cases/libs/cake_socket.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * SocketTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'CakeSocket'); + /** * SocketTest class * @@ -32,6 +34,7 @@ App::import('Core', 'CakeSocket'); * @subpackage cake.tests.cases.libs */ class CakeSocketTest extends CakeTestCase { + /** * setUp method * @@ -41,6 +44,7 @@ class CakeSocketTest extends CakeTestCase { function setUp() { $this->Socket = new CakeSocket(); } + /** * tearDown method * @@ -50,6 +54,7 @@ class CakeSocketTest extends CakeTestCase { function tearDown() { unset($this->Socket); } + /** * testConstruct method * @@ -82,6 +87,7 @@ class CakeSocketTest extends CakeTestCase { $this->assertIdentical($this->Socket->config, $baseConfig); } + /** * testSocketConnection method * @@ -103,6 +109,7 @@ class CakeSocketTest extends CakeTestCase { $this->Socket->connect(); $this->assertTrue($this->Socket->connected); } + /** * testSocketHost method * @@ -124,6 +131,7 @@ class CakeSocketTest extends CakeTestCase { $this->assertEqual($this->Socket->lastError(), null); $this->assertTrue(in_array('127.0.0.1', $this->Socket->addresses())); } + /** * testSocketWriting method * @@ -134,6 +142,7 @@ class CakeSocketTest extends CakeTestCase { $request = "GET / HTTP/1.1\r\nConnection: close\r\n\r\n"; $this->assertTrue($this->Socket->write($request)); } + /** * testSocketReading method * @@ -157,6 +166,7 @@ class CakeSocketTest extends CakeTestCase { $this->assertEqual($this->Socket->read(26), null); $this->assertEqual($this->Socket->lastError(), null); } + /** * testLastError method * @@ -168,6 +178,7 @@ class CakeSocketTest extends CakeTestCase { $this->Socket->setLastError(4, 'some error here'); $this->assertEqual($this->Socket->lastError(), '4: some error here'); } + /** * testReset method * diff --git a/cake/tests/cases/libs/cake_test_case.test.php b/cake/tests/cases/libs/cake_test_case.test.php index f29f04c48..817ee6c46 100644 --- a/cake/tests/cases/libs/cake_test_case.test.php +++ b/cake/tests/cases/libs/cake_test_case.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CakeTestCaseTest file * @@ -37,6 +38,7 @@ Mock::generate('CakeTestCase', 'CakeDispatcherMockTestCase'); SimpleTest::ignore('SubjectCakeTestCase'); SimpleTest::ignore('CakeDispatcherMockTestCase'); + /** * SubjectCakeTestCase * @@ -44,6 +46,7 @@ SimpleTest::ignore('CakeDispatcherMockTestCase'); * @subpackage cake.tests.cases.libs */ class SubjectCakeTestCase extends CakeTestCase { + /** * Feed a Mocked Reporter to the subject case * prevents its pass/fails from affecting the real test @@ -55,6 +58,7 @@ class SubjectCakeTestCase extends CakeTestCase { function setReporter(&$reporter) { $this->_reporter = &$reporter; } + /** * testDummy method * @@ -64,6 +68,7 @@ class SubjectCakeTestCase extends CakeTestCase { function testDummy() { } } + /** * CakeTestCaseTest * @@ -71,6 +76,7 @@ class SubjectCakeTestCase extends CakeTestCase { * @subpackage cake.tests.cases.libs */ class CakeTestCaseTest extends CakeTestCase { + /** * setUp * @@ -83,6 +89,7 @@ class CakeTestCaseTest extends CakeTestCase { $this->Case->setReporter($reporter); $this->Reporter = $reporter; } + /** * tearDown * @@ -93,6 +100,7 @@ class CakeTestCaseTest extends CakeTestCase { unset($this->Case); unset($this->Reporter); } + /** * endTest * @@ -102,6 +110,7 @@ class CakeTestCaseTest extends CakeTestCase { function endTest() { App::build(); } + /** * testAssertGoodTags * @@ -157,6 +166,7 @@ class CakeTestCaseTest extends CakeTestCase { ); $this->assertTrue($this->Case->assertTags($input, $pattern)); } + /** * testBadAssertTags * @@ -183,6 +193,7 @@ class CakeTestCaseTest extends CakeTestCase { ); $this->assertFalse($this->Case->assertTags($input, $pattern)); } + /** * testBefore * @@ -200,6 +211,7 @@ class CakeTestCaseTest extends CakeTestCase { $this->assertTrue(is_a($this->Case->_fixtures['core.post'], 'CakeTestFixture')); $this->assertEqual($this->Case->_fixtureClassMap['Post'], 'core.post'); } + /** * testAfter * @@ -216,6 +228,7 @@ class CakeTestCaseTest extends CakeTestCase { $this->Case->after('testDummy'); $this->assertTrue($this->Case->__truncated); } + /** * testLoadFixtures * @@ -229,6 +242,7 @@ class CakeTestCaseTest extends CakeTestCase { $this->expectError(); $this->Case->loadFixtures('Wrong!'); } + /** * testGetTests Method * @@ -240,6 +254,7 @@ class CakeTestCaseTest extends CakeTestCase { $this->assertEqual(array_slice($result, 0, 2), array('start', 'startCase')); $this->assertEqual(array_slice($result, -2), array('endCase', 'end')); } + /** * TestTestAction * @@ -371,6 +386,7 @@ class CakeTestCaseTest extends CakeTestCase { $db->config['prefix'] = $_backPrefix; $fixture->drop($db); } + /** * testSkipIf * @@ -380,6 +396,7 @@ class CakeTestCaseTest extends CakeTestCase { $this->assertTrue($this->Case->skipIf(true)); $this->assertFalse($this->Case->skipIf(false)); } + /** * testTestDispatcher * diff --git a/cake/tests/cases/libs/cake_test_fixture.test.php b/cake/tests/cases/libs/cake_test_fixture.test.php index 03a712a56..de9ddcf9a 100644 --- a/cake/tests/cases/libs/cake_test_fixture.test.php +++ b/cake/tests/cases/libs/cake_test_fixture.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CakeTestFixture file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'DboSource'); + /** * CakeTestFixtureTestFixture class * @@ -32,18 +34,21 @@ App::import('Core', 'DboSource'); * @subpackage cake.cake.tests.cases.libs */ class CakeTestFixtureTestFixture extends CakeTestFixture { + /** * name Property * * @var string */ var $name = 'FixtureTest'; + /** * table property * * @var string */ var $table = 'fixture_tests'; + /** * Fields array * @@ -54,6 +59,7 @@ class CakeTestFixtureTestFixture extends CakeTestFixture { 'name' => array('type' => 'string', 'length' => '255'), 'created' => array('type' => 'datetime') ); + /** * Records property * @@ -65,6 +71,7 @@ class CakeTestFixtureTestFixture extends CakeTestFixture { array('name' => 'Chewbacca') ); } + /** * CakeTestFixtureImportFixture class * @@ -72,12 +79,14 @@ class CakeTestFixtureTestFixture extends CakeTestFixture { * @subpackage cake.cake.tests.cases.libs */ class CakeTestFixtureImportFixture extends CakeTestFixture { + /** * Name property * * @var string */ var $name = 'ImportFixture'; + /** * Import property * @@ -85,6 +94,7 @@ class CakeTestFixtureImportFixture extends CakeTestFixture { */ var $import = array('table' => 'fixture_tests', 'connection' => 'test_suite'); } + /** * CakeTestFixtureDefaultImportFixture class * @@ -92,6 +102,7 @@ class CakeTestFixtureImportFixture extends CakeTestFixture { * @subpackage cake.cake.tests.cases.libs */ class CakeTestFixtureDefaultImportFixture extends CakeTestFixture { + /** * Name property * @@ -99,6 +110,7 @@ class CakeTestFixtureDefaultImportFixture extends CakeTestFixture { */ var $name = 'ImportFixture'; } + /** * FixtureImportTestModel class * @@ -111,6 +123,7 @@ class FixtureImportTestModel extends Model { var $useDbConfig = 'test_suite'; } Mock::generate('DboSource', 'FixtureMockDboSource'); + /** * Test case for CakeTestFixture * @@ -118,6 +131,7 @@ Mock::generate('DboSource', 'FixtureMockDboSource'); * @subpackage cake.cake.tests.cases.libs */ class CakeTestFixtureTest extends CakeTestCase { + /** * setUp method * @@ -128,6 +142,7 @@ class CakeTestFixtureTest extends CakeTestCase { $this->criticDb =& new FixtureMockDboSource(); $this->criticDb->fullDebug = true; } + /** * tearDown * @@ -137,6 +152,7 @@ class CakeTestFixtureTest extends CakeTestCase { function tearDown() { unset($this->criticDb); } + /** * testInit * @@ -185,6 +201,7 @@ class CakeTestFixtureTest extends CakeTestCase { $Source->drop($this->db); } + /** * testImport * @@ -220,6 +237,7 @@ class CakeTestFixtureTest extends CakeTestCase { $Source->drop($newTestSuiteDb); } + /** * test create method * @@ -238,6 +256,7 @@ class CakeTestFixtureTest extends CakeTestCase { $return = $Fixture->create($this->criticDb); $this->assertFalse($return); } + /** * test the insert method * @@ -253,6 +272,7 @@ class CakeTestFixtureTest extends CakeTestCase { $this->assertTrue($this->criticDb->fullDebug); $this->assertTrue($return); } + /** * Test the drop method * @@ -273,6 +293,7 @@ class CakeTestFixtureTest extends CakeTestCase { $return = $Fixture->drop($this->criticDb); $this->assertFalse($return); } + /** * Test the truncate method. * diff --git a/cake/tests/cases/libs/class_registry.test.php b/cake/tests/cases/libs/class_registry.test.php index d40ed0e83..614101b29 100644 --- a/cake/tests/cases/libs/class_registry.test.php +++ b/cake/tests/cases/libs/class_registry.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ClassRegistryTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'ClassRegistry'); + /** * ClassRegisterModel class * @@ -32,6 +34,7 @@ App::import('Core', 'ClassRegistry'); * @subpackage cake.tests.cases.libs */ class ClassRegisterModel extends CakeTestModel { + /** * useTable property * @@ -40,6 +43,7 @@ class ClassRegisterModel extends CakeTestModel { */ var $useTable = false; } + /** * RegisterArticle class * @@ -47,6 +51,7 @@ class ClassRegisterModel extends CakeTestModel { * @subpackage cake.tests.cases.libs */ class RegisterArticle extends ClassRegisterModel { + /** * name property * @@ -55,6 +60,7 @@ class RegisterArticle extends ClassRegisterModel { */ var $name = 'RegisterArticle'; } + /** * RegisterArticleFeatured class * @@ -62,6 +68,7 @@ class RegisterArticle extends ClassRegisterModel { * @subpackage cake.tests.cases.libs */ class RegisterArticleFeatured extends ClassRegisterModel { + /** * name property * @@ -70,6 +77,7 @@ class RegisterArticleFeatured extends ClassRegisterModel { */ var $name = 'RegisterArticleFeatured'; } + /** * RegisterArticleTag class * @@ -77,6 +85,7 @@ class RegisterArticleFeatured extends ClassRegisterModel { * @subpackage cake.tests.cases.libs */ class RegisterArticleTag extends ClassRegisterModel { + /** * name property * @@ -85,6 +94,7 @@ class RegisterArticleTag extends ClassRegisterModel { */ var $name = 'RegisterArticleTag'; } + /** * RegistryPluginAppModel class * @@ -92,6 +102,7 @@ class RegisterArticleTag extends ClassRegisterModel { * @subpackage cake.tests.cases.libs */ class RegistryPluginAppModel extends ClassRegisterModel { + /** * tablePrefix property * @@ -100,6 +111,7 @@ class RegistryPluginAppModel extends ClassRegisterModel { */ var $tablePrefix = 'something_'; } + /** * TestRegistryPluginModel class * @@ -107,6 +119,7 @@ class RegistryPluginAppModel extends ClassRegisterModel { * @subpackage cake.tests.cases.libs */ class TestRegistryPluginModel extends RegistryPluginAppModel { + /** * name property * @@ -115,6 +128,7 @@ class TestRegistryPluginModel extends RegistryPluginAppModel { */ var $name = 'TestRegistryPluginModel'; } + /** * RegisterCategory class * @@ -122,6 +136,7 @@ class TestRegistryPluginModel extends RegistryPluginAppModel { * @subpackage cake.tests.cases.libs */ class RegisterCategory extends ClassRegisterModel { + /** * name property * @@ -130,6 +145,7 @@ class RegisterCategory extends ClassRegisterModel { */ var $name = 'RegisterCategory'; } + /** * ClassRegistryTest class * @@ -137,6 +153,7 @@ class RegisterCategory extends ClassRegisterModel { * @subpackage cake.tests.cases.libs */ class ClassRegistryTest extends CakeTestCase { + /** * testAddModel method * @@ -224,6 +241,7 @@ class ClassRegistryTest extends CakeTestCase { $this->assertEqual('RegisterCategory', $Category->alias); $this->assertEqual('ParentCategory', $ParentCategory->alias); } + /** * testClassRegistryFlush method * @@ -239,6 +257,7 @@ class ClassRegistryTest extends CakeTestCase { $this->assertFalse($NoArticleTag); $this->assertTrue(is_a($ArticleTag, 'RegisterArticleTag')); } + /** * testAddMultipleModels method * @@ -280,6 +299,7 @@ class ClassRegistryTest extends CakeTestCase { $Tag = ClassRegistry::getObject('Tag'); $this->assertTrue(is_a($Tag, 'RegisterArticleTag')); } + /** * testPluginAppModel method * diff --git a/cake/tests/cases/libs/code_coverage_manager.test.php b/cake/tests/cases/libs/code_coverage_manager.test.php index 8ef083aba..5af3b9bf3 100644 --- a/cake/tests/cases/libs/code_coverage_manager.test.php +++ b/cake/tests/cases/libs/code_coverage_manager.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CodeCoverageManagerTest file * @@ -27,6 +28,7 @@ App::import('Core', 'CodeCoverageManager'); require_once CAKE . 'tests' . DS . 'lib' . DS . 'cli_reporter.php'; require_once CAKE . 'tests' . DS . 'lib' . DS . 'cake_reporter.php'; + /** * CodeCoverageManagerTest class * @@ -34,6 +36,7 @@ require_once CAKE . 'tests' . DS . 'lib' . DS . 'cake_reporter.php'; * @subpackage cake.tests.cases.libs */ class CodeCoverageManagerTest extends CakeTestCase { + /** * Skip if XDebug not installed * @@ -42,6 +45,7 @@ class CodeCoverageManagerTest extends CakeTestCase { function skip() { $this->skipIf(!extension_loaded('xdebug'), '%s XDebug not installed'); } + /** * startTest Method * Store reference of $_GET to restore later. @@ -51,6 +55,7 @@ class CodeCoverageManagerTest extends CakeTestCase { function startCase() { $this->_get = $_GET; } + /** * End Case - restore GET vars. * @@ -59,6 +64,7 @@ class CodeCoverageManagerTest extends CakeTestCase { function endCase() { $_GET = $this->_get; } + /** * testNoTestCaseSupplied method * @@ -84,6 +90,7 @@ class CodeCoverageManagerTest extends CakeTestCase { $folder = new Folder(); $folder->cd($path); $contents = $folder->ls(); + /** * remove method * @@ -103,6 +110,7 @@ class CodeCoverageManagerTest extends CakeTestCase { } } } + /** * testGetTestObjectFileNameFromTestCaseFile method * @@ -143,6 +151,7 @@ class CodeCoverageManagerTest extends CakeTestCase { $expected = $manager->__testObjectFileFromCaseFile('libs/set.test.php', false); $this->assertIdentical(ROOT.DS.'cake'.DS.'libs'.DS.'set.php', $expected); } + /** * testOfHtmlReport method * @@ -159,6 +168,7 @@ class CodeCoverageManagerTest extends CakeTestCase { * @subpackage cake.tests.cases.libs */ class Set extends Object { + /** * Value of the Set object. * @@ -166,6 +176,7 @@ class CodeCoverageManagerTest extends CakeTestCase { * @access public */ var \$value = array(); + /** * Constructor. Defaults to an empty array. * @@ -178,6 +189,7 @@ class CodeCoverageManagerTest extends CakeTestCase { \$this->value = func_get_args(); } } + /** * Returns the contents of the Set object * @@ -187,6 +199,7 @@ class CodeCoverageManagerTest extends CakeTestCase { function &get() { return \$this->value; } + /** * This function can be thought of as a hybrid between PHP's array_merge and array_merge_recursive. The difference * to the two is that if an array key contains another array then the function behaves recursive (unlike array_merge) @@ -300,6 +313,7 @@ PHP; } } } + /** * testOfHtmlDiffReport method * @@ -316,6 +330,7 @@ PHP; * @subpackage cake.tests.cases.libs */ class Set extends Object { + /** * Value of the Set object. * @@ -323,6 +338,7 @@ PHP; * @access public */ var \$value = array(); + /** * Constructor. Defaults to an empty array. * @@ -335,6 +351,7 @@ PHP; \$this->value = func_get_args(); } } + /** * Returns the contents of the Set object * @@ -344,6 +361,7 @@ PHP; function &get() { return \$this->value; } + /** * This function can be thought of as a hybrid between PHP's array_merge and array_merge_recursive. The difference * to the two is that if an array key contains another array then the function behaves recursive (unlike array_merge) @@ -560,6 +578,7 @@ PHP; $this->assertPattern($pattern, $line, $num.': '.$line." fails"); } } + /** * testArrayStrrpos method * @@ -592,6 +611,7 @@ PHP; $this->assertEqual(1, $manager->__array_strpos($a, 'orange')); $this->assertEqual(2, $manager->__array_strpos($a, 'orange', true)); } + /** * testGetExecutableLines method * @@ -629,6 +649,7 @@ HTML; $this->assertIdentical(trim($line), ''); } } + /** * testCalculateCodeCoverage method * diff --git a/cake/tests/cases/libs/configure.test.php b/cake/tests/cases/libs/configure.test.php index 534992e26..85c8212af 100644 --- a/cake/tests/cases/libs/configure.test.php +++ b/cake/tests/cases/libs/configure.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ConfigureTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Configure'); + /** * ConfigureTest * @@ -32,6 +34,7 @@ App::import('Core', 'Configure'); * @subpackage cake.tests.cases.libs */ class ConfigureTest extends CakeTestCase { + /** * setUp method * @@ -41,9 +44,10 @@ class ConfigureTest extends CakeTestCase { function setUp() { $this->_cacheDisable = Configure::read('Cache.disable'); $this->_debug = Configure::read('debug'); - + Configure::write('Cache.disable', true); } + /** * endTest * @@ -52,7 +56,8 @@ class ConfigureTest extends CakeTestCase { */ function endTest() { App::build(); - } + } + /** * tearDown method * @@ -81,6 +86,7 @@ class ConfigureTest extends CakeTestCase { Configure::write('debug', $this->_debug); Configure::write('Cache.disable', $this->_cacheDisable); } + /** * testRead method * @@ -100,6 +106,7 @@ class ConfigureTest extends CakeTestCase { $result = Configure::read('debug'); $this->assertTrue($result >= 0); } + /** * testWrite method * @@ -115,6 +122,7 @@ class ConfigureTest extends CakeTestCase { $result = Configure::read('SomeName.someKey'); $this->assertEqual($result, null); } + /** * testSetErrorReporting Level * @@ -136,6 +144,7 @@ class ConfigureTest extends CakeTestCase { $result = ini_get('error_reporting'); $this->assertEqual($result, 0); } + /** * testDelete method * @@ -167,6 +176,7 @@ class ConfigureTest extends CakeTestCase { $result = Configure::read('SomeName.otherKey'); $this->assertTrue($result === null); } + /** * testLoad method * @@ -180,6 +190,7 @@ class ConfigureTest extends CakeTestCase { $result = Configure::load('config'); $this->assertTrue($result === null); } + /** * testStore method * @@ -203,6 +214,7 @@ class ConfigureTest extends CakeTestCase { $config = Configure::read('AnotherExample'); $this->assertEqual($config, $expected); } + /** * testVersion method * @@ -214,6 +226,7 @@ class ConfigureTest extends CakeTestCase { $this->assertTrue(version_compare($result, '1.2', '>=')); } } + /** * AppImportTest class * @@ -221,6 +234,7 @@ class ConfigureTest extends CakeTestCase { * @subpackage cake.tests.cases.libs */ class AppImportTest extends UnitTestCase { + /** * testBuild method * @@ -252,6 +266,7 @@ class AppImportTest extends UnitTestCase { $defaults = App::path('models'); $this->assertEqual($old, $defaults); } + /** * testBuildWithReset method * @@ -280,6 +295,7 @@ class AppImportTest extends UnitTestCase { $defaults = App::path('models'); $this->assertEqual($old, $defaults); } + /** * testCore method * @@ -297,6 +313,7 @@ class AppImportTest extends UnitTestCase { $this->assertEqual(array(ROOT . DS . LIBS . 'controller' . DS), $controller); } + /** * testListObjects method * @@ -340,6 +357,7 @@ class AppImportTest extends UnitTestCase { $result = App::objects('NonExistingType'); $this->assertFalse($result); } + /** * testClassLoading method * @@ -429,6 +447,7 @@ class AppImportTest extends UnitTestCase { App::build(); } + /** * testFileLoading method * @@ -443,6 +462,7 @@ class AppImportTest extends UnitTestCase { $this->assertFalse($file); } // import($type = null, $name = null, $parent = true, $file = null, $search = array(), $return = false) { + /** * testFileLoadingWithArray method * @@ -460,6 +480,7 @@ class AppImportTest extends UnitTestCase { $file = App::import($type); $this->assertFalse($file); } + /** * testFileLoadingReturnValue method * @@ -479,6 +500,7 @@ class AppImportTest extends UnitTestCase { $this->assertTrue(isset($file['Cake.version'])); } + /** * testLoadingWithSearch method * @@ -492,6 +514,7 @@ class AppImportTest extends UnitTestCase { $file = App::import('File', 'AnotherNewName', false, array(LIBS), 'config.php'); $this->assertFalse($file); } + /** * testLoadingWithSearchArray method * @@ -507,6 +530,7 @@ class AppImportTest extends UnitTestCase { $file = App::import($type); $this->assertFalse($file); } + /** * testMultipleLoading method * @@ -537,10 +561,12 @@ class AppImportTest extends UnitTestCase { $load = App::import($toLoad); $this->assertTrue($load); } + /** * This test only works if you have plugins/my_plugin set up. * plugins/my_plugin/models/my_plugin.php and other_model.php */ + /* function testMultipleLoadingByType() { $classes = array_flip(get_declared_classes()); @@ -561,7 +587,7 @@ class AppImportTest extends UnitTestCase { 'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS), 'vendors' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'vendors'. DS), ), true); - + ob_start(); $result = App::import('Vendor', 'TestPlugin.TestPluginAsset', array('ext' => 'css')); $text = ob_get_clean(); diff --git a/cake/tests/cases/libs/controller/component.test.php b/cake/tests/cases/libs/controller/component.test.php index 446e7866a..855dea914 100644 --- a/cake/tests/cases/libs/controller/component.test.php +++ b/cake/tests/cases/libs/controller/component.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ComponentTest file * @@ -27,6 +28,7 @@ App::import('Core', array('Component', 'Controller')); if (!class_exists('AppController')) { + /** * AppController class * @@ -34,6 +36,7 @@ if (!class_exists('AppController')) { * @subpackage cake.tests.cases.libs.controller */ class AppController extends Controller { + /** * name property * @@ -41,6 +44,7 @@ if (!class_exists('AppController')) { * @access public */ var $name = 'App'; + /** * uses property * @@ -48,6 +52,7 @@ if (!class_exists('AppController')) { * @access public */ var $uses = array(); + /** * helpers property * @@ -55,6 +60,7 @@ if (!class_exists('AppController')) { * @access public */ var $helpers = array(); + /** * components property * @@ -66,6 +72,7 @@ if (!class_exists('AppController')) { } elseif (!defined('APP_CONTROLLER_EXISTS')){ define('APP_CONTROLLER_EXISTS', true); } + /** * ParamTestComponent * @@ -73,6 +80,7 @@ if (!class_exists('AppController')) { * @subpackage cake.tests.cases.libs.controller */ class ParamTestComponent extends Object { + /** * name property * @@ -80,6 +88,7 @@ class ParamTestComponent extends Object { * @access public */ var $name = 'ParamTest'; + /** * components property * @@ -87,6 +96,7 @@ class ParamTestComponent extends Object { * @access public */ var $components = array('Banana' => array('config' => 'value')); + /** * initialize method * @@ -105,6 +115,7 @@ class ParamTestComponent extends Object { } } } + /** * ComponentTestController class * @@ -112,6 +123,7 @@ class ParamTestComponent extends Object { * @subpackage cake.tests.cases.libs.controller */ class ComponentTestController extends AppController { + /** * name property * @@ -119,6 +131,7 @@ class ComponentTestController extends AppController { * @access public */ var $name = 'ComponentTest'; + /** * uses property * @@ -127,6 +140,7 @@ class ComponentTestController extends AppController { */ var $uses = array(); } + /** * AppleComponent class * @@ -134,6 +148,7 @@ class ComponentTestController extends AppController { * @subpackage cake.tests.cases.libs.controller */ class AppleComponent extends Object { + /** * components property * @@ -141,6 +156,7 @@ class AppleComponent extends Object { * @access public */ var $components = array('Orange'); + /** * testName property * @@ -148,6 +164,7 @@ class AppleComponent extends Object { * @access public */ var $testName = null; + /** * startup method * @@ -159,6 +176,7 @@ class AppleComponent extends Object { $this->testName = $controller->name; } } + /** * OrangeComponent class * @@ -166,6 +184,7 @@ class AppleComponent extends Object { * @subpackage cake.tests.cases.libs.controller */ class OrangeComponent extends Object { + /** * components property * @@ -173,6 +192,7 @@ class OrangeComponent extends Object { * @access public */ var $components = array('Banana'); + /** * initialize method * @@ -185,6 +205,7 @@ class OrangeComponent extends Object { $this->Banana->testField = 'OrangeField'; $this->settings = $settings; } + /** * startup method * @@ -196,6 +217,7 @@ class OrangeComponent extends Object { $controller->foo = 'pass'; } } + /** * BananaComponent class * @@ -203,6 +225,7 @@ class OrangeComponent extends Object { * @subpackage cake.tests.cases.libs.controller */ class BananaComponent extends Object { + /** * testField property * @@ -210,6 +233,7 @@ class BananaComponent extends Object { * @access public */ var $testField = 'BananaField'; + /** * startup method * @@ -221,6 +245,7 @@ class BananaComponent extends Object { $controller->bar = 'fail'; } } + /** * MutuallyReferencingOneComponent class * @@ -228,6 +253,7 @@ class BananaComponent extends Object { * @subpackage cake.tests.cases.libs.controller */ class MutuallyReferencingOneComponent extends Object { + /** * components property * @@ -236,6 +262,7 @@ class MutuallyReferencingOneComponent extends Object { */ var $components = array('MutuallyReferencingTwo'); } + /** * MutuallyReferencingTwoComponent class * @@ -243,6 +270,7 @@ class MutuallyReferencingOneComponent extends Object { * @subpackage cake.tests.cases.libs.controller */ class MutuallyReferencingTwoComponent extends Object { + /** * components property * @@ -251,6 +279,7 @@ class MutuallyReferencingTwoComponent extends Object { */ var $components = array('MutuallyReferencingOne'); } + /** * SomethingWithEmailComponent class * @@ -258,6 +287,7 @@ class MutuallyReferencingTwoComponent extends Object { * @subpackage cake.tests.cases.libs.controller */ class SomethingWithEmailComponent extends Object { + /** * components property * @@ -266,6 +296,7 @@ class SomethingWithEmailComponent extends Object { */ var $components = array('Email'); } + /** * ComponentTest class * @@ -273,6 +304,7 @@ class SomethingWithEmailComponent extends Object { * @subpackage cake.tests.cases.libs.controller */ class ComponentTest extends CakeTestCase { + /** * setUp method * @@ -285,6 +317,7 @@ class ComponentTest extends CakeTestCase { 'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS) )); } + /** * tearDown method * @@ -295,6 +328,7 @@ class ComponentTest extends CakeTestCase { App::build(); ClassRegistry::flush(); } + /** * testLoadComponents method * @@ -345,6 +379,7 @@ class ComponentTest extends CakeTestCase { $this->assertTrue(is_a($Controller->RequestHandler, 'RequestHandlerComponent')); $this->assertTrue(is_a($Controller->Cookie, 'CookieComponent')); } + /** * test component loading * @@ -363,6 +398,7 @@ class ComponentTest extends CakeTestCase { $this->assertTrue(empty($Controller->Apple->Session)); $this->assertTrue(empty($Controller->Apple->Orange->Session)); } + /** * Tests Component::startup() and only running callbacks for components directly attached to * the controller. @@ -384,6 +420,7 @@ class ComponentTest extends CakeTestCase { $this->assertEqual(isset($Controller->foo), $expected); $this->assertFalse(isset($Controller->bar)); } + /** * test a component being used more than once. * @@ -398,6 +435,7 @@ class ComponentTest extends CakeTestCase { $this->assertEqual($Controller->Banana->testField, 'OrangeField'); $this->assertEqual($Controller->Orange->Banana->testField, 'OrangeField'); } + /** * Test Component declarations with Parameters * tests merging of component parameters and merging / construction of components. @@ -451,6 +489,7 @@ class ComponentTest extends CakeTestCase { $expected = array('setting' => array('itemx'), 'colour' => 'blood orange'); $this->assertEqual($Controller->Orange->settings, $expected, 'Params duplication has occured %s'); } + /** * Test mutually referencing components. * @@ -475,6 +514,7 @@ class ComponentTest extends CakeTestCase { 'MutuallyReferencingOneComponent' )); } + /** * Test mutually referencing components. * @@ -501,6 +541,7 @@ class ComponentTest extends CakeTestCase { 'ComponentTestController' )); } + /** * Test that SessionComponent doesn't get added if its already in the components array. * diff --git a/cake/tests/cases/libs/controller/components/acl.test.php b/cake/tests/cases/libs/controller/components/acl.test.php index 755d7ae19..fdf981959 100644 --- a/cake/tests/cases/libs/controller/components/acl.test.php +++ b/cake/tests/cases/libs/controller/components/acl.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * AclComponentTest file * @@ -28,6 +29,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { define('CAKEPHP_UNIT_TEST_EXECUTION', 1); } App::import(array('controller' .DS . 'components' . DS . 'acl', 'model' . DS . 'db_acl')); + /** * AclNodeTwoTestBase class * @@ -35,6 +37,7 @@ App::import(array('controller' .DS . 'components' . DS . 'acl', 'model' . DS . ' * @subpackage cake.tests.cases.libs.controller.components */ class AclNodeTwoTestBase extends AclNode { + /** * useDbConfig property * @@ -42,6 +45,7 @@ class AclNodeTwoTestBase extends AclNode { * @access public */ var $useDbConfig = 'test_suite'; + /** * cacheSources property * @@ -50,6 +54,7 @@ class AclNodeTwoTestBase extends AclNode { */ var $cacheSources = false; } + /** * AroTwoTest class * @@ -57,6 +62,7 @@ class AclNodeTwoTestBase extends AclNode { * @subpackage cake.tests.cases.libs.controller.components */ class AroTwoTest extends AclNodeTwoTestBase { + /** * name property * @@ -64,6 +70,7 @@ class AroTwoTest extends AclNodeTwoTestBase { * @access public */ var $name = 'AroTwoTest'; + /** * useTable property * @@ -71,6 +78,7 @@ class AroTwoTest extends AclNodeTwoTestBase { * @access public */ var $useTable = 'aro_twos'; + /** * hasAndBelongsToMany property * @@ -79,6 +87,7 @@ class AroTwoTest extends AclNodeTwoTestBase { */ var $hasAndBelongsToMany = array('AcoTwoTest' => array('with' => 'PermissionTwoTest')); } + /** * AcoTwoTest class * @@ -86,6 +95,7 @@ class AroTwoTest extends AclNodeTwoTestBase { * @subpackage cake.tests.cases.libs.controller.components */ class AcoTwoTest extends AclNodeTwoTestBase { + /** * name property * @@ -93,6 +103,7 @@ class AcoTwoTest extends AclNodeTwoTestBase { * @access public */ var $name = 'AcoTwoTest'; + /** * useTable property * @@ -100,6 +111,7 @@ class AcoTwoTest extends AclNodeTwoTestBase { * @access public */ var $useTable = 'aco_twos'; + /** * hasAndBelongsToMany property * @@ -108,6 +120,7 @@ class AcoTwoTest extends AclNodeTwoTestBase { */ var $hasAndBelongsToMany = array('AroTwoTest' => array('with' => 'PermissionTwoTest')); } + /** * PermissionTwoTest class * @@ -115,6 +128,7 @@ class AcoTwoTest extends AclNodeTwoTestBase { * @subpackage cake.tests.cases.libs.controller.components */ class PermissionTwoTest extends CakeTestModel { + /** * name property * @@ -122,6 +136,7 @@ class PermissionTwoTest extends CakeTestModel { * @access public */ var $name = 'PermissionTwoTest'; + /** * useTable property * @@ -129,6 +144,7 @@ class PermissionTwoTest extends CakeTestModel { * @access public */ var $useTable = 'aros_aco_twos'; + /** * cacheQueries property * @@ -136,6 +152,7 @@ class PermissionTwoTest extends CakeTestModel { * @access public */ var $cacheQueries = false; + /** * belongsTo property * @@ -143,6 +160,7 @@ class PermissionTwoTest extends CakeTestModel { * @access public */ var $belongsTo = array('AroTwoTest' => array('foreignKey' => 'aro_id'), 'AcoTwoTest' => array('foreignKey' => 'aco_id')); + /** * actsAs property * @@ -151,6 +169,7 @@ class PermissionTwoTest extends CakeTestModel { */ var $actsAs = null; } + /** * DbAclTwoTest class * @@ -158,6 +177,7 @@ class PermissionTwoTest extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller.components */ class DbAclTwoTest extends DbAcl { + /** * construct method * @@ -171,6 +191,7 @@ class DbAclTwoTest extends DbAcl { $this->Aro->Permission =& new PermissionTwoTest(); } } + /** * IniAclTest class * @@ -179,6 +200,7 @@ class DbAclTwoTest extends DbAcl { */ class IniAclTest extends IniAcl { } + /** * Short description for class. * @@ -186,6 +208,7 @@ class IniAclTest extends IniAcl { * @subpackage cake.tests.cases.libs.controller.components */ class AclComponentTest extends CakeTestCase { + /** * fixtures property * @@ -193,6 +216,7 @@ class AclComponentTest extends CakeTestCase { * @access public */ var $fixtures = array('core.aro_two', 'core.aco_two', 'core.aros_aco_two'); + /** * startTest method * @@ -202,6 +226,7 @@ class AclComponentTest extends CakeTestCase { function startTest() { $this->Acl =& new AclComponent(); } + /** * before method * @@ -214,6 +239,7 @@ class AclComponentTest extends CakeTestCase { Configure::write('Acl.database', 'test_suite'); parent::before($method); } + /** * tearDown method * @@ -223,6 +249,7 @@ class AclComponentTest extends CakeTestCase { function tearDown() { unset($this->Acl); } + /** * testAclCreate method * @@ -250,6 +277,7 @@ class AclComponentTest extends CakeTestCase { $this->Acl->Aco->create(array('parent_id' => $parent, 'alias' => 'PiecesOfFlair')); $this->assertTrue($this->Acl->Aco->save()); } + /** * testAclCreateWithParent method * @@ -269,6 +297,7 @@ class AclComponentTest extends CakeTestCase { $this->assertEqual($result['AroTwoTest']['lft'], 16); $this->assertEqual($result['AroTwoTest']['rght'], 17); } + /** * testDbAclAllow method * @@ -309,6 +338,7 @@ class AclComponentTest extends CakeTestCase { $this->expectError('DbAcl::allow() - Invalid node'); $this->assertFalse($this->Acl->allow('Homer', 'tpsReports', 'create')); } + /** * testDbAclCheck method * @@ -338,6 +368,7 @@ class AclComponentTest extends CakeTestCase { $this->assertFalse($this->Acl->check('root/users/Milton', 'smash', 'delete')); } + /** * testDbAclCascadingDeny function * @@ -355,6 +386,7 @@ class AclComponentTest extends CakeTestCase { $this->assertFalse($this->Acl->check('admin', 'tpsReports', 'delete')); $this->assertFalse($this->Acl->check('Bobs', 'tpsReports', 'delete')); } + /** * testDbAclDeny method * @@ -384,6 +416,7 @@ class AclComponentTest extends CakeTestCase { $this->expectError('DbAcl::allow() - Invalid node'); $this->assertFalse($this->Acl->deny('Lumbergh', 'ROOT/tpsReports/DoesNotExist', 'create')); } + /** * testAclNodeLookup method * @@ -408,6 +441,7 @@ class AclComponentTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testDbInherit method * @@ -425,6 +459,7 @@ class AclComponentTest extends CakeTestCase { $this->Acl->inherit('Milton', 'smash', 'read'); $this->assertTrue($this->Acl->check('Milton', 'smash', 'read')); } + /** * testDbGrant method * @@ -446,6 +481,7 @@ class AclComponentTest extends CakeTestCase { $this->expectError('DbAcl::allow() - Invalid node'); $this->assertFalse($this->Acl->grant('Peter', 'ROOT/tpsReports/DoesNotExist', 'create')); } + /** * testDbRevoke method * @@ -466,6 +502,7 @@ class AclComponentTest extends CakeTestCase { $this->expectError('DbAcl::allow() - Invalid node'); $this->assertFalse($this->Acl->deny('Bobs', 'ROOT/printers/DoesNotExist', 'create')); } + /** * testStartup method * @@ -476,6 +513,7 @@ class AclComponentTest extends CakeTestCase { $controller = new Controller(); $this->assertTrue($this->Acl->startup($controller)); } + /** * testIniReadConfigFile * @@ -524,6 +562,7 @@ class AclComponentTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testIniCheck method * @@ -549,6 +588,7 @@ class AclComponentTest extends CakeTestCase { $this->assertFalse($this->Acl->check('nobody', 'comments')); } + /** * debug function - to help editing/creating test cases for the ACL component * @@ -598,6 +638,7 @@ class AclComponentTest extends CakeTestCase { } debug (implode("\r\n", $permissions)); } + /** * pad function * Used by debug to format strings used in the data dump diff --git a/cake/tests/cases/libs/controller/components/auth.test.php b/cake/tests/cases/libs/controller/components/auth.test.php index 9b17a6988..cc6ba4b3a 100644 --- a/cake/tests/cases/libs/controller/components/auth.test.php +++ b/cake/tests/cases/libs/controller/components/auth.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * AutComponentTest file * @@ -27,6 +28,7 @@ App::import(array('controller' . DS . 'components' . DS .'auth', 'controller' . DS . 'components' . DS .'acl')); App::import(array('controller' . DS . 'components' . DS . 'acl', 'model' . DS . 'db_acl')); App::import('Core', 'Xml'); + /** * TestAuthComponent class * @@ -34,6 +36,7 @@ App::import('Core', 'Xml'); * @subpackage cake.tests.cases.libs.controller.components */ class TestAuthComponent extends AuthComponent { + /** * testStop property * @@ -41,6 +44,7 @@ class TestAuthComponent extends AuthComponent { * @access public */ var $testStop = false; + /** * Sets default login state * @@ -48,6 +52,7 @@ class TestAuthComponent extends AuthComponent { * @access protected */ var $_loggedIn = true; + /** * stop method * @@ -58,6 +63,7 @@ class TestAuthComponent extends AuthComponent { $this->testStop = true; } } + /** * AuthUser class * @@ -65,6 +71,7 @@ class TestAuthComponent extends AuthComponent { * @subpackage cake.tests.cases.libs.controller.components */ class AuthUser extends CakeTestModel { + /** * name property * @@ -72,6 +79,7 @@ class AuthUser extends CakeTestModel { * @access public */ var $name = 'AuthUser'; + /** * useDbConfig property * @@ -79,6 +87,7 @@ class AuthUser extends CakeTestModel { * @access public */ var $useDbConfig = 'test_suite'; + /** * parentNode method * @@ -88,6 +97,7 @@ class AuthUser extends CakeTestModel { function parentNode() { return true; } + /** * bindNode method * @@ -98,6 +108,7 @@ class AuthUser extends CakeTestModel { function bindNode($object) { return 'Roles/Admin'; } + /** * isAuthorized method * @@ -114,6 +125,7 @@ class AuthUser extends CakeTestModel { return false; } } + /** * AuthUserCustomField class * @@ -121,6 +133,7 @@ class AuthUser extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller.components */ class AuthUserCustomField extends AuthUser { + /** * name property * @@ -129,6 +142,7 @@ class AuthUserCustomField extends AuthUser { */ var $name = 'AuthUserCustomField'; } + /** * UuidUser class * @@ -136,6 +150,7 @@ class AuthUserCustomField extends AuthUser { * @subpackage cake.tests.cases.libs.controller.components */ class UuidUser extends CakeTestModel { + /** * name property * @@ -143,6 +158,7 @@ class UuidUser extends CakeTestModel { * @access public */ var $name = 'UuidUser'; + /** * useDbConfig property * @@ -150,6 +166,7 @@ class UuidUser extends CakeTestModel { * @access public */ var $useDbConfig = 'test_suite'; + /** * useTable property * @@ -157,6 +174,7 @@ class UuidUser extends CakeTestModel { * @access public */ var $useTable = 'uuids'; + /** * parentNode method * @@ -166,6 +184,7 @@ class UuidUser extends CakeTestModel { function parentNode() { return true; } + /** * bindNode method * @@ -176,6 +195,7 @@ class UuidUser extends CakeTestModel { function bindNode($object) { return 'Roles/Admin'; } + /** * isAuthorized method * @@ -192,6 +212,7 @@ class UuidUser extends CakeTestModel { return false; } } + /** * AuthTestController class * @@ -199,6 +220,7 @@ class UuidUser extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller.components */ class AuthTestController extends Controller { + /** * name property * @@ -206,6 +228,7 @@ class AuthTestController extends Controller { * @access public */ var $name = 'AuthTest'; + /** * uses property * @@ -213,6 +236,7 @@ class AuthTestController extends Controller { * @access public */ var $uses = array('AuthUser'); + /** * components property * @@ -220,6 +244,7 @@ class AuthTestController extends Controller { * @access public */ var $components = array('Auth', 'Acl'); + /** * testUrl property * @@ -227,6 +252,7 @@ class AuthTestController extends Controller { * @access public */ var $testUrl = null; + /** * construct method * @@ -238,6 +264,7 @@ class AuthTestController extends Controller { Router::setRequestInfo(array($this->params, array('base' => null, 'here' => '/auth_test', 'webroot' => '/', 'passedArgs' => array(), 'argSeparator' => ':', 'namedArgs' => array()))); parent::__construct(); } + /** * beforeFilter method * @@ -246,6 +273,7 @@ class AuthTestController extends Controller { */ function beforeFilter() { } + /** * login method * @@ -254,6 +282,7 @@ class AuthTestController extends Controller { */ function login() { } + /** * admin_login method * @@ -262,6 +291,7 @@ class AuthTestController extends Controller { */ function admin_login() { } + /** * logout method * @@ -271,6 +301,7 @@ class AuthTestController extends Controller { function logout() { // $this->redirect($this->Auth->logout()); } + /** * add method * @@ -280,6 +311,7 @@ class AuthTestController extends Controller { function add() { echo "add"; } + /** * add method * @@ -289,6 +321,7 @@ class AuthTestController extends Controller { function camelCase() { echo "camelCase"; } + /** * redirect method * @@ -302,6 +335,7 @@ class AuthTestController extends Controller { $this->testUrl = Router::url($url); return false; } + /** * isAuthorized method * @@ -314,6 +348,7 @@ class AuthTestController extends Controller { } return true; } + /** * Mock delete method * @@ -329,6 +364,7 @@ class AuthTestController extends Controller { } } } + /** * AjaxAuthController class * @@ -336,6 +372,7 @@ class AuthTestController extends Controller { * @subpackage cake.tests.cases.libs.controller.components */ class AjaxAuthController extends Controller { + /** * name property * @@ -343,6 +380,7 @@ class AjaxAuthController extends Controller { * @access public */ var $name = 'AjaxAuth'; + /** * components property * @@ -350,6 +388,7 @@ class AjaxAuthController extends Controller { * @access public */ var $components = array('TestAuth'); + /** * uses property * @@ -357,6 +396,7 @@ class AjaxAuthController extends Controller { * @access public */ var $uses = array(); + /** * testUrl property * @@ -364,6 +404,7 @@ class AjaxAuthController extends Controller { * @access public */ var $testUrl = null; + /** * beforeFilter method * @@ -375,6 +416,7 @@ class AjaxAuthController extends Controller { $this->TestAuth->userModel = 'AuthUser'; $this->TestAuth->RequestHandler->ajaxLayout = 'ajax2'; } + /** * add method * @@ -386,6 +428,7 @@ class AjaxAuthController extends Controller { echo 'Added Record'; } } + /** * redirect method * @@ -400,6 +443,7 @@ class AjaxAuthController extends Controller { return false; } } + /** * AuthTest class * @@ -407,6 +451,7 @@ class AjaxAuthController extends Controller { * @subpackage cake.tests.cases.libs.controller.components */ class AuthTest extends CakeTestCase { + /** * name property * @@ -414,6 +459,7 @@ class AuthTest extends CakeTestCase { * @access public */ var $name = 'Auth'; + /** * fixtures property * @@ -421,6 +467,7 @@ class AuthTest extends CakeTestCase { * @access public */ var $fixtures = array('core.uuid', 'core.auth_user', 'core.auth_user_custom_field', 'core.aro', 'core.aco', 'core.aros_aco', 'core.aco_action'); + /** * initialized property * @@ -428,6 +475,7 @@ class AuthTest extends CakeTestCase { * @access public */ var $initialized = false; + /** * startTest method * @@ -457,6 +505,7 @@ class AuthTest extends CakeTestCase { $this->initialized = true; } + /** * endTest method * @@ -473,6 +522,7 @@ class AuthTest extends CakeTestCase { ClassRegistry::flush(); unset($this->Controller, $this->AuthUser); } + /** * testNoAuth method * @@ -482,6 +532,7 @@ class AuthTest extends CakeTestCase { function testNoAuth() { $this->assertFalse($this->Controller->Auth->isAuthorized()); } + /** * testIsErrorOrTests * @@ -502,6 +553,7 @@ class AuthTest extends CakeTestCase { $this->Controller->params['action'] = 'index'; $this->assertFalse($this->Controller->Auth->startup($this->Controller)); } + /** * testLogin method * @@ -573,6 +625,7 @@ class AuthTest extends CakeTestCase { $this->assertEqual($user, $expected); $this->Controller->Session->del('Auth'); } + /** * testAuthorizeFalse method * @@ -598,6 +651,7 @@ class AuthTest extends CakeTestCase { $result = $this->Controller->Auth->startup($this->Controller); $this->assertFalse($result); } + /** * testAuthorizeController method * @@ -621,6 +675,7 @@ class AuthTest extends CakeTestCase { $this->Controller->Session->del('Auth'); } + /** * testAuthorizeModel method * @@ -646,6 +701,7 @@ class AuthTest extends CakeTestCase { $result = $this->Controller->Auth->isAuthorized(); $this->assertFalse($result); } + /** * testAuthorizeCrud method * @@ -707,6 +763,7 @@ class AuthTest extends CakeTestCase { $this->Controller->Auth->startup($this->Controller); $this->assertTrue($this->Controller->Session->check('Message.auth')); } + /** * Tests that deny always takes precedence over allow * @@ -728,6 +785,7 @@ class AuthTest extends CakeTestCase { $this->Controller->params['action'] = 'Add'; $this->assertFalse($this->Controller->Auth->startup($this->Controller)); } + /** * test that allow() and allowedActions work with camelCase method names. * @@ -758,6 +816,7 @@ class AuthTest extends CakeTestCase { $result = $this->Controller->Auth->startup($this->Controller); $this->assertFalse($result, 'startup() should return false, as action is not allowed. %s'); } + /** * testLoginRedirect method * @@ -931,6 +990,7 @@ class AuthTest extends CakeTestCase { $_SERVER['HTTP_REFERER'] = $backup; $this->Controller->Session->del('Auth'); } + /** * Ensure that no redirect is performed when a 404 is reached * And the user doesn't have a session. @@ -944,6 +1004,7 @@ class AuthTest extends CakeTestCase { $result = $this->Controller->Auth->startup($this->Controller); $this->assertTrue($result, 'Auth redirected a missing action %s'); } + /** * testEmptyUsernameOrPassword method * @@ -974,6 +1035,7 @@ class AuthTest extends CakeTestCase { $this->assertEqual($user, false); $this->Controller->Session->del('Auth'); } + /** * testInjection method * @@ -1031,6 +1093,7 @@ class AuthTest extends CakeTestCase { $this->Controller->Auth->startup($this->Controller); $this->assertTrue(is_null($this->Controller->Auth->user())); } + /** * test Hashing of passwords * @@ -1065,6 +1128,7 @@ class AuthTest extends CakeTestCase { $expected = $data; $this->assertEqual($return, $expected); } + /** * testCustomRoute method * @@ -1122,6 +1186,7 @@ class AuthTest extends CakeTestCase { $user = $this->Controller->Auth->user(); $this->assertTrue(!!$user); } + /** * testCustomField method * @@ -1156,6 +1221,7 @@ class AuthTest extends CakeTestCase { $user = $this->Controller->Auth->user(); $this->assertTrue(!!$user); } + /** * testAdminRoute method * @@ -1193,6 +1259,7 @@ class AuthTest extends CakeTestCase { Configure::write('Routing.admin', $admin); } + /** * testAjaxLogin method * @@ -1214,6 +1281,7 @@ class AuthTest extends CakeTestCase { $this->assertEqual("Ajax!\nthis is the test element", $result); unset($_SERVER['HTTP_X_REQUESTED_WITH']); } + /** * testLoginActionRedirect method * @@ -1250,6 +1318,7 @@ class AuthTest extends CakeTestCase { Configure::write('Routing.admin', $admin); } + /** * Tests that shutdown destroys the redirect session var * @@ -1263,4 +1332,4 @@ class AuthTest extends CakeTestCase { $this->assertFalse($this->Controller->Session->read('Auth.redirect')); } } -?> +?> \ No newline at end of file diff --git a/cake/tests/cases/libs/controller/components/cookie.test.php b/cake/tests/cases/libs/controller/components/cookie.test.php index 5d8d87aa0..ac7ed73f7 100644 --- a/cake/tests/cases/libs/controller/components/cookie.test.php +++ b/cake/tests/cases/libs/controller/components/cookie.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CookieComponentTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', array('Component', 'Controller', 'Cookie')); + /** * CookieComponentTestController class * @@ -32,6 +34,7 @@ App::import('Core', array('Component', 'Controller', 'Cookie')); * @subpackage cake.tests.cases.libs.controller.components */ class CookieComponentTestController extends Controller { + /** * components property * @@ -39,6 +42,7 @@ class CookieComponentTestController extends Controller { * @access public */ var $components = array('Cookie'); + /** * beforeFilter method * @@ -54,6 +58,7 @@ class CookieComponentTestController extends Controller { $this->Cookie->key = 'somerandomhaskey'; } } + /** * CookieComponentTest class * @@ -61,6 +66,7 @@ class CookieComponentTestController extends Controller { * @subpackage cake.tests.cases.libs.controller.components */ class CookieComponentTest extends CakeTestCase { + /** * Controller property * @@ -68,6 +74,7 @@ class CookieComponentTest extends CakeTestCase { * @access public */ var $Controller; + /** * start * @@ -82,6 +89,7 @@ class CookieComponentTest extends CakeTestCase { $this->Controller->Component->startup($this->Controller); $this->Controller->Cookie->destroy(); } + /** * end * @@ -91,6 +99,7 @@ class CookieComponentTest extends CakeTestCase { function end() { $this->Controller->Cookie->destroy(); } + /** * testCookieName * @@ -100,6 +109,7 @@ class CookieComponentTest extends CakeTestCase { function testCookieName() { $this->assertEqual($this->Controller->Cookie->name, 'CakeTestCookie'); } + /** * testSettingEncryptedCookieData * @@ -112,6 +122,7 @@ class CookieComponentTest extends CakeTestCase { $this->Controller->Cookie->write('Encrytped_multi_cookies.version', '1.2.0.x'); $this->Controller->Cookie->write('Encrytped_multi_cookies.tag', 'CakePHP Rocks!'); } + /** * testReadEncryptedCookieData * @@ -127,6 +138,7 @@ class CookieComponentTest extends CakeTestCase { $expected = array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!'); $this->assertEqual($data, $expected); } + /** * testSettingPlainCookieData * @@ -139,6 +151,7 @@ class CookieComponentTest extends CakeTestCase { $this->Controller->Cookie->write('Plain_multi_cookies.version', '1.2.0.x', false); $this->Controller->Cookie->write('Plain_multi_cookies.tag', 'CakePHP Rocks!', false); } + /** * testReadPlainCookieData * @@ -154,6 +167,7 @@ class CookieComponentTest extends CakeTestCase { $expected = array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!'); $this->assertEqual($data, $expected); } + /** * testWritePlainCookieArray * @@ -171,6 +185,7 @@ class CookieComponentTest extends CakeTestCase { $this->Controller->Cookie->del('version'); $this->Controller->Cookie->del('tag'); } + /** * testReadingCookieValue * @@ -198,6 +213,7 @@ class CookieComponentTest extends CakeTestCase { 'tag' => 'CakePHP Rocks!')); $this->assertEqual($data, $expected); } + /** * testDeleteCookieValue * @@ -225,6 +241,7 @@ class CookieComponentTest extends CakeTestCase { $expected = array(); $this->assertEqual($data, $expected); } + /** * testSettingCookiesWithArray * @@ -244,6 +261,7 @@ class CookieComponentTest extends CakeTestCase { $this->Controller->Cookie->write(array('Plain_multi_cookies.version' => '1.2.0.x'), null, false); $this->Controller->Cookie->write(array('Plain_multi_cookies.tag' => 'CakePHP Rocks!'), null, false); } + /** * testReadingCookieArray * @@ -299,6 +317,7 @@ class CookieComponentTest extends CakeTestCase { $expected = 'CakePHP Rocks!'; $this->assertEqual($data, $expected); } + /** * testReadingCookieDataOnStartup * @@ -355,6 +374,7 @@ class CookieComponentTest extends CakeTestCase { $this->Controller->Cookie->destroy(); unset($_COOKIE['CakeTestCookie']); } + /** * testReadingCookieDataWithoutStartup * @@ -408,6 +428,7 @@ class CookieComponentTest extends CakeTestCase { $this->Controller->Cookie->destroy(); unset($_COOKIE['CakeTestCookie']); } + /** * encrypt method * @@ -421,6 +442,7 @@ class CookieComponentTest extends CakeTestCase { } return "Q2FrZQ==." . base64_encode(Security::cipher($value, $this->Controller->Cookie->key)); } + /** * implode method * diff --git a/cake/tests/cases/libs/controller/components/email.test.php b/cake/tests/cases/libs/controller/components/email.test.php index f52ea551e..b591905b8 100644 --- a/cake/tests/cases/libs/controller/components/email.test.php +++ b/cake/tests/cases/libs/controller/components/email.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * EmailComponentTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Component', 'Email'); + /** * EmailTestComponent class * @@ -32,6 +34,7 @@ App::import('Component', 'Email'); * @subpackage cake.tests.cases.libs.controller.components */ class EmailTestComponent extends EmailComponent { + /** * smtpSend method override for testing * @@ -41,6 +44,7 @@ class EmailTestComponent extends EmailComponent { function smtpSend($data, $code = '250') { return parent::__smtpSend($data, $code); } + /** * Convenience setter method for testing. * @@ -50,6 +54,7 @@ class EmailTestComponent extends EmailComponent { function setConnectionSocket(&$socket) { $this->__smtpConnection = $socket; } + /** * Convenience getter method for testing. * @@ -59,6 +64,7 @@ class EmailTestComponent extends EmailComponent { function getConnectionSocket() { return $this->__smtpConnection; } + /** * Convenience setter for testing. * @@ -68,6 +74,7 @@ class EmailTestComponent extends EmailComponent { function setHeaders($headers) { $this->__header += $headers; } + /** * Convenience getter for testing. * @@ -77,6 +84,7 @@ class EmailTestComponent extends EmailComponent { function getHeaders() { return $this->__header; } + /** * Convenience setter for testing. * @@ -86,6 +94,7 @@ class EmailTestComponent extends EmailComponent { function setBoundary() { $this->__createBoundary(); } + /** * Convenience getter for testing. * @@ -95,6 +104,7 @@ class EmailTestComponent extends EmailComponent { function getBoundary() { return $this->__boundary; } + /** * Convenience getter for testing. * @@ -104,6 +114,7 @@ class EmailTestComponent extends EmailComponent { function getMessage() { return $this->__message; } + /** * Convenience method for testing. * @@ -114,6 +125,7 @@ class EmailTestComponent extends EmailComponent { return parent::__strip($content, $message); } } + /** * EmailTestController class * @@ -121,6 +133,7 @@ class EmailTestComponent extends EmailComponent { * @subpackage cake.tests.cases.libs.controller.components */ class EmailTestController extends Controller { + /** * name property * @@ -128,6 +141,7 @@ class EmailTestController extends Controller { * @access public */ var $name = 'EmailTest'; + /** * uses property * @@ -135,6 +149,7 @@ class EmailTestController extends Controller { * @access public */ var $uses = null; + /** * components property * @@ -142,6 +157,7 @@ class EmailTestController extends Controller { * @access public */ var $components = array('EmailTest'); + /** * pageTitle property * @@ -150,6 +166,7 @@ class EmailTestController extends Controller { */ var $pageTitle = 'EmailTest'; } + /** * EmailTest class * @@ -157,6 +174,7 @@ class EmailTestController extends Controller { * @subpackage cake.tests.cases.libs.controller.components */ class EmailComponentTest extends CakeTestCase { + /** * Controller property * @@ -164,6 +182,7 @@ class EmailComponentTest extends CakeTestCase { * @access public */ var $Controller; + /** * name property * @@ -171,6 +190,7 @@ class EmailComponentTest extends CakeTestCase { * @access public */ var $name = 'Email'; + /** * setUp method * @@ -194,6 +214,7 @@ class EmailComponentTest extends CakeTestCase { 'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS) )); } + /** * tearDown method * @@ -207,6 +228,7 @@ class EmailComponentTest extends CakeTestCase { restore_error_handler(); ClassRegistry::flush(); } + /** * testBadSmtpSend method * @@ -218,6 +240,7 @@ class EmailComponentTest extends CakeTestCase { $this->Controller->EmailTest->delivery = 'smtp'; $this->assertFalse($this->Controller->EmailTest->send('Should not work')); } + /** * testSmtpSend method * @@ -266,6 +289,7 @@ TEMPDOC; $this->assertTrue($this->Controller->EmailTest->send('This is the body of the message')); $this->assertEqual($this->Controller->Session->read('Message.email.message'), $this->__osFix($expect)); } + /** * testAuthenticatedSmtpSend method * @@ -292,6 +316,7 @@ TEMPDOC; $this->assertFalse($result); $this->assertEqual($code, '535'); } + /** * testSendFormats method * @@ -342,6 +367,7 @@ MSGBLOC; $this->assertTrue($this->Controller->EmailTest->send('This is the body of the message')); $this->assertEqual($this->Controller->Session->read('Message.email.message'), $this->__osFix($expect)); } + /** * testTemplates method * @@ -460,6 +486,7 @@ TEXTBLOC; $this->assertTrue($this->Controller->EmailTest->send('This is the body of the message', 'wide', 'default')); $this->assertEqual($this->Controller->Session->read('Message.email.message'), $this->__osFix($expect)); } + /** * testSmtpSendSocket method * @@ -483,6 +510,7 @@ TEXTBLOC; $this->assertNoPattern('/501 Syntax: HELO hostname/', $this->Controller->EmailTest->smtpError); } + /** * testSendDebug method * @@ -500,6 +528,7 @@ TEXTBLOC; $this->Controller->EmailTest->delivery = 'debug'; $this->assertTrue($this->Controller->EmailTest->send('This is the body of the message')); } + /** * testContentStripping method * @@ -526,6 +555,7 @@ TEXTBLOC; $this->assertEqual($result, $expected); } + /** * testMultibyte method * @@ -558,6 +588,7 @@ TEXTBLOC; preg_match('/Subject: (.*)Header:/s', $this->Controller->Session->read('Message.email.message'), $matches); $this->assertEqual(trim($matches[1]), $subject); } + /** * undocumented function * @@ -595,6 +626,7 @@ TEXTBLOC; $this->assertNoPattern('/text\/html/', $msg); $this->assertPattern('/multipart\/alternative/', $msg); } + /** * undocumented function * @@ -618,6 +650,7 @@ TEXTBLOC; $this->assertNoPattern('/\n\nContent-Transfer-Encoding/', $msg); $this->assertPattern('/\nContent-Transfer-Encoding/', $msg); } + /** * testReset method * @@ -657,6 +690,7 @@ TEXTBLOC; $this->assertNull($this->Controller->EmailTest->smtpError); $this->assertIdentical($this->Controller->EmailTest->attachments, array()); } + /** * osFix method * diff --git a/cake/tests/cases/libs/controller/components/request_handler.test.php b/cake/tests/cases/libs/controller/components/request_handler.test.php index 3a01ddf43..70db8f6fd 100644 --- a/cake/tests/cases/libs/controller/components/request_handler.test.php +++ b/cake/tests/cases/libs/controller/components/request_handler.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * RequestHandlerComponentTest file * @@ -28,6 +29,7 @@ App::import('Core', array('Controller')); App::import('Component', array('RequestHandler')); Mock::generatePartial('RequestHandlerComponent', 'NoStopRequestHandler', array('_stop')); + /** * RequestHandlerTestController class * @@ -35,6 +37,7 @@ Mock::generatePartial('RequestHandlerComponent', 'NoStopRequestHandler', array(' * @subpackage cake.tests.cases.libs.controller.components */ class RequestHandlerTestController extends Controller { + /** * name property * @@ -42,6 +45,7 @@ class RequestHandlerTestController extends Controller { * @access public **/ var $name = 'RequestHandlerTest'; + /** * uses property * @@ -49,6 +53,7 @@ class RequestHandlerTestController extends Controller { * @access public */ var $uses = null; + /** * construct method * @@ -62,6 +67,7 @@ class RequestHandlerTestController extends Controller { } parent::__construct(); } + /** * test method for ajax redirection * @@ -72,6 +78,7 @@ class RequestHandlerTestController extends Controller { $this->render('index'); } } + /** * RequestHandlerTestDisabledController class * @@ -79,6 +86,7 @@ class RequestHandlerTestController extends Controller { * @subpackage cake.tests.cases.libs.controller.components */ class RequestHandlerTestDisabledController extends Controller { + /** * uses property * @@ -86,6 +94,7 @@ class RequestHandlerTestDisabledController extends Controller { * @access public */ var $uses = null; + /** * construct method * @@ -99,6 +108,7 @@ class RequestHandlerTestDisabledController extends Controller { } parent::__construct(); } + /** * beforeFilter method * @@ -109,6 +119,7 @@ class RequestHandlerTestDisabledController extends Controller { $this->RequestHandler->enabled = false; } } + /** * RequestHandlerComponentTest class * @@ -116,6 +127,7 @@ class RequestHandlerTestDisabledController extends Controller { * @subpackage cake.tests.cases.libs.controller.components */ class RequestHandlerComponentTest extends CakeTestCase { + /** * Controller property * @@ -123,6 +135,7 @@ class RequestHandlerComponentTest extends CakeTestCase { * @access public */ var $Controller; + /** * RequestHandler property * @@ -130,6 +143,7 @@ class RequestHandlerComponentTest extends CakeTestCase { * @access public */ var $RequestHandler; + /** * startTest method * @@ -139,6 +153,7 @@ class RequestHandlerComponentTest extends CakeTestCase { function startTest() { $this->_init(); } + /** * init method * @@ -150,6 +165,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->Controller->constructClasses(); $this->RequestHandler =& $this->Controller->RequestHandler; } + /** * endTest method * @@ -164,6 +180,7 @@ class RequestHandlerComponentTest extends CakeTestCase { } App::build(); } + /** * testInitializeCallback method * @@ -178,6 +195,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->RequestHandler->initialize($this->Controller); $this->assertEqual($this->RequestHandler->ext, 'rss'); } + /** * testDisabling method * @@ -200,6 +218,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertEqual($this->Controller->params, array()); unset($_SERVER['HTTP_X_REQUESTED_WITH']); } + /** * testAutoResponseType method * @@ -213,6 +232,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->RequestHandler->startup($this->Controller); $this->assertEqual($this->Controller->ext, '.ctp'); } + /** * testStartupCallback method * @@ -226,6 +246,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertTrue(is_object($this->Controller->data)); $this->assertEqual(strtolower(get_class($this->Controller->data)), 'xml'); } + /** * testStartupCallback with charset. * @@ -238,6 +259,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertTrue(is_object($this->Controller->data)); $this->assertEqual(strtolower(get_class($this->Controller->data)), 'xml'); } + /** * testNonAjaxRedirect method * @@ -249,6 +271,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->RequestHandler->startup($this->Controller); $this->assertNull($this->RequestHandler->beforeRedirect($this->Controller, '/')); } + /** * testRenderAs method * @@ -260,6 +283,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->RequestHandler->renderAs($this->Controller, 'xml'); $this->assertTrue(in_array('Xml', $this->Controller->helpers)); } + /** * test that calling renderAs() more than once continues to work. * @@ -270,7 +294,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->RequestHandler->renderAs($this->Controller, 'xml'); $this->assertEqual($this->Controller->viewPath, 'request_handler_test/xml'); $this->assertEqual($this->Controller->layoutPath, 'xml'); - + $this->assertTrue(in_array('Xml', $this->Controller->helpers)); $this->RequestHandler->renderAs($this->Controller, 'js'); @@ -278,6 +302,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertEqual($this->Controller->layoutPath, 'js'); $this->assertTrue(in_array('Js', $this->Controller->helpers)); } + /** * testRequestClientTypes method * @@ -300,6 +325,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertFalse($this->RequestHandler->isAjax()); $this->assertFalse($this->RequestHandler->getAjaxVersion()); } + /** * Tests the detection of various Flash versions * @@ -325,6 +351,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $_SERVER['HTTP_USER_AGENT'] = $_agent; } + /** * testRequestContentTypes method * @@ -368,6 +395,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $_SERVER['HTTP_ACCEPT'] = 'application/rss+xml,text/xml,application/xml,application/xhtml+xml,text/html,text/plain,image/png,*/*'; } + /** * testResponseContentType method * @@ -379,6 +407,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertTrue($this->RequestHandler->respondAs('atom')); $this->assertEqual($this->RequestHandler->responseType(), 'atom'); } + /** * testMobileDeviceDetection method * @@ -390,6 +419,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3'; $this->assertTrue($this->RequestHandler->isMobile()); } + /** * testRequestProperties method * @@ -409,6 +439,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertTrue($this->RequestHandler->isSSL()); $_SERVER = $s; } + /** * testRequestMethod method * @@ -440,6 +471,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertFalse($this->RequestHandler->isPut()); $this->assertTrue($this->RequestHandler->isDelete()); } + /** * testClientContentPreference method * @@ -468,6 +500,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertFalse($this->RequestHandler->prefers('rss')); $this->assertFalse($this->RequestHandler->accepts('rss')); } + /** * testCustomContent method * @@ -486,6 +519,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->RequestHandler->startup($this->Controller); $this->assertEqual($this->RequestHandler->prefers(), 'mobile'); } + /** * testClientProperties method * @@ -514,6 +548,7 @@ class RequestHandlerComponentTest extends CakeTestCase { $_SERVER['HTTP_CLIENTADDRESS'] = '10.0.1.2, 10.0.1.1'; $this->assertEqual($this->RequestHandler->getClientIP(), '10.0.1.2'); } + /** * test that ajax requests involving redirects trigger requestAction instead. * diff --git a/cake/tests/cases/libs/controller/components/security.test.php b/cake/tests/cases/libs/controller/components/security.test.php index 0ef3dc24c..688c0a4f9 100644 --- a/cake/tests/cases/libs/controller/components/security.test.php +++ b/cake/tests/cases/libs/controller/components/security.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * SecurityComponentTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Component', 'Security'); + /** * TestSecurityComponent * @@ -32,6 +34,7 @@ App::import('Component', 'Security'); * @subpackage cake.tests.cases.libs.controller.components */ class TestSecurityComponent extends SecurityComponent { + /** * validatePost method * @@ -42,6 +45,7 @@ class TestSecurityComponent extends SecurityComponent { return $this->_validatePost($controller); } } + /** * SecurityTestController * @@ -49,6 +53,7 @@ class TestSecurityComponent extends SecurityComponent { * @subpackage cake.tests.cases.libs.controller.components */ class SecurityTestController extends Controller { + /** * name property * @@ -56,6 +61,7 @@ class SecurityTestController extends Controller { * @access public */ var $name = 'SecurityTest'; + /** * components property * @@ -63,6 +69,7 @@ class SecurityTestController extends Controller { * @access public */ var $components = array('TestSecurity'); + /** * failed property * @@ -70,6 +77,7 @@ class SecurityTestController extends Controller { * @access public */ var $failed = false; + /** * Used for keeping track of headers in test * @@ -77,6 +85,7 @@ class SecurityTestController extends Controller { * @access public */ var $testHeaders = array(); + /** * fail method * @@ -86,6 +95,7 @@ class SecurityTestController extends Controller { function fail() { $this->failed = true; } + /** * redirect method * @@ -98,6 +108,7 @@ class SecurityTestController extends Controller { function redirect($option, $code, $exit) { return $code; } + /** * Conveinence method for header() * @@ -109,6 +120,7 @@ class SecurityTestController extends Controller { $this->testHeaders[] = $status; } } + /** * SecurityComponentTest class * @@ -116,6 +128,7 @@ class SecurityTestController extends Controller { * @subpackage cake.tests.cases.libs.controller.components */ class SecurityComponentTest extends CakeTestCase { + /** * Controller property * @@ -123,6 +136,7 @@ class SecurityComponentTest extends CakeTestCase { * @access public */ var $Controller; + /** * oldSalt property * @@ -130,6 +144,7 @@ class SecurityComponentTest extends CakeTestCase { * @access public */ var $oldSalt; + /** * setUp method * @@ -144,6 +159,7 @@ class SecurityComponentTest extends CakeTestCase { $this->oldSalt = Configure::read('Security.salt'); Configure::write('Security.salt', 'foo!'); } + /** * Tear-down method. Resets environment state. * @@ -157,6 +173,7 @@ class SecurityComponentTest extends CakeTestCase { unset($this->Controller->Component); unset($this->Controller); } + /** * testStartup method * @@ -169,6 +186,7 @@ class SecurityComponentTest extends CakeTestCase { $this->assertNotNull($result); $this->assertTrue($this->Controller->Session->check('_Token')); } + /** * testRequirePostFail method * @@ -182,6 +200,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertTrue($this->Controller->failed); } + /** * testRequirePostSucceed method * @@ -195,6 +214,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequireSecureFail method * @@ -208,6 +228,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertTrue($this->Controller->failed); } + /** * testRequireSecureSucceed method * @@ -222,6 +243,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequireAuthFail method * @@ -252,6 +274,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertTrue($this->Controller->failed); } + /** * testRequireAuthSucceed method * @@ -279,6 +302,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequirePostSucceedWrongMethod method * @@ -292,6 +316,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequireGetFail method * @@ -305,6 +330,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertTrue($this->Controller->failed); } + /** * testRequireGetSucceed method * @@ -318,6 +344,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequireLogin method * @@ -356,6 +383,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->Security->startup($this->Controller); $this->assertTrue($this->Controller->failed); } + /** * testDigestAuth method * @@ -382,6 +410,7 @@ DIGEST; $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequireGetSucceedWrongMethod method * @@ -395,6 +424,7 @@ DIGEST; $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequirePutFail method * @@ -408,6 +438,7 @@ DIGEST; $this->Controller->Security->startup($this->Controller); $this->assertTrue($this->Controller->failed); } + /** * testRequirePutSucceed method * @@ -421,6 +452,7 @@ DIGEST; $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequirePutSucceedWrongMethod method * @@ -434,6 +466,7 @@ DIGEST; $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequireDeleteFail method * @@ -447,6 +480,7 @@ DIGEST; $this->Controller->Security->startup($this->Controller); $this->assertTrue($this->Controller->failed); } + /** * testRequireDeleteSucceed method * @@ -460,6 +494,7 @@ DIGEST; $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequireDeleteSucceedWrongMethod method * @@ -473,6 +508,7 @@ DIGEST; $this->Controller->Security->startup($this->Controller); $this->assertFalse($this->Controller->failed); } + /** * testRequireLoginSettings method * @@ -487,6 +523,7 @@ DIGEST; $this->assertEqual($this->Controller->Security->requireLogin, array('add', 'edit')); $this->assertEqual($this->Controller->Security->loginUsers, array('admin' => 'password')); } + /** * testRequireLoginAllActions method * @@ -500,6 +537,7 @@ DIGEST; $this->assertEqual($this->Controller->Security->requireLogin, array('*')); $this->assertEqual($this->Controller->Security->loginUsers, array('admin' => 'password')); } + /** * Simple hash validation test * @@ -518,6 +556,7 @@ DIGEST; ); $this->assertTrue($this->Controller->Security->validatePost($this->Controller)); } + /** * Tests validation of checkbox arrays * @@ -535,6 +574,7 @@ DIGEST; ); $this->assertTrue($this->Controller->Security->validatePost($this->Controller)); } + /** * testValidatePostNoModel method * @@ -554,6 +594,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testValidatePostSimple method * @@ -573,6 +614,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * Tests hash validation for multiple records, including locked fields * @@ -601,6 +643,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * test ValidatePost with multiple select elements. * @@ -640,6 +683,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testValidatePostCheckbox method * @@ -686,6 +730,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testValidatePostHidden method * @@ -708,6 +753,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testValidatePostWithDisabledFields method * @@ -731,6 +777,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testValidateHiddenMultipleModel method * @@ -753,6 +800,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testLoginValidation method * @@ -762,6 +810,7 @@ DIGEST; function testLoginValidation() { } + /** * testValidateHasManyModel method * @@ -792,6 +841,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testValidateHasManyRecordsPass method * @@ -834,6 +884,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testValidateHasManyRecords method * @@ -878,6 +929,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertFalse($result); } + /** * testLoginRequest method * @@ -898,6 +950,7 @@ DIGEST; $this->assertPattern('/realm="'.$realm.'"/', $result); $this->assertPattern('/qop="auth"/', $result); } + /** * testGenerateDigestResponseHash method * @@ -930,6 +983,7 @@ DIGEST; ); $this->assertIdentical($result, $expected); } + /** * testLoginCredentials method * @@ -971,6 +1025,7 @@ DIGEST; $this->assertIdentical($result, $expected); } } + /** * testParseDigestAuthData method * @@ -1006,6 +1061,7 @@ DIGEST; $result = $this->Controller->Security->parseDigestAuthData(''); $this->assertNull($result); } + /** * testFormDisabledFields method * @@ -1036,6 +1092,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testRadio method * @@ -1074,6 +1131,7 @@ DIGEST; $result = $this->Controller->Security->validatePost($this->Controller); $this->assertTrue($result); } + /** * testInvalidAuthHeaders method * diff --git a/cake/tests/cases/libs/controller/components/session.test.php b/cake/tests/cases/libs/controller/components/session.test.php index b79f043c9..ae03b4fd7 100644 --- a/cake/tests/cases/libs/controller/components/session.test.php +++ b/cake/tests/cases/libs/controller/components/session.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * SessionComponentTest file * @@ -26,6 +27,7 @@ */ App::import('Core', array('Controller', 'Object')); App::import('Component', 'Session'); + /** * SessionTestController class * @@ -33,6 +35,7 @@ App::import('Component', 'Session'); * @subpackage cake.tests.cases.libs.controller.components */ class SessionTestController extends Controller { + /** * uses property * @@ -40,6 +43,7 @@ class SessionTestController extends Controller { * @access public */ var $uses = array(); + /** * session_id method * @@ -50,6 +54,7 @@ class SessionTestController extends Controller { return $this->Session->id(); } } + /** * OrangeSessionTestController class * @@ -57,6 +62,7 @@ class SessionTestController extends Controller { * @subpackage cake.tests.cases.libs.controller.components */ class OrangeSessionTestController extends Controller { + /** * uses property * @@ -64,6 +70,7 @@ class OrangeSessionTestController extends Controller { * @access public */ var $uses = array(); + /** * session_id method * @@ -74,6 +81,7 @@ class OrangeSessionTestController extends Controller { return $this->Session->id(); } } + /** * SessionComponentTest class * @@ -81,6 +89,7 @@ class OrangeSessionTestController extends Controller { * @subpackage cake.tests.cases.libs.controller.components */ class SessionComponentTest extends CakeTestCase { + /** * setUp method * @@ -90,6 +99,7 @@ class SessionComponentTest extends CakeTestCase { function setUp() { $this->_session = Configure::read('Session'); } + /** * tearDown method * @@ -99,6 +109,7 @@ class SessionComponentTest extends CakeTestCase { function tearDown() { Configure::write('Session', $this->_session); } + /** * testSessionAutoStart method * @@ -130,6 +141,7 @@ class SessionComponentTest extends CakeTestCase { $result = $Object->requestAction('/orange_session_test/session_id'); $this->assertEqual($result, $expected); } + /** * testSessionInitialize method * @@ -149,6 +161,7 @@ class SessionComponentTest extends CakeTestCase { $Session->initialize($sessionController); $this->assertEqual($Session->__bare, 1); } + /** * testSessionActivate method * @@ -170,6 +183,7 @@ class SessionComponentTest extends CakeTestCase { Configure::write('Session.start', true); $Session->destroy(); } + /** * testSessionValid method * @@ -200,6 +214,7 @@ class SessionComponentTest extends CakeTestCase { $this->assertFalse($Session->valid()); Configure::write('Session.checkAgent', true); } + /** * testSessionError method * @@ -217,6 +232,7 @@ class SessionComponentTest extends CakeTestCase { $this->assertFalse($Session->error()); Configure::write('Session.start', true); } + /** * testSessionReadWrite method * @@ -257,6 +273,7 @@ class SessionComponentTest extends CakeTestCase { $this->assertFalse($Session->read('Test')); Configure::write('Session.start', true); } + /** * testSessionDel method * @@ -277,6 +294,7 @@ class SessionComponentTest extends CakeTestCase { $this->assertFalse($Session->del('Test')); Configure::write('Session.start', true); } + /** * testSessionDelete method * @@ -297,6 +315,7 @@ class SessionComponentTest extends CakeTestCase { $this->assertFalse($Session->delete('Test')); Configure::write('Session.start', true); } + /** * testSessionCheck method * @@ -318,6 +337,7 @@ class SessionComponentTest extends CakeTestCase { $this->assertFalse($Session->check('Test')); Configure::write('Session.start', true); } + /** * testSessionFlash method * @@ -343,6 +363,7 @@ class SessionComponentTest extends CakeTestCase { $Session->del('Message'); } + /** * testSessionId method * @@ -354,6 +375,7 @@ class SessionComponentTest extends CakeTestCase { $Session =& new SessionComponent(); $this->assertNull($Session->id()); } + /** * testSessionDestroy method * diff --git a/cake/tests/cases/libs/controller/controller.test.php b/cake/tests/cases/libs/controller/controller.test.php index dce75b632..719af381b 100644 --- a/cake/tests/cases/libs/controller/controller.test.php +++ b/cake/tests/cases/libs/controller/controller.test.php @@ -22,6 +22,7 @@ App::import('Core', 'Controller'); App::import('Component', 'Security'); App::import('Component', 'Cookie'); + /** * AppController class * @@ -61,6 +62,7 @@ if (!class_exists('AppController')) { } elseif (!defined('APP_CONTROLLER_EXISTS')) { define('APP_CONTROLLER_EXISTS', true); } + /** * ControllerPost class * @@ -68,6 +70,7 @@ if (!class_exists('AppController')) { * @subpackage cake.tests.cases.libs.controller */ class ControllerPost extends CakeTestModel { + /** * name property * @@ -75,6 +78,7 @@ class ControllerPost extends CakeTestModel { * @access public */ var $name = 'ControllerPost'; + /** * useTable property * @@ -82,6 +86,7 @@ class ControllerPost extends CakeTestModel { * @access public */ var $useTable = 'posts'; + /** * invalidFields property * @@ -89,6 +94,7 @@ class ControllerPost extends CakeTestModel { * @access public */ var $invalidFields = array('name' => 'error_msg'); + /** * lastQuery property * @@ -96,6 +102,7 @@ class ControllerPost extends CakeTestModel { * @access public */ var $lastQuery = null; + /** * beforeFind method * @@ -106,6 +113,7 @@ class ControllerPost extends CakeTestModel { function beforeFind($query) { $this->lastQuery = $query; } + /** * find method * @@ -123,6 +131,7 @@ class ControllerPost extends CakeTestModel { return parent::find($type, $options); } } + /** * ControllerPostsController class * @@ -130,6 +139,7 @@ class ControllerPost extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller */ class ControllerCommentsController extends AppController { + /** * name property * @@ -138,6 +148,7 @@ class ControllerCommentsController extends AppController { */ var $name = 'ControllerComments'; } + /** * ControllerComment class * @@ -145,6 +156,7 @@ class ControllerCommentsController extends AppController { * @subpackage cake.tests.cases.libs.controller */ class ControllerComment extends CakeTestModel { + /** * name property * @@ -152,6 +164,7 @@ class ControllerComment extends CakeTestModel { * @access public */ var $name = 'Comment'; + /** * useTable property * @@ -159,6 +172,7 @@ class ControllerComment extends CakeTestModel { * @access public */ var $useTable = 'comments'; + /** * data property * @@ -166,6 +180,7 @@ class ControllerComment extends CakeTestModel { * @access public */ var $data = array('name' => 'Some Name'); + /** * alias property * @@ -174,6 +189,7 @@ class ControllerComment extends CakeTestModel { */ var $alias = 'ControllerComment'; } + /** * ControllerAlias class * @@ -181,6 +197,7 @@ class ControllerComment extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller */ class ControllerAlias extends CakeTestModel { + /** * name property * @@ -188,6 +205,7 @@ class ControllerAlias extends CakeTestModel { * @access public */ var $name = 'ControllerAlias'; + /** * alias property * @@ -195,6 +213,7 @@ class ControllerAlias extends CakeTestModel { * @access public */ var $alias = 'ControllerSomeAlias'; + /** * useTable property * @@ -203,6 +222,7 @@ class ControllerAlias extends CakeTestModel { */ var $useTable = 'posts'; } + /** * ControllerPaginateModel class * @@ -210,6 +230,7 @@ class ControllerAlias extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller */ class ControllerPaginateModel extends CakeTestModel { + /** * name property * @@ -217,6 +238,7 @@ class ControllerPaginateModel extends CakeTestModel { * @access public */ var $name = 'ControllerPaginateModel'; + /** * useTable property * @@ -224,6 +246,7 @@ class ControllerPaginateModel extends CakeTestModel { * @access public */ var $useTable = 'comments'; + /** * paginate method * @@ -233,6 +256,7 @@ class ControllerPaginateModel extends CakeTestModel { function paginate($conditions, $fields, $order, $limit, $page, $recursive, $extra) { $this->extra = $extra; } + /** * paginateCount * @@ -243,6 +267,7 @@ class ControllerPaginateModel extends CakeTestModel { $this->extraCount = $extra; } } + /** * NameTest class * @@ -250,18 +275,21 @@ class ControllerPaginateModel extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller */ class NameTest extends CakeTestModel { + /** * name property * @var string 'Name' * @access public */ var $name = 'Name'; + /** * useTable property * @var string 'names' * @access public */ var $useTable = 'comments'; + /** * alias property * @@ -270,6 +298,7 @@ class NameTest extends CakeTestModel { */ var $alias = 'Name'; } + /** * TestController class * @@ -277,12 +306,14 @@ class NameTest extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller */ class TestController extends AppController { + /** * name property * @var string 'Name' * @access public */ var $name = 'TestController'; + /** * helpers property * @@ -290,6 +321,7 @@ class TestController extends AppController { * @access public */ var $helpers = array('Xml'); + /** * components property * @@ -297,6 +329,7 @@ class TestController extends AppController { * @access public */ var $components = array('Security'); + /** * uses property * @@ -304,6 +337,7 @@ class TestController extends AppController { * @access public */ var $uses = array('ControllerComment', 'ControllerAlias'); + /** * index method * @@ -317,6 +351,7 @@ class TestController extends AppController { $this->data['test2Id'] = $test2Id; } } + /** * TestComponent class * @@ -324,6 +359,7 @@ class TestController extends AppController { * @subpackage cake.tests.cases.libs.controller */ class TestComponent extends Object { + /** * beforeRedirect method * @@ -333,6 +369,7 @@ class TestComponent extends Object { function beforeRedirect() { } } + /** * AnotherTestController class * @@ -340,12 +377,14 @@ class TestComponent extends Object { * @subpackage cake.tests.cases.libs.controller */ class AnotherTestController extends AppController { + /** * name property * @var string 'Name' * @access public */ var $name = 'AnotherTest'; + /** * uses property * @@ -354,6 +393,7 @@ class AnotherTestController extends AppController { */ var $uses = null; } + /** * ControllerTest class * @@ -361,6 +401,7 @@ class AnotherTestController extends AppController { * @subpackage cake.tests.cases.libs.controller */ class ControllerTest extends CakeTestCase { + /** * fixtures property * @@ -368,6 +409,7 @@ class ControllerTest extends CakeTestCase { * @access public */ var $fixtures = array('core.post', 'core.comment', 'core.name'); + /** * endTest * @@ -376,7 +418,8 @@ class ControllerTest extends CakeTestCase { */ function endTest() { App::build(); - } + } + /** * testConstructClasses method * @@ -415,6 +458,7 @@ class ControllerTest extends CakeTestCase { unset($Controller); } + /** * testAliasName method * @@ -431,6 +475,7 @@ class ControllerTest extends CakeTestCase { unset($Controller); } + /** * testPersistent method * @@ -451,6 +496,7 @@ class ControllerTest extends CakeTestCase { unset($Controller); Configure::write('Cache.disable', true); } + /** * testPaginate method * @@ -512,6 +558,7 @@ class ControllerTest extends CakeTestCase { $this->assertIdentical($Controller->params['paging']['ControllerPost']['page'], 1, 'XSS exploit opened %s'); $this->assertIdentical($Controller->params['paging']['ControllerPost']['options']['page'], 1, 'XSS exploit opened %s'); } + /** * testPaginateExtraParams method * @@ -571,6 +618,7 @@ class ControllerTest extends CakeTestCase { $this->assertEqual($Controller->ControllerPaginateModel->extra, $expected); $this->assertEqual($Controller->ControllerPaginateModel->extraCount, $expected); } + /** * testPaginatePassedArgs method * @@ -604,6 +652,7 @@ class ControllerTest extends CakeTestCase { ); $this->assertEqual($Controller->params['paging']['ControllerPost']['options'],$expected); } + /** * Test that special paginate types are called and that the type param doesn't leak out into defaults or options. * @@ -624,6 +673,7 @@ class ControllerTest extends CakeTestCase { $this->assertFalse(isset($Controller->params['paging']['ControllerPost']['defaults'][0])); $this->assertFalse(isset($Controller->params['paging']['ControllerPost']['options'][0])); } + /** * testDefaultPaginateParams method * @@ -641,6 +691,7 @@ class ControllerTest extends CakeTestCase { $this->assertEqual($Controller->params['paging']['ControllerPost']['options']['order'], 'ControllerPost.id DESC'); $this->assertEqual($results, array(3, 2, 1)); } + /** * testFlash method * @@ -671,6 +722,7 @@ class ControllerTest extends CakeTestCase { $expected = str_replace(array("\t", "\r\n", "\n"), "", $expected); $this->assertEqual($result, $expected); } + /** * testControllerSet method * @@ -704,6 +756,7 @@ class ControllerTest extends CakeTestCase { $Controller->set(array('ModelName', 'ModelName2'), array('name', 'name2')); $this->assertIdentical($Controller->viewVars, $expected); } + /** * testRender method * @@ -737,6 +790,7 @@ class ControllerTest extends CakeTestCase { $Controller->ControllerComment->validationErrors = array(); ClassRegistry::flush(); } + /** * testToBeInheritedGuardmethods method * @@ -750,6 +804,7 @@ class ControllerTest extends CakeTestCase { $this->assertTrue($Controller->_afterScaffoldSaveError('')); $this->assertFalse($Controller->_scaffoldError('')); } + /** * testRedirect method * @@ -880,6 +935,7 @@ class ControllerTest extends CakeTestCase { $MockController->expectCallCount('header', 2); $MockController->redirect('http://cakephp.org', 301, false); } + /** * testMergeVars method * @@ -940,6 +996,7 @@ class ControllerTest extends CakeTestCase { $this->assertTrue(isset($TestController->ControllerPost)); $this->assertTrue(isset($TestController->ControllerComment)); } + /** * test that options from child classes replace those in the parent classes. * @@ -956,6 +1013,7 @@ class ControllerTest extends CakeTestCase { $TestController->constructClasses(); $this->assertEqual($TestController->components['Cookie'], $expected); } + /** * Ensure that __mergeVars is not being greedy and merging with * AppController when you make an instance of Controller @@ -970,6 +1028,7 @@ class ControllerTest extends CakeTestCase { $this->assertTrue(isset($Controller->Session)); } + /** * testReferer method * @@ -1026,6 +1085,7 @@ class ControllerTest extends CakeTestCase { $expected = '/recipes/add'; $this->assertIdentical($result, $expected); } + /** * testSetAction method * @@ -1038,6 +1098,7 @@ class ControllerTest extends CakeTestCase { $expected = array('testId' => 1, 'test2Id' => 2); $this->assertidentical($TestController->data, $expected); } + /** * testUnimplementedIsAuthorized method * @@ -1049,6 +1110,7 @@ class ControllerTest extends CakeTestCase { $TestController->isAuthorized(); $this->assertError(); } + /** * testValidateErrors method * @@ -1070,6 +1132,7 @@ class ControllerTest extends CakeTestCase { $this->assertIdentical($result, $expected); $this->assertEqual($TestController->validate($comment), 2); } + /** * testPostConditions method * @@ -1134,6 +1197,7 @@ class ControllerTest extends CakeTestCase { $result = $Controller->postConditions($data, $ops); $this->assertIdentical($result, $expected); } + /** * testRequestHandlerPrefers method * diff --git a/cake/tests/cases/libs/controller/controller_merge_vars.test.php b/cake/tests/cases/libs/controller/controller_merge_vars.test.php index b405d3eca..aec73d884 100644 --- a/cake/tests/cases/libs/controller/controller_merge_vars.test.php +++ b/cake/tests/cases/libs/controller/controller_merge_vars.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Controller Merge vars Test file * @@ -63,12 +64,14 @@ class MergeVarComponent extends Object { * @package cake.tests.cases.libs.controller **/ class MergeVariablesController extends AppController { + /** * name * * @var string **/ var $name = 'MergeVariables'; + /** * uses * @@ -83,12 +86,14 @@ class MergeVariablesController extends AppController { * @package cake.tests.cases.libs.controller **/ class MergeVarPluginAppController extends AppController { + /** * components * * @var array **/ var $components = array('Auth' => array('setting' => 'val', 'otherVal')); + /** * helpers * @@ -103,12 +108,14 @@ class MergeVarPluginAppController extends AppController { * @package cake.tests.cases.libs.controller **/ class MergePostsController extends MergeVarPluginAppController { + /** * name * * @var string **/ var $name = 'MergePosts'; + /** * uses * @@ -133,6 +140,7 @@ class ControllerMergeVarsTestCase extends CakeTestCase { function endTest() { ClassRegistry::flush(); } + /** * test that component settings are not duplicated when merging component settings * @@ -145,6 +153,7 @@ class ControllerMergeVarsTestCase extends CakeTestCase { $expected = array('MergeVar' => array('flag', 'otherFlag', 'redirect' => false)); $this->assertEqual($Controller->components, $expected, 'Duplication of settings occured. %s'); } + /** * test component merges with redeclared components * @@ -158,6 +167,7 @@ class ControllerMergeVarsTestCase extends CakeTestCase { $expected = array('MergeVar' => array('flag', 'otherFlag', 'redirect' => true, 'remote')); $this->assertEqual($Controller->components, $expected, 'Merging of settings is wrong. %s'); } + /** * test merging of helpers array, ensure no duplication occurs * @@ -170,6 +180,7 @@ class ControllerMergeVarsTestCase extends CakeTestCase { $expected = array('MergeVar' => array('format' => 'html', 'terse')); $this->assertEqual($Controller->helpers, $expected, 'Duplication of settings occured. %s'); } + /** * test merging of vars with plugin * @@ -187,7 +198,7 @@ class ControllerMergeVarsTestCase extends CakeTestCase { 'Email' => array('ports' => 'open') ); $this->assertEqual($Controller->components, $expected, 'Components are unexpected %s'); - + $expected = array( 'Javascript', 'MergeVar' => array('format' => 'html', 'terse') @@ -205,6 +216,7 @@ class ControllerMergeVarsTestCase extends CakeTestCase { ); $this->assertEqual($Controller->components, $expected, 'Components are unexpected %s'); } + /** * Ensure that __mergeVars is not being greedy and merging with * AppController when you make an instance of Controller diff --git a/cake/tests/cases/libs/controller/pages_controller.test.php b/cake/tests/cases/libs/controller/pages_controller.test.php index 805199b7a..e8624ff5b 100644 --- a/cake/tests/cases/libs/controller/pages_controller.test.php +++ b/cake/tests/cases/libs/controller/pages_controller.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * PagesControllerTest file * @@ -30,6 +31,7 @@ if (!class_exists('AppController')) { define('APP_CONTROLLER_EXISTS', true); } App::import('Core', array('Controller', 'PagesController')); + /** * PagesControllerTest class * @@ -37,6 +39,7 @@ App::import('Core', array('Controller', 'PagesController')); * @subpackage cake.tests.cases.libs.controller */ class PagesControllerTest extends CakeTestCase { + /** * endTest method * @@ -46,6 +49,7 @@ class PagesControllerTest extends CakeTestCase { function endTest() { App::build(); } + /** * testDisplay method * diff --git a/cake/tests/cases/libs/controller/scaffold.test.php b/cake/tests/cases/libs/controller/scaffold.test.php index 5ed30a97e..5b84927e8 100644 --- a/cake/tests/cases/libs/controller/scaffold.test.php +++ b/cake/tests/cases/libs/controller/scaffold.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ScaffoldTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Scaffold'); + /** * ScaffoldMockController class * @@ -32,6 +34,7 @@ App::import('Core', 'Scaffold'); * @subpackage cake.tests.cases.libs.controller */ class ScaffoldMockController extends Controller { + /** * name property * @@ -39,6 +42,7 @@ class ScaffoldMockController extends Controller { * @access public */ var $name = 'ScaffoldMock'; + /** * scaffold property * @@ -47,6 +51,7 @@ class ScaffoldMockController extends Controller { */ var $scaffold; } + /** * ScaffoldMockControllerWithFields class * @@ -54,6 +59,7 @@ class ScaffoldMockController extends Controller { * @subpackage cake.tests.cases.libs.controller */ class ScaffoldMockControllerWithFields extends Controller { + /** * name property * @@ -61,6 +67,7 @@ class ScaffoldMockControllerWithFields extends Controller { * @access public */ var $name = 'ScaffoldMock'; + /** * scaffold property * @@ -68,6 +75,7 @@ class ScaffoldMockControllerWithFields extends Controller { * @access public */ var $scaffold; + /** * function _beforeScaffold * @@ -78,6 +86,7 @@ class ScaffoldMockControllerWithFields extends Controller { return true; } } + /** * TestScaffoldMock class * @@ -85,6 +94,7 @@ class ScaffoldMockControllerWithFields extends Controller { * @subpackage cake.tests.cases.libs.controller */ class TestScaffoldMock extends Scaffold { + /** * Overload __scaffold * @@ -93,6 +103,7 @@ class TestScaffoldMock extends Scaffold { function __scaffold($params) { $this->_params = $params; } + /** * Get Params from the Controller. * @@ -102,6 +113,7 @@ class TestScaffoldMock extends Scaffold { return $this->_params; } } + /** * ScaffoldMock class * @@ -109,6 +121,7 @@ class TestScaffoldMock extends Scaffold { * @subpackage cake.tests.cases.libs.controller */ class ScaffoldMock extends CakeTestModel { + /** * useTable property * @@ -116,6 +129,7 @@ class ScaffoldMock extends CakeTestModel { * @access public */ var $useTable = 'articles'; + /** * belongsTo property * @@ -128,6 +142,7 @@ class ScaffoldMock extends CakeTestModel { 'foreignKey' => 'user_id', ) ); + /** * hasMany property * @@ -141,6 +156,7 @@ class ScaffoldMock extends CakeTestModel { ) ); } + /** * ScaffoldUser class * @@ -148,6 +164,7 @@ class ScaffoldMock extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller */ class ScaffoldUser extends CakeTestModel { + /** * useTable property * @@ -155,6 +172,7 @@ class ScaffoldUser extends CakeTestModel { * @access public */ var $useTable = 'users'; + /** * hasMany property * @@ -168,6 +186,7 @@ class ScaffoldUser extends CakeTestModel { ) ); } + /** * ScaffoldComment class * @@ -175,6 +194,7 @@ class ScaffoldUser extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller */ class ScaffoldComment extends CakeTestModel { + /** * useTable property * @@ -182,6 +202,7 @@ class ScaffoldComment extends CakeTestModel { * @access public */ var $useTable = 'comments'; + /** * belongsTo property * @@ -195,6 +216,7 @@ class ScaffoldComment extends CakeTestModel { ) ); } + /** * TestScaffoldView class * @@ -202,6 +224,7 @@ class ScaffoldComment extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller */ class TestScaffoldView extends ScaffoldView { + /** * testGetFilename method * @@ -213,6 +236,7 @@ class TestScaffoldView extends ScaffoldView { return $this->_getViewFileName($action); } } + /** * ScaffoldViewTest class * @@ -220,6 +244,7 @@ class TestScaffoldView extends ScaffoldView { * @subpackage cake.tests.cases.libs.controller */ class ScaffoldViewTest extends CakeTestCase { + /** * fixtures property * @@ -227,6 +252,7 @@ class ScaffoldViewTest extends CakeTestCase { * @access public */ var $fixtures = array('core.article', 'core.user', 'core.comment'); + /** * setUp method * @@ -241,6 +267,7 @@ class ScaffoldViewTest extends CakeTestCase { 'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS) )); } + /** * tearDown method * @@ -252,6 +279,7 @@ class ScaffoldViewTest extends CakeTestCase { App::build(); } + /** * testGetViewFilename method * @@ -331,6 +359,7 @@ class ScaffoldViewTest extends CakeTestCase { Configure::write('Routing.admin', $_admin); } + /** * test default index scaffold generation * @@ -369,6 +398,7 @@ class ScaffoldViewTest extends CakeTestCase { $this->assertPattern('#<li><a href="/scaffold_users/">List Scaffold Users</a></li>#', $result); $this->assertPattern('#<li><a href="/scaffold_comments/add/">New Comment</a></li>#', $result); } + /** * test default view scaffold generation * @@ -410,6 +440,7 @@ class ScaffoldViewTest extends CakeTestCase { $this->assertPattern('/<div class="related">\s*<h3>Related Scaffold Comments<\/h3>\s*<table cellpadding="0" cellspacing="0">/', $result); $this->assertPattern('/<li><a href="\/scaffold_comments\/add\/">New Comment<\/a><\/li>/', $result); } + /** * test default view scaffold generation * @@ -495,6 +526,7 @@ class ScaffoldViewTest extends CakeTestCase { Configure::write('Routing.admin', $_backAdmin); } + /** * Test Admin Index Scaffolding. * @@ -538,6 +570,7 @@ class ScaffoldViewTest extends CakeTestCase { Configure::write('Routing.admin', $_backAdmin); } } + /** * Scaffold Test class * @@ -545,6 +578,7 @@ class ScaffoldViewTest extends CakeTestCase { * @subpackage cake.tests.cases.libs.controller */ class ScaffoldTest extends CakeTestCase { + /** * Controller property * @@ -552,6 +586,7 @@ class ScaffoldTest extends CakeTestCase { * @access public */ var $Controller; + /** * fixtures property * @@ -559,6 +594,7 @@ class ScaffoldTest extends CakeTestCase { * @access public */ var $fixtures = array('core.article', 'core.user', 'core.comment'); + /** * setUp method * @@ -568,6 +604,7 @@ class ScaffoldTest extends CakeTestCase { function setUp() { $this->Controller =& new ScaffoldMockController(); } + /** * tearDown method * @@ -577,6 +614,7 @@ class ScaffoldTest extends CakeTestCase { function tearDown() { unset($this->Controller); } + /** * Test the correct Generation of Scaffold Params. * This ensures that the correct action and view will be generated @@ -648,6 +686,7 @@ class ScaffoldTest extends CakeTestCase { $this->assertEqual($result['pluralVar'], 'scaffoldMock'); $this->assertEqual($result['scaffoldFields'], array('id', 'user_id', 'title', 'body', 'published', 'created', 'updated')); } + /** * test that the proper names and variable values are set by Scaffold * diff --git a/cake/tests/cases/libs/debugger.test.php b/cake/tests/cases/libs/debugger.test.php index 555ec2b34..5c1269efc 100644 --- a/cake/tests/cases/libs/debugger.test.php +++ b/cake/tests/cases/libs/debugger.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DebuggerTest file * @@ -21,6 +22,7 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ App::import('Core', 'Debugger'); + /** * DebugggerTestCaseDebuggger class * @@ -29,6 +31,7 @@ App::import('Core', 'Debugger'); */ class DebuggerTestCaseDebugger extends Debugger { } + /** * DebuggerTest class * @@ -56,6 +59,7 @@ class DebuggerTest extends CakeTestCase { } } } + /** * tearDown method * @@ -65,6 +69,7 @@ class DebuggerTest extends CakeTestCase { function tearDown() { Configure::write('log', true); } + /** * testDocRef method * @@ -77,6 +82,7 @@ class DebuggerTest extends CakeTestCase { $debugger = new Debugger(); $this->assertEqual(ini_get('docref_root'), 'http://php.net/'); } + /** * test Excerpt writing * @@ -100,6 +106,7 @@ class DebuggerTest extends CakeTestCase { $return = Debugger::excerpt('[internal]', 2, 2); $this->assertTrue(empty($return)); } + /** * testOutput method * @@ -149,7 +156,7 @@ class DebuggerTest extends CakeTestCase { ), 'b' => array(), 'Notice', '/b', ' (8)' )); - + $this->assertPattern('/Undefined variable: buzz/', $result[1]); $this->assertPattern('/<a[^>]+>Code/', $result[1]); $this->assertPattern('/<a[^>]+>Context/', $result[2]); @@ -193,6 +200,7 @@ class DebuggerTest extends CakeTestCase { ); $this->assertTags($result, $data, true); } + /** * testTrimPath method * @@ -203,6 +211,7 @@ class DebuggerTest extends CakeTestCase { $this->assertEqual(Debugger::trimPath(APP), 'APP' . DS); $this->assertEqual(Debugger::trimPath(CAKE_CORE_INCLUDE_PATH), 'CORE'); } + /** * testExportVar method * @@ -255,6 +264,7 @@ class DebuggerTest extends CakeTestCase { $expected = str_replace(array("\t", "\r\n", "\n"), "", $expected); $this->assertEqual($result, $expected); } + /** * testLog method * @@ -280,6 +290,7 @@ class DebuggerTest extends CakeTestCase { $this->assertPattern('/"whatever",/', $result); $this->assertPattern('/"here"/', $result); } + /** * testDump method * @@ -306,6 +317,7 @@ class DebuggerTest extends CakeTestCase { $expected = "<pre>array(\n\t\"People\" => array()\n)</pre>"; $this->assertEqual($expected, $result); } + /** * test getInstance. * diff --git a/cake/tests/cases/libs/error.test.php b/cake/tests/cases/libs/error.test.php index e3d233e1e..80faf0510 100644 --- a/cake/tests/cases/libs/error.test.php +++ b/cake/tests/cases/libs/error.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ErrorHandlerTest file * @@ -30,6 +31,7 @@ if (class_exists('TestErrorHandler')) { if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { define('CAKEPHP_UNIT_TEST_EXECUTION', 1); } + /** * BlueberryComponent class * @@ -37,6 +39,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { * @subpackage cake.tests.cases.libs */ class BlueberryComponent extends Object { + /** * testName property * @@ -44,6 +47,7 @@ class BlueberryComponent extends Object { * @return void */ var $testName = null; + /** * initialize method * @@ -54,6 +58,7 @@ class BlueberryComponent extends Object { $this->testName = 'BlueberryComponent'; } } + /** * BlueberryDispatcher class * @@ -61,6 +66,7 @@ class BlueberryComponent extends Object { * @subpackage cake.tests.cases.libs */ class BlueberryDispatcher extends Dispatcher { + /** * cakeError method * @@ -72,6 +78,7 @@ class BlueberryDispatcher extends Dispatcher { return $error; } } + /** * Short description for class. * @@ -79,6 +86,7 @@ class BlueberryDispatcher extends Dispatcher { * @subpackage cake.tests.cases.libs */ class AuthBlueberryUser extends CakeTestModel { + /** * name property * @@ -86,6 +94,7 @@ class AuthBlueberryUser extends CakeTestModel { * @access public */ var $name = 'AuthBlueberryUser'; + /** * useTable property * @@ -141,6 +150,7 @@ if (!class_exists('AppController')) { define('APP_CONTROLLER_EXISTS', true); } App::import('Core', array('Error', 'Controller')); + /** * TestErrorController class * @@ -148,6 +158,7 @@ App::import('Core', array('Error', 'Controller')); * @subpackage cake.tests.cases.libs */ class TestErrorController extends AppController { + /** * uses property * @@ -155,6 +166,7 @@ class TestErrorController extends AppController { * @access public */ var $uses = array(); + /** * index method * @@ -166,6 +178,7 @@ class TestErrorController extends AppController { return 'what up'; } } + /** * BlueberryController class * @@ -173,6 +186,7 @@ class TestErrorController extends AppController { * @subpackage cake.tests.cases.libs */ class BlueberryController extends AppController { + /** * name property * @@ -180,6 +194,7 @@ class BlueberryController extends AppController { * @return void */ var $name = 'BlueberryController'; + /** * uses property * @@ -187,6 +202,7 @@ class BlueberryController extends AppController { * @return void */ var $uses = array('AuthBlueberryUser'); + /** * components property * @@ -195,6 +211,7 @@ class BlueberryController extends AppController { */ var $components = array('Auth'); } + /** * TestErrorHandler class * @@ -202,6 +219,7 @@ class BlueberryController extends AppController { * @subpackage cake.tests.cases.libs */ class TestErrorHandler extends ErrorHandler { + /** * stop method * @@ -212,6 +230,7 @@ class TestErrorHandler extends ErrorHandler { return; } } + /** * ErrorHandlerTest class * @@ -219,6 +238,7 @@ class TestErrorHandler extends ErrorHandler { * @subpackage cake.tests.cases.libs */ class ErrorHandlerTest extends CakeTestCase { + /** * skip method * @@ -228,6 +248,7 @@ class ErrorHandlerTest extends CakeTestCase { function skip() { $this->skipIf(PHP_SAPI === 'cli', '%s Cannot be run from console'); } + /** * testError method * @@ -247,6 +268,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern("/<h2>Couldn't find what you were looking for<\/h2>/", $result); $this->assertPattern('/Page not Found/', $result); } + /** * testError404 method * @@ -272,6 +294,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertNoPattern('#<script>#', $result); $this->assertNoPattern('#</script>#', $result); } + /** * testMissingController method * @@ -288,6 +311,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern('/<em>PostsController<\/em>/', $result); $this->assertPattern('/BlueberryComponent/', $result); } + /** * testMissingAction method * @@ -309,6 +333,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertNoPattern('/Location: (.*)\/users\/login/', $result); $this->assertNoPattern('/Stopped with status: 0/', $result); } + /** * testPrivateAction method * @@ -322,6 +347,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern('/<h2>Private Method in PostsController<\/h2>/', $result); $this->assertPattern('/<em>PostsController::<\/em><em>_secretSauce\(\)<\/em>/', $result); } + /** * testMissingTable method * @@ -335,6 +361,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern('/<h2>Missing Database Table<\/h2>/', $result); $this->assertPattern('/table <em>articles<\/em> for model <em>Article<\/em>/', $result); } + /** * testMissingDatabase method * @@ -348,6 +375,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern('/<h2>Missing Database Connection<\/h2>/', $result); $this->assertPattern('/Confirm you have created the file/', $result); } + /** * testMissingView method * @@ -363,6 +391,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern("/PagesController::/", $expected); $this->assertPattern("/pages\/about.ctp/", $expected); } + /** * testMissingLayout method * @@ -378,6 +407,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern("/Missing Layout/", $expected); $this->assertPattern("/layouts\/my_layout.ctp/", $expected); } + /** * testMissingConnection method * @@ -391,6 +421,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern('/<h2>Missing Database Connection<\/h2>/', $result); $this->assertPattern('/Article requires a database connection/', $result); } + /** * testMissingHelperFile method * @@ -405,6 +436,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern('/Create the class below in file:/', $result); $this->assertPattern('/(\/|\\\)my_custom.php/', $result); } + /** * testMissingHelperClass method * @@ -419,6 +451,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern('/The helper class <em>MyCustomHelper<\/em> can not be found or does not exist./', $result); $this->assertPattern('/(\/|\\\)my_custom.php/', $result); } + /** * testMissingComponentFile method * @@ -433,6 +466,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern('/Create the class <em>SideboxComponent<\/em> in file:/', $result); $this->assertPattern('/(\/|\\\)sidebox.php/', $result); } + /** * testMissingComponentClass method * @@ -447,6 +481,7 @@ class ErrorHandlerTest extends CakeTestCase { $this->assertPattern('/Create the class <em>SideboxComponent<\/em> in file:/', $result); $this->assertPattern('/(\/|\\\)sidebox.php/', $result); } + /** * testMissingModel method * diff --git a/cake/tests/cases/libs/file.test.php b/cake/tests/cases/libs/file.test.php index f0d64a7bf..3b1825449 100644 --- a/cake/tests/cases/libs/file.test.php +++ b/cake/tests/cases/libs/file.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * FileTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'File'); + /** * FileTest class * @@ -32,6 +34,7 @@ App::import('Core', 'File'); * @subpackage cake.tests.cases.libs */ class FileTest extends CakeTestCase { + /** * File property * @@ -39,6 +42,7 @@ class FileTest extends CakeTestCase { * @access public */ var $File = null; + /** * testBasic method * @@ -100,6 +104,7 @@ class FileTest extends CakeTestCase { $expecting = '0644'; $this->assertEqual($result, $expecting); } + /** * testRead method * @@ -128,6 +133,7 @@ class FileTest extends CakeTestCase { $result = $this->File->read(3); $this->assertEqual($result, $expecting); } + /** * testOffset method * @@ -160,6 +166,7 @@ class FileTest extends CakeTestCase { $expecting = 5+3; $this->assertIdentical($result, $expecting); } + /** * testOpen method * @@ -184,6 +191,7 @@ class FileTest extends CakeTestCase { $this->assertFalse($handle === $this->File->handle); $this->assertTrue(is_resource($this->File->handle)); } + /** * testClose method * @@ -201,6 +209,7 @@ class FileTest extends CakeTestCase { $this->assertTrue($this->File->close()); $this->assertFalse(is_resource($this->File->handle)); } + /** * testCreate method * @@ -212,6 +221,7 @@ class FileTest extends CakeTestCase { $File =& new File($tmpFile, true, 0777); $this->assertTrue($File->exists()); } + /** * testOpeningNonExistantFileCreatesIt method * @@ -225,6 +235,7 @@ class FileTest extends CakeTestCase { $someFile->close(); $someFile->delete(); } + /** * testPrepare method * @@ -245,6 +256,7 @@ class FileTest extends CakeTestCase { $expected .= "for\r\n\r\n\r\n\r\n\r\nhere"; $this->assertIdentical(File::prepare($string, true), $expected); } + /** * testReadable method * @@ -258,6 +270,7 @@ class FileTest extends CakeTestCase { $someFile->close(); $someFile->delete(); } + /** * testWritable method * @@ -271,6 +284,7 @@ class FileTest extends CakeTestCase { $someFile->close(); $someFile->delete(); } + /** * testExecutable method * @@ -284,6 +298,7 @@ class FileTest extends CakeTestCase { $someFile->close(); $someFile->delete(); } + /** * testLastAccess method * @@ -298,6 +313,7 @@ class FileTest extends CakeTestCase { $someFile->close(); $someFile->delete(); } + /** * testLastChange method * @@ -314,6 +330,7 @@ class FileTest extends CakeTestCase { $someFile->close(); $someFile->delete(); } + /** * testWrite method * @@ -344,6 +361,7 @@ class FileTest extends CakeTestCase { } unlink($tmpFile); } + /** * testAppend method * @@ -372,6 +390,7 @@ class FileTest extends CakeTestCase { $TmpFile->close(); } } + /** * testDelete method * @@ -396,6 +415,7 @@ class FileTest extends CakeTestCase { $result = $TmpFile->delete(); $this->assertFalse($result); } + /** * getTmpFile method * diff --git a/cake/tests/cases/libs/folder.test.php b/cake/tests/cases/libs/folder.test.php index 6fad570de..baaca4eda 100644 --- a/cake/tests/cases/libs/folder.test.php +++ b/cake/tests/cases/libs/folder.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * FolderTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'File'); + /** * FolderTest class * @@ -32,6 +34,7 @@ App::import('Core', 'File'); * @subpackage cake.tests.cases.libs */ class FolderTest extends CakeTestCase { + /** * testBasic method * @@ -56,6 +59,7 @@ class FolderTest extends CakeTestCase { $result = $Folder->cd(ROOT . DS . 'non-existent'); $this->assertFalse($result); } + /** * testInPath method * @@ -83,6 +87,7 @@ class FolderTest extends CakeTestCase { $result = $Folder->inPath(DS . 'non-existing' . $inside); $this->assertFalse($result); } + /** * testOperations method * @@ -154,6 +159,7 @@ class FolderTest extends CakeTestCase { $result = $Folder->pwd(); $this->assertNull($result); } + /** * testChmod method * @@ -183,6 +189,7 @@ class FolderTest extends CakeTestCase { $Folder->delete($new); } + /** * testRealPathForWebroot method * @@ -193,6 +200,7 @@ class FolderTest extends CakeTestCase { $Folder = new Folder('files/'); $this->assertEqual(realpath('files/'), $Folder->path); } + /** * testZeroAsDirectory method * @@ -215,6 +223,7 @@ class FolderTest extends CakeTestCase { $result = $Folder->delete($new); $this->assertTrue($result); } + /** * testFolderRead method * @@ -233,6 +242,7 @@ class FolderTest extends CakeTestCase { $result = $Folder->read(true, true); $this->assertEqual($result, $expected); } + /** * testFolderTree method * @@ -282,6 +292,7 @@ class FolderTest extends CakeTestCase { $this->assertIdentical(array_diff($expected[1], $result), array()); $this->assertIdentical(array_diff($result, $expected[1]), array()); } + /** * testWindowsPath method * @@ -293,6 +304,7 @@ class FolderTest extends CakeTestCase { $this->assertTrue(Folder::isWindowsPath('C:\\cake\\is\\awesome')); $this->assertTrue(Folder::isWindowsPath('d:\\cake\\is\\awesome')); } + /** * testIsAbsolute method * @@ -313,6 +325,7 @@ class FolderTest extends CakeTestCase { $this->assertTrue(Folder::isAbsolute('C:\\path\\to\\file')); $this->assertTrue(Folder::isAbsolute('d:\\path\\to\\file')); } + /** * testIsSlashTerm method * @@ -325,6 +338,7 @@ class FolderTest extends CakeTestCase { $this->assertTrue(Folder::isSlashTerm('C:\\cake\\')); $this->assertTrue(Folder::isSlashTerm('/usr/local/')); } + /** * testStatic method * @@ -335,6 +349,7 @@ class FolderTest extends CakeTestCase { $result = Folder::slashTerm('/path/to/file'); $this->assertEqual($result, '/path/to/file/'); } + /** * testNormalizePath method * @@ -354,6 +369,7 @@ class FolderTest extends CakeTestCase { $result = Folder::normalizePath($path); $this->assertEqual($result, '\\'); } + /** * correctSlashFor method * @@ -373,6 +389,7 @@ class FolderTest extends CakeTestCase { $result = Folder::correctSlashFor($path); $this->assertEqual($result, '\\'); } + /** * testInCakePath method * @@ -397,6 +414,7 @@ class FolderTest extends CakeTestCase { $result = $Folder->inCakePath($path); $this->assertTrue($result); } + /** * testFind method * @@ -449,6 +467,7 @@ class FolderTest extends CakeTestCase { $Folder->delete($Folder->pwd() . DS . 'testme'); $file->delete(); } + /** * testFindRecursive method * @@ -508,6 +527,7 @@ class FolderTest extends CakeTestCase { $Folder->delete($Folder->pwd() . DS . 'testme'); $File->delete(); } + /** * testConstructWithNonExistantPath method * @@ -520,6 +540,7 @@ class FolderTest extends CakeTestCase { $Folder->cd(TMP); $Folder->delete($Folder->pwd() . 'config_non_existant'); } + /** * testDirSize method * @@ -539,6 +560,7 @@ class FolderTest extends CakeTestCase { $Folder->cd(TMP); $Folder->delete($Folder->pwd() . 'config_non_existant'); } + /** * testDelete method * @@ -566,6 +588,7 @@ class FolderTest extends CakeTestCase { ); $this->assertEqual($expected, $messages); } + /** * testCopy method * @@ -624,6 +647,7 @@ class FolderTest extends CakeTestCase { $Folder =& new Folder($path); $Folder->delete(); } + /** * testMove method * @@ -703,4 +727,4 @@ class FolderTest extends CakeTestCase { $Folder->delete(); } } -?> +?> \ No newline at end of file diff --git a/cake/tests/cases/libs/http_socket.test.php b/cake/tests/cases/libs/http_socket.test.php index d70b55de4..4dcaabb3c 100644 --- a/cake/tests/cases/libs/http_socket.test.php +++ b/cake/tests/cases/libs/http_socket.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * HttpSocketTest file * @@ -27,6 +28,7 @@ App::import('Core', 'HttpSocket'); class TestHttpSocket extends HttpSocket { + /** * Convenience method for testing protected method * @@ -36,6 +38,7 @@ class TestHttpSocket extends HttpSocket { function configUri($uri = null) { return parent::_configUri($uri); } + /** * Convenience method for testing protected method * @@ -46,6 +49,7 @@ class TestHttpSocket extends HttpSocket { function parseUri($uri = null, $base = array()) { return parent::_parseUri($uri, $base); } + /** * Convenience method for testing protected method * @@ -56,6 +60,7 @@ class TestHttpSocket extends HttpSocket { function buildUri($uri = array(), $uriTemplate = '%scheme://%user:%pass@%host:%port/%path?%query#%fragment') { return parent::_buildUri($uri, $uriTemplate); } + /** * Convenience method for testing protected method * @@ -75,6 +80,7 @@ class TestHttpSocket extends HttpSocket { function parseResponse($message) { return parent::_parseResponse($message); } + /** * Convenience method for testing protected method * @@ -84,6 +90,7 @@ class TestHttpSocket extends HttpSocket { function parseHeader($header) { return parent::_parseHeader($header); } + /** * Convenience method for testing protected method * @@ -93,6 +100,7 @@ class TestHttpSocket extends HttpSocket { function parseQuery($query) { return parent::_parseQuery($query); } + /** * Convenience method for testing protected method * @@ -103,6 +111,7 @@ class TestHttpSocket extends HttpSocket { function decodeBody($body, $encoding = 'chunked') { return parent::_decodeBody($body, $encoding); } + /** * Convenience method for testing protected method * @@ -112,6 +121,7 @@ class TestHttpSocket extends HttpSocket { function decodeChunkedBody($body) { return parent::_decodeChunkedBody($body); } + /** * Convenience method for testing protected method * @@ -122,6 +132,7 @@ class TestHttpSocket extends HttpSocket { function buildRequestLine($request = array(), $versionToken = 'HTTP/1.1') { return parent::_buildRequestLine($request, $versionToken); } + /** * Convenience method for testing protected method * @@ -131,6 +142,7 @@ class TestHttpSocket extends HttpSocket { function tokenEscapeChars($hex = true, $chars = null) { return parent::_tokenEscapeChars($hex, $chars); } + /** * Convenience method for testing protected method * @@ -140,6 +152,7 @@ class TestHttpSocket extends HttpSocket { function EscapeToken($token, $chars = null) { return parent::_escapeToken($token, $chars); } + /** * Convenience method for testing protected method * @@ -158,6 +171,7 @@ class TestHttpSocket extends HttpSocket { * @subpackage cake.tests.cases.libs */ class HttpSocketTest extends CakeTestCase { + /** * Socket property * @@ -165,6 +179,7 @@ class HttpSocketTest extends CakeTestCase { * @access public */ var $Socket = null; + /** * RequestSocket property * @@ -172,6 +187,7 @@ class HttpSocketTest extends CakeTestCase { * @access public */ var $RequestSocket = null; + /** * This function sets up a TestHttpSocket instance we are going to use for testing * @@ -187,6 +203,7 @@ class HttpSocketTest extends CakeTestCase { $this->Socket =& new MockHttpSocket(); $this->RequestSocket =& new MockHttpSocketRequests(); } + /** * We use this function to clean up after the test case was executed * @@ -196,6 +213,7 @@ class HttpSocketTest extends CakeTestCase { function tearDown() { unset($this->Socket, $this->RequestSocket); } + /** * Test that HttpSocket::__construct does what one would expect it to do * @@ -224,6 +242,7 @@ class HttpSocketTest extends CakeTestCase { $this->Socket->__construct(array('request' => array('uri' => 'http://www.cakephp.org:23/'))); $this->assertIdentical($this->Socket->config, $baseConfig); } + /** * Test that HttpSocket::configUri works properly with different types of arguments * @@ -291,6 +310,7 @@ class HttpSocketTest extends CakeTestCase { $this->assertIdentical($this->Socket->config, $expected); $this->assertIdentical($r, false); } + /** * Tests that HttpSocket::request (the heart of the HttpSocket) is working properly. * @@ -545,6 +565,7 @@ class HttpSocketTest extends CakeTestCase { $this->assertEqual($this->Socket->config['request']['cookies'], $expect); $this->assertFalse($this->Socket->connected); } + /** * testUrl method * @@ -599,6 +620,7 @@ class HttpSocketTest extends CakeTestCase { $url = $this->Socket->url('/search?q=socket'); $this->assertIdentical($url, 'http://www.google.com:8080/search?q=socket'); } + /** * testGet method * @@ -623,6 +645,7 @@ class HttpSocketTest extends CakeTestCase { $this->RequestSocket->expect('request', a(array('method' => 'GET', 'uri' => 'http://www.google.com/', 'auth' => array('user' => 'foo', 'pass' => 'bar')))); $this->RequestSocket->get('http://www.google.com/', null, array('auth' => array('user' => 'foo', 'pass' => 'bar'))); } + /** * testPostPutDelete method * @@ -643,6 +666,7 @@ class HttpSocketTest extends CakeTestCase { $this->RequestSocket->{low($method)}('http://www.google.com/', null, array('line' => 'Hey Server')); } } + /** * testParseResponse method * @@ -734,6 +758,7 @@ class HttpSocketTest extends CakeTestCase { } } } + /** * testDecodeBody method * @@ -777,6 +802,7 @@ class HttpSocketTest extends CakeTestCase { } } } + /** * testDecodeChunkedBody method * @@ -830,6 +856,7 @@ class HttpSocketTest extends CakeTestCase { $this->assertIdentical($r['body'], $decoded); $this->assertIdentical($r['header'], array('Foo-Header' => 'bar', 'Cake' => 'PHP')); } + /** * testBuildRequestLine method * @@ -894,6 +921,7 @@ class HttpSocketTest extends CakeTestCase { $r = $this->Socket->buildRequestLine("GET * HTTP/1.1\r\n"); $this->assertIdentical($r, "GET * HTTP/1.1\r\n"); } + /** * Asserts that HttpSocket::parseUri is working properly * @@ -999,6 +1027,7 @@ class HttpSocketTest extends CakeTestCase { 'port' => 8080, )); } + /** * Tests that HttpSocket::buildUri can turn all kinds of uri arrays (and strings) into fully or partially qualified URI's * @@ -1062,6 +1091,7 @@ class HttpSocketTest extends CakeTestCase { $r = $this->Socket->buildUri(array('scheme' => 'foo', 'host' => 'www.cakephp.org')); $this->assertIdentical($r, 'foo://www.cakephp.org:80/'); } + /** * Asserts that HttpSocket::parseQuery is working properly * @@ -1167,6 +1197,7 @@ class HttpSocketTest extends CakeTestCase { ); $this->assertIdentical($query, $expectedQuery); } + /** * Tests that HttpSocket::buildHeader can turn a given $header array into a proper header string according to * HTTP 1.1 specs. @@ -1205,6 +1236,7 @@ class HttpSocketTest extends CakeTestCase { $this->assertIdentical($r, "Test\"@\"Field: My value\r\n"); } + /** * Test that HttpSocket::parseHeader can take apart a given (and valid) $header string and turn it into an array. * @@ -1266,6 +1298,7 @@ class HttpSocketTest extends CakeTestCase { ); $this->assertIdentical($r, $expected); } + /** * testParseCookies method * @@ -1307,6 +1340,7 @@ class HttpSocketTest extends CakeTestCase { $cookies = $this->Socket->parseCookies($header); $this->assertEqual($cookies, $expected); } + /** * testBuildCookies method * @@ -1328,6 +1362,7 @@ class HttpSocketTest extends CakeTestCase { $result = $this->Socket->buildCookies($cookies); $this->assertEqual($result, $expect); } + /** * Tests that HttpSocket::_tokenEscapeChars() returns the right characters. * @@ -1353,6 +1388,7 @@ class HttpSocketTest extends CakeTestCase { $r = $this->Socket->tokenEscapeChars(false); $this->assertEqual($r, $expected); } + /** * Test that HttpSocket::escapeToken is escaping all characters as descriped in RFC 2616 (HTTP 1.1 specs) * @@ -1378,6 +1414,7 @@ class HttpSocketTest extends CakeTestCase { $expectedToken = 'Extreme-":"Token-" "-""""@"-test'; $this->assertIdentical($expectedToken, $escapedToken); } + /** * Test that escaped token strings are properly unescaped by HttpSocket::unescapeToken * @@ -1403,6 +1440,7 @@ class HttpSocketTest extends CakeTestCase { $expectedToken = 'Extreme-:Token- -"@-test'; $this->assertIdentical($expectedToken, $escapedToken); } + /** * This tests asserts HttpSocket::reset() resets a HttpSocket instance to it's initial state (before Object::__construct * got executed) @@ -1426,6 +1464,7 @@ class HttpSocketTest extends CakeTestCase { $this->assertIdentical($return, true); } + /** * This tests asserts HttpSocket::reset(false) resets certain HttpSocket properties to their initial state (before * Object::__construct got executed). diff --git a/cake/tests/cases/libs/i18n.test.php b/cake/tests/cases/libs/i18n.test.php index 0a3e61d10..2e6dda718 100644 --- a/cake/tests/cases/libs/i18n.test.php +++ b/cake/tests/cases/libs/i18n.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * I18nTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'i18n'); + /** * I18nTest class * @@ -32,6 +34,7 @@ App::import('Core', 'i18n'); * @subpackage cake.tests.cases.libs */ class I18nTest extends CakeTestCase { + /** * setUp method * @@ -44,6 +47,7 @@ class I18nTest extends CakeTestCase { 'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins') )); } + /** * tearDown method * @@ -53,6 +57,7 @@ class I18nTest extends CakeTestCase { function tearDown() { App::build(); } + /** * testDefaultStrings method * @@ -122,6 +127,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 = 0 or > 1 (from core)', $corePlurals)); $this->assertTrue(in_array('25 = 0 or > 1 (from core)', $corePlurals)); } + /** * testPoRulesZero method * @@ -193,6 +199,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 ends with any # (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 ends with any # (from core translated)', $corePlurals)); } + /** * testMoRulesZero method * @@ -264,6 +271,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 ends with any # (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 ends with any # (from core translated)', $corePlurals)); } + /** * testPoRulesOne method * @@ -335,6 +343,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 = 0 or > 1 (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 = 0 or > 1 (from core translated)', $corePlurals)); } + /** * testMoRulesOne method * @@ -406,6 +415,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 = 0 or > 1 (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 = 0 or > 1 (from core translated)', $corePlurals)); } + /** * testPoRulesTwo method * @@ -477,6 +487,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 > 1 (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 > 1 (from core translated)', $corePlurals)); } + /** * testMoRulesTwo method * @@ -548,6 +559,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 > 1 (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 > 1 (from core translated)', $corePlurals)); } + /** * testPoRulesThree method * @@ -619,6 +631,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesThree method * @@ -690,6 +703,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesFour method * @@ -761,6 +775,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesFour method * @@ -832,6 +847,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesFive method * @@ -905,6 +921,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesFive method * @@ -978,6 +995,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesSix method * @@ -1049,6 +1067,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesSix method * @@ -1120,6 +1139,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesSeven method * @@ -1191,6 +1211,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 ends in 2-4, not 12-14 (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesSeven method * @@ -1262,6 +1283,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 ends in 2-4, not 12-14 (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesEight method * @@ -1333,6 +1355,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesEight method * @@ -1404,6 +1427,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesNine method * @@ -1478,6 +1502,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 ends in 2-4, not 12-14 (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesNine method * @@ -1552,6 +1577,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 ends in 2-4, not 12-14 (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesTen method * @@ -1625,6 +1651,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesTen method * @@ -1698,6 +1725,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesEleven method * @@ -1769,6 +1797,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesEleven method * @@ -1840,6 +1869,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesTwelve method * @@ -1911,6 +1941,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesTwelve method * @@ -1982,6 +2013,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesThirteen method * @@ -2053,6 +2085,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesThirteen method * @@ -2124,6 +2157,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPoRulesFourteen method * @@ -2195,6 +2229,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testMoRulesFourteen method * @@ -2266,6 +2301,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertTrue(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testSetLanguageWithSession method * @@ -2306,6 +2342,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('25 everything else (po translated)', $plurals)); unset($_SESSION['Config']['language']); } + /** * testNoCoreTranslation method * @@ -2348,6 +2385,7 @@ class I18nTest extends CakeTestCase { $this->assertFalse(in_array('24 everything else (from core translated)', $corePlurals)); $this->assertFalse(in_array('25 everything else (from core translated)', $corePlurals)); } + /** * testPluginTranslation method * @@ -2391,6 +2429,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('24 = 0 or > 1 (from plugin)', $plurals)); $this->assertTrue(in_array('25 = 0 or > 1 (from plugin)', $plurals)); } + /** * testPoMultipleLineTranslation method * @@ -2464,6 +2503,7 @@ class I18nTest extends CakeTestCase { $expected = "%d is 2-4\n" . str_replace("\r\n", "\n", $string); $this->assertEqual($result, $expected); } + /** * testPoNoTranslationNeeded method * @@ -2475,6 +2515,7 @@ class I18nTest extends CakeTestCase { $result = __('No Translation needed', true); $this->assertEqual($result, 'No Translation needed'); } + /** * testPoQuotedString method * @@ -2485,6 +2526,7 @@ class I18nTest extends CakeTestCase { $expected = 'this is a "quoted string" (translated)'; $this->assertEqual(__('this is a "quoted string"', true), $expected); } + /** * testFloatValue method * @@ -2506,6 +2548,7 @@ class I18nTest extends CakeTestCase { $expected = "%d everything else (translated)"; $this->assertEqual($result, $expected); } + /** * testCategory method * @@ -2517,6 +2560,7 @@ class I18nTest extends CakeTestCase { $category = $this->__category(); $this->assertEqual('Monetary Po (translated)', $category); } + /** * testPluginCategory method * @@ -2533,6 +2577,7 @@ class I18nTest extends CakeTestCase { $this->assertTrue(in_array('Monetary 0 = 0 or > 1 (from plugin)', $plurals)); $this->assertTrue(in_array('Monetary 1 = 1 (from plugin)', $plurals)); } + /** * testCategoryThenSingular method * @@ -2547,6 +2592,7 @@ class I18nTest extends CakeTestCase { $singular = $this->__singular(); $this->assertEqual('Po (translated)', $singular); } + /** * Singular method * @@ -2557,6 +2603,7 @@ class I18nTest extends CakeTestCase { $singular = __dc($domain, 'Plural Rule 1', $category, true); return $singular; } + /** * Plural method * @@ -2570,6 +2617,7 @@ class I18nTest extends CakeTestCase { } return $plurals; } + /** * Singular method * @@ -2580,6 +2628,7 @@ class I18nTest extends CakeTestCase { $singular = __d($domain, 'Plural Rule 1', true); return $singular; } + /** * Plural method * @@ -2593,6 +2642,7 @@ class I18nTest extends CakeTestCase { } return $plurals; } + /** * category method * @@ -2603,6 +2653,7 @@ class I18nTest extends CakeTestCase { $singular = __c('Plural Rule 1', $category, true); return $singular; } + /** * Singular method * @@ -2613,6 +2664,7 @@ class I18nTest extends CakeTestCase { $singular = __('Plural Rule 1', true); return $singular; } + /** * Plural method * @@ -2626,6 +2678,7 @@ class I18nTest extends CakeTestCase { } return $plurals; } + /** * singularFromCore method * @@ -2636,6 +2689,7 @@ class I18nTest extends CakeTestCase { $singular = __('Plural Rule 1 (from core)', true); return $singular; } + /** * pluralFromCore method * diff --git a/cake/tests/cases/libs/inflector.test.php b/cake/tests/cases/libs/inflector.test.php index 0cfc171c9..9e428370f 100644 --- a/cake/tests/cases/libs/inflector.test.php +++ b/cake/tests/cases/libs/inflector.test.php @@ -19,11 +19,13 @@ * @since CakePHP(tm) v 1.2.0.4206 * @license Open Group Test Suite License (http://www.opensource.org/licenses/opengroup.php) */ + /** * Included libraries. * */ App::import('Core', 'Inflector'); + /** * Short description for class. * @@ -31,6 +33,7 @@ App::import('Core', 'Inflector'); * @subpackage cake.tests.cases.libs */ class InflectorTest extends CakeTestCase { + /** * Inflector property * @@ -38,6 +41,7 @@ class InflectorTest extends CakeTestCase { * @access public */ var $Inflector = null; + /** * setUp method * @@ -47,6 +51,7 @@ class InflectorTest extends CakeTestCase { function setUp() { $this->Inflector = Inflector::getInstance(); } + /** * testInstantiation method * @@ -56,6 +61,7 @@ class InflectorTest extends CakeTestCase { function testInstantiation() { $this->assertEqual(new Inflector(), $this->Inflector); } + /** * testInflectingSingulars method * @@ -107,6 +113,7 @@ class InflectorTest extends CakeTestCase { $this->assertEqual(Inflector::singularize('niches'), 'niche'); $this->assertEqual(Inflector::singularize(''), ''); } + /** * testInflectingPlurals method * @@ -150,6 +157,7 @@ class InflectorTest extends CakeTestCase { $this->assertEqual(Inflector::pluralize('crisis'), 'crises'); $this->assertEqual(Inflector::pluralize(''), ''); } + /** * testInflectorSlug method * @@ -201,6 +209,7 @@ class InflectorTest extends CakeTestCase { $expected = 'this-melts-your-face1-2-3'; $this->assertEqual($result, $expected); } + /** * testInflectorSlugWithMap method * @@ -216,6 +225,7 @@ class InflectorTest extends CakeTestCase { $expected = '_eplace_eve_y__'; $this->assertEqual($result, $expected); } + /** * testVariableNaming method * @@ -228,6 +238,7 @@ class InflectorTest extends CakeTestCase { $this->assertEqual(Inflector::variable('test field'), 'testField'); $this->assertEqual(Inflector::variable('Test_field'), 'testField'); } + /** * testClassNaming method * @@ -239,6 +250,7 @@ class InflectorTest extends CakeTestCase { $this->assertEqual(Inflector::classify('file_systems'), 'FileSystem'); $this->assertEqual(Inflector::classify('news'), 'News'); } + /** * testTableNaming method * @@ -250,6 +262,7 @@ class InflectorTest extends CakeTestCase { $this->assertEqual(Inflector::tableize('FileSystem'), 'file_systems'); $this->assertEqual(Inflector::tableize('News'), 'news'); } + /** * testHumanization method * @@ -261,6 +274,7 @@ class InflectorTest extends CakeTestCase { $this->assertEqual(Inflector::humanize('posts_tags'), 'Posts Tags'); $this->assertEqual(Inflector::humanize('file_systems'), 'File Systems'); } + /** * testCustomPluralRule method * @@ -285,6 +299,7 @@ class InflectorTest extends CakeTestCase { $this->assertEqual(Inflector::pluralize('amaze'), 'amazable'); $this->assertEqual(Inflector::pluralize('phone'), 'phonezes'); } + /** * testCustomSingularRule method * diff --git a/cake/tests/cases/libs/l10n.test.php b/cake/tests/cases/libs/l10n.test.php index f3aaea211..25c4f8a72 100644 --- a/cake/tests/cases/libs/l10n.test.php +++ b/cake/tests/cases/libs/l10n.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * L10nTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'l10n'); + /** * L10nTest class * @@ -32,6 +34,7 @@ App::import('Core', 'l10n'); * @subpackage cake.tests.cases.libs */ class L10nTest extends CakeTestCase { + /** * testGet method * @@ -114,6 +117,7 @@ class L10nTest extends CakeTestCase { $expected = 'en_us'; $this->assertEqual($result, $expected); } + /** * testGetAutoLanguage method * @@ -168,6 +172,7 @@ class L10nTest extends CakeTestCase { $_SERVER = $__SERVER; } + /** * testMap method * @@ -489,6 +494,7 @@ class L10nTest extends CakeTestCase { $expected = array('zul' => 'zu', 'zu' => 'zul'); $this->assertEqual($result, $expected); } + /** * testCatalog method * diff --git a/cake/tests/cases/libs/magic_db.test.php b/cake/tests/cases/libs/magic_db.test.php index 3eba7eb46..e975671ab 100644 --- a/cake/tests/cases/libs/magic_db.test.php +++ b/cake/tests/cases/libs/magic_db.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * MagicDbTest file * @@ -23,6 +24,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ uses('magic_db', 'object'); + /** * The test class for the MagicDb class * @@ -30,6 +32,7 @@ uses('magic_db', 'object'); * @subpackage cake.tests.cases.libs */ class MagicDbTest extends UnitTestCase { + /** * The MagicDb instance to be tested * @@ -37,6 +40,7 @@ class MagicDbTest extends UnitTestCase { * @access public */ var $Db = null; + /** * Sets up a MagicDb class instance for testing * @@ -45,6 +49,7 @@ class MagicDbTest extends UnitTestCase { function setUp() { $this->Db =& new MagicDb(); } + /** * MagicDb::analyze should properly detect the file type and output additional info as requested. * @@ -60,6 +65,7 @@ class MagicDbTest extends UnitTestCase { $r = $this->Db->analyze(WWW_ROOT.'img'.DS.'cake.icon.gif'); // TODO: Check several serialized file samples for accurate detection } + /** * MagicDb::read should properly read MagicDb databases from .php-/.db-files and plain data arguments passed in and return false if the file wasn't found or * if the readed data did not validate. @@ -99,6 +105,7 @@ class MagicDbTest extends UnitTestCase { $r = $this->Db->read(MagicDbTestData::get('magic.snippet.db')); $this->assertTrue($r === true); } + /** * MagicDb::toArray should either return the MagicDb::db property, or the parsed array data if a magic.db dump is passed in as the first argument * @@ -122,6 +129,7 @@ class MagicDbTest extends UnitTestCase { $r = $this->Db->toArray(MagicDbTestData::get('magic.snippet.db')); $this->assertTrue($r === MagicDbTestData::get('magic.snippet.db.result')); } + /** * The MagicDb::validates function should return if the array passed to it or the local db property contains a valid MagicDb record set * @@ -146,12 +154,14 @@ class MagicDbTest extends UnitTestCase { $this->assertTrue($r === true); } } + /** * Test data holding object for MagicDb tests * * @package cake * @subpackage cake.tests.cases.libs */ + /** * MagicDbTestData class * @@ -159,6 +169,7 @@ class MagicDbTest extends UnitTestCase { * @subpackage cake.tests.cases.libs */ class MagicDbTestData extends Object { + /** * Base64 encoded data * @@ -170,6 +181,7 @@ class MagicDbTestData extends Object { 'magic.snippet.db.result' => 'YToyOntzOjY6ImhlYWRlciI7YToyOntzOjQ6IkRhdGUiO3M6MTA6IjIwMDUtMDMtMjkiO3M6NjoiU291cmNlIjtzOjIyOiJodHRwOi8vd3d3Lm1hZ2ljZGIub3JnIjt9czo4OiJkYXRhYmFzZSI7YToyOntpOjA7YTo0OntpOjA7YTo0OntpOjA7czoxOiIwIjtpOjE7czo2OiJzdHJpbmciO2k6MjtzOjg6IlxceEZGV1BDIjtpOjM7czo1OToiW2ZpZD0wMDAwMDEwMDgtMDAtMDAwMDAwMTtleHQ9O21pbWU9O11Xb3JkcGVyZmVjdCBoZWxwIGZpbGUiO31pOjE7YTo0OntpOjA7czoyOiImOSI7aToxO3M6NDoiYnl0ZSI7aToyO3M6NDoiMHgwMiI7aTozO3M6M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3VhbCBDKysgcHJlLWNvbXBpbGVkIGhlYWRlcihzKQ0KDQojIE1hZ2ljIElEIGZvciBNaWNyb3NvZnQgVmlzdWFsIEMrKyBmaWxlcy4NCiMgU3VibWl0dGVkIG9uIDIwMDUtMDMtMDQgYnkgQ2FybCBFcmljIENvZGVyZQ0KMAlzdHJpbmcJTWljcm9zb2Z0XFwgQy9DKytcXCBwcm9ncmFtXFwgZGF0YWJhc2UJW2ZpZD0wMDAwMDEwMDEtOTAtMDAwMFBEQjtleHQ9cGRiO21pbWU9O11NaWNyb3NvZnQgVmlzdWFsIEMrKyBkZWJ1ZyBpbmZvcm1hdGlvbiBkYXRhYmFzZQ0KJjB4MjUJc3RyaW5nCVxceDBEXFx4MEFcXHgxQQkNCiYweDI4CXN0cmluZwlKR1xceDAwCQ0KDQojIE1hZ2ljIElEIGZvciBNaWNyb3NvZnQgVmlzdWFsIEMrKyBmaWxlcy4NCiMgU3VibWl0dGVkIG9uIDIwMDUtMDMtMDQgYnkgQ2FybCBFcmljIENvZGVyZQ0KMAlzdHJpbmcJTWljcm9zb2Z0XFwgTGlua2VyXFwgRGF0YWJhc2VcXHgwQVxceDA3XFx4MUEJW2ZpZD0wMDAwMDEwMDEtOTAtMDAwMElMSztleHQ9aWxrO21pbWU9O11NaWNyb3NvZnQgVmlzdWFsIEMrKyBsaW5rZXIgZGF0YWJhc2UNCg0KDQojIENSQzMyOjhCQzNCQTQ2DQo=' ); + /** * Returns the test data for a given key * @@ -177,6 +189,7 @@ class MagicDbTestData extends Object { * @access public **/ function get($key) { + /** * data property * diff --git a/cake/tests/cases/libs/model/behaviors/acl.test.php b/cake/tests/cases/libs/model/behaviors/acl.test.php index 3ca1974e3..0d12ba514 100644 --- a/cake/tests/cases/libs/model/behaviors/acl.test.php +++ b/cake/tests/cases/libs/model/behaviors/acl.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * AclBehaviorTest file * @@ -26,6 +27,7 @@ */ App::import('Behavior', 'Acl'); App::import('Core', 'db_acl'); + /** * Test Person class - self joined model * @@ -33,6 +35,7 @@ App::import('Core', 'db_acl'); * @subpackage cake.tests.cases.libs.model.behaviors */ class AclPerson extends CakeTestModel { + /** * name property * @@ -40,6 +43,7 @@ class AclPerson extends CakeTestModel { * @access public */ var $name = 'AclPerson'; + /** * useTable property * @@ -47,6 +51,7 @@ class AclPerson extends CakeTestModel { * @access public */ var $useTable = 'people'; + /** * actsAs property * @@ -54,6 +59,7 @@ class AclPerson extends CakeTestModel { * @access public */ var $actsAs = array('Acl' => 'requester'); + /** * belongsTo property * @@ -66,6 +72,7 @@ class AclPerson extends CakeTestModel { 'foreignKey' => 'mother_id', ) ); + /** * hasMany property * @@ -78,6 +85,7 @@ class AclPerson extends CakeTestModel { 'foreignKey' => 'mother_id' ) ); + /** * parentNode method * @@ -99,6 +107,7 @@ class AclPerson extends CakeTestModel { } } } + /** * AclUser class * @@ -106,6 +115,7 @@ class AclPerson extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.behaviors */ class AclUser extends CakeTestModel { + /** * name property * @@ -113,6 +123,7 @@ class AclUser extends CakeTestModel { * @access public */ var $name = 'User'; + /** * useTable property * @@ -120,6 +131,7 @@ class AclUser extends CakeTestModel { * @access public */ var $useTable = 'users'; + /** * actsAs property * @@ -127,6 +139,7 @@ class AclUser extends CakeTestModel { * @access public */ var $actsAs = array('Acl'); + /** * parentNode * @@ -136,6 +149,7 @@ class AclUser extends CakeTestModel { return null; } } + /** * AclPost class * @@ -143,6 +157,7 @@ class AclUser extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.behaviors */ class AclPost extends CakeTestModel { + /** * name property * @@ -150,6 +165,7 @@ class AclPost extends CakeTestModel { * @access public */ var $name = 'Post'; + /** * useTable property * @@ -157,6 +173,7 @@ class AclPost extends CakeTestModel { * @access public */ var $useTable = 'posts'; + /** * actsAs property * @@ -164,6 +181,7 @@ class AclPost extends CakeTestModel { * @access public */ var $actsAs = array('Acl' => 'controlled'); + /** * parentNode * @@ -173,6 +191,7 @@ class AclPost extends CakeTestModel { return null; } } + /** * AclBehaviorTest class * @@ -180,6 +199,7 @@ class AclPost extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller.components */ class AclBehaviorTestCase extends CakeTestCase { + /** * Aco property * @@ -187,6 +207,7 @@ class AclBehaviorTestCase extends CakeTestCase { * @access public */ var $Aco; + /** * Aro property * @@ -194,6 +215,7 @@ class AclBehaviorTestCase extends CakeTestCase { * @access public */ var $Aro; + /** * fixtures property * @@ -201,6 +223,7 @@ class AclBehaviorTestCase extends CakeTestCase { * @access public */ var $fixtures = array('core.person', 'core.user', 'core.post', 'core.aco', 'core.aro', 'core.aros_aco'); + /** * Set up the test * @@ -213,6 +236,7 @@ class AclBehaviorTestCase extends CakeTestCase { $this->Aco =& new Aco(); $this->Aro =& new Aro(); } + /** * tearDown method * @@ -223,6 +247,7 @@ class AclBehaviorTestCase extends CakeTestCase { ClassRegistry::flush(); unset($this->Aro, $this->Aco); } + /** * Test Setup of AclBehavior * @@ -240,6 +265,7 @@ class AclBehaviorTestCase extends CakeTestCase { $this->assertEqual($Post->Behaviors->Acl->settings['Post']['type'], 'controlled'); $this->assertTrue(is_object($Post->Aco)); } + /** * test After Save * @@ -289,6 +315,7 @@ class AclBehaviorTestCase extends CakeTestCase { $this->assertEqual($node[0]['Aro']['parent_id'], 5); $this->assertEqual($node[1]['Aro']['parent_id'], null); } + /** * Test After Delete * @@ -342,6 +369,7 @@ class AclBehaviorTestCase extends CakeTestCase { $this->assertTrue(empty($result)); } + /** * Test Node() * diff --git a/cake/tests/cases/libs/model/behaviors/containable.test.php b/cake/tests/cases/libs/model/behaviors/containable.test.php index d7cf0d0c5..6601ae1c1 100644 --- a/cake/tests/cases/libs/model/behaviors/containable.test.php +++ b/cake/tests/cases/libs/model/behaviors/containable.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ContainableBehaviorTest file * @@ -26,6 +27,7 @@ */ App::import('Core', array('AppModel', 'Model')); require_once(dirname(dirname(__FILE__)) . DS . 'models.php'); + /** * ContainableTest class * @@ -33,6 +35,7 @@ require_once(dirname(dirname(__FILE__)) . DS . 'models.php'); * @subpackage cake.tests.cases.libs.model.behaviors */ class ContainableBehaviorTest extends CakeTestCase { + /** * Fixtures associated with this test case * @@ -43,6 +46,7 @@ class ContainableBehaviorTest extends CakeTestCase { 'core.article', 'core.article_featured', 'core.article_featureds_tags', 'core.articles_tag', 'core.attachment', 'core.category', 'core.comment', 'core.featured', 'core.tag', 'core.user' ); + /** * Method executed before each test * @@ -69,6 +73,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->Article->Behaviors->attach('Containable'); $this->Tag->Behaviors->attach('Containable'); } + /** * Method executed after each test * @@ -81,6 +86,7 @@ class ContainableBehaviorTest extends CakeTestCase { ClassRegistry::flush(); } + /** * testContainments method * @@ -142,6 +148,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->assertTrue(Set::matches('/Article/keep/User', $r)); $this->assertTrue(Set::matches('/Tag/keep/Article', $r)); } + /** * testInvalidContainments method * @@ -155,6 +162,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->Article->Behaviors->attach('Containable', array('notices' => false)); $r = $this->__containments($this->Article, array('Comment', 'InvalidBinding')); } + /** * testBeforeFind method * @@ -229,6 +237,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->expectError(); $r = $this->Article->find('all', array('contain' => array('Comment' => 'NonExistingBinding'))); } + /** * testContain method * @@ -244,6 +253,7 @@ class ContainableBehaviorTest extends CakeTestCase { $r = $this->Article->find('all'); $this->assertFalse(Set::matches('/Comment/User', $r)); } + /** * testFindEmbeddedNoBindings method * @@ -268,6 +278,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testFindFirstLevel method * @@ -376,6 +387,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testFindEmbeddedFirstLevel method * @@ -482,6 +494,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testFindSecondLevel method * @@ -828,6 +841,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testFindEmbeddedSecondLevel method * @@ -1170,6 +1184,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testFindThirdLevel method * @@ -1490,6 +1505,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testFindEmbeddedThirdLevel method * @@ -1807,6 +1823,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testSettingsThirdLevel method * @@ -2047,6 +2064,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testFindThirdLevelNonReset method * @@ -2371,6 +2389,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testFindEmbeddedThirdLevelNonReset method * @@ -2860,6 +2879,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->__assertBindings($this->User->ArticleFeatured->Featured, array('belongsTo' => array('ArticleFeatured', 'Category'))); $this->__assertBindings($this->User->ArticleFeatured->Comment, array('belongsTo' => array('Article', 'User'), 'hasOne' => array('Attachment'))); } + /** * testEmbeddedFindFields method * @@ -2920,6 +2940,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testFindConditionalBinding method * @@ -3047,6 +3068,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->assertTrue(Set::matches('/Article[id=1]/Tag[id=2]', $result)); $this->assertTrue(empty($this->User->Article->hasAndBelongsToMany['Tag']['order'])); } + /** * testOtherFinds method * @@ -3110,6 +3132,7 @@ class ContainableBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testPaginate method * @@ -3214,6 +3237,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->assertTrue(Set::matches('/Comment[article_id=1]', $r)); $this->assertTrue(Set::matches('/Comment[id=1]', $r)); } + /** * testOriginalAssociations method * @@ -3308,6 +3332,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->assertTrue(Set::matches('/Comment[article_id=1]', $result)); $this->Article->resetBindings(); } + /** * testResetAssociation method * @@ -3341,6 +3366,7 @@ class ContainableBehaviorTest extends CakeTestCase { $result = $this->Article->Comment->find('all', $initialOptions); $this->assertEqual($result, $initialModels); } + /** * testResetDeeperHasOneAssociations method * @@ -3390,6 +3416,7 @@ class ContainableBehaviorTest extends CakeTestCase { )); $this->assertEqual($expected, $this->Article->User->hasOne); } + /** * testResetMultipleHabtmAssociations method * @@ -3480,6 +3507,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->Article->find('all', array('contain' => array('ShortTag' => array('fields' => array('ShortTag.tag', 'ShortTag.created'))))); $this->assertEqual($expected, $this->Article->hasAndBelongsToMany); } + /** * containments method * @@ -3501,6 +3529,7 @@ class ContainableBehaviorTest extends CakeTestCase { return $result; } + /** * assertBindings method * @@ -3516,6 +3545,7 @@ class ContainableBehaviorTest extends CakeTestCase { $this->assertEqual(array_keys($Model->$binding), $expect); } } + /** * bindings method * @@ -3557,4 +3587,4 @@ class ContainableBehaviorTest extends CakeTestCase { return $debug; } } -?> +?> \ No newline at end of file diff --git a/cake/tests/cases/libs/model/behaviors/translate.test.php b/cake/tests/cases/libs/model/behaviors/translate.test.php index 20eb3651c..a8d50bd46 100644 --- a/cake/tests/cases/libs/model/behaviors/translate.test.php +++ b/cake/tests/cases/libs/model/behaviors/translate.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * TranslateBehaviorTest file * @@ -30,6 +31,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { App::import('Core', array('AppModel', 'Model')); require_once(dirname(dirname(__FILE__)) . DS . 'models.php'); + /** * TranslateBehaviorTest class * @@ -37,6 +39,7 @@ require_once(dirname(dirname(__FILE__)) . DS . 'models.php'); * @subpackage cake.tests.cases.libs.model.behaviors */ class TranslateBehaviorTest extends CakeTestCase { + /** * autoFixtures property * @@ -44,6 +47,7 @@ class TranslateBehaviorTest extends CakeTestCase { * @access public */ var $autoFixtures = false; + /** * fixtures property * @@ -54,6 +58,7 @@ class TranslateBehaviorTest extends CakeTestCase { 'core.translated_item', 'core.translate', 'core.translate_table', 'core.translated_article', 'core.translate_article', 'core.user', 'core.comment', 'core.tag', 'core.articles_tag' ); + /** * endTest method * @@ -63,6 +68,7 @@ class TranslateBehaviorTest extends CakeTestCase { function endTest() { ClassRegistry::flush(); } + /** * testTranslateModel method * @@ -89,6 +95,7 @@ class TranslateBehaviorTest extends CakeTestCase { $this->assertEqual($TestModel->translateModel()->name, 'TranslateTestModel'); $this->assertEqual($TestModel->translateModel()->useTable, 'i18n'); } + /** * testLocaleFalsePlain method * @@ -113,6 +120,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testLocaleFalseAssociations method * @@ -167,6 +175,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testLocaleSingle method * @@ -222,6 +231,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testLocaleSingleWithConditions method * @@ -261,6 +271,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testLocaleSingleAssociations method * @@ -321,6 +332,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testLocaleMultiple method * @@ -384,6 +396,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testMissingTranslation method * @@ -411,6 +424,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testTranslatedFindList method * @@ -441,6 +455,7 @@ class TranslateBehaviorTest extends CakeTestCase { $expected = array(1 => null, 2 => null, 3 => null); $this->assertEqual($result, $expected); } + /** * testReadSelectedFields method * @@ -476,6 +491,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testSaveCreate method * @@ -494,6 +510,7 @@ class TranslateBehaviorTest extends CakeTestCase { $expected = array('TranslatedItem' => array_merge($data, array('id' => $TestModel->id, 'locale' => 'spa'))); $this->assertEqual($result, $expected); } + /** * testSaveUpdate method * @@ -516,6 +533,7 @@ class TranslateBehaviorTest extends CakeTestCase { $expected = array('TranslatedItem' => array_merge($oldData, $newData, array('locale' => 'spa'))); $this->assertEqual($result, $expected); } + /** * testMultipleCreate method * @@ -554,6 +572,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testMultipleUpdate method * @@ -596,6 +615,7 @@ class TranslateBehaviorTest extends CakeTestCase { $TestModel->unbindTranslation($translations); $TestModel->bindTranslation(array('title', 'content'), false); } + /** * testMixedCreateUpdateWithArrayLocale method * @@ -635,6 +655,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testValidation method * @@ -666,6 +687,7 @@ class TranslateBehaviorTest extends CakeTestCase { $TestModel->create(); $this->assertTrue($TestModel->save($data)); } + /** * testAttachDetach method * @@ -716,6 +738,7 @@ class TranslateBehaviorTest extends CakeTestCase { $result = isset($Behavior->runtime[$TestModel->alias]); $this->assertTrue($result); } + /** * testAnotherTranslateTable method * @@ -739,6 +762,7 @@ class TranslateBehaviorTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testTranslateWithAssociations method * diff --git a/cake/tests/cases/libs/model/behaviors/tree.test.php b/cake/tests/cases/libs/model/behaviors/tree.test.php index 2d030cb4c..71b6f227b 100644 --- a/cake/tests/cases/libs/model/behaviors/tree.test.php +++ b/cake/tests/cases/libs/model/behaviors/tree.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * TreeBehaviorTest file * @@ -26,6 +27,7 @@ */ App::import('Core', array('AppModel', 'Model')); require_once(dirname(dirname(__FILE__)) . DS . 'models.php'); + /** * NumberTreeTest class * @@ -33,6 +35,7 @@ require_once(dirname(dirname(__FILE__)) . DS . 'models.php'); * @subpackage cake.tests.cases.libs.model.behaviors */ class NumberTreeTest extends CakeTestCase { + /** * settings property * @@ -45,6 +48,7 @@ class NumberTreeTest extends CakeTestCase { 'rightField' => 'rght', 'parentField' => 'parent_id' ); + /** * fixtures property * @@ -52,6 +56,7 @@ class NumberTreeTest extends CakeTestCase { * @access public */ var $fixtures = array('core.number_tree'); + /** * testInitialize method * @@ -69,6 +74,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testDetectInvalidLeft method * @@ -95,6 +101,7 @@ class NumberTreeTest extends CakeTestCase { $result = $this->Tree->verify(); $this->assertIdentical($result, true); } + /** * testDetectInvalidRight method * @@ -121,6 +128,7 @@ class NumberTreeTest extends CakeTestCase { $result = $this->Tree->verify(); $this->assertIdentical($result, true); } + /** * testDetectInvalidParent method * @@ -146,6 +154,7 @@ class NumberTreeTest extends CakeTestCase { $result = $this->Tree->verify(); $this->assertIdentical($result, true); } + /** * testDetectNoneExistantParent method * @@ -169,6 +178,7 @@ class NumberTreeTest extends CakeTestCase { $result = $this->Tree->verify(); $this->assertIdentical($result, true); } + /** * testRecoverFromMissingParent method * @@ -192,6 +202,7 @@ class NumberTreeTest extends CakeTestCase { $result = $this->Tree->verify(); $this->assertIdentical($result, true); } + /** * testDetectInvalidParents method * @@ -214,6 +225,7 @@ class NumberTreeTest extends CakeTestCase { $result = $this->Tree->verify(); $this->assertIdentical($result, true); } + /** * testDetectInvalidLftsRghts method * @@ -235,6 +247,7 @@ class NumberTreeTest extends CakeTestCase { $result = $this->Tree->verify(); $this->assertIdentical($result, true); } + /** * Reproduces a situation where a single node has lft= rght, and all other lft and rght fields follow sequentially * @@ -262,6 +275,7 @@ class NumberTreeTest extends CakeTestCase { $result = $this->Tree->verify(); $this->assertTrue($result); } + /** * testAddOrphan method * @@ -281,6 +295,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testAddMiddle method * @@ -314,6 +329,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testAddInvalid method * @@ -338,6 +354,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testAddNotIndexedByModel method * @@ -357,6 +374,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testMovePromote method * @@ -383,6 +401,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testMoveWithWhitelist method * @@ -410,6 +429,7 @@ class NumberTreeTest extends CakeTestCase { $this->assertEqual($result, $expected); $this->assertTrue($this->Tree->verify()); } + /** * testInsertWithWhitelist method * @@ -428,6 +448,7 @@ class NumberTreeTest extends CakeTestCase { $this->assertEqual($result[$modelClass], $expected); $this->assertIdentical($this->Tree->verify(), true); } + /** * testMoveBefore method * @@ -456,6 +477,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testMoveAfter method * @@ -484,6 +506,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testMoveDemoteInvalid method * @@ -517,6 +540,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testMoveInvalid method * @@ -543,6 +567,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testMoveSelfInvalid method * @@ -569,6 +594,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testMoveUpSuccess method * @@ -590,6 +616,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.1', ))); $this->assertIdentical($result, $expected); } + /** * testMoveUpFail method * @@ -612,6 +639,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.2', ))); $this->assertIdentical($result, $expected); } + /** * testMoveUp2 method * @@ -642,6 +670,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.10', ))); $this->assertIdentical($result, $expected); } + /** * testMoveUpFirst method * @@ -672,6 +701,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.10', ))); $this->assertIdentical($result, $expected); } + /** * testMoveDownSuccess method * @@ -693,6 +723,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.1', ))); $this->assertIdentical($result, $expected); } + /** * testMoveDownFail method * @@ -714,6 +745,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.2', ))); $this->assertIdentical($result, $expected); } + /** * testMoveDownLast method * @@ -744,6 +776,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.5', ))); $this->assertIdentical($result, $expected); } + /** * testMoveDown2 method * @@ -774,6 +807,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.10', ))); $this->assertIdentical($result, $expected); } + /** * testSaveNoMove method * @@ -804,6 +838,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.10', ))); $this->assertIdentical($result, $expected); } + /** * testMoveToRootAndMoveUp method * @@ -828,6 +863,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1. Root'))); $this->assertIdentical($result, $expected); } + /** * testDelete method * @@ -863,6 +899,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testRemove method * @@ -895,6 +932,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testRemoveLastTopParent method * @@ -928,6 +966,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testRemoveNoChildren method * @@ -962,6 +1001,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testRemoveAndDelete method * @@ -994,6 +1034,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testRemoveAndDeleteNoChildren method * @@ -1026,6 +1067,7 @@ class NumberTreeTest extends CakeTestCase { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testChildren method * @@ -1054,6 +1096,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('id' => 7, 'name' => '1.2.2', $parentField => 5, $leftField => 11, $rightField => 12))); $this->assertEqual($total, $expects); } + /** * testCountChildren method * @@ -1074,6 +1117,7 @@ class NumberTreeTest extends CakeTestCase { $total = $this->Tree->childCount(); $this->assertEqual($total, 6); } + /** * testGetParentNode method * @@ -1092,6 +1136,7 @@ class NumberTreeTest extends CakeTestCase { $expects = array($modelClass => array('name' => '1.2')); $this->assertIdentical($result, $expects); } + /** * testGetPath method * @@ -1112,6 +1157,7 @@ class NumberTreeTest extends CakeTestCase { array($modelClass => array('name' => '1.2.2'))); $this->assertIdentical($result, $expects); } + /** * testNoAmbiguousColumn method * @@ -1144,6 +1190,7 @@ class NumberTreeTest extends CakeTestCase { ); $this->assertEqual($total, $expects); } + /** * testReorderTree method * @@ -1172,6 +1219,7 @@ class NumberTreeTest extends CakeTestCase { $sortedNodes = $this->Tree->find('list', array('order' => $leftField)); $this->assertIdentical($nodes, $sortedNodes); } + /** * testGenerateTreeListWithSelfJoin method * @@ -1189,6 +1237,7 @@ class NumberTreeTest extends CakeTestCase { $expected = array(1 => '1. Root', 2 => '_1.1', 3 => '__1.1.1', 4 => '__1.1.2', 5 => '_1.2', 6 => '__1.2.1', 7 => '__1.2.2'); $this->assertIdentical($result, $expected); } + /** * testArraySyntax method * @@ -1204,6 +1253,7 @@ class NumberTreeTest extends CakeTestCase { $this->assertIdentical($this->Tree->getPath(4), $this->Tree->getPath(array('id' => 4))); } } + /** * ScopedTreeTest class * @@ -1211,6 +1261,7 @@ class NumberTreeTest extends CakeTestCase { * @subpackage cake.tests.cases.libs.model.behaviors */ class ScopedTreeTest extends NumberTreeTest { + /** * settings property * @@ -1223,6 +1274,7 @@ class ScopedTreeTest extends NumberTreeTest { 'rightField' => 'rght', 'parentField' => 'parent_id' ); + /** * fixtures property * @@ -1230,6 +1282,7 @@ class ScopedTreeTest extends NumberTreeTest { * @access public */ var $fixtures = array('core.flag_tree', 'core.ad', 'core.campaign', 'core.translate', 'core.number_tree_two'); + /** * testStringScope method * @@ -1266,6 +1319,7 @@ class ScopedTreeTest extends NumberTreeTest { $this->assertTrue($this->Tree->delete()); $this->assertEqual($this->Tree->find('count'), 11); } + /** * testArrayScope method * @@ -1302,6 +1356,7 @@ class ScopedTreeTest extends NumberTreeTest { $this->assertTrue($this->Tree->delete()); $this->assertEqual($this->Tree->find('count'), 11); } + /** * testMoveUpWithScope method * @@ -1318,6 +1373,7 @@ class ScopedTreeTest extends NumberTreeTest { $this->assertEqual(Set::extract('/Ad/id', $result), array(6, 5)); $this->assertEqual(Set::extract('/Campaign/id', $result), array(2, 2)); } + /** * testMoveDownWithScope method * @@ -1334,6 +1390,7 @@ class ScopedTreeTest extends NumberTreeTest { $this->assertEqual(Set::extract('/Ad/id', $result), array(5, 6)); $this->assertEqual(Set::extract('/Campaign/id', $result), array(2, 2)); } + /** * Tests the interaction (non-interference) between TreeBehavior and other behaviors with respect * to callback hooks @@ -1433,6 +1490,7 @@ class ScopedTreeTest extends NumberTreeTest { ); $this->assertEqual($result, $expected); } + /** * testGenerateTreeListWithSelfJoin method * @@ -1489,6 +1547,7 @@ class ScopedTreeTest extends NumberTreeTest { $this->assertEqual($result, $expected); } } + /** * AfterTreeTest class * @@ -1496,6 +1555,7 @@ class ScopedTreeTest extends NumberTreeTest { * @subpackage cake.tests.cases.libs.model.behaviors */ class AfterTreeTest extends NumberTreeTest { + /** * settings property * @@ -1508,6 +1568,7 @@ class AfterTreeTest extends NumberTreeTest { 'rightField' => 'rght', 'parentField' => 'parent_id' ); + /** * fixtures property * @@ -1515,6 +1576,7 @@ class AfterTreeTest extends NumberTreeTest { * @access public */ var $fixtures = array('core.after_tree'); + /** * Tests the afterSave callback in the model * @@ -1533,6 +1595,7 @@ class AfterTreeTest extends NumberTreeTest { $this->assertEqual($result[7], $expected); } } + /** * UnconventionalTreeTest class * @@ -1540,6 +1603,7 @@ class AfterTreeTest extends NumberTreeTest { * @subpackage cake.tests.cases.libs.model.behaviors */ class UnconventionalTreeTest extends NumberTreeTest { + /** * settings property * @@ -1552,6 +1616,7 @@ class UnconventionalTreeTest extends NumberTreeTest { 'rightField' => 'right', 'parentField' => 'join' ); + /** * fixtures property * @@ -1560,6 +1625,7 @@ class UnconventionalTreeTest extends NumberTreeTest { */ var $fixtures = array('core.unconventional_tree'); } + /** * UuidTreeTest class * @@ -1567,6 +1633,7 @@ class UnconventionalTreeTest extends NumberTreeTest { * @subpackage cake.tests.cases.libs.model.behaviors */ class UuidTreeTest extends NumberTreeTest { + /** * settings property * @@ -1579,6 +1646,7 @@ class UuidTreeTest extends NumberTreeTest { 'rightField' => 'rght', 'parentField' => 'parent_id' ); + /** * fixtures property * @@ -1586,6 +1654,7 @@ class UuidTreeTest extends NumberTreeTest { * @access public */ var $fixtures = array('core.uuid_tree'); + /** * testMovePromote method * @@ -1612,6 +1681,7 @@ class UuidTreeTest extends NumberTreeTest { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testMoveWithWhitelist method * @@ -1639,6 +1709,7 @@ class UuidTreeTest extends NumberTreeTest { $this->assertEqual($result, $expected); $this->assertTrue($this->Tree->verify()); } + /** * testRemoveNoChildren method * @@ -1673,6 +1744,7 @@ class UuidTreeTest extends NumberTreeTest { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testRemoveAndDeleteNoChildren method * @@ -1705,6 +1777,7 @@ class UuidTreeTest extends NumberTreeTest { $validTree = $this->Tree->verify(); $this->assertIdentical($validTree, true); } + /** * testChildren method * @@ -1733,6 +1806,7 @@ class UuidTreeTest extends NumberTreeTest { array($modelClass => array('name' => '1.2.2', $leftField => 11, $rightField => 12))); $this->assertEqual($total, $expects); } + /** * testNoAmbiguousColumn method * @@ -1765,6 +1839,7 @@ class UuidTreeTest extends NumberTreeTest { ); $this->assertEqual($total, $expects); } + /** * testGenerateTreeListWithSelfJoin method * diff --git a/cake/tests/cases/libs/model/cake_schema.test.php b/cake/tests/cases/libs/model/cake_schema.test.php index 206b16f73..71f7a7fed 100644 --- a/cake/tests/cases/libs/model/cake_schema.test.php +++ b/cake/tests/cases/libs/model/cake_schema.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Test for Schema database management * @@ -24,6 +25,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'CakeSchema'); + /** * Test for Schema database management * @@ -31,6 +33,7 @@ App::import('Core', 'CakeSchema'); * @subpackage cake.tests.cases.libs */ class MyAppSchema extends CakeSchema { + /** * name property * @@ -38,6 +41,7 @@ class MyAppSchema extends CakeSchema { * @access public */ var $name = 'MyApp'; + /** * connection property * @@ -45,6 +49,7 @@ class MyAppSchema extends CakeSchema { * @access public */ var $connection = 'test_suite'; + /** * comments property * @@ -62,6 +67,7 @@ class MyAppSchema extends CakeSchema { 'updated' => array('type' => 'datetime', 'null' => true, 'default' => null), 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => true)), ); + /** * posts property * @@ -79,6 +85,7 @@ class MyAppSchema extends CakeSchema { 'updated' => array('type' => 'datetime', 'null' => true, 'default' => null), 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => true)), ); + /** * setup method * @@ -88,6 +95,7 @@ class MyAppSchema extends CakeSchema { */ function setup($version) { } + /** * teardown method * @@ -98,6 +106,7 @@ class MyAppSchema extends CakeSchema { function teardown($version) { } } + /** * TestAppSchema class * @@ -105,6 +114,7 @@ class MyAppSchema extends CakeSchema { * @subpackage cake.tests.cases.libs.model */ class TestAppSchema extends CakeSchema { + /** * name property * @@ -112,6 +122,7 @@ class TestAppSchema extends CakeSchema { * @access public */ var $name = 'MyApp'; + /** * comments property * @@ -128,6 +139,7 @@ class TestAppSchema extends CakeSchema { 'updated' => array('type' => 'datetime', 'null' => true, 'default' => null), 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => true)), ); + /** * posts property * @@ -144,6 +156,7 @@ class TestAppSchema extends CakeSchema { 'updated' => array('type' => 'datetime', 'null' => true, 'default' => null), 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => true)), ); + /** * posts_tags property * @@ -155,6 +168,7 @@ class TestAppSchema extends CakeSchema { 'tag_id' => array('type' => 'string', 'null' => false, 'key' => 'primary'), 'indexes' => array('posts_tag' => array('column' => array('tag_id', 'post_id'), 'unique' => 1)) ); + /** * tags property * @@ -168,6 +182,7 @@ class TestAppSchema extends CakeSchema { 'updated' => array('type' => 'datetime', 'null' => true, 'default' => null), 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => true)) ); + /** * datatypes property * @@ -179,6 +194,7 @@ class TestAppSchema extends CakeSchema { 'float_field' => array('type' => 'float', 'null' => false, 'length' => '5,2'), 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => true)) ); + /** * setup method * @@ -188,6 +204,7 @@ class TestAppSchema extends CakeSchema { */ function setup($version) { } + /** * teardown method * @@ -198,6 +215,7 @@ class TestAppSchema extends CakeSchema { function teardown($version) { } } + /** * SchmeaPost class * @@ -205,6 +223,7 @@ class TestAppSchema extends CakeSchema { * @subpackage cake.tests.cases.libs.model */ class SchemaPost extends CakeTestModel { + /** * name property * @@ -212,6 +231,7 @@ class SchemaPost extends CakeTestModel { * @access public */ var $name = 'SchemaPost'; + /** * useTable property * @@ -219,6 +239,7 @@ class SchemaPost extends CakeTestModel { * @access public */ var $useTable = 'posts'; + /** * hasMany property * @@ -226,6 +247,7 @@ class SchemaPost extends CakeTestModel { * @access public */ var $hasMany = array('SchemaComment'); + /** * hasAndBelongsToMany property * @@ -234,6 +256,7 @@ class SchemaPost extends CakeTestModel { */ var $hasAndBelongsToMany = array('SchemaTag'); } + /** * SchemaComment class * @@ -241,6 +264,7 @@ class SchemaPost extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class SchemaComment extends CakeTestModel { + /** * name property * @@ -248,6 +272,7 @@ class SchemaComment extends CakeTestModel { * @access public */ var $name = 'SchemaComment'; + /** * useTable property * @@ -255,6 +280,7 @@ class SchemaComment extends CakeTestModel { * @access public */ var $useTable = 'comments'; + /** * belongsTo property * @@ -263,6 +289,7 @@ class SchemaComment extends CakeTestModel { */ var $belongsTo = array('SchemaPost'); } + /** * SchemaTag class * @@ -270,6 +297,7 @@ class SchemaComment extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class SchemaTag extends CakeTestModel { + /** * name property * @@ -277,6 +305,7 @@ class SchemaTag extends CakeTestModel { * @access public */ var $name = 'SchemaTag'; + /** * useTable property * @@ -284,6 +313,7 @@ class SchemaTag extends CakeTestModel { * @access public */ var $useTable = 'tags'; + /** * hasAndBelongsToMany property * @@ -292,6 +322,7 @@ class SchemaTag extends CakeTestModel { */ var $hasAndBelongsToMany = array('SchemaPost'); } + /** * SchemaDatatype class * @@ -299,6 +330,7 @@ class SchemaTag extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class SchemaDatatype extends CakeTestModel { + /** * name property * @@ -306,6 +338,7 @@ class SchemaDatatype extends CakeTestModel { * @access public */ var $name = 'SchemaDatatype'; + /** * useTable property * @@ -314,6 +347,7 @@ class SchemaDatatype extends CakeTestModel { */ var $useTable = 'datatypes'; } + /** * Testdescribe class * @@ -326,6 +360,7 @@ class SchemaDatatype extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Testdescribe extends CakeTestModel { + /** * name property * @@ -334,6 +369,7 @@ class Testdescribe extends CakeTestModel { */ var $name = 'Testdescribe'; } + /** * CakeSchemaTest * @@ -341,6 +377,7 @@ class Testdescribe extends CakeTestModel { * @subpackage cake.tests.cases.libs */ class CakeSchemaTest extends CakeTestCase { + /** * fixtures property * @@ -348,6 +385,7 @@ class CakeSchemaTest extends CakeTestCase { * @access public */ var $fixtures = array('core.post', 'core.tag', 'core.posts_tag', 'core.comment', 'core.datatype'); + /** * setUp method * @@ -357,6 +395,7 @@ class CakeSchemaTest extends CakeTestCase { function startTest() { $this->Schema = new TestAppSchema(); } + /** * tearDown method * @@ -366,6 +405,7 @@ class CakeSchemaTest extends CakeTestCase { function tearDown() { unset($this->Schema); } + /** * testSchemaName method * @@ -382,6 +422,7 @@ class CakeSchemaTest extends CakeTestCase { Configure::write('App.dir', 'app'); } + /** * testSchemaRead method * @@ -410,6 +451,7 @@ class CakeSchemaTest extends CakeTestCase { $read = $this->Schema->read(array('connection' => 'schema_prefix', 'models' => false)); $this->assertTrue(empty($read['tables'])); } + /** * testSchemaWrite method * @@ -426,6 +468,7 @@ class CakeSchemaTest extends CakeTestCase { $this->assertEqual($this->Schema->tables, $OtherSchema->tables); } + /** * testSchemaComparison method * @@ -459,6 +502,7 @@ class CakeSchemaTest extends CakeTestCase { ); $this->assertEqual($expected, $compare); } + /** * testSchemaLoading method * @@ -470,6 +514,7 @@ class CakeSchemaTest extends CakeTestCase { $this->assertEqual($Other->name, 'MyOtherApp'); $this->assertEqual($Other->tables, $this->Schema->tables); } + /** * testSchemaCreateTable method * diff --git a/cake/tests/cases/libs/model/datasources/dbo/dbo_adodb.test.php b/cake/tests/cases/libs/model/datasources/dbo/dbo_adodb.test.php index 45f71fe16..c661c4e08 100644 --- a/cake/tests/cases/libs/model/datasources/dbo/dbo_adodb.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo/dbo_adodb.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DboAdodbTest file * @@ -28,6 +29,7 @@ require_once LIBS.'model'.DS.'model.php'; require_once LIBS.'model'.DS.'datasources'.DS.'datasource.php'; require_once LIBS.'model'.DS.'datasources'.DS.'dbo_source.php'; require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_adodb.php'; + /** * DboAdoTestDb * @@ -35,6 +37,7 @@ require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_adodb.php'; * @subpackage cake.tests.cases.libs.model.datasources */ class DboAdoTestDb extends DboAdodb { + /** * simulated property * @@ -42,6 +45,7 @@ class DboAdoTestDb extends DboAdodb { * @access public */ var $simulated = array(); + /** * testing property * @@ -49,6 +53,7 @@ class DboAdoTestDb extends DboAdodb { * @access public */ var $testing = true; + /** * execute method * @@ -63,6 +68,7 @@ class DboAdoTestDb extends DboAdodb { } return parent::_execute($sql); } + /** * getLastQuery method * @@ -73,6 +79,7 @@ class DboAdoTestDb extends DboAdodb { return $this->simulated[count($this->simulated) - 1]; } } + /** * AdodbTestModel * @@ -80,6 +87,7 @@ class DboAdoTestDb extends DboAdodb { * @subpackage cake.tests.cases.libs.model.datasources */ class AdodbTestModel extends CakeTestModel { + /** * name property * @@ -87,6 +95,7 @@ class AdodbTestModel extends CakeTestModel { * @access public */ var $name = 'AdodbTestModel'; + /** * useTable property * @@ -94,6 +103,7 @@ class AdodbTestModel extends CakeTestModel { * @access public */ var $useTable = false; + /** * find method * @@ -107,6 +117,7 @@ class AdodbTestModel extends CakeTestModel { function find($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * findAll method * @@ -120,6 +131,7 @@ class AdodbTestModel extends CakeTestModel { function findAll($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * schema method * @@ -150,6 +162,7 @@ class AdodbTestModel extends CakeTestModel { } } if (!class_exists('Article')) { + /** * Article class * @@ -157,6 +170,7 @@ if (!class_exists('Article')) { * @subpackage cake.tests.cases.libs.model.datasources.dbo */ class Article extends CakeTestModel { + /** * name property * @@ -166,6 +180,7 @@ if (!class_exists('Article')) { var $name = 'Article'; } } + /** * DboAdodbTest class * @@ -173,6 +188,7 @@ if (!class_exists('Article')) { * @subpackage cake.tests.cases.libs.model.datasources.dbo */ class DboAdodbTest extends CakeTestCase { + /** * The Dbo instance to be tested * @@ -180,6 +196,7 @@ class DboAdodbTest extends CakeTestCase { * @access public */ var $db = null; + /** * fixtures property * @@ -187,6 +204,7 @@ class DboAdodbTest extends CakeTestCase { * @access public **/ var $fixtures = array('core.article'); + /** * Skip if cannot connect to AdoDb * @@ -197,6 +215,7 @@ class DboAdodbTest extends CakeTestCase { $db =& ConnectionManager::getDataSource('test_suite'); $this->skipIf($db->config['driver'] != 'adodb', '%s Adodb connection not available'); } + /** * Sets up a Dbo class instance for testing * @@ -207,6 +226,7 @@ class DboAdodbTest extends CakeTestCase { $this->db = new DboAdoTestDb($db->config); $this->model = new AdodbTestModel(); } + /** * Sets up a Dbo class instance for testing * @@ -215,6 +235,7 @@ class DboAdodbTest extends CakeTestCase { function tearDown() { unset($this->db); } + /** * Test Dbo value method * @@ -264,6 +285,7 @@ class DboAdodbTest extends CakeTestCase { $result = $this->db->value('00010010001'); $this->assertEqual($expected, $result); } + /** * testColumns method * diff --git a/cake/tests/cases/libs/model/datasources/dbo/dbo_mssql.test.php b/cake/tests/cases/libs/model/datasources/dbo/dbo_mssql.test.php index 1cd3268fa..fec6782b1 100644 --- a/cake/tests/cases/libs/model/datasources/dbo/dbo_mssql.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo/dbo_mssql.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DboMssqlTest file * @@ -29,6 +30,7 @@ require_once LIBS.'model'.DS.'model.php'; require_once LIBS.'model'.DS.'datasources'.DS.'datasource.php'; require_once LIBS.'model'.DS.'datasources'.DS.'dbo_source.php'; require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_mssql.php'; + /** * DboMssqlTestDb class * @@ -36,6 +38,7 @@ require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_mssql.php'; * @subpackage cake.tests.cases.libs.model.datasources.dbo */ class DboMssqlTestDb extends DboMssql { + /** * simulated property * @@ -43,6 +46,7 @@ class DboMssqlTestDb extends DboMssql { * @access public */ var $simulated = array(); + /** * fetchAllResultsStack * @@ -50,6 +54,7 @@ class DboMssqlTestDb extends DboMssql { * @access public */ var $fetchAllResultsStack = array(); + /** * execute method * @@ -61,6 +66,7 @@ class DboMssqlTestDb extends DboMssql { $this->simulated[] = $sql; return null; } + /** * fetchAll method * @@ -71,6 +77,7 @@ class DboMssqlTestDb extends DboMssql { function _matchRecords(&$model, $conditions = null) { return $this->conditions(array('id' => array(1, 2))); } + /** * fetchAll method * @@ -85,6 +92,7 @@ class DboMssqlTestDb extends DboMssql { } return $result; } + /** * getLastQuery method * @@ -94,6 +102,7 @@ class DboMssqlTestDb extends DboMssql { function getLastQuery() { return $this->simulated[count($this->simulated) - 1]; } + /** * getPrimaryKey method * @@ -105,6 +114,7 @@ class DboMssqlTestDb extends DboMssql { return parent::_getPrimaryKey($model); } } + /** * MssqlTestModel class * @@ -112,6 +122,7 @@ class DboMssqlTestDb extends DboMssql { * @subpackage cake.tests.cases.libs.model.datasources */ class MssqlTestModel extends Model { + /** * name property * @@ -119,6 +130,7 @@ class MssqlTestModel extends Model { * @access public */ var $name = 'MssqlTestModel'; + /** * useTable property * @@ -126,6 +138,7 @@ class MssqlTestModel extends Model { * @access public */ var $useTable = false; + /** * _schema property * @@ -152,6 +165,7 @@ class MssqlTestModel extends Model { 'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''), 'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); + /** * find method * @@ -165,6 +179,7 @@ class MssqlTestModel extends Model { function find($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * findAll method * @@ -178,6 +193,7 @@ class MssqlTestModel extends Model { function findAll($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * setSchema method * @@ -189,6 +205,7 @@ class MssqlTestModel extends Model { $this->_schema = $schema; } } + /** * DboMssqlTest class * @@ -196,6 +213,7 @@ class MssqlTestModel extends Model { * @subpackage cake.tests.cases.libs.model.datasources.dbo */ class DboMssqlTest extends CakeTestCase { + /** * The Dbo instance to be tested * @@ -203,6 +221,7 @@ class DboMssqlTest extends CakeTestCase { * @access public */ var $db = null; + /** * Skip if cannot connect to mssql * @@ -212,6 +231,7 @@ class DboMssqlTest extends CakeTestCase { $this->_initDb(); $this->skipUnless($this->db->config['driver'] == 'mssql', '%s SQL Server connection not available'); } + /** * Sets up a Dbo class instance for testing * @@ -222,6 +242,7 @@ class DboMssqlTest extends CakeTestCase { $this->db = new DboMssqlTestDb($db->config); $this->model = new MssqlTestModel(); } + /** * tearDown method * @@ -231,6 +252,7 @@ class DboMssqlTest extends CakeTestCase { function tearDown() { unset($this->model); } + /** * testQuoting method * @@ -269,6 +291,7 @@ class DboMssqlTest extends CakeTestCase { $result = $this->db->value('1,2', 'float'); $this->assertIdentical($expected, $result); } + /** * testDistinctFields method * @@ -284,6 +307,7 @@ class DboMssqlTest extends CakeTestCase { $expected = array('DISTINCT [Car].[country_code] AS [Car__1]'); $this->assertEqual($result, $expected); } + /** * testDistinctWithLimit method * @@ -298,6 +322,7 @@ class DboMssqlTest extends CakeTestCase { $result = $this->db->getLastQuery(); $this->assertPattern('/^SELECT DISTINCT TOP 5/', $result); } + /** * testDescribe method * @@ -330,6 +355,7 @@ class DboMssqlTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testUpdateAllSyntax method * @@ -346,6 +372,7 @@ class DboMssqlTest extends CakeTestCase { $this->assertPattern('/^UPDATE \[mssql_test_models\]/', $result); $this->assertPattern('/SET \[client_id\] = \[client_id\] \+ 1/', $result); } + /** * testGetPrimaryKey method * @@ -362,6 +389,7 @@ class DboMssqlTest extends CakeTestCase { $result = $this->db->getPrimaryKey($this->model); $this->assertNull($result); } + /** * testInsertMulti * diff --git a/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php b/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php index 3cf86ed92..f8ba9669a 100644 --- a/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DboMysqlTest file * @@ -25,6 +26,7 @@ App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboMysql')); Mock::generatePartial('DboMysql', 'QueryMockDboMysql', array('query')); + /** * DboMysqlTestDb class * @@ -32,6 +34,7 @@ Mock::generatePartial('DboMysql', 'QueryMockDboMysql', array('query')); * @subpackage cake.tests.cases.libs.model.datasources */ class DboMysqlTestDb extends DboMysql { + /** * simulated property * @@ -39,6 +42,7 @@ class DboMysqlTestDb extends DboMysql { * @access public */ var $simulated = array(); + /** * testing property * @@ -46,6 +50,7 @@ class DboMysqlTestDb extends DboMysql { * @access public */ var $testing = true; + /** * execute method * @@ -60,6 +65,7 @@ class DboMysqlTestDb extends DboMysql { } return parent::_execute($sql); } + /** * getLastQuery method * @@ -70,6 +76,7 @@ class DboMysqlTestDb extends DboMysql { return $this->simulated[count($this->simulated) - 1]; } } + /** * MysqlTestModel class * @@ -77,6 +84,7 @@ class DboMysqlTestDb extends DboMysql { * @subpackage cake.tests.cases.libs.model.datasources */ class MysqlTestModel extends Model { + /** * name property * @@ -84,6 +92,7 @@ class MysqlTestModel extends Model { * @access public */ var $name = 'MysqlTestModel'; + /** * useTable property * @@ -91,6 +100,7 @@ class MysqlTestModel extends Model { * @access public */ var $useTable = false; + /** * find method * @@ -104,6 +114,7 @@ class MysqlTestModel extends Model { function find($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * findAll method * @@ -117,6 +128,7 @@ class MysqlTestModel extends Model { function findAll($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * schema method * @@ -146,6 +158,7 @@ class MysqlTestModel extends Model { ); } } + /** * DboMysqlTest class * @@ -153,6 +166,7 @@ class MysqlTestModel extends Model { * @subpackage cake.tests.cases.libs.model.datasources.dbo */ class DboMysqlTest extends CakeTestCase { + /** * The Dbo instance to be tested * @@ -160,6 +174,7 @@ class DboMysqlTest extends CakeTestCase { * @access public */ var $Db = null; + /** * Skip if cannot connect to mysql * @@ -169,6 +184,7 @@ class DboMysqlTest extends CakeTestCase { $this->_initDb(); $this->skipUnless($this->db->config['driver'] == 'mysql', '%s MySQL connection not available'); } + /** * Sets up a Dbo class instance for testing * @@ -179,6 +195,7 @@ class DboMysqlTest extends CakeTestCase { $this->db = new DboMysqlTestDb($db->config); $this->model = new MysqlTestModel(); } + /** * Sets up a Dbo class instance for testing * @@ -187,6 +204,7 @@ class DboMysqlTest extends CakeTestCase { function tearDown() { unset($this->db); } + /** * startCase * @@ -196,6 +214,7 @@ class DboMysqlTest extends CakeTestCase { $this->_debug = Configure::read('debug'); Configure::write('debug', 1); } + /** * endCase * @@ -204,6 +223,7 @@ class DboMysqlTest extends CakeTestCase { function endCase() { Configure::write('debug', $this->_debug); } + /** * Test Dbo value method * @@ -262,6 +282,7 @@ class DboMysqlTest extends CakeTestCase { $result = $this->db->value('00010010001'); $this->assertEqual($expected, $result); } + /** * testTinyintCasting method * @@ -300,6 +321,7 @@ class DboMysqlTest extends CakeTestCase { $this->db->query('DROP TABLE ' . $this->db->fullTableName('tinyint')); } + /** * testIndexDetection method * @@ -362,6 +384,7 @@ class DboMysqlTest extends CakeTestCase { $this->assertEqual($expected, $result); $this->db->query('DROP TABLE ' . $name); } + /** * MySQL 4.x returns index data in a different format, * Using a mock ensure that MySQL 4.x output is properly parsed. @@ -455,6 +478,7 @@ class DboMysqlTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testColumn method * @@ -502,6 +526,7 @@ class DboMysqlTest extends CakeTestCase { $expected = 'float'; $this->assertEqual($result, $expected); } + /** * testAlterSchemaIndexes method * diff --git a/cake/tests/cases/libs/model/datasources/dbo/dbo_mysqli.test.php b/cake/tests/cases/libs/model/datasources/dbo/dbo_mysqli.test.php index 3b19174c4..1ceee963c 100644 --- a/cake/tests/cases/libs/model/datasources/dbo/dbo_mysqli.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo/dbo_mysqli.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DboMysqliTest file * @@ -26,6 +27,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { define('CAKEPHP_UNIT_TEST_EXECUTION', 1); } App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboMysqli')); + /** * DboMysqliTestDb class * @@ -33,6 +35,7 @@ App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboMysqli')); * @subpackage cake.tests.cases.libs.model.datasources */ class DboMysqliTestDb extends DboMysqli { + /** * simulated property * @@ -40,6 +43,7 @@ class DboMysqliTestDb extends DboMysqli { * @access public */ var $simulated = array(); + /** * testing property * @@ -47,6 +51,7 @@ class DboMysqliTestDb extends DboMysqli { * @access public */ var $testing = true; + /** * execute method * @@ -61,6 +66,7 @@ class DboMysqliTestDb extends DboMysqli { } return parent::_execute($sql); } + /** * getLastQuery method * @@ -71,6 +77,7 @@ class DboMysqliTestDb extends DboMysqli { return $this->simulated[count($this->simulated) - 1]; } } + /** * MysqliTestModel class * @@ -78,6 +85,7 @@ class DboMysqliTestDb extends DboMysqli { * @subpackage cake.tests.cases.libs.model.datasources */ class MysqliTestModel extends Model { + /** * name property * @@ -85,6 +93,7 @@ class MysqliTestModel extends Model { * @access public */ var $name = 'MysqliTestModel'; + /** * useTable property * @@ -92,6 +101,7 @@ class MysqliTestModel extends Model { * @access public */ var $useTable = false; + /** * find method * @@ -105,6 +115,7 @@ class MysqliTestModel extends Model { function find($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * findAll method * @@ -118,6 +129,7 @@ class MysqliTestModel extends Model { function findAll($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * schema method * @@ -147,6 +159,7 @@ class MysqliTestModel extends Model { ); } } + /** * DboMysqliTest class * @@ -154,6 +167,7 @@ class MysqliTestModel extends Model { * @subpackage cake.tests.cases.libs.model.datasources.dbo */ class DboMysqliTest extends CakeTestCase { + /** * The Dbo instance to be tested * @@ -161,6 +175,7 @@ class DboMysqliTest extends CakeTestCase { * @access public */ var $Db = null; + /** * Skip if cannot connect to mysqli * @@ -170,6 +185,7 @@ class DboMysqliTest extends CakeTestCase { $this->_initDb(); $this->skipUnless($this->db->config['driver'] == 'mysqli', '%s MySQLi connection not available'); } + /** * Sets up a Dbo class instance for testing * @@ -180,6 +196,7 @@ class DboMysqliTest extends CakeTestCase { $this->db = new DboMysqliTestDb($db->config); $this->model = new MysqliTestModel(); } + /** * Sets up a Dbo class instance for testing * @@ -188,6 +205,7 @@ class DboMysqliTest extends CakeTestCase { function tearDown() { unset($this->db); } + /** * testIndexDetection method * @@ -250,6 +268,7 @@ class DboMysqliTest extends CakeTestCase { $this->assertEqual($expected, $result); $this->db->query('DROP TABLE ' . $name); } + /** * testColumn method * @@ -297,6 +316,7 @@ class DboMysqliTest extends CakeTestCase { $expected = 'float'; $this->assertEqual($result, $expected); } + /** * undocumented function * diff --git a/cake/tests/cases/libs/model/datasources/dbo/dbo_oracle.test.php b/cake/tests/cases/libs/model/datasources/dbo/dbo_oracle.test.php index 6b835890a..a1e51a37b 100644 --- a/cake/tests/cases/libs/model/datasources/dbo/dbo_oracle.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo/dbo_oracle.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DboOracleTest file * @@ -27,6 +28,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { } require_once LIBS . 'model' . DS . 'datasources' . DS . 'dbo_source.php'; require_once LIBS . 'model' . DS . 'datasources' . DS . 'dbo' . DS . 'dbo_oracle.php'; + /** * DboOracleTest class * @@ -34,10 +36,12 @@ require_once LIBS . 'model' . DS . 'datasources' . DS . 'dbo' . DS . 'dbo_oracle * @subpackage cake.tests.cases.libs.model.datasources.dbo */ class DboOracleTest extends CakeTestCase { + /** * fixtures property */ var $fixtures = array('core.oracle_user'); + /** * setup method * @@ -47,6 +51,7 @@ class DboOracleTest extends CakeTestCase { function setUp() { $this->_initDb(); } + /** * skip method * @@ -57,6 +62,7 @@ class DboOracleTest extends CakeTestCase { $this->_initDb(); $this->skipUnless($this->db->config['driver'] == 'oracle', '%s Oracle connection not available'); } + /** * testLastErrorStatement method * @@ -74,6 +80,7 @@ class DboOracleTest extends CakeTestCase { $r = 'ORA-01756: quoted string not properly terminated'; $this->assertEqual($e, $r); } + /** * testLastErrorConnect method * @@ -95,6 +102,7 @@ class DboOracleTest extends CakeTestCase { $this->db->config['password'] = $old_pw; $this->db->connect(); } + /** * testName method * diff --git a/cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php b/cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php index aec59ba4c..936a931e7 100644 --- a/cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DboPostgresTest file * @@ -25,6 +26,7 @@ App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboPostgres')); App::import('Model', 'App'); require_once dirname(dirname(dirname(__FILE__))) . DS . 'models.php'; + /** * DboPostgresTestDb class * @@ -32,6 +34,7 @@ require_once dirname(dirname(dirname(__FILE__))) . DS . 'models.php'; * @subpackage cake.tests.cases.libs.model.datasources */ class DboPostgresTestDb extends DboPostgres { + /** * simulated property * @@ -39,6 +42,7 @@ class DboPostgresTestDb extends DboPostgres { * @access public */ var $simulated = array(); + /** * execute method * @@ -50,6 +54,7 @@ class DboPostgresTestDb extends DboPostgres { $this->simulated[] = $sql; return null; } + /** * getLastQuery method * @@ -60,6 +65,7 @@ class DboPostgresTestDb extends DboPostgres { return $this->simulated[count($this->simulated) - 1]; } } + /** * PostgresTestModel class * @@ -67,6 +73,7 @@ class DboPostgresTestDb extends DboPostgres { * @subpackage cake.tests.cases.libs.model.datasources */ class PostgresTestModel extends Model { + /** * name property * @@ -74,6 +81,7 @@ class PostgresTestModel extends Model { * @access public */ var $name = 'PostgresTestModel'; + /** * useTable property * @@ -81,6 +89,7 @@ class PostgresTestModel extends Model { * @access public */ var $useTable = false; + /** * find method * @@ -94,6 +103,7 @@ class PostgresTestModel extends Model { function find($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * findAll method * @@ -107,6 +117,7 @@ class PostgresTestModel extends Model { function findAll($conditions = null, $fields = null, $order = null, $recursive = null) { return $conditions; } + /** * schema method * @@ -136,6 +147,7 @@ class PostgresTestModel extends Model { ); } } + /** * DboPostgresTest class * @@ -143,6 +155,7 @@ class PostgresTestModel extends Model { * @subpackage cake.tests.cases.libs.model.datasources.dbo */ class DboPostgresTest extends CakeTestCase { + /** * Do not automatically load fixtures for each test, they will be loaded manually * using CakeTestCase::loadFixtures @@ -151,6 +164,7 @@ class DboPostgresTest extends CakeTestCase { * @access public */ var $autoFixtures = false; + /** * Fixtures * @@ -159,6 +173,7 @@ class DboPostgresTest extends CakeTestCase { */ var $fixtures = array('core.user', 'core.binary_test', 'core.comment', 'core.article', 'core.tag', 'core.articles_tag', 'core.attachment', 'core.person', 'core.post', 'core.author'); + /** * Actual DB connection used in testing * @@ -166,6 +181,7 @@ class DboPostgresTest extends CakeTestCase { * @access public */ var $db = null; + /** * Simulated DB connection used in testing * @@ -173,6 +189,7 @@ class DboPostgresTest extends CakeTestCase { * @access public */ var $db2 = null; + /** * Skip if cannot connect to postgres * @@ -182,6 +199,7 @@ class DboPostgresTest extends CakeTestCase { $this->_initDb(); $this->skipUnless($this->db->config['driver'] == 'postgres', '%s PostgreSQL connection not available'); } + /** * Set up test suite database connection * @@ -190,6 +208,7 @@ class DboPostgresTest extends CakeTestCase { function startTest() { $this->_initDb(); } + /** * Sets up a Dbo class instance for testing * @@ -202,6 +221,7 @@ class DboPostgresTest extends CakeTestCase { $this->db2 = new DboPostgresTestDb($this->db->config, false); $this->model = new PostgresTestModel(); } + /** * Sets up a Dbo class instance for testing * @@ -211,6 +231,7 @@ class DboPostgresTest extends CakeTestCase { Configure::write('Cache.disable', false); unset($this->db2); } + /** * Test field and value quoting method * @@ -248,6 +269,7 @@ class DboPostgresTest extends CakeTestCase { $result = $this->db2->value('1,2', 'float'); $this->assertIdentical($expected, $result); } + /** * testColumnParsing method * @@ -262,6 +284,7 @@ class DboPostgresTest extends CakeTestCase { $this->assertEqual($this->db2->column('time without time zone'), 'time'); $this->assertEqual($this->db2->column('timestamp without time zone'), 'datetime'); } + /** * testValueQuoting method * @@ -290,6 +313,7 @@ class DboPostgresTest extends CakeTestCase { $this->assertEqual($this->db2->value('1', 'boolean'), 'TRUE'); $this->assertEqual($this->db2->value(null, 'boolean'), "NULL"); } + /** * test that date columns do not generate errors with null and nullish values. * @@ -305,6 +329,7 @@ class DboPostgresTest extends CakeTestCase { $this->assertEqual($this->db2->value('', 'timestamp'), 'NULL'); $this->assertEqual($this->db2->value(null, 'timestamp'), 'NULL'); } + /** * Tests that different Postgres boolean 'flavors' are properly returned as native PHP booleans * @@ -326,6 +351,7 @@ class DboPostgresTest extends CakeTestCase { $this->assertFalse($this->db2->boolean(0)); $this->assertFalse($this->db2->boolean('')); } + /** * testLastInsertIdMultipleInsert method * @@ -353,6 +379,7 @@ class DboPostgresTest extends CakeTestCase { $this->assertEqual($db1->lastInsertId($table), 1); $this->assertEqual($db2->lastInsertId($table), 2); } + /** * Tests that table lists and descriptions are scoped to the proper Postgres schema * @@ -373,6 +400,7 @@ class DboPostgresTest extends CakeTestCase { $db2->query('DROP SCHEMA _scope_test'); } + /** * Tests that column types without default lengths in $columns do not have length values * applied when generating schemas. @@ -389,6 +417,7 @@ class DboPostgresTest extends CakeTestCase { $expected = '"foo" text DEFAULT \'FOO\''; $this->assertEqual($this->db->buildColumn($result), $expected); } + /** * Tests that binary data is escaped/unescaped properly on reads and writes * @@ -421,6 +450,7 @@ class DboPostgresTest extends CakeTestCase { $result = $model->find('first'); $this->assertEqual($result['BinaryTest']['data'], $data); } + /** * Tests the syntax of generated schema indexes * @@ -453,6 +483,7 @@ class DboPostgresTest extends CakeTestCase { $result = $this->db->createSchema($schema); $this->assertNoPattern('/^CREATE INDEX(.+);,$/', $result); } + /** * testCakeSchema method * @@ -490,6 +521,7 @@ class DboPostgresTest extends CakeTestCase { $db1->query('DROP TABLE ' . $db1->fullTableName('datatypes')); } + /** * Test index generation from table info. * @@ -521,6 +553,7 @@ class DboPostgresTest extends CakeTestCase { $this->assertEqual($expected, $result); $this->db->query('DROP TABLE ' . $name); } + /** * Test the alterSchema capabilities of postgres * @@ -566,6 +599,7 @@ class DboPostgresTest extends CakeTestCase { $this->db->query($this->db->dropSchema($New)); } + /** * Test the alter index capabilities of postgres * diff --git a/cake/tests/cases/libs/model/datasources/dbo/dbo_sqlite.test.php b/cake/tests/cases/libs/model/datasources/dbo/dbo_sqlite.test.php index 2f1ea4ad6..75acb73e6 100644 --- a/cake/tests/cases/libs/model/datasources/dbo/dbo_sqlite.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo/dbo_sqlite.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DboSqliteTest file * @@ -23,6 +24,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboSqlite')); + /** * DboSqliteTestDb class * @@ -30,6 +32,7 @@ App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboSqlite')); * @subpackage cake.tests.cases.libs.model.datasources */ class DboSqliteTestDb extends DboSqlite { + /** * simulated property * @@ -37,6 +40,7 @@ class DboSqliteTestDb extends DboSqlite { * @access public */ var $simulated = array(); + /** * execute method * @@ -48,6 +52,7 @@ class DboSqliteTestDb extends DboSqlite { $this->simulated[] = $sql; return null; } + /** * getLastQuery method * @@ -58,6 +63,7 @@ class DboSqliteTestDb extends DboSqlite { return $this->simulated[count($this->simulated) - 1]; } } + /** * DboSqliteTest class * @@ -65,6 +71,7 @@ class DboSqliteTestDb extends DboSqlite { * @subpackage cake.tests.cases.libs.model.datasources.dbo */ class DboSqliteTest extends CakeTestCase { + /** * Do not automatically load fixtures for each test, they will be loaded manually using CakeTestCase::loadFixtures * @@ -72,6 +79,7 @@ class DboSqliteTest extends CakeTestCase { * @access public */ var $autoFixtures = false; + /** * Fixtures * @@ -79,6 +87,7 @@ class DboSqliteTest extends CakeTestCase { * @access public */ var $fixtures = array('core.user'); + /** * Actual DB connection used in testing * @@ -86,6 +95,7 @@ class DboSqliteTest extends CakeTestCase { * @access public */ var $db = null; + /** * Simulated DB connection used in testing * @@ -93,6 +103,7 @@ class DboSqliteTest extends CakeTestCase { * @access public */ var $db2 = null; + /** * Skip if cannot connect to SQLite * @@ -102,6 +113,7 @@ class DboSqliteTest extends CakeTestCase { $this->_initDb(); $this->skipUnless($this->db->config['driver'] == 'sqlite', '%s SQLite connection not available'); } + /** * Set up test suite database connection * @@ -110,6 +122,7 @@ class DboSqliteTest extends CakeTestCase { function startTest() { $this->_initDb(); } + /** * Sets up a Dbo class instance for testing * @@ -121,6 +134,7 @@ class DboSqliteTest extends CakeTestCase { $this->db =& ConnectionManager::getDataSource('test_suite'); $this->db2 = new DboSqliteTestDb($this->db->config, false); } + /** * Sets up a Dbo class instance for testing * @@ -130,6 +144,7 @@ class DboSqliteTest extends CakeTestCase { Configure::write('Cache.disable', false); unset($this->db2); } + /** * Tests that SELECT queries from DboSqlite::listSources() are not cached * @@ -144,6 +159,7 @@ class DboSqliteTest extends CakeTestCase { $this->db->query('DROP TABLE foo_test;'); $this->assertFalse(in_array('foo_test', $this->db->listSources())); } + /** * test Index introspection. * @@ -175,6 +191,7 @@ class DboSqliteTest extends CakeTestCase { $this->assertEqual($expected, $result); $this->db->query('DROP TABLE ' . $name); } + /** * Tests that cached table descriptions are saved under the sanitized key name * @@ -204,6 +221,7 @@ class DboSqliteTest extends CakeTestCase { Cache::delete($fileName, '_cake_model_'); Configure::write('Cache.disable', true); } + /** * test describe() and normal results. * diff --git a/cake/tests/cases/libs/model/datasources/dbo_source.test.php b/cake/tests/cases/libs/model/datasources/dbo_source.test.php index 5cd392f26..8fe318d1b 100644 --- a/cake/tests/cases/libs/model/datasources/dbo_source.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo_source.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DboSourceTest file * @@ -30,6 +31,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboMysql')); App::import('Model', 'App'); require_once dirname(dirname(__FILE__)) . DS . 'models.php'; + /** * TestModel class * @@ -37,6 +39,7 @@ require_once dirname(dirname(__FILE__)) . DS . 'models.php'; * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel extends CakeTestModel { + /** * name property * @@ -44,6 +47,7 @@ class TestModel extends CakeTestModel { * @access public */ var $name = 'TestModel'; + /** * useTable property * @@ -51,6 +55,7 @@ class TestModel extends CakeTestModel { * @access public */ var $useTable = false; + /** * schema property * @@ -77,6 +82,7 @@ class TestModel extends CakeTestModel { 'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''), 'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); + /** * find method * @@ -90,6 +96,7 @@ class TestModel extends CakeTestModel { function find($conditions = null, $fields = null, $order = null, $recursive = null) { return array($conditions, $fields); } + /** * findAll method * @@ -104,6 +111,7 @@ class TestModel extends CakeTestModel { return $conditions; } } + /** * TestModel2 class * @@ -111,6 +119,7 @@ class TestModel extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel2 extends CakeTestModel { + /** * name property * @@ -118,6 +127,7 @@ class TestModel2 extends CakeTestModel { * @access public */ var $name = 'TestModel2'; + /** * useTable property * @@ -126,6 +136,7 @@ class TestModel2 extends CakeTestModel { */ var $useTable = false; } + /** * TestModel4 class * @@ -133,6 +144,7 @@ class TestModel2 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel3 extends CakeTestModel { + /** * name property * @@ -140,6 +152,7 @@ class TestModel3 extends CakeTestModel { * @access public */ var $name = 'TestModel3'; + /** * useTable property * @@ -148,6 +161,7 @@ class TestModel3 extends CakeTestModel { */ var $useTable = false; } + /** * TestModel4 class * @@ -155,6 +169,7 @@ class TestModel3 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel4 extends CakeTestModel { + /** * name property * @@ -162,6 +177,7 @@ class TestModel4 extends CakeTestModel { * @access public */ var $name = 'TestModel4'; + /** * table property * @@ -169,6 +185,7 @@ class TestModel4 extends CakeTestModel { * @access public */ var $table = 'test_model4'; + /** * useTable property * @@ -176,6 +193,7 @@ class TestModel4 extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -188,6 +206,7 @@ class TestModel4 extends CakeTestModel { 'foreignKey' => 'parent_id' ) ); + /** * hasOne property * @@ -200,6 +219,7 @@ class TestModel4 extends CakeTestModel { 'foreignKey' => 'test_model4_id' ) ); + /** * hasAndBelongsToMany property * @@ -213,6 +233,7 @@ class TestModel4 extends CakeTestModel { 'associationForeignKey' => 'test_model7_id', 'with' => 'TestModel4TestModel7' )); + /** * schema method * @@ -231,6 +252,7 @@ class TestModel4 extends CakeTestModel { return $this->_schema; } } + /** * TestModel4TestModel7 class * @@ -238,6 +260,7 @@ class TestModel4 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel4TestModel7 extends CakeTestModel { + /** * name property * @@ -245,6 +268,7 @@ class TestModel4TestModel7 extends CakeTestModel { * @access public */ var $name = 'TestModel4TestModel7'; + /** * table property * @@ -252,6 +276,7 @@ class TestModel4TestModel7 extends CakeTestModel { * @access public */ var $table = 'test_model4_test_model7'; + /** * useTable property * @@ -259,6 +284,7 @@ class TestModel4TestModel7 extends CakeTestModel { * @access public */ var $useTable = false; + /** * schema method * @@ -275,6 +301,7 @@ class TestModel4TestModel7 extends CakeTestModel { return $this->_schema; } } + /** * TestModel5 class * @@ -282,6 +309,7 @@ class TestModel4TestModel7 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel5 extends CakeTestModel { + /** * name property * @@ -289,6 +317,7 @@ class TestModel5 extends CakeTestModel { * @access public */ var $name = 'TestModel5'; + /** * table property * @@ -296,6 +325,7 @@ class TestModel5 extends CakeTestModel { * @access public */ var $table = 'test_model5'; + /** * useTable property * @@ -303,6 +333,7 @@ class TestModel5 extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -313,6 +344,7 @@ class TestModel5 extends CakeTestModel { 'className' => 'TestModel4', 'foreignKey' => 'test_model4_id' )); + /** * hasMany property * @@ -323,6 +355,7 @@ class TestModel5 extends CakeTestModel { 'className' => 'TestModel6', 'foreignKey' => 'test_model5_id' )); + /** * schema method * @@ -342,6 +375,7 @@ class TestModel5 extends CakeTestModel { return $this->_schema; } } + /** * TestModel6 class * @@ -349,6 +383,7 @@ class TestModel5 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel6 extends CakeTestModel { + /** * name property * @@ -356,6 +391,7 @@ class TestModel6 extends CakeTestModel { * @access public */ var $name = 'TestModel6'; + /** * table property * @@ -363,6 +399,7 @@ class TestModel6 extends CakeTestModel { * @access public */ var $table = 'test_model6'; + /** * useTable property * @@ -370,6 +407,7 @@ class TestModel6 extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -380,6 +418,7 @@ class TestModel6 extends CakeTestModel { 'className' => 'TestModel5', 'foreignKey' => 'test_model5_id' )); + /** * schema method * @@ -399,6 +438,7 @@ class TestModel6 extends CakeTestModel { return $this->_schema; } } + /** * TestModel7 class * @@ -406,6 +446,7 @@ class TestModel6 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel7 extends CakeTestModel { + /** * name property * @@ -413,6 +454,7 @@ class TestModel7 extends CakeTestModel { * @access public */ var $name = 'TestModel7'; + /** * table property * @@ -420,6 +462,7 @@ class TestModel7 extends CakeTestModel { * @access public */ var $table = 'test_model7'; + /** * useTable property * @@ -427,6 +470,7 @@ class TestModel7 extends CakeTestModel { * @access public */ var $useTable = false; + /** * schema method * @@ -445,6 +489,7 @@ class TestModel7 extends CakeTestModel { return $this->_schema; } } + /** * TestModel8 class * @@ -452,6 +497,7 @@ class TestModel7 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel8 extends CakeTestModel { + /** * name property * @@ -459,6 +505,7 @@ class TestModel8 extends CakeTestModel { * @access public */ var $name = 'TestModel8'; + /** * table property * @@ -466,6 +513,7 @@ class TestModel8 extends CakeTestModel { * @access public */ var $table = 'test_model8'; + /** * useTable property * @@ -473,6 +521,7 @@ class TestModel8 extends CakeTestModel { * @access public */ var $useTable = false; + /** * hasOne property * @@ -486,6 +535,7 @@ class TestModel8 extends CakeTestModel { 'conditions' => 'TestModel9.name != \'mariano\'' ) ); + /** * schema method * @@ -505,6 +555,7 @@ class TestModel8 extends CakeTestModel { return $this->_schema; } } + /** * TestModel9 class * @@ -512,6 +563,7 @@ class TestModel8 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class TestModel9 extends CakeTestModel { + /** * name property * @@ -519,6 +571,7 @@ class TestModel9 extends CakeTestModel { * @access public */ var $name = 'TestModel9'; + /** * table property * @@ -526,6 +579,7 @@ class TestModel9 extends CakeTestModel { * @access public */ var $table = 'test_model9'; + /** * useTable property * @@ -533,6 +587,7 @@ class TestModel9 extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -544,6 +599,7 @@ class TestModel9 extends CakeTestModel { 'foreignKey' => 'test_model8_id', 'conditions' => 'TestModel8.name != \'larry\'' )); + /** * schema method * @@ -563,6 +619,7 @@ class TestModel9 extends CakeTestModel { return $this->_schema; } } + /** * Level class * @@ -570,6 +627,7 @@ class TestModel9 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class Level extends CakeTestModel { + /** * name property * @@ -577,6 +635,7 @@ class Level extends CakeTestModel { * @access public */ var $name = 'Level'; + /** * table property * @@ -584,6 +643,7 @@ class Level extends CakeTestModel { * @access public */ var $table = 'level'; + /** * useTable property * @@ -591,6 +651,7 @@ class Level extends CakeTestModel { * @access public */ var $useTable = false; + /** * hasMany property * @@ -605,6 +666,7 @@ class Level extends CakeTestModel { 'className' => 'User2' ) ); + /** * schema method * @@ -621,6 +683,7 @@ class Level extends CakeTestModel { return $this->_schema; } } + /** * Group class * @@ -628,6 +691,7 @@ class Level extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class Group extends CakeTestModel { + /** * name property * @@ -635,6 +699,7 @@ class Group extends CakeTestModel { * @access public */ var $name = 'Group'; + /** * table property * @@ -642,6 +707,7 @@ class Group extends CakeTestModel { * @access public */ var $table = 'group'; + /** * useTable property * @@ -649,6 +715,7 @@ class Group extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -656,6 +723,7 @@ class Group extends CakeTestModel { * @access public */ var $belongsTo = array('Level'); + /** * hasMany property * @@ -663,6 +731,7 @@ class Group extends CakeTestModel { * @access public */ var $hasMany = array('Category2', 'User2'); + /** * schema method * @@ -681,6 +750,7 @@ class Group extends CakeTestModel { } } + /** * User2 class * @@ -688,6 +758,7 @@ class Group extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class User2 extends CakeTestModel { + /** * name property * @@ -695,6 +766,7 @@ class User2 extends CakeTestModel { * @access public */ var $name = 'User2'; + /** * table property * @@ -702,6 +774,7 @@ class User2 extends CakeTestModel { * @access public */ var $table = 'user'; + /** * useTable property * @@ -709,6 +782,7 @@ class User2 extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -723,6 +797,7 @@ class User2 extends CakeTestModel { 'className' => 'Level' ) ); + /** * hasMany property * @@ -734,6 +809,7 @@ class User2 extends CakeTestModel { 'className' => 'Article2' ), ); + /** * schema method * @@ -752,6 +828,7 @@ class User2 extends CakeTestModel { return $this->_schema; } } + /** * Category2 class * @@ -759,6 +836,7 @@ class User2 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class Category2 extends CakeTestModel { + /** * name property * @@ -766,6 +844,7 @@ class Category2 extends CakeTestModel { * @access public */ var $name = 'Category2'; + /** * table property * @@ -773,6 +852,7 @@ class Category2 extends CakeTestModel { * @access public */ var $table = 'category'; + /** * useTable property * @@ -780,6 +860,7 @@ class Category2 extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -796,6 +877,7 @@ class Category2 extends CakeTestModel { 'foreignKey' => 'parent_id' ) ); + /** * hasMany property * @@ -813,6 +895,7 @@ class Category2 extends CakeTestModel { 'foreignKey' => 'category_id', 'limit'=>'3') ); + /** * schema method * @@ -834,6 +917,7 @@ class Category2 extends CakeTestModel { return $this->_schema; } } + /** * Article2 class * @@ -841,6 +925,7 @@ class Category2 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class Article2 extends CakeTestModel { + /** * name property * @@ -848,6 +933,7 @@ class Article2 extends CakeTestModel { * @access public */ var $name = 'Article2'; + /** * table property * @@ -855,6 +941,7 @@ class Article2 extends CakeTestModel { * @access public */ var $table = 'article'; + /** * useTable property * @@ -862,6 +949,7 @@ class Article2 extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -872,6 +960,7 @@ class Article2 extends CakeTestModel { 'Category2' => array('className' => 'Category2'), 'User2' => array('className' => 'User2') ); + /** * schema method * @@ -905,6 +994,7 @@ class Article2 extends CakeTestModel { return $this->_schema; } } + /** * CategoryFeatured2 class * @@ -912,6 +1002,7 @@ class Article2 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class CategoryFeatured2 extends CakeTestModel { + /** * name property * @@ -919,6 +1010,7 @@ class CategoryFeatured2 extends CakeTestModel { * @access public */ var $name = 'CategoryFeatured2'; + /** * table property * @@ -926,6 +1018,7 @@ class CategoryFeatured2 extends CakeTestModel { * @access public */ var $table = 'category_featured'; + /** * useTable property * @@ -933,6 +1026,7 @@ class CategoryFeatured2 extends CakeTestModel { * @access public */ var $useTable = false; + /** * schema method * @@ -952,6 +1046,7 @@ class CategoryFeatured2 extends CakeTestModel { return $this->_schema; } } + /** * Featured2 class * @@ -959,6 +1054,7 @@ class CategoryFeatured2 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class Featured2 extends CakeTestModel { + /** * name property * @@ -966,6 +1062,7 @@ class Featured2 extends CakeTestModel { * @access public */ var $name = 'Featured2'; + /** * table property * @@ -973,6 +1070,7 @@ class Featured2 extends CakeTestModel { * @access public */ var $table = 'featured2'; + /** * useTable property * @@ -980,6 +1078,7 @@ class Featured2 extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -991,6 +1090,7 @@ class Featured2 extends CakeTestModel { 'className' => 'CategoryFeatured2' ) ); + /** * schema method * @@ -1009,6 +1109,7 @@ class Featured2 extends CakeTestModel { return $this->_schema; } } + /** * Comment2 class * @@ -1016,6 +1117,7 @@ class Featured2 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class Comment2 extends CakeTestModel { + /** * name property * @@ -1023,6 +1125,7 @@ class Comment2 extends CakeTestModel { * @access public */ var $name = 'Comment2'; + /** * table property * @@ -1030,6 +1133,7 @@ class Comment2 extends CakeTestModel { * @access public */ var $table = 'comment'; + /** * belongsTo property * @@ -1037,6 +1141,7 @@ class Comment2 extends CakeTestModel { * @access public */ var $belongsTo = array('ArticleFeatured2', 'User2'); + /** * useTable property * @@ -1044,6 +1149,7 @@ class Comment2 extends CakeTestModel { * @access public */ var $useTable = false; + /** * schema method * @@ -1062,6 +1168,7 @@ class Comment2 extends CakeTestModel { return $this->_schema; } } + /** * ArticleFeatured2 class * @@ -1069,6 +1176,7 @@ class Comment2 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class ArticleFeatured2 extends CakeTestModel { + /** * name property * @@ -1076,6 +1184,7 @@ class ArticleFeatured2 extends CakeTestModel { * @access public */ var $name = 'ArticleFeatured2'; + /** * table property * @@ -1083,6 +1192,7 @@ class ArticleFeatured2 extends CakeTestModel { * @access public */ var $table = 'article_featured'; + /** * useTable property * @@ -1090,6 +1200,7 @@ class ArticleFeatured2 extends CakeTestModel { * @access public */ var $useTable = false; + /** * belongsTo property * @@ -1100,6 +1211,7 @@ class ArticleFeatured2 extends CakeTestModel { 'CategoryFeatured2' => array('className' => 'CategoryFeatured2'), 'User2' => array('className' => 'User2') ); + /** * hasOne property * @@ -1109,6 +1221,7 @@ class ArticleFeatured2 extends CakeTestModel { var $hasOne = array( 'Featured2' => array('className' => 'Featured2') ); + /** * hasMany property * @@ -1118,6 +1231,7 @@ class ArticleFeatured2 extends CakeTestModel { var $hasMany = array( 'Comment2' => array('className'=>'Comment2', 'dependent' => true) ); + /** * schema method * @@ -1141,6 +1255,7 @@ class ArticleFeatured2 extends CakeTestModel { return $this->_schema; } } + /** * DboSourceTest class * @@ -1148,6 +1263,7 @@ class ArticleFeatured2 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model.datasources */ class DboSourceTest extends CakeTestCase { + /** * debug property * @@ -1155,6 +1271,7 @@ class DboSourceTest extends CakeTestCase { * @access public */ var $debug = null; + /** * autoFixtures property * @@ -1162,6 +1279,7 @@ class DboSourceTest extends CakeTestCase { * @access public */ var $autoFixtures = false; + /** * fixtures property * @@ -1172,6 +1290,7 @@ class DboSourceTest extends CakeTestCase { 'core.apple', 'core.article', 'core.articles_tag', 'core.attachment', 'core.comment', 'core.sample', 'core.tag', 'core.user', 'core.post', 'core.author' ); + /** * startTest method * @@ -1186,6 +1305,7 @@ class DboSourceTest extends CakeTestCase { $class = get_class($db); eval("class DboTest extends $class { var \$simulated = array(); + /** * execute method * @@ -1197,6 +1317,7 @@ class DboSourceTest extends CakeTestCase { \$this->simulated[] = \$sql; return null; } + /** * getLastQuery method * @@ -1215,6 +1336,7 @@ class DboSourceTest extends CakeTestCase { $this->debug = Configure::read('debug'); $this->Model =& new TestModel(); } + /** * endTest method * @@ -1226,6 +1348,7 @@ class DboSourceTest extends CakeTestCase { Configure::write('debug', $this->debug); unset($this->debug); } + /** * testFieldDoubleEscaping method * @@ -1266,6 +1389,7 @@ class DboSourceTest extends CakeTestCase { ClassRegistry::removeObject('Article'); } + /** * testGenerateAssociationQuerySelfJoin method * @@ -1356,6 +1480,7 @@ class DboSourceTest extends CakeTestCase { $this->assertTrue($result); $this->assertEqual($_queryData['joins'][0]['type'], 'INNER'); } + /** * testGenerateInnerJoinAssociationQuery method * @@ -1379,6 +1504,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/`TestModel9` INNER JOIN `' . $this->testDb->fullTableName('test_model8', false) . '`/', $result); } + /** * testGenerateAssociationQuerySelfJoinWithConditionsInHasOneBinding method * @@ -1406,6 +1532,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/\s+ON\s+\(`TestModel9`\.`name` != \'mariano\'\s+AND\s+`TestModel9`.`test_model8_id` = `TestModel8`.`id`\)\s+WHERE/', $result); $this->assertPattern('/\s+WHERE\s+(?:\()?1\s+=\s+1(?:\))?\s*$/', $result); } + /** * testGenerateAssociationQuerySelfJoinWithConditionsInBelongsToBinding method * @@ -1432,6 +1559,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/\s+ON\s+\(`TestModel8`\.`name` != \'larry\'\s+AND\s+`TestModel9`.`test_model8_id` = `TestModel8`.`id`\)\s+WHERE/', $result); $this->assertPattern('/\s+WHERE\s+(?:\()?1\s+=\s+1(?:\))?\s*$/', $result); } + /** * testGenerateAssociationQuerySelfJoinWithConditions method * @@ -1493,6 +1621,7 @@ class DboSourceTest extends CakeTestCase { $result ); } + /** * testGenerateAssociationQueryHasOne method * @@ -1525,6 +1654,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/`test_model5` AS `TestModel5`\s+ON\s+\(`TestModel5`.`test_model4_id` = `TestModel4`.`id`\)\s+WHERE/', $result); $this->assertPattern('/\s+WHERE\s+(?:\()?\s*1 = 1\s*(?:\))?\s*$/', $result); } + /** * testGenerateAssociationQueryHasOneWithConditions method * @@ -1554,6 +1684,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/\s+ON\s+\(`TestModel5`.`test_model4_id`\s+=\s+`TestModel4`.`id`\)\s+WHERE/', $result); $this->assertPattern('/\s+WHERE\s+(?:\()?\s*`TestModel5`.`name`\s+!=\s+\'mariano\'\s*(?:\))?\s*$/', $result); } + /** * testGenerateAssociationQueryBelongsTo method * @@ -1585,6 +1716,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/\s+ON\s+\(`TestModel5`.`test_model4_id` = `TestModel4`.`id`\)\s+WHERE\s+/', $result); $this->assertPattern('/\s+WHERE\s+(?:\()?\s*1 = 1\s*(?:\))?\s*$/', $result); } + /** * testGenerateAssociationQueryBelongsToWithConditions method * @@ -1616,6 +1748,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/\s+ON\s+\(`TestModel5`.`test_model4_id` = `TestModel4`.`id`\)\s+WHERE\s+/', $result); $this->assertPattern('/\s+WHERE\s+`TestModel5`.`name` != \'mariano\'\s*$/', $result); } + /** * testGenerateAssociationQueryHasMany method * @@ -1645,6 +1778,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/\s+FROM\s+`test_model5` AS `TestModel5`\s+WHERE\s+/', $result); $this->assertPattern('/\s+WHERE\s+(?:\()?\s*1 = 1\s*(?:\))?\s*$/', $result); } + /** * testGenerateAssociationQueryHasManyWithLimit method * @@ -1684,6 +1818,7 @@ class DboSourceTest extends CakeTestCase { '\s*$/', $result ); } + /** * testGenerateAssociationQueryHasManyWithConditions method * @@ -1712,6 +1847,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/\s+FROM\s+`test_model5` AS `TestModel5`\s+WHERE\s+/', $result); $this->assertPattern('/\s+WHERE\s+(?:\()?`TestModel5`.`name`\s+!=\s+\'mariano\'(?:\))?\s*$/', $result); } + /** * testGenerateAssociationQueryHasManyWithOffsetAndLimit method * @@ -1749,6 +1885,7 @@ class DboSourceTest extends CakeTestCase { $this->Model->hasMany['TestModel6'] = $__backup; } + /** * testGenerateAssociationQueryHasManyWithPageAndLimit method * @@ -1785,6 +1922,7 @@ class DboSourceTest extends CakeTestCase { $this->Model->hasMany['TestModel6'] = $__backup; } + /** * testGenerateAssociationQueryHasManyWithFields method * @@ -1910,6 +2048,7 @@ class DboSourceTest extends CakeTestCase { unset($this->Model->hasMany['TestModel6']['fields']); } + /** * testGenerateAssociationQueryHasAndBelongsToMany method * @@ -1940,6 +2079,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/\s+FROM\s+`test_model4` AS `TestModel4`\s+WHERE/', $result); $this->assertPattern('/\s+WHERE\s+(?:\()?1 = 1(?:\))?\s*$/', $result); } + /** * testGenerateAssociationQueryHasAndBelongsToManyWithConditions method * @@ -1968,6 +2108,7 @@ class DboSourceTest extends CakeTestCase { $this->assertPattern('/^SELECT\s+`TestModel4`\.`id`, `TestModel4`\.`name`, `TestModel4`\.`created`, `TestModel4`\.`updated`\s+/', $result); $this->assertPattern('/\s+FROM\s+`test_model4` AS `TestModel4`\s+WHERE\s+(?:\()?`TestModel4`.`name`\s+!=\s+\'mariano\'(?:\))?\s*$/', $result); } + /** * testGenerateAssociationQueryHasAndBelongsToManyWithOffsetAndLimit method * @@ -2004,6 +2145,7 @@ class DboSourceTest extends CakeTestCase { $this->Model->hasAndBelongsToMany['TestModel7'] = $__backup; } + /** * testGenerateAssociationQueryHasAndBelongsToManyWithPageAndLimit method * @@ -2040,6 +2182,7 @@ class DboSourceTest extends CakeTestCase { $this->Model->hasAndBelongsToMany['TestModel7'] = $__backup; } + /** * buildRelatedModels method * @@ -2060,6 +2203,7 @@ class DboSourceTest extends CakeTestCase { } } } + /** * &_prepareAssociationQuery method * @@ -2082,6 +2226,7 @@ class DboSourceTest extends CakeTestCase { $result = array_merge(array('linkModel' => &$linkModel), compact('type', 'assoc', 'assocData', 'external')); return $result; } + /** * testSelectDistict method * @@ -2093,6 +2238,7 @@ class DboSourceTest extends CakeTestCase { $expected = array('DISTINCT `Vendor`.`id`', '`Vendor`.`name`'); $this->assertEqual($result, $expected); } + /** * testStringConditionsParsing method * @@ -2209,6 +2355,7 @@ class DboSourceTest extends CakeTestCase { $expected = " WHERE `Artist`.`name` = 'JUDY AND MARY'"; $this->assertEqual($result, $expected); } + /** * testQuotesInStringConditions method * @@ -2233,6 +2380,7 @@ class DboSourceTest extends CakeTestCase { $expected = ' WHERE `Member`.`email` = "mariano@cricava.com" AND `Member`.`user` LIKE "mariano.iglesias%"'; $this->assertEqual($result, $expected); } + /** * testParenthesisInStringConditions method * @@ -2282,6 +2430,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->conditions('Member.name = \'(mariano.iglesias) CakePHP\''); $this->assertPattern('/^\s+WHERE\s+`Member`.`name`\s+=\s+\'\(mariano.iglesias\) CakePHP\'$/', $result); } + /** * testParenthesisInArrayConditions method * @@ -2331,6 +2480,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->conditions(array('Member.name' => '(mariano.iglesias) CakePHP')); $this->assertPattern('/^\s+WHERE\s+`Member`.`name`\s+=\s+\'\(mariano.iglesias\) CakePHP\'$/', $result); } + /** * testArrayConditionsParsing method * @@ -2562,6 +2712,7 @@ class DboSourceTest extends CakeTestCase { $expected = " WHERE '2009-03-04' BETWEEN Model.field1 AND Model.field2"; $this->assertEqual($result, $expected); } + /** * testArrayConditionsParsingComplexKeys method * @@ -2587,6 +2738,7 @@ class DboSourceTest extends CakeTestCase { $expected = " WHERE (`Stats`.`clicks` * 100) / `Stats`.`views` > 50"; $this->assertEqual($result, $expected); } + /** * testMixedConditionsParsing method * @@ -2608,6 +2760,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->conditions($conditions); $this->assertPattern('/^\s*WHERE\s+`Thread`.`project_id`\s*=\s*5\s+AND\s+`Thread`.`buyer_id`\s*=\s*14\s+AND\s+1\s*=\s*1\s+GROUP BY `Thread`.`project_id`$/', $result); } + /** * testConditionsOptionalArguments method * @@ -2621,6 +2774,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->conditions( array(), true, false); $this->assertPattern('/^\s*1\s*=\s*1\s*$/', $result); } + /** * testConditionsWithModel * @@ -2654,6 +2808,7 @@ class DboSourceTest extends CakeTestCase { $expected = " WHERE `Article2`.`rate_sum` BETWEEN 1 AND 10"; $this->assertEqual($result, $expected); } + /** * testFieldParsing method * @@ -2774,6 +2929,7 @@ class DboSourceTest extends CakeTestCase { ); $this->assertEqual($result, $expected); } + /** * testMergeAssociations method * @@ -3047,6 +3203,7 @@ class DboSourceTest extends CakeTestCase { $this->testDb->__mergeAssociation($data, $merge, 'Tag', 'hasOne'); $this->assertEqual($data, $expected); } + /** * testRenderStatement method * @@ -3072,6 +3229,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->renderStatement('delete', array('fields' => 'value=2', 'table' => 'table', 'conditions' => 'WHERE 1=1', 'alias' => 'alias', 'joins' => '')); $this->assertPattern('/^\s*DELETE\s+alias\s+FROM\s+table\s+AS\s+alias\s+WHERE\s+1=1\s*$/', $result); } + /** * testStatements method * @@ -3114,6 +3272,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->getLastQuery(); $this->assertPattern('/^\s*INSERT INTO\s+' . $this->testDb->fullTableName('articles') . '\s+\(`field`\)\s+VALUES\s+\(1\),\s*\(2\)\s*$/', $result); } + /** * testSchema method * @@ -3134,6 +3293,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->dropSchema($Schema, 'table'); $this->assertPattern('/^\s*DROP TABLE IF EXISTS\s+' . $this->testDb->fullTableName('table') . ';\s*$/s', $result); } + /** * testMagicMethodQuerying method * @@ -3205,6 +3365,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->query('directCall', false, $this->Model); $this->assertFalse($result); } + /** * testOrderParsing method * @@ -3280,6 +3441,7 @@ class DboSourceTest extends CakeTestCase { $expected = ' ORDER BY `Property`.`sale_price` IS NULL ASC'; $this->assertEqual($result, $expected); } + /** * testComplexSortExpression method * @@ -3290,6 +3452,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->order(array('(Model.field > 100) DESC', 'Model.field ASC')); $this->assertPattern("/^\s*ORDER BY\s+\(`Model`\.`field`\s+>\s+100\)\s+DESC,\s+`Model`\.`field`\s+ASC\s*$/", $result); } + /** * testCalculations method * @@ -3331,6 +3494,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->calculate($this->Model, 'min', 'left'); $this->assertEqual($result, 'MIN(`left`) AS `left`'); } + /** * testLength method * @@ -3374,6 +3538,7 @@ class DboSourceTest extends CakeTestCase { $expected = null; $this->assertIdentical($result, $expected); } + /** * testBuildIndex method * @@ -3402,6 +3567,7 @@ class DboSourceTest extends CakeTestCase { $expected = array('UNIQUE KEY MyIndex (`id`, `name`)'); $this->assertEqual($result, $expected); } + /** * testBuildColumn method * @@ -3442,6 +3608,7 @@ class DboSourceTest extends CakeTestCase { $expected = '`int_field` int(11) NOT NULL'; $this->assertTrue($result, $expected); } + /** * test hasAny() * @@ -3456,6 +3623,7 @@ class DboSourceTest extends CakeTestCase { $expected = "SELECT COUNT(`TestModel`.`id`) AS count FROM `test_models` AS `TestModel` WHERE `TestModel`.`name` = 'harry'"; $this->assertEqual($this->testDb->simulated[1], $expected); } + /** * testIntrospectType method * @@ -3616,6 +3784,7 @@ class DboSourceTest extends CakeTestCase { $result = $this->testDb->value('a bc', 'string'); $this->assertEqual($result, "'a bc'"); } + /** * testValue method * @@ -3630,6 +3799,7 @@ class DboSourceTest extends CakeTestCase { $expected = array('\'first\'', 2, '\'third\''); $this->assertEqual($result, $expected); } + /** * testReconnect method * @@ -3641,6 +3811,7 @@ class DboSourceTest extends CakeTestCase { $this->assertTrue($this->testDb->connected); $this->assertEqual($this->testDb->config['prefix'], 'foo'); } + /** * testRealQueries method * @@ -3710,6 +3881,7 @@ class DboSourceTest extends CakeTestCase { $this->assertTrue(Set::matches('/Comment[id=2]', $result)); $this->assertFalse(Set::matches('/Comment[id=10]', $result)); } + /** * testName method * @@ -3737,6 +3909,7 @@ class DboSourceTest extends CakeTestCase { $expected = 'Function(`Something`.`foo`)'; $this->assertEqual($result, $expected); } + /** * testLog method * @@ -3792,6 +3965,7 @@ class DboSourceTest extends CakeTestCase { $this->testDb->error = $oldError; Configure::write('debug', $oldDebug); } + /** * test ShowQuery generation of regular and error messages * diff --git a/cake/tests/cases/libs/model/db_acl.test.php b/cake/tests/cases/libs/model/db_acl.test.php index 82d4d15ad..b56fcaa58 100644 --- a/cake/tests/cases/libs/model/db_acl.test.php +++ b/cake/tests/cases/libs/model/db_acl.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DbAclTest file * @@ -29,6 +30,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { } App::import('Component', 'Acl'); App::import('Core', 'db_acl'); + /** * DB ACL wrapper test class * @@ -36,6 +38,7 @@ App::import('Core', 'db_acl'); * @subpackage cake.tests.cases.libs.controller.components */ class DbAclNodeTestBase extends AclNode { + /** * useDbConfig property * @@ -43,6 +46,7 @@ class DbAclNodeTestBase extends AclNode { * @access public */ var $useDbConfig = 'test_suite'; + /** * cacheSources property * @@ -51,6 +55,7 @@ class DbAclNodeTestBase extends AclNode { */ var $cacheSources = false; } + /** * Aro Test Wrapper * @@ -58,6 +63,7 @@ class DbAclNodeTestBase extends AclNode { * @subpackage cake.tests.cases.libs.controller.components */ class DbAroTest extends DbAclNodeTestBase { + /** * name property * @@ -65,6 +71,7 @@ class DbAroTest extends DbAclNodeTestBase { * @access public */ var $name = 'DbAroTest'; + /** * useTable property * @@ -72,6 +79,7 @@ class DbAroTest extends DbAclNodeTestBase { * @access public */ var $useTable = 'aros'; + /** * hasAndBelongsToMany property * @@ -80,6 +88,7 @@ class DbAroTest extends DbAclNodeTestBase { */ var $hasAndBelongsToMany = array('DbAcoTest' => array('with' => 'DbPermissionTest')); } + /** * Aco Test Wrapper * @@ -87,6 +96,7 @@ class DbAroTest extends DbAclNodeTestBase { * @subpackage cake.tests.cases.libs.controller.components */ class DbAcoTest extends DbAclNodeTestBase { + /** * name property * @@ -94,6 +104,7 @@ class DbAcoTest extends DbAclNodeTestBase { * @access public */ var $name = 'DbAcoTest'; + /** * useTable property * @@ -101,6 +112,7 @@ class DbAcoTest extends DbAclNodeTestBase { * @access public */ var $useTable = 'acos'; + /** * hasAndBelongsToMany property * @@ -109,6 +121,7 @@ class DbAcoTest extends DbAclNodeTestBase { */ var $hasAndBelongsToMany = array('DbAroTest' => array('with' => 'DbPermissionTest')); } + /** * Permission Test Wrapper * @@ -116,6 +129,7 @@ class DbAcoTest extends DbAclNodeTestBase { * @subpackage cake.tests.cases.libs.controller.components */ class DbPermissionTest extends CakeTestModel { + /** * name property * @@ -123,6 +137,7 @@ class DbPermissionTest extends CakeTestModel { * @access public */ var $name = 'DbPermissionTest'; + /** * useTable property * @@ -130,6 +145,7 @@ class DbPermissionTest extends CakeTestModel { * @access public */ var $useTable = 'aros_acos'; + /** * cacheQueries property * @@ -137,6 +153,7 @@ class DbPermissionTest extends CakeTestModel { * @access public */ var $cacheQueries = false; + /** * belongsTo property * @@ -145,6 +162,7 @@ class DbPermissionTest extends CakeTestModel { */ var $belongsTo = array('DbAroTest' => array('foreignKey' => 'aro_id'), 'DbAcoTest' => array('foreignKey' => 'aco_id')); } + /** * DboActionTest class * @@ -152,6 +170,7 @@ class DbPermissionTest extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller.components */ class DbAcoActionTest extends CakeTestModel { + /** * name property * @@ -159,6 +178,7 @@ class DbAcoActionTest extends CakeTestModel { * @access public */ var $name = 'DbAcoActionTest'; + /** * useTable property * @@ -166,6 +186,7 @@ class DbAcoActionTest extends CakeTestModel { * @access public */ var $useTable = 'aco_actions'; + /** * belongsTo property * @@ -174,6 +195,7 @@ class DbAcoActionTest extends CakeTestModel { */ var $belongsTo = array('DbAcoTest' => array('foreignKey' => 'aco_id')); } + /** * DbAroUserTest class * @@ -181,6 +203,7 @@ class DbAcoActionTest extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller.components */ class DbAroUserTest extends CakeTestModel { + /** * name property * @@ -188,6 +211,7 @@ class DbAroUserTest extends CakeTestModel { * @access public */ var $name = 'AuthUser'; + /** * useTable property * @@ -210,6 +234,7 @@ class DbAroUserTest extends CakeTestModel { } } } + /** * DbAclTest class * @@ -217,6 +242,7 @@ class DbAroUserTest extends CakeTestModel { * @subpackage cake.tests.cases.libs.controller.components */ class DbAclTest extends DbAcl { + /** * construct method * @@ -230,6 +256,7 @@ class DbAclTest extends DbAcl { $this->Aro->Permission =& new DbPermissionTest(); } } + /** * AclNodeTest class * @@ -237,6 +264,7 @@ class DbAclTest extends DbAcl { * @subpackage cake.tests.cases.libs.controller.components.dbacl.models */ class AclNodeTest extends CakeTestCase { + /** * fixtures property * @@ -244,6 +272,7 @@ class AclNodeTest extends CakeTestCase { * @access public */ var $fixtures = array('core.aro', 'core.aco', 'core.aros_aco', 'core.aco_action', 'core.auth_user'); + /** * setUp method * @@ -254,6 +283,7 @@ class AclNodeTest extends CakeTestCase { Configure::write('Acl.classname', 'DbAclTest'); Configure::write('Acl.database', 'test_suite'); } + /** * testNode method * @@ -333,6 +363,7 @@ class AclNodeTest extends CakeTestCase { $this->assertEqual($result, $expected); } + /** * testNodeAliasParenting method * diff --git a/cake/tests/cases/libs/model/model.test.php b/cake/tests/cases/libs/model/model.test.php index 363dd57b6..62d3855b3 100644 --- a/cake/tests/cases/libs/model/model.test.php +++ b/cake/tests/cases/libs/model/model.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ModelTest file * @@ -36,6 +37,7 @@ SimpleTest::ignore('BaseModelTest'); * @subpackage cake.tests.cases.libs.model */ class BaseModelTest extends CakeTestCase { + /** * autoFixtures property * @@ -43,6 +45,7 @@ class BaseModelTest extends CakeTestCase { * @access public */ var $autoFixtures = false; + /** * fixtures property * @@ -72,6 +75,7 @@ class BaseModelTest extends CakeTestCase { 'core.uuiditems_uuidportfolio', 'core.uuiditems_uuidportfolio_numericid', 'core.fruit', 'core.fruits_uuid_tag', 'core.uuid_tag' ); + /** * start method * @@ -83,6 +87,7 @@ class BaseModelTest extends CakeTestCase { $this->debug = Configure::read('debug'); Configure::write('debug', 2); } + /** * end method * @@ -93,6 +98,7 @@ class BaseModelTest extends CakeTestCase { parent::end(); Configure::write('debug', $this->debug); } + /** * endTest method * @@ -104,6 +110,7 @@ class BaseModelTest extends CakeTestCase { } } + /** * ModelGeneralTest * @@ -111,6 +118,7 @@ class BaseModelTest extends CakeTestCase { * @subpackage cake.tests.cases.libs.model */ class ModelTest extends BaseModelTest { + /** * testPkInHAbtmLinkModelArticleB * @@ -122,6 +130,7 @@ class ModelTest extends BaseModelTest { $TestModel2 =& new ArticleB(); $this->assertEqual($TestModel2->ArticlesTag->primaryKey, 'article_id'); } + /** * Tests that $cacheSources can only be disabled in the db using model settings, not enabled * @@ -141,6 +150,7 @@ class ModelTest extends BaseModelTest { $TestModel->setSource('join_as'); $this->assertFalse($this->db->cacheSources); } + /** * testPkInHabtmLinkModel method * @@ -169,6 +179,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($TestModel4->JoinAsJoinB->primaryKey, 'id'); } + /** * testDynamicBehaviorAttachment method * @@ -205,6 +216,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($TestModel->Behaviors->attached(), array()); $this->assertFalse(isset($TestModel->Behaviors->Tree)); } + /** * Tests cross database joins. Requires $test and $test2 to both be set in DATABASE_CONFIG * NOTE: When testing on MySQL, you must set 'persistent' => false on *both* database connections, @@ -567,6 +579,7 @@ class ModelTest extends BaseModelTest { $this->_fixtures[$this->_fixtureClassMap[$class]]->drop($db2); } } + /** * testDisplayField method * @@ -583,6 +596,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($Person->displayField, 'name'); $this->assertEqual($Comment->displayField, 'id'); } + /** * testSchema method * @@ -605,6 +619,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($Post->getColumnTypes(), array_combine($columns, $types)); } + /** * test deconstruct() with time fields. * @@ -690,6 +705,7 @@ class ModelTest extends BaseModelTest { $TestModel->set($data); $this->assertEqual($TestModel->data, $data); } + /** * testDeconstructFields with datetime, timestamp, and date fields * @@ -858,7 +874,7 @@ class ModelTest extends BaseModelTest { $TestModel->set($data); $expected = array('Apple'=> array('date'=> '2006-12-25')); $this->assertEqual($TestModel->data, $expected); - + $db = ConnectionManager::getDataSource('test_suite'); $data = array(); $data['Apple']['modified'] = $db->expression('NOW()'); @@ -866,6 +882,7 @@ class ModelTest extends BaseModelTest { $TestModel->set($data); $this->assertEqual($TestModel->data, $data); } + /** * testTablePrefixSwitching method * @@ -919,6 +936,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($db2->fullTableName($TestModel, false), 'apples'); $this->assertEqual($db1->fullTableName($TestModel, false), 'apples'); } + /** * Tests validation parameter order in custom validation methods * @@ -929,6 +947,7 @@ class ModelTest extends BaseModelTest { $TestModel =& new ValidationTest1(); $this->assertNull($TestModel->getAssociated('Foo')); } + /** * testLoadModelSecondIteration method * @@ -945,6 +964,7 @@ class ModelTest extends BaseModelTest { $this->assertIsA($model->ModelC, 'ModelC'); $this->assertIsA($model->ModelC->ModelD, 'ModelD'); } + /** * ensure that __exists is reset on create * @@ -966,6 +986,7 @@ class ModelTest extends BaseModelTest { $result = $Article->read(null, 2); $this->assertEqual($result['Article']['title'], 'Staying alive'); } + /** * testPluginAssociations method * @@ -1090,6 +1111,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * Tests getAssociated method * @@ -1238,6 +1260,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($TestModel->Tag->name, 'Tag'); $this->assertEqual($TestFakeModel->Tag->name, 'Tag'); } + /** * test Model::__construct * @@ -1258,6 +1281,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($TestModel->actsAs, $expected); $this->assertTrue(isset($TestModel->Behaviors->Containable)); } + /** * test Model::__construct * @@ -1275,6 +1299,7 @@ class ModelTest extends BaseModelTest { $NewVoid =& new TheVoid(null, false, 'other'); $this->assertEqual('other', $NewVoid->useDbConfig); } + /** * testColumnTypeFetching method * @@ -1293,6 +1318,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($model->getColumnType('Tag.id'), 'integer'); $this->assertEqual($model->getColumnType('Article.id'), 'integer'); } + /** * testHabtmUniqueKey method * @@ -1303,6 +1329,7 @@ class ModelTest extends BaseModelTest { $model =& new Item(); $this->assertFalse($model->hasAndBelongsToMany['Portfolio']['unique']); } + /** * testIdentity method * @@ -1325,6 +1352,7 @@ class ModelTest extends BaseModelTest { $expected = 'AnotherTest'; $this->assertEqual($result, $expected); } + /** * testWithAssociation method * @@ -1576,6 +1604,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * testFindSelfAssociations method * @@ -1685,6 +1714,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * testDynamicAssociations method * @@ -1792,6 +1822,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * testCreation method * @@ -1910,6 +1941,7 @@ class ModelTest extends BaseModelTest { $this->assertEqual($FeaturedModel->create($data), $expected); } } + /** * ModelFindTest * @@ -1917,6 +1949,7 @@ class ModelTest extends BaseModelTest { * @subpackage cake.tests.cases.libs.model */ class ModelReadTest extends BaseModelTest { + /** * testFetchingNonUniqueFKJoinTableRecords() * @@ -1954,6 +1987,7 @@ class ModelReadTest extends BaseModelTest { $this->assertEqual($result['SomethingElse'][0]['JoinThing']['doomed'], 1); $this->assertEqual($result['SomethingElse'][1]['JoinThing']['doomed'], 0); } + /** * testGroupBy method * @@ -2121,6 +2155,7 @@ class ModelReadTest extends BaseModelTest { 'order' => 'Product.type ASC')); $this->assertEqual($result, $expected); } + /** * testOldQuery method * @@ -2156,6 +2191,7 @@ class ModelReadTest extends BaseModelTest { $this->assertTrue(isset($this->db->_queryCache[$query])); $this->assertTrue(is_array($results)); } + /** * testPreparedQuery method * @@ -2237,6 +2273,7 @@ class ModelReadTest extends BaseModelTest { $this->assertTrue(isset($this->db->_queryCache[$expected])); } + /** * testParameterMismatch method * @@ -2258,6 +2295,7 @@ class ModelReadTest extends BaseModelTest { ob_end_clean(); $this->assertEqual($result, null); } + /** * testVeryStrangeUseCase method * @@ -2287,6 +2325,7 @@ class ModelReadTest extends BaseModelTest { $result = $Article->query($query, $param); ob_end_clean(); } + /** * testRecursiveUnbind method * @@ -4881,6 +4920,7 @@ class ModelReadTest extends BaseModelTest { ))); $this->assertEqual($result, $expected); } + /** * testSelfAssociationAfterFind method * @@ -4908,6 +4948,7 @@ class ModelReadTest extends BaseModelTest { } $this->assertEqual($afterFindData, $noAfterFindData); } + /** * testFindAllThreaded method * @@ -5384,6 +5425,7 @@ class ModelReadTest extends BaseModelTest { ); $this->assertEqual($result, $expected); } + /** * test find('neighbors') * @@ -5540,6 +5582,7 @@ class ModelReadTest extends BaseModelTest { $expected = array('prev' => $two, 'next' => null); $this->assertEqual($result, $expected); } + /** * testFindCombinedRelations method * @@ -5816,6 +5859,7 @@ class ModelReadTest extends BaseModelTest { )); $this->assertEqual($result, $expected); } + /** * testSaveEmpty method * @@ -5969,6 +6013,7 @@ class ModelReadTest extends BaseModelTest { ); $this->assertEqual($result, $expected); } + /** * testBindUnbind method * @@ -6428,6 +6473,7 @@ class ModelReadTest extends BaseModelTest { $this->assertEqual($TestModel2->hasMany['NewFeatureSet'], $expected); $this->assertTrue(is_object($TestModel2->NewFeatureSet)); } + /** * testBindMultipleTimes method * @@ -6708,6 +6754,7 @@ class ModelReadTest extends BaseModelTest { ); $this->assertEqual($result[0]['Post'][0]['Comment'][0], $expected); } + /** * Tests that callbacks can be properly disabled * @@ -6734,6 +6781,7 @@ class ModelReadTest extends BaseModelTest { $expected = array('mariano', 'nate', 'larry', 'garrett'); $this->assertEqual($result, $expected); } + /** * testMultipleBelongsToWithSameClass method * @@ -6832,6 +6880,7 @@ class ModelReadTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * testHabtmRecursiveBelongsTo method * @@ -6890,6 +6939,7 @@ class ModelReadTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * testHabtmFinderQuery method * @@ -6938,6 +6988,7 @@ class ModelReadTest extends BaseModelTest { $this->assertEqual($result['Tag'], $expected); } + /** * testHabtmLimitOptimization method * @@ -7008,6 +7059,7 @@ class ModelReadTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * testHasManyLimitOptimization method * @@ -7122,6 +7174,7 @@ class ModelReadTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * testFindAllRecursiveSelfJoin method * @@ -7231,6 +7284,7 @@ class ModelReadTest extends BaseModelTest { } + /** * testFindAllRecursiveWithHabtm method * @@ -7299,6 +7353,7 @@ class ModelReadTest extends BaseModelTest { $this->assertIdentical($result, $expected); } + /** * testReadFakeThread method * @@ -7363,6 +7418,7 @@ class ModelReadTest extends BaseModelTest { $this->db->fullDebug = $fullDebug; $this->assertEqual($result, $expected); } + /** * testFindFakeThread method * @@ -7427,6 +7483,7 @@ class ModelReadTest extends BaseModelTest { $this->db->fullDebug = $fullDebug; $this->assertEqual($result, $expected); } + /** * testFindAllFakeThread method * @@ -7647,6 +7704,7 @@ class ModelReadTest extends BaseModelTest { $this->db->fullDebug = $fullDebug; $this->assertEqual($result, $expected); } + /** * testConditionalNumerics method * @@ -7894,6 +7952,7 @@ class ModelReadTest extends BaseModelTest { $this->assertEqual($result, $expected); } } + /** * test find('list') method * @@ -8157,6 +8216,7 @@ class ModelReadTest extends BaseModelTest { ); $this->assertEqual($result, $expected); } + /** * testFindField method * @@ -8186,6 +8246,7 @@ class ModelReadTest extends BaseModelTest { $result = $TestModel->field('COUNT(*)', true); $this->assertEqual($result, 4); } + /** * testFindUnique method * @@ -8208,6 +8269,7 @@ class ModelReadTest extends BaseModelTest { 'password' => '5f4dcc3b5aa765d61d8327deb882cf99' ))); } + /** * test find('count') method * @@ -8254,6 +8316,7 @@ class ModelReadTest extends BaseModelTest { $result = $TestModel->find('count', array('fields' => 'DISTINCT name')); $this->assertEqual($result, 4); } + /** * Test find(count) with Db::expression * @@ -8278,6 +8341,7 @@ class ModelReadTest extends BaseModelTest { ))); $this->assertEqual($result, 1); } + /** * testFindMagic method * @@ -8309,6 +8373,7 @@ class ModelReadTest extends BaseModelTest { )); $this->assertEqual($result, $expected); } + /** * testRead method * @@ -8389,6 +8454,7 @@ class ModelReadTest extends BaseModelTest { ))); $this->assertEqual($result, $expected); } + /** * testRecursiveRead method * @@ -8815,6 +8881,7 @@ class ModelReadTest extends BaseModelTest { ))); $this->assertEqual($result, $expected); } + /** * testRecursiveFindAllWithLimit method * @@ -8990,6 +9057,7 @@ class ModelReadTest extends BaseModelTest { * @subpackage cake.tests.cases.libs.model */ class ModelWriteTest extends BaseModelTest { + /** * testInsertAnotherHabtmRecordWithSameForeignKey method * @@ -9044,6 +9112,7 @@ class ModelWriteTest extends BaseModelTest { $result = $TestModel->JoinAsJoinB->findById(1); $this->assertEqual($result['JoinAsJoinB']['other'], $updatedValue); } + /** * testSaveDateAsFirstEntry method * @@ -9074,6 +9143,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertEqual($testResult['Article']['created'], '2008-01-01 00:00:00'); } + /** * testUnderscoreFieldSave method * @@ -9099,6 +9169,7 @@ class ModelWriteTest extends BaseModelTest { $currentCount = $UnderscoreField->find('count'); $this->assertEqual($currentCount, 4); } + /** * testAutoSaveUuid method * @@ -9124,6 +9195,7 @@ class ModelWriteTest extends BaseModelTest { ); $this->assertEqual(strlen($result['Uuid']['id']), 36); } + /** * testZeroDefaultFieldValue method * @@ -9144,6 +9216,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertIdentical($result['DataTest']['count'], '0'); $this->assertIdentical($result['DataTest']['float'], '0'); } + /** * testNonNumericHabtmJoinKey method * @@ -9242,6 +9315,7 @@ class ModelWriteTest extends BaseModelTest { )); $this->assertEqual($result, $expected); } + /** * Tests validation parameter order in custom validation methods * @@ -9262,6 +9336,7 @@ class ModelWriteTest extends BaseModelTest { )); $this->assertEqual($TestModel->data, $expected); } + /** * test that Caches are getting cleared on save(). * ensure that both inflections of controller names are getting cleared @@ -9299,6 +9374,7 @@ class ModelWriteTest extends BaseModelTest { Configure::write('Cache.check', $_back['check']); Configure::write('Cache.disable', $_back['disable']); } + /** * testSaveWithCounterCache method * @@ -9335,6 +9411,7 @@ class ModelWriteTest extends BaseModelTest { $result = $TestModel->findById(2); $this->assertIdentical($result['Syfile']['item_count'], '0'); } + /** * Tests that counter caches are updated when records are added * @@ -9360,6 +9437,7 @@ class ModelWriteTest extends BaseModelTest { $expected = 3; $this->assertEqual($result, $expected); } + /** * Tests that counter caches are updated when records are deleted * @@ -9381,6 +9459,7 @@ class ModelWriteTest extends BaseModelTest { $expected = 1; $this->assertEqual($result, $expected); } + /** * Tests that counter caches are updated when foreign keys of counted records change * @@ -9403,6 +9482,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertEqual($users[0]['User']['post_count'], 1); $this->assertEqual($users[1]['User']['post_count'], 2); } + /** * Test counter cache with models that use a non-standard (i.e. not using 'id') * as their primary key. @@ -9459,6 +9539,7 @@ class ModelWriteTest extends BaseModelTest { $expected = array_fill(0, 1, 1); $this->assertEqual($result, $expected); } + /** * testSaveWithCounterCacheScope method * @@ -9498,6 +9579,7 @@ class ModelWriteTest extends BaseModelTest { $result = $TestModel->findById(1); $this->assertIdentical($result['Syfile']['item_count'], '1'); } + /** * testValidatesBackwards method * @@ -9563,6 +9645,7 @@ class ModelWriteTest extends BaseModelTest { $result = $TestModel->validates(); $this->assertTrue($result); } + /** * testValidates method * @@ -9915,6 +9998,7 @@ class ModelWriteTest extends BaseModelTest { ); $this->assertEqual($result, $expected); } + /** * testSaveField method * @@ -9983,6 +10067,7 @@ class ModelWriteTest extends BaseModelTest { $result = $Node->read(); $this->assertEqual(Set::extract('/ParentNode/name', $result), array('Second')); } + /** * testSaveWithCreate method * @@ -10204,6 +10289,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * testSaveWithSet method * @@ -10331,6 +10417,7 @@ class ModelWriteTest extends BaseModelTest { ); $this->assertEqual($result, $expected); } + /** * testSaveWithNonExistentFields method * @@ -10382,6 +10469,7 @@ class ModelWriteTest extends BaseModelTest { $result = $TestModel->read(array('id', 'user_id', 'title', 'body', 'published'), 5); $this->assertEqual($result, $expected); } + /** * testSaveFromXml method * @@ -10399,6 +10487,7 @@ class ModelWriteTest extends BaseModelTest { $results = $Article->find(array('Article.title' => 'test xml')); $this->assertTrue($results); } + /** * testSaveHabtm method * @@ -10870,6 +10959,7 @@ class ModelWriteTest extends BaseModelTest { $expected = array('new record', 'new record'); $this->assertEqual(Set::extract('/JoinC/JoinAsJoinC/other', $result), $expected); } + /** * testSaveHabtmCustomKeys method * @@ -10920,6 +11010,7 @@ class ModelWriteTest extends BaseModelTest { )); $this->assertEqual($result, $expected); } + /** * testHabtmSaveKeyResolution method * @@ -11009,6 +11100,7 @@ class ModelWriteTest extends BaseModelTest { )); $this->assertEqual($result['Monkey'], $expected); } + /** * testCreationOfEmptyRecord method * @@ -11028,6 +11120,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertTrue(isset($result['Author']['updated'])); $this->assertEqual($TestModel->find('count'), 1); } + /** * testCreateWithPKFiltering method * @@ -11124,6 +11217,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertEqual($result, $expected); $this->assertFalse($TestModel->id); } + /** * testCreationWithMultipleData method * @@ -11295,6 +11389,7 @@ class ModelWriteTest extends BaseModelTest { )))); } + /** * testCreationWithMultipleDataSameModel method * @@ -11353,6 +11448,7 @@ class ModelWriteTest extends BaseModelTest { 'title' => 'Brand New Article' )))); } + /** * testCreationWithMultipleDataSameModelManualInstances method * @@ -11391,6 +11487,7 @@ class ModelWriteTest extends BaseModelTest { $result = $Primary->find('count'); $this->assertEqual($result, 2); } + /** * testRecordExists method * @@ -11414,6 +11511,7 @@ class ModelWriteTest extends BaseModelTest { $TestModel->id = 5; $this->assertFalse($TestModel->exists()); } + /** * testUpdateExisting method * @@ -11461,6 +11559,7 @@ class ModelWriteTest extends BaseModelTest { $result = $Comment->save($data); $this->assertTrue($result); } + /** * testUpdateMultiple method * @@ -11494,6 +11593,7 @@ class ModelWriteTest extends BaseModelTest { $expected = array_fill(0, 2, 'Updated today'); $this->assertEqual($result, $expected); } + /** * testHabtmUuidWithUuidId method * @@ -11513,6 +11613,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertEqual(1, count($result['Uuiditem'])); $this->assertEqual(strlen($result['Uuiditem'][0]['UuiditemsUuidportfolio']['id']), 36); } + /** * test HABTM saving when join table has no primary key and only 2 columns. * @@ -11536,6 +11637,7 @@ class ModelWriteTest extends BaseModelTest { ); $this->assertTrue($Fruit->save($data)); } + /** * test HABTM saving when join table has no primary key and only 2 columns, no with model is used. * @@ -11578,6 +11680,7 @@ class ModelWriteTest extends BaseModelTest { $result = $TestModel->read(null, $id); $this->assertEqual(1, count($result['Uuidportfolio'])); } + /** * testSaveMultipleHabtm method * @@ -11696,6 +11799,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertEqual($result, $expected); } + /** * testSaveAll method * @@ -11835,6 +11939,7 @@ class ModelWriteTest extends BaseModelTest { ); $this->assertEqual($result[6]['Attachment'], $expected); } + /** * Test SaveAll with Habtm relations * @@ -11866,6 +11971,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertEqual(count($result['Comment']), 1); $this->assertEqual(count($result['Comment'][0]['comment']['Article comment']), 1); } + /** * Test SaveAll with Habtm relations and extra join table fields * @@ -11909,6 +12015,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertTrue(Set::matches('/SomethingElse[id=3]/JoinThing[something_else_id=3]', $result)); $this->assertTrue(Set::matches('/SomethingElse[id=3]/JoinThing[doomed=1]', $result)); } + /** * testSaveAllHasOne method * @@ -11948,6 +12055,7 @@ class ModelWriteTest extends BaseModelTest { ))); $this->assertEqual($result, $expected); } + /** * testSaveAllBelongsTo method * @@ -11987,6 +12095,7 @@ class ModelWriteTest extends BaseModelTest { ))); $this->assertEqual($result, $expected); } + /** * testSaveAllHasOneValidation method * @@ -12033,6 +12142,7 @@ class ModelWriteTest extends BaseModelTest { $this->assertEqual($model->validationErrors, $expected['Comment']); $this->assertEqual($model->Attachment->validationErrors, $expected['Attachment']); } + /** * testSaveAllAtomic method * @@ -12106,6 +12216,7 @@ class ModelWriteTest extends BaseModelTest { ), array('atomic' => false)); $this->assertIdentical($result, array('Article' => true, 'Comment' => array(true, true))); } + /** * testSaveAllHasMany method * @@ -12182,6 +12293,7 @@ class ModelWriteTest extends BaseModelTest { ); $this->assertEqual(Set::extract($result['Comment'], '{n}.comment'), $expected); } + /** * testSaveAllHasManyValidation method * @@ -12222,6 +12334,7 @@ class ModelWriteTest extends BaseModelTest { )) ), array('validate' => 'only')); } + /** * testSaveAllTransaction method * @@ -12611,6 +12724,7 @@ class ModelWriteTest extends BaseModelTest { $TestModel->validate['body'] = 'notEmpty'; } + /** * testSaveAllValidationOnly method * @@ -12663,6 +12777,7 @@ class ModelWriteTest extends BaseModelTest { ); $this->assertEqual($TestModel->validationErrors, $expected); } + /** * testSaveAllValidateFirst method * @@ -12741,6 +12856,7 @@ class ModelWriteTest extends BaseModelTest { ); $this->assertEqual($result[0]['Comment'][0]['comment'], 'Only new comment'); } + /** * testUpdateWithCalculation method * @@ -12769,6 +12885,7 @@ class ModelWriteTest extends BaseModelTest { $result = Set::extract('/DataTest/count', $model->find('all', array('fields' => 'count'))); $this->assertEqual($result, array(6, 4, 5, 2)); } + /** * testSaveAllHasManyValidationOnly method * @@ -12849,6 +12966,7 @@ class ModelWriteTest extends BaseModelTest { } class ModelDeleteTest extends BaseModelTest { + /** * testDeleteHabtmReferenceWithConditions method * @@ -12939,6 +13057,7 @@ class ModelDeleteTest extends BaseModelTest { )); $this->assertFalse($result); } + /** * testDeleteArticleBLinks method * @@ -12967,6 +13086,7 @@ class ModelDeleteTest extends BaseModelTest { ); $this->assertEqual($result, $expected); } + /** * testDeleteDependentWithConditions method * @@ -12995,6 +13115,7 @@ class ModelDeleteTest extends BaseModelTest { $this->assertTrue(is_array($result)); $this->assertEqual($result, $expected); } + /** * testDel method * @@ -13074,6 +13195,7 @@ class ModelDeleteTest extends BaseModelTest { 'id' => 'B607DAB9-88A2-46CF-B57C-842CA9E3B3B3'))); $this->assertEqual($result, $expected); } + /** * testDeleteAll method * @@ -13215,6 +13337,7 @@ class ModelDeleteTest extends BaseModelTest { $result = $TestModel->deleteAll(array('Article.user_id' => 999)); $this->assertTrue($result, 'deleteAll returned false when all no records matched conditions. %s'); } + /** * testRecursiveDel method * @@ -13250,6 +13373,7 @@ class ModelDeleteTest extends BaseModelTest { $result = $TestModel->Comment->Attachment->find('count'); $this->assertEqual($result, 0); } + /** * testDependentExclusiveDelete method * @@ -13268,6 +13392,7 @@ class ModelDeleteTest extends BaseModelTest { $TestModel->delete(1); $this->assertEqual($TestModel->Comment->find('count'), 2); } + /** * testDeleteLinks method * @@ -13315,6 +13440,7 @@ class ModelDeleteTest extends BaseModelTest { $result = $TestModel->deleteAll(array('Article.user_id' => 999)); $this->assertTrue($result, 'deleteAll returned false when all no records matched conditions. %s'); } + /** * testHabtmDeleteLinksWhenNoPrimaryKeyInJoinTable method * @@ -13385,6 +13511,7 @@ class ModelDeleteTest extends BaseModelTest { } class ModelValidationTest extends BaseModelTest { + /** * Tests validation parameter order in custom validation methods * @@ -13426,6 +13553,7 @@ class ModelValidationTest extends BaseModelTest { $this->assertEqual($TestModel->invalidFields(), $expected); } + /** * Tests validation parameter fieldList in invalidFields * diff --git a/cake/tests/cases/libs/model/model_behavior.test.php b/cake/tests/cases/libs/model/model_behavior.test.php index 5eeab2037..3e1c13fea 100644 --- a/cake/tests/cases/libs/model/model_behavior.test.php +++ b/cake/tests/cases/libs/model/model_behavior.test.php @@ -21,6 +21,7 @@ */ App::import('Model', 'AppModel'); require_once dirname(__FILE__) . DS . 'models.php'; + /** * TestBehavior class * @@ -28,6 +29,7 @@ require_once dirname(__FILE__) . DS . 'models.php'; * @subpackage cake.tests.cases.libs.model */ class TestBehavior extends ModelBehavior { + /** * mapMethods property * @@ -35,6 +37,7 @@ class TestBehavior extends ModelBehavior { * @access public */ var $mapMethods = array('/test(\w+)/' => 'testMethod', '/look for\s+(.+)/' => 'speakEnglish'); + /** * setup method * @@ -50,6 +53,7 @@ class TestBehavior extends ModelBehavior { } $this->settings[$model->alias] = array_merge(array('beforeFind' => 'on', 'afterFind' => 'off'), $config); } + /** * beforeFind method * @@ -77,6 +81,7 @@ class TestBehavior extends ModelBehavior { break; } } + /** * afterFind method * @@ -106,6 +111,7 @@ class TestBehavior extends ModelBehavior { break; } } + /** * beforeSave method * @@ -131,6 +137,7 @@ class TestBehavior extends ModelBehavior { break; } } + /** * afterSave method * @@ -163,6 +170,7 @@ class TestBehavior extends ModelBehavior { break; } } + /** * beforeValidate method * @@ -193,6 +201,7 @@ class TestBehavior extends ModelBehavior { break; } } + /** * beforeDelete method * @@ -221,6 +230,7 @@ class TestBehavior extends ModelBehavior { break; } } + /** * afterDelete method * @@ -239,6 +249,7 @@ class TestBehavior extends ModelBehavior { break; } } + /** * onError method * @@ -264,6 +275,7 @@ class TestBehavior extends ModelBehavior { $model->beforeTestResult[] = get_class($this); return get_class($this); } + /** * testMethod method * @@ -277,6 +289,7 @@ class TestBehavior extends ModelBehavior { return 'working'; } } + /** * testData method * @@ -291,6 +304,7 @@ class TestBehavior extends ModelBehavior { $model->data['Apple']['field_2'] = true; return true; } + /** * validateField method * @@ -302,6 +316,7 @@ class TestBehavior extends ModelBehavior { function validateField(&$model, $field) { return current($field) === 'Orange'; } + /** * speakEnglish method * @@ -317,6 +332,7 @@ class TestBehavior extends ModelBehavior { return $method . '\' AND ' . $query . '\''; } } + /** * Test2Behavior class * @@ -325,6 +341,7 @@ class TestBehavior extends ModelBehavior { */ class Test2Behavior extends TestBehavior{ } + /** * Test3Behavior class * @@ -333,6 +350,7 @@ class Test2Behavior extends TestBehavior{ */ class Test3Behavior extends TestBehavior{ } + /** * Test4Behavior class * @@ -346,6 +364,7 @@ class Test4Behavior extends ModelBehavior{ ); } } + /** * Test5Behavior class * @@ -359,6 +378,7 @@ class Test5Behavior extends ModelBehavior{ ); } } + /** * Test6Behavior class * @@ -372,6 +392,7 @@ class Test6Behavior extends ModelBehavior{ ); } } + /** * Test7Behavior class * @@ -385,6 +406,7 @@ class Test7Behavior extends ModelBehavior{ ); } } + /** * BehaviorTest class * @@ -392,6 +414,7 @@ class Test7Behavior extends ModelBehavior{ * @subpackage cake.tests.cases.libs.model */ class BehaviorTest extends CakeTestCase { + /** * fixtures property * @@ -402,6 +425,7 @@ class BehaviorTest extends CakeTestCase { 'core.apple', 'core.sample', 'core.article', 'core.user', 'core.comment', 'core.attachment', 'core.tag', 'core.articles_tag' ); + /** * tearDown method * @@ -411,6 +435,7 @@ class BehaviorTest extends CakeTestCase { function tearDown() { ClassRegistry::flush(); } + /** * testBehaviorBinding method * @@ -477,6 +502,7 @@ class BehaviorTest extends CakeTestCase { $expected = array_merge($current, array('mangle' => 'trigger mangled')); $this->assertEqual($Apple->Behaviors->Test->settings['Apple'], $expected); } + /** * testBehaviorToggling method * @@ -511,6 +537,7 @@ class BehaviorTest extends CakeTestCase { $Apple->Behaviors->detach('Test'); $this->assertIdentical($Apple->Behaviors->enabled(), array()); } + /** * testBehaviorFindCallbacks method * @@ -567,6 +594,7 @@ class BehaviorTest extends CakeTestCase { ); $this->assertEqual($Apple->find('all'), $expected); } + /** * testBehaviorHasManyFindCallbacks method * @@ -775,6 +803,7 @@ class BehaviorTest extends CakeTestCase { ); //$this->assertEqual($Apple->find('all'), $expected); } + /** * testBehaviorSaveCallbacks method * @@ -837,6 +866,7 @@ class BehaviorTest extends CakeTestCase { $Sample->create(); $this->assertIdentical($Sample->save($record2), $expected); } + /** * testBehaviorDeleteCallbacks method * @@ -919,6 +949,7 @@ class BehaviorTest extends CakeTestCase { $Apple->validates(); $this->assertIdentical($Apple->whitelist, array('unknown', 'name')); } + /** * testBehaviorValidateMethods method * @@ -937,6 +968,7 @@ class BehaviorTest extends CakeTestCase { $result = $Apple->save(array('name' => 'Regular Apple', 'color' => 'Red')); $this->assertFalse($result); } + /** * testBehaviorMethodDispatching method * @@ -958,6 +990,7 @@ class BehaviorTest extends CakeTestCase { $expected = "Item.name = 'the remote' AND Location.name = 'the couch'"; $this->assertEqual($result, $expected); } + /** * testBehaviorMethodDispatchingWithData method * @@ -972,6 +1005,7 @@ class BehaviorTest extends CakeTestCase { $this->assertTrue($Apple->testData()); $this->assertTrue($Apple->data['Apple']['field_2']); } + /** * testBehaviorTrigger method * @@ -999,6 +1033,7 @@ class BehaviorTest extends CakeTestCase { $expected = array('TestBehavior', 'Test2Behavior'); $this->assertIdentical($Apple->beforeTestResult, $expected); } + /** * undocumented function * @@ -1046,6 +1081,7 @@ class BehaviorTest extends CakeTestCase { $result = $Comment->find('first'); $this->assertTrue(array_key_exists('Attachment', $result)); } + /** * Test attach and detaching * diff --git a/cake/tests/cases/libs/model/models.php b/cake/tests/cases/libs/model/models.php index 20e5b6ba1..419184d13 100644 --- a/cake/tests/cases/libs/model/models.php +++ b/cake/tests/cases/libs/model/models.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Mock models file * @@ -27,6 +28,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { define('CAKEPHP_UNIT_TEST_EXECUTION', 1); } + /** * Test class * @@ -34,6 +36,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { * @subpackage cake.tests.cases.libs.model */ class Test extends CakeTestModel { + /** * useTable property * @@ -41,6 +44,7 @@ class Test extends CakeTestModel { * @access public */ var $useTable = false; + /** * name property * @@ -48,6 +52,7 @@ class Test extends CakeTestModel { * @access public */ var $name = 'Test'; + /** * schema property * @@ -63,6 +68,7 @@ class Test extends CakeTestModel { 'updated'=> array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); } + /** * TestAlias class * @@ -70,6 +76,7 @@ class Test extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TestAlias extends CakeTestModel { + /** * useTable property * @@ -77,6 +84,7 @@ class TestAlias extends CakeTestModel { * @access public */ var $useTable = false; + /** * name property * @@ -84,6 +92,7 @@ class TestAlias extends CakeTestModel { * @access public */ var $name = 'TestAlias'; + /** * alias property * @@ -91,6 +100,7 @@ class TestAlias extends CakeTestModel { * @access public */ var $alias = 'TestAlias'; + /** * schema property * @@ -106,6 +116,7 @@ class TestAlias extends CakeTestModel { 'updated'=> array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); } + /** * TestValidate class * @@ -113,6 +124,7 @@ class TestAlias extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TestValidate extends CakeTestModel { + /** * useTable property * @@ -120,6 +132,7 @@ class TestValidate extends CakeTestModel { * @access public */ var $useTable = false; + /** * name property * @@ -127,6 +140,7 @@ class TestValidate extends CakeTestModel { * @access public */ var $name = 'TestValidate'; + /** * schema property * @@ -141,6 +155,7 @@ class TestValidate extends CakeTestModel { 'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''), 'modified' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); + /** * validateNumber method * @@ -154,6 +169,7 @@ class TestValidate extends CakeTestModel { $valid = ($value['number'] >= $options['min'] && $value['number'] <= $options['max']); return $valid; } + /** * validateTitle method * @@ -165,6 +181,7 @@ class TestValidate extends CakeTestModel { return (!empty($value) && strpos(low($value['title']), 'title-') === 0); } } + /** * User class * @@ -172,6 +189,7 @@ class TestValidate extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class User extends CakeTestModel { + /** * name property * @@ -179,6 +197,7 @@ class User extends CakeTestModel { * @access public */ var $name = 'User'; + /** * validate property * @@ -187,6 +206,7 @@ class User extends CakeTestModel { */ var $validate = array('user' => 'notEmpty', 'password' => 'notEmpty'); } + /** * Article class * @@ -194,6 +214,7 @@ class User extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Article extends CakeTestModel { + /** * name property * @@ -201,6 +222,7 @@ class Article extends CakeTestModel { * @access public */ var $name = 'Article'; + /** * belongsTo property * @@ -208,6 +230,7 @@ class Article extends CakeTestModel { * @access public */ var $belongsTo = array('User'); + /** * hasMany property * @@ -215,6 +238,7 @@ class Article extends CakeTestModel { * @access public */ var $hasMany = array('Comment' => array('dependent' => true)); + /** * hasAndBelongsToMany property * @@ -222,6 +246,7 @@ class Article extends CakeTestModel { * @access public */ var $hasAndBelongsToMany = array('Tag'); + /** * validate property * @@ -229,6 +254,7 @@ class Article extends CakeTestModel { * @access public */ var $validate = array('user_id' => 'numeric', 'title' => array('allowEmpty' => false, 'rule' => 'notEmpty'), 'body' => 'notEmpty'); + /** * beforeSaveReturn property * @@ -236,6 +262,7 @@ class Article extends CakeTestModel { * @access public */ var $beforeSaveReturn = true; + /** * beforeSave method * @@ -245,6 +272,7 @@ class Article extends CakeTestModel { function beforeSave() { return $this->beforeSaveReturn; } + /** * titleDuplicate method * @@ -259,6 +287,7 @@ class Article extends CakeTestModel { return true; } } + /** * NumericArticle class * @@ -266,6 +295,7 @@ class Article extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class NumericArticle extends CakeTestModel { + /** * name property * @@ -273,6 +303,7 @@ class NumericArticle extends CakeTestModel { * @access public */ var $name = 'NumericArticle'; + /** * useTable property * @@ -281,6 +312,7 @@ class NumericArticle extends CakeTestModel { */ var $useTable = 'numeric_articles'; } + /** * Article10 class * @@ -288,6 +320,7 @@ class NumericArticle extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Article10 extends CakeTestModel { + /** * name property * @@ -295,6 +328,7 @@ class Article10 extends CakeTestModel { * @access public */ var $name = 'Article10'; + /** * useTable property * @@ -302,6 +336,7 @@ class Article10 extends CakeTestModel { * @access public */ var $useTable = 'articles'; + /** * hasMany property * @@ -310,6 +345,7 @@ class Article10 extends CakeTestModel { */ var $hasMany = array('Comment' => array('dependent' => true, 'exclusive' => true)); } + /** * ArticleFeatured class * @@ -317,6 +353,7 @@ class Article10 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ArticleFeatured extends CakeTestModel { + /** * name property * @@ -324,6 +361,7 @@ class ArticleFeatured extends CakeTestModel { * @access public */ var $name = 'ArticleFeatured'; + /** * belongsTo property * @@ -331,6 +369,7 @@ class ArticleFeatured extends CakeTestModel { * @access public */ var $belongsTo = array('User', 'Category'); + /** * hasOne property * @@ -338,6 +377,7 @@ class ArticleFeatured extends CakeTestModel { * @access public */ var $hasOne = array('Featured'); + /** * hasMany property * @@ -345,6 +385,7 @@ class ArticleFeatured extends CakeTestModel { * @access public */ var $hasMany = array('Comment' => array('className' => 'Comment', 'dependent' => true)); + /** * hasAndBelongsToMany property * @@ -352,6 +393,7 @@ class ArticleFeatured extends CakeTestModel { * @access public */ var $hasAndBelongsToMany = array('Tag'); + /** * validate property * @@ -360,6 +402,7 @@ class ArticleFeatured extends CakeTestModel { */ var $validate = array('user_id' => 'numeric', 'title' => 'notEmpty', 'body' => 'notEmpty'); } + /** * Featured class * @@ -367,6 +410,7 @@ class ArticleFeatured extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Featured extends CakeTestModel { + /** * name property * @@ -374,6 +418,7 @@ class Featured extends CakeTestModel { * @access public */ var $name = 'Featured'; + /** * belongsTo property * @@ -382,6 +427,7 @@ class Featured extends CakeTestModel { */ var $belongsTo = array('ArticleFeatured', 'Category'); } + /** * Tag class * @@ -389,6 +435,7 @@ class Featured extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Tag extends CakeTestModel { + /** * name property * @@ -397,6 +444,7 @@ class Tag extends CakeTestModel { */ var $name = 'Tag'; } + /** * ArticlesTag class * @@ -404,6 +452,7 @@ class Tag extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ArticlesTag extends CakeTestModel { + /** * name property * @@ -412,6 +461,7 @@ class ArticlesTag extends CakeTestModel { */ var $name = 'ArticlesTag'; } + /** * ArticleFeaturedsTag class * @@ -419,6 +469,7 @@ class ArticlesTag extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ArticleFeaturedsTag extends CakeTestModel { + /** * name property * @@ -427,6 +478,7 @@ class ArticleFeaturedsTag extends CakeTestModel { */ var $name = 'ArticleFeaturedsTag'; } + /** * Comment class * @@ -434,6 +486,7 @@ class ArticleFeaturedsTag extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Comment extends CakeTestModel { + /** * name property * @@ -441,6 +494,7 @@ class Comment extends CakeTestModel { * @access public */ var $name = 'Comment'; + /** * belongsTo property * @@ -448,6 +502,7 @@ class Comment extends CakeTestModel { * @access public */ var $belongsTo = array('Article', 'User'); + /** * hasOne property * @@ -456,6 +511,7 @@ class Comment extends CakeTestModel { */ var $hasOne = array('Attachment' => array('dependent' => true)); } + /** * Modified Comment Class has afterFind Callback * @@ -463,6 +519,7 @@ class Comment extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ModifiedComment extends CakeTestModel { + /** * name property * @@ -470,6 +527,7 @@ class ModifiedComment extends CakeTestModel { * @access public */ var $name = 'Comment'; + /** * useTable property * @@ -477,6 +535,7 @@ class ModifiedComment extends CakeTestModel { * @access public */ var $useTable = 'comments'; + /** * belongsTo property * @@ -484,6 +543,7 @@ class ModifiedComment extends CakeTestModel { * @access public */ var $belongsTo = array('Article'); + /** * afterFind callback * @@ -504,6 +564,7 @@ class ModifiedComment extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class MergeVarPluginAppModel extends AppModel { + /** * actsAs parameter * @@ -513,6 +574,7 @@ class MergeVarPluginAppModel extends AppModel { 'Containable' ); } + /** * MergeVarPluginPost class * @@ -520,6 +582,7 @@ class MergeVarPluginAppModel extends AppModel { * @subpackage cake.tests.cases.libs.model */ class MergeVarPluginPost extends MergeVarPluginAppModel { + /** * actsAs parameter * @@ -528,6 +591,7 @@ class MergeVarPluginPost extends MergeVarPluginAppModel { var $actsAs = array( 'Tree' ); + /** * useTable parameter * @@ -535,6 +599,7 @@ class MergeVarPluginPost extends MergeVarPluginAppModel { */ var $useTable = 'posts'; } + /** * MergeVarPluginComment class * @@ -542,6 +607,7 @@ class MergeVarPluginPost extends MergeVarPluginAppModel { * @subpackage cake.tests.cases.libs.model */ class MergeVarPluginComment extends MergeVarPluginAppModel { + /** * actsAs parameter * @@ -550,6 +616,7 @@ class MergeVarPluginComment extends MergeVarPluginAppModel { var $actsAs = array( 'Containable' => array('some_settings') ); + /** * useTable parameter * @@ -566,6 +633,7 @@ class MergeVarPluginComment extends MergeVarPluginAppModel { * @subpackage cake.tests.cases.libs.model */ class Attachment extends CakeTestModel { + /** * name property * @@ -574,6 +642,7 @@ class Attachment extends CakeTestModel { */ var $name = 'Attachment'; } + /** * Category class * @@ -581,6 +650,7 @@ class Attachment extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Category extends CakeTestModel { + /** * name property * @@ -589,6 +659,7 @@ class Category extends CakeTestModel { */ var $name = 'Category'; } + /** * CategoryThread class * @@ -596,6 +667,7 @@ class Category extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class CategoryThread extends CakeTestModel { + /** * name property * @@ -603,6 +675,7 @@ class CategoryThread extends CakeTestModel { * @access public */ var $name = 'CategoryThread'; + /** * belongsTo property * @@ -611,6 +684,7 @@ class CategoryThread extends CakeTestModel { */ var $belongsTo = array('ParentCategory' => array('className' => 'CategoryThread', 'foreignKey' => 'parent_id')); } + /** * Apple class * @@ -618,6 +692,7 @@ class CategoryThread extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Apple extends CakeTestModel { + /** * name property * @@ -625,6 +700,7 @@ class Apple extends CakeTestModel { * @access public */ var $name = 'Apple'; + /** * validate property * @@ -632,6 +708,7 @@ class Apple extends CakeTestModel { * @access public */ var $validate = array('name' => 'notEmpty'); + /** * hasOne property * @@ -639,6 +716,7 @@ class Apple extends CakeTestModel { * @access public */ var $hasOne = array('Sample'); + /** * hasMany property * @@ -646,6 +724,7 @@ class Apple extends CakeTestModel { * @access public */ var $hasMany = array('Child' => array('className' => 'Apple', 'dependent' => true)); + /** * belongsTo property * @@ -654,6 +733,7 @@ class Apple extends CakeTestModel { */ var $belongsTo = array('Parent' => array('className' => 'Apple', 'foreignKey' => 'apple_id')); } + /** * Sample class * @@ -661,6 +741,7 @@ class Apple extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Sample extends CakeTestModel { + /** * name property * @@ -668,6 +749,7 @@ class Sample extends CakeTestModel { * @access public */ var $name = 'Sample'; + /** * belongsTo property * @@ -676,6 +758,7 @@ class Sample extends CakeTestModel { */ var $belongsTo = 'Apple'; } + /** * AnotherArticle class * @@ -683,6 +766,7 @@ class Sample extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class AnotherArticle extends CakeTestModel { + /** * name property * @@ -690,6 +774,7 @@ class AnotherArticle extends CakeTestModel { * @access public */ var $name = 'AnotherArticle'; + /** * hasMany property * @@ -698,6 +783,7 @@ class AnotherArticle extends CakeTestModel { */ var $hasMany = 'Home'; } + /** * Advertisement class * @@ -705,6 +791,7 @@ class AnotherArticle extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Advertisement extends CakeTestModel { + /** * name property * @@ -712,6 +799,7 @@ class Advertisement extends CakeTestModel { * @access public */ var $name = 'Advertisement'; + /** * hasMany property * @@ -720,6 +808,7 @@ class Advertisement extends CakeTestModel { */ var $hasMany = 'Home'; } + /** * Home class * @@ -727,6 +816,7 @@ class Advertisement extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Home extends CakeTestModel { + /** * name property * @@ -734,6 +824,7 @@ class Home extends CakeTestModel { * @access public */ var $name = 'Home'; + /** * belongsTo property * @@ -742,6 +833,7 @@ class Home extends CakeTestModel { */ var $belongsTo = array('AnotherArticle', 'Advertisement'); } + /** * Post class * @@ -749,6 +841,7 @@ class Home extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Post extends CakeTestModel { + /** * name property * @@ -756,6 +849,7 @@ class Post extends CakeTestModel { * @access public */ var $name = 'Post'; + /** * belongsTo property * @@ -764,6 +858,7 @@ class Post extends CakeTestModel { */ var $belongsTo = array('Author'); } + /** * Author class * @@ -771,6 +866,7 @@ class Post extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Author extends CakeTestModel { + /** * name property * @@ -778,6 +874,7 @@ class Author extends CakeTestModel { * @access public */ var $name = 'Author'; + /** * hasMany property * @@ -785,6 +882,7 @@ class Author extends CakeTestModel { * @access public */ var $hasMany = array('Post'); + /** * afterFind method * @@ -797,6 +895,7 @@ class Author extends CakeTestModel { return $results; } } + /** * ModifiedAuthor class * @@ -804,6 +903,7 @@ class Author extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ModifiedAuthor extends Author { + /** * name property * @@ -811,6 +911,7 @@ class ModifiedAuthor extends Author { * @access public */ var $name = 'Author'; + /** * afterFind method * @@ -825,6 +926,7 @@ class ModifiedAuthor extends Author { return $results; } } + /** * Project class * @@ -832,6 +934,7 @@ class ModifiedAuthor extends Author { * @subpackage cake.tests.cases.libs.model */ class Project extends CakeTestModel { + /** * name property * @@ -839,6 +942,7 @@ class Project extends CakeTestModel { * @access public */ var $name = 'Project'; + /** * hasMany property * @@ -847,6 +951,7 @@ class Project extends CakeTestModel { */ var $hasMany = array('Thread'); } + /** * Thread class * @@ -854,6 +959,7 @@ class Project extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Thread extends CakeTestModel { + /** * name property * @@ -861,6 +967,7 @@ class Thread extends CakeTestModel { * @access public */ var $name = 'Thread'; + /** * hasMany property * @@ -868,6 +975,7 @@ class Thread extends CakeTestModel { * @access public */ var $belongsTo = array('Project'); + /** * hasMany property * @@ -876,6 +984,7 @@ class Thread extends CakeTestModel { */ var $hasMany = array('Message'); } + /** * Message class * @@ -883,6 +992,7 @@ class Thread extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Message extends CakeTestModel { + /** * name property * @@ -890,6 +1000,7 @@ class Message extends CakeTestModel { * @access public */ var $name = 'Message'; + /** * hasOne property * @@ -898,6 +1009,7 @@ class Message extends CakeTestModel { */ var $hasOne = array('Bid'); } + /** * Bid class * @@ -905,6 +1017,7 @@ class Message extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Bid extends CakeTestModel { + /** * name property * @@ -912,6 +1025,7 @@ class Bid extends CakeTestModel { * @access public */ var $name = 'Bid'; + /** * belongsTo property * @@ -920,6 +1034,7 @@ class Bid extends CakeTestModel { */ var $belongsTo = array('Message'); } + /** * NodeAfterFind class * @@ -927,6 +1042,7 @@ class Bid extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class NodeAfterFind extends CakeTestModel { + /** * name property * @@ -934,6 +1050,7 @@ class NodeAfterFind extends CakeTestModel { * @access public */ var $name = 'NodeAfterFind'; + /** * validate property * @@ -941,6 +1058,7 @@ class NodeAfterFind extends CakeTestModel { * @access public */ var $validate = array('name' => 'notEmpty'); + /** * useTable property * @@ -948,6 +1066,7 @@ class NodeAfterFind extends CakeTestModel { * @access public */ var $useTable = 'apples'; + /** * hasOne property * @@ -955,6 +1074,7 @@ class NodeAfterFind extends CakeTestModel { * @access public */ var $hasOne = array('Sample' => array('className' => 'NodeAfterFindSample')); + /** * hasMany property * @@ -962,6 +1082,7 @@ class NodeAfterFind extends CakeTestModel { * @access public */ var $hasMany = array('Child' => array('className' => 'NodeAfterFind', 'dependent' => true)); + /** * belongsTo property * @@ -969,6 +1090,7 @@ class NodeAfterFind extends CakeTestModel { * @access public */ var $belongsTo = array('Parent' => array('className' => 'NodeAfterFind', 'foreignKey' => 'apple_id')); + /** * afterFind method * @@ -980,6 +1102,7 @@ class NodeAfterFind extends CakeTestModel { return $results; } } + /** * NodeAfterFindSample class * @@ -987,6 +1110,7 @@ class NodeAfterFind extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class NodeAfterFindSample extends CakeTestModel { + /** * name property * @@ -994,6 +1118,7 @@ class NodeAfterFindSample extends CakeTestModel { * @access public */ var $name = 'NodeAfterFindSample'; + /** * useTable property * @@ -1001,6 +1126,7 @@ class NodeAfterFindSample extends CakeTestModel { * @access public */ var $useTable = 'samples'; + /** * belongsTo property * @@ -1009,6 +1135,7 @@ class NodeAfterFindSample extends CakeTestModel { */ var $belongsTo = 'NodeAfterFind'; } + /** * NodeNoAfterFind class * @@ -1016,6 +1143,7 @@ class NodeAfterFindSample extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class NodeNoAfterFind extends CakeTestModel { + /** * name property * @@ -1023,6 +1151,7 @@ class NodeNoAfterFind extends CakeTestModel { * @access public */ var $name = 'NodeAfterFind'; + /** * validate property * @@ -1030,6 +1159,7 @@ class NodeNoAfterFind extends CakeTestModel { * @access public */ var $validate = array('name' => 'notEmpty'); + /** * useTable property * @@ -1037,6 +1167,7 @@ class NodeNoAfterFind extends CakeTestModel { * @access public */ var $useTable = 'apples'; + /** * hasOne property * @@ -1044,6 +1175,7 @@ class NodeNoAfterFind extends CakeTestModel { * @access public */ var $hasOne = array('Sample' => array('className' => 'NodeAfterFindSample')); + /** * hasMany property * @@ -1051,6 +1183,7 @@ class NodeNoAfterFind extends CakeTestModel { * @access public */ var $hasMany = array('Child' => array('className' => 'NodeAfterFind', 'dependent' => true)); + /** * belongsTo property * @@ -1059,6 +1192,7 @@ class NodeNoAfterFind extends CakeTestModel { */ var $belongsTo = array('Parent' => array('className' => 'NodeAfterFind', 'foreignKey' => 'apple_id')); } + /** * Node class * @@ -1066,6 +1200,7 @@ class NodeNoAfterFind extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Node extends CakeTestModel{ + /** * name property * @@ -1073,6 +1208,7 @@ class Node extends CakeTestModel{ * @access public */ var $name = 'Node'; + /** * hasAndBelongsToMany property * @@ -1089,6 +1225,7 @@ class Node extends CakeTestModel{ ) ); } + /** * Dependency class * @@ -1096,6 +1233,7 @@ class Node extends CakeTestModel{ * @subpackage cake.tests.cases.libs.model */ class Dependency extends CakeTestModel { + /** * name property * @@ -1104,6 +1242,7 @@ class Dependency extends CakeTestModel { */ var $name = 'Dependency'; } + /** * ModelA class * @@ -1111,6 +1250,7 @@ class Dependency extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ModelA extends CakeTestModel { + /** * name property * @@ -1118,6 +1258,7 @@ class ModelA extends CakeTestModel { * @access public */ var $name = 'ModelA'; + /** * useTable property * @@ -1125,6 +1266,7 @@ class ModelA extends CakeTestModel { * @access public */ var $useTable = 'apples'; + /** * hasMany property * @@ -1133,6 +1275,7 @@ class ModelA extends CakeTestModel { */ var $hasMany = array('ModelB', 'ModelC'); } + /** * ModelB class * @@ -1140,6 +1283,7 @@ class ModelA extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ModelB extends CakeTestModel { + /** * name property * @@ -1147,6 +1291,7 @@ class ModelB extends CakeTestModel { * @access public */ var $name = 'ModelB'; + /** * useTable property * @@ -1154,6 +1299,7 @@ class ModelB extends CakeTestModel { * @access public */ var $useTable = 'messages'; + /** * hasMany property * @@ -1162,6 +1308,7 @@ class ModelB extends CakeTestModel { */ var $hasMany = array('ModelD'); } + /** * ModelC class * @@ -1169,6 +1316,7 @@ class ModelB extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ModelC extends CakeTestModel { + /** * name property * @@ -1176,6 +1324,7 @@ class ModelC extends CakeTestModel { * @access public */ var $name = 'ModelC'; + /** * useTable property * @@ -1183,6 +1332,7 @@ class ModelC extends CakeTestModel { * @access public */ var $useTable = 'bids'; + /** * hasMany property * @@ -1191,6 +1341,7 @@ class ModelC extends CakeTestModel { */ var $hasMany = array('ModelD'); } + /** * ModelD class * @@ -1198,6 +1349,7 @@ class ModelC extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ModelD extends CakeTestModel { + /** * name property * @@ -1205,6 +1357,7 @@ class ModelD extends CakeTestModel { * @access public */ var $name = 'ModelD'; + /** * useTable property * @@ -1213,6 +1366,7 @@ class ModelD extends CakeTestModel { */ var $useTable = 'threads'; } + /** * Something class * @@ -1220,6 +1374,7 @@ class ModelD extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Something extends CakeTestModel { + /** * name property * @@ -1227,6 +1382,7 @@ class Something extends CakeTestModel { * @access public */ var $name = 'Something'; + /** * hasAndBelongsToMany property * @@ -1235,6 +1391,7 @@ class Something extends CakeTestModel { */ var $hasAndBelongsToMany = array('SomethingElse' => array('with' => array('JoinThing' => array('doomed')))); } + /** * SomethingElse class * @@ -1242,6 +1399,7 @@ class Something extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class SomethingElse extends CakeTestModel { + /** * name property * @@ -1249,6 +1407,7 @@ class SomethingElse extends CakeTestModel { * @access public */ var $name = 'SomethingElse'; + /** * hasAndBelongsToMany property * @@ -1257,6 +1416,7 @@ class SomethingElse extends CakeTestModel { */ var $hasAndBelongsToMany = array('Something' => array('with' => 'JoinThing')); } + /** * JoinThing class * @@ -1264,6 +1424,7 @@ class SomethingElse extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class JoinThing extends CakeTestModel { + /** * name property * @@ -1271,6 +1432,7 @@ class JoinThing extends CakeTestModel { * @access public */ var $name = 'JoinThing'; + /** * belongsTo property * @@ -1279,6 +1441,7 @@ class JoinThing extends CakeTestModel { */ var $belongsTo = array('Something', 'SomethingElse'); } + /** * Portfolio class * @@ -1286,6 +1449,7 @@ class JoinThing extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Portfolio extends CakeTestModel { + /** * name property * @@ -1293,6 +1457,7 @@ class Portfolio extends CakeTestModel { * @access public */ var $name = 'Portfolio'; + /** * hasAndBelongsToMany property * @@ -1301,6 +1466,7 @@ class Portfolio extends CakeTestModel { */ var $hasAndBelongsToMany = array('Item'); } + /** * Item class * @@ -1308,6 +1474,7 @@ class Portfolio extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Item extends CakeTestModel { + /** * name property * @@ -1315,6 +1482,7 @@ class Item extends CakeTestModel { * @access public */ var $name = 'Item'; + /** * belongsTo property * @@ -1322,6 +1490,7 @@ class Item extends CakeTestModel { * @access public */ var $belongsTo = array('Syfile' => array('counterCache' => true)); + /** * hasAndBelongsToMany property * @@ -1330,6 +1499,7 @@ class Item extends CakeTestModel { */ var $hasAndBelongsToMany = array('Portfolio' => array('unique' => false)); } + /** * ItemsPortfolio class * @@ -1337,6 +1507,7 @@ class Item extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ItemsPortfolio extends CakeTestModel { + /** * name property * @@ -1345,6 +1516,7 @@ class ItemsPortfolio extends CakeTestModel { */ var $name = 'ItemsPortfolio'; } + /** * Syfile class * @@ -1352,6 +1524,7 @@ class ItemsPortfolio extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Syfile extends CakeTestModel { + /** * name property * @@ -1359,6 +1532,7 @@ class Syfile extends CakeTestModel { * @access public */ var $name = 'Syfile'; + /** * belongsTo property * @@ -1367,6 +1541,7 @@ class Syfile extends CakeTestModel { */ var $belongsTo = array('Image'); } + /** * Image class * @@ -1374,6 +1549,7 @@ class Syfile extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Image extends CakeTestModel { + /** * name property * @@ -1382,6 +1558,7 @@ class Image extends CakeTestModel { */ var $name = 'Image'; } + /** * DeviceType class * @@ -1389,6 +1566,7 @@ class Image extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class DeviceType extends CakeTestModel { + /** * name property * @@ -1396,6 +1574,7 @@ class DeviceType extends CakeTestModel { * @access public */ var $name = 'DeviceType'; + /** * order property * @@ -1403,6 +1582,7 @@ class DeviceType extends CakeTestModel { * @access public */ var $order = array('DeviceType.order' => 'ASC'); + /** * belongsTo property * @@ -1414,6 +1594,7 @@ class DeviceType extends CakeTestModel { 'Image' => array('className' => 'Document'), 'Extra1' => array('className' => 'Document'), 'Extra2' => array('className' => 'Document')); + /** * hasMany property * @@ -1422,6 +1603,7 @@ class DeviceType extends CakeTestModel { */ var $hasMany = array('Device' => array('order' => array('Device.id' => 'ASC'))); } + /** * DeviceTypeCategory class * @@ -1429,6 +1611,7 @@ class DeviceType extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class DeviceTypeCategory extends CakeTestModel { + /** * name property * @@ -1437,6 +1620,7 @@ class DeviceTypeCategory extends CakeTestModel { */ var $name = 'DeviceTypeCategory'; } + /** * FeatureSet class * @@ -1444,6 +1628,7 @@ class DeviceTypeCategory extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class FeatureSet extends CakeTestModel { + /** * name property * @@ -1452,6 +1637,7 @@ class FeatureSet extends CakeTestModel { */ var $name = 'FeatureSet'; } + /** * ExteriorTypeCategory class * @@ -1459,6 +1645,7 @@ class FeatureSet extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ExteriorTypeCategory extends CakeTestModel { + /** * name property * @@ -1466,6 +1653,7 @@ class ExteriorTypeCategory extends CakeTestModel { * @access public */ var $name = 'ExteriorTypeCategory'; + /** * belongsTo property * @@ -1474,6 +1662,7 @@ class ExteriorTypeCategory extends CakeTestModel { */ var $belongsTo = array('Image' => array('className' => 'Device')); } + /** * Document class * @@ -1481,6 +1670,7 @@ class ExteriorTypeCategory extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Document extends CakeTestModel { + /** * name property * @@ -1488,6 +1678,7 @@ class Document extends CakeTestModel { * @access public */ var $name = 'Document'; + /** * belongsTo property * @@ -1496,6 +1687,7 @@ class Document extends CakeTestModel { */ var $belongsTo = array('DocumentDirectory'); } + /** * Device class * @@ -1503,6 +1695,7 @@ class Document extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Device extends CakeTestModel { + /** * name property * @@ -1511,6 +1704,7 @@ class Device extends CakeTestModel { */ var $name = 'Device'; } + /** * DocumentDirectory class * @@ -1518,6 +1712,7 @@ class Device extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class DocumentDirectory extends CakeTestModel { + /** * name property * @@ -1526,6 +1721,7 @@ class DocumentDirectory extends CakeTestModel { */ var $name = 'DocumentDirectory'; } + /** * PrimaryModel class * @@ -1533,6 +1729,7 @@ class DocumentDirectory extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class PrimaryModel extends CakeTestModel { + /** * name property * @@ -1541,6 +1738,7 @@ class PrimaryModel extends CakeTestModel { */ var $name = 'PrimaryModel'; } + /** * SecondaryModel class * @@ -1548,6 +1746,7 @@ class PrimaryModel extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class SecondaryModel extends CakeTestModel { + /** * name property * @@ -1556,6 +1755,7 @@ class SecondaryModel extends CakeTestModel { */ var $name = 'SecondaryModel'; } + /** * JoinA class * @@ -1563,6 +1763,7 @@ class SecondaryModel extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class JoinA extends CakeTestModel { + /** * name property * @@ -1570,6 +1771,7 @@ class JoinA extends CakeTestModel { * @access public */ var $name = 'JoinA'; + /** * hasAndBelongsToMany property * @@ -1578,6 +1780,7 @@ class JoinA extends CakeTestModel { */ var $hasAndBelongsToMany = array('JoinB', 'JoinC'); } + /** * JoinB class * @@ -1585,6 +1788,7 @@ class JoinA extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class JoinB extends CakeTestModel { + /** * name property * @@ -1592,6 +1796,7 @@ class JoinB extends CakeTestModel { * @access public */ var $name = 'JoinB'; + /** * hasAndBelongsToMany property * @@ -1600,6 +1805,7 @@ class JoinB extends CakeTestModel { */ var $hasAndBelongsToMany = array('JoinA'); } + /** * JoinC class * @@ -1607,6 +1813,7 @@ class JoinB extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class JoinC extends CakeTestModel { + /** * name property * @@ -1614,6 +1821,7 @@ class JoinC extends CakeTestModel { * @access public */ var $name = 'JoinC'; + /** * hasAndBelongsToMany property * @@ -1622,6 +1830,7 @@ class JoinC extends CakeTestModel { */ var $hasAndBelongsToMany = array('JoinA'); } + /** * ThePaper class * @@ -1629,6 +1838,7 @@ class JoinC extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ThePaper extends CakeTestModel { + /** * name property * @@ -1636,6 +1846,7 @@ class ThePaper extends CakeTestModel { * @access public */ var $name = 'ThePaper'; + /** * useTable property * @@ -1643,6 +1854,7 @@ class ThePaper extends CakeTestModel { * @access public */ var $useTable = 'apples'; + /** * hasOne property * @@ -1650,6 +1862,7 @@ class ThePaper extends CakeTestModel { * @access public */ var $hasOne = array('Itself' => array('className' => 'ThePaper', 'foreignKey' => 'apple_id')); + /** * hasAndBelongsToMany property * @@ -1658,6 +1871,7 @@ class ThePaper extends CakeTestModel { */ var $hasAndBelongsToMany = array('Monkey' => array('joinTable' => 'the_paper_monkies', 'order' => 'id')); } + /** * Monkey class * @@ -1665,6 +1879,7 @@ class ThePaper extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Monkey extends CakeTestModel { + /** * name property * @@ -1672,6 +1887,7 @@ class Monkey extends CakeTestModel { * @access public */ var $name = 'Monkey'; + /** * useTable property * @@ -1680,6 +1896,7 @@ class Monkey extends CakeTestModel { */ var $useTable = 'devices'; } + /** * AssociationTest1 class * @@ -1687,6 +1904,7 @@ class Monkey extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class AssociationTest1 extends CakeTestModel { + /** * useTable property * @@ -1694,6 +1912,7 @@ class AssociationTest1 extends CakeTestModel { * @access public */ var $useTable = 'join_as'; + /** * name property * @@ -1701,6 +1920,7 @@ class AssociationTest1 extends CakeTestModel { * @access public */ var $name = 'AssociationTest1'; + /** * hasAndBelongsToMany property * @@ -1711,6 +1931,7 @@ class AssociationTest1 extends CakeTestModel { 'unique' => false, 'joinTable' => 'join_as_join_bs', 'foreignKey' => false )); } + /** * AssociationTest2 class * @@ -1718,6 +1939,7 @@ class AssociationTest1 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class AssociationTest2 extends CakeTestModel { + /** * useTable property * @@ -1725,6 +1947,7 @@ class AssociationTest2 extends CakeTestModel { * @access public */ var $useTable = 'join_bs'; + /** * name property * @@ -1732,6 +1955,7 @@ class AssociationTest2 extends CakeTestModel { * @access public */ var $name = 'AssociationTest2'; + /** * hasAndBelongsToMany property * @@ -1742,6 +1966,7 @@ class AssociationTest2 extends CakeTestModel { 'unique' => false, 'joinTable' => 'join_as_join_bs' )); } + /** * Callback class * @@ -1751,6 +1976,7 @@ class AssociationTest2 extends CakeTestModel { class Callback extends CakeTestModel { // } + /** * Uuid class * @@ -1758,6 +1984,7 @@ class Callback extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Uuid extends CakeTestModel { + /** * name property * @@ -1766,6 +1993,7 @@ class Uuid extends CakeTestModel { */ var $name = 'Uuid'; } + /** * DataTest class * @@ -1773,6 +2001,7 @@ class Uuid extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class DataTest extends CakeTestModel { + /** * name property * @@ -1781,6 +2010,7 @@ class DataTest extends CakeTestModel { */ var $name = 'DataTest'; } + /** * TheVoid class * @@ -1788,6 +2018,7 @@ class DataTest extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TheVoid extends CakeTestModel { + /** * name property * @@ -1795,6 +2026,7 @@ class TheVoid extends CakeTestModel { * @access public */ var $name = 'TheVoid'; + /** * useTable property * @@ -1803,6 +2035,7 @@ class TheVoid extends CakeTestModel { */ var $useTable = false; } + /** * ValidationTest1 class * @@ -1810,6 +2043,7 @@ class TheVoid extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ValidationTest1 extends CakeTestModel { + /** * name property * @@ -1817,6 +2051,7 @@ class ValidationTest1 extends CakeTestModel { * @access public */ var $name = 'ValidationTest1'; + /** * useTable property * @@ -1824,6 +2059,7 @@ class ValidationTest1 extends CakeTestModel { * @access public */ var $useTable = false; + /** * schema property * @@ -1831,6 +2067,7 @@ class ValidationTest1 extends CakeTestModel { * @access protected */ var $_schema = array(); + /** * validate property * @@ -1846,6 +2083,7 @@ class ValidationTest1 extends CakeTestModel { '/^[0-9A-Za-z \\.]{1,}$/s' ) ); + /** * customValidationMethod method * @@ -1856,6 +2094,7 @@ class ValidationTest1 extends CakeTestModel { function customValidationMethod($data) { return $data === 1; } + /** * Custom validator with parameters + default values * @@ -1867,6 +2106,7 @@ class ValidationTest1 extends CakeTestModel { unset($this->validatorParams['this']); return true; } + /** * Custom validator with messaage * @@ -1877,6 +2117,7 @@ class ValidationTest1 extends CakeTestModel { return 'This field will *never* validate! Muhahaha!'; } } + /** * ValidationTest2 class * @@ -1884,6 +2125,7 @@ class ValidationTest1 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ValidationTest2 extends CakeTestModel { + /** * name property * @@ -1891,6 +2133,7 @@ class ValidationTest2 extends CakeTestModel { * @access public */ var $name = 'ValidationTest2'; + /** * useTable property * @@ -1898,6 +2141,7 @@ class ValidationTest2 extends CakeTestModel { * @access public */ var $useTable = false; + /** * validate property * @@ -1913,6 +2157,7 @@ class ValidationTest2 extends CakeTestModel { '/^[0-9A-Za-z \\.]{1,}$/s' ) ); + /** * customValidationMethod method * @@ -1923,6 +2168,7 @@ class ValidationTest2 extends CakeTestModel { function customValidationMethod($data) { return $data === 1; } + /** * schema method * @@ -1933,6 +2179,7 @@ class ValidationTest2 extends CakeTestModel { return array(); } } + /** * Person class * @@ -1940,6 +2187,7 @@ class ValidationTest2 extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Person extends CakeTestModel { + /** * name property * @@ -1947,6 +2195,7 @@ class Person extends CakeTestModel { * @access public */ var $name = 'Person'; + /** * belongsTo property * @@ -1961,6 +2210,7 @@ class Person extends CakeTestModel { 'className' => 'Person', 'foreignKey' => 'father_id')); } + /** * UnderscoreField class * @@ -1968,6 +2218,7 @@ class Person extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class UnderscoreField extends CakeTestModel { + /** * name property * @@ -1976,6 +2227,7 @@ class UnderscoreField extends CakeTestModel { */ var $name = 'UnderscoreField'; } + /** * Product class * @@ -1983,6 +2235,7 @@ class UnderscoreField extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Product extends CakeTestModel { + /** * name property * @@ -1991,6 +2244,7 @@ class Product extends CakeTestModel { */ var $name = 'Product'; } + /** * Story class * @@ -1998,6 +2252,7 @@ class Product extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Story extends CakeTestModel { + /** * name property * @@ -2005,6 +2260,7 @@ class Story extends CakeTestModel { * @access public */ var $name = 'Story'; + /** * primaryKey property * @@ -2012,6 +2268,7 @@ class Story extends CakeTestModel { * @access public */ var $primaryKey = 'story'; + /** * hasAndBelongsToMany property * @@ -2019,6 +2276,7 @@ class Story extends CakeTestModel { * @access public */ var $hasAndBelongsToMany = array('Tag' => array('foreignKey' => 'story')); + /** * validate property * @@ -2027,6 +2285,7 @@ class Story extends CakeTestModel { */ var $validate = array('title' => 'notEmpty'); } + /** * Cd class * @@ -2034,6 +2293,7 @@ class Story extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Cd extends CakeTestModel { + /** * name property * @@ -2041,6 +2301,7 @@ class Cd extends CakeTestModel { * @access public */ var $name = 'Cd'; + /** * hasOne property * @@ -2049,6 +2310,7 @@ class Cd extends CakeTestModel { */ var $hasOne = array('OverallFavorite' => array('foreignKey' => 'model_id', 'dependent' => true, 'conditions' => array('model_type' => 'Cd'))); } + /** * Book class * @@ -2056,6 +2318,7 @@ class Cd extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Book extends CakeTestModel { + /** * name property * @@ -2063,6 +2326,7 @@ class Book extends CakeTestModel { * @access public */ var $name = 'Book'; + /** * hasOne property * @@ -2071,6 +2335,7 @@ class Book extends CakeTestModel { */ var $hasOne = array('OverallFavorite' => array('foreignKey' => 'model_id', 'dependent' => true, 'conditions' => array('model_type' => 'Book'))); } + /** * OverallFavorite class * @@ -2078,6 +2343,7 @@ class Book extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class OverallFavorite extends CakeTestModel { + /** * name property * @@ -2086,6 +2352,7 @@ class OverallFavorite extends CakeTestModel { */ var $name = 'OverallFavorite'; } + /** * MyUser class * @@ -2093,6 +2360,7 @@ class OverallFavorite extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class MyUser extends CakeTestModel { + /** * name property * @@ -2100,6 +2368,7 @@ class MyUser extends CakeTestModel { * @access public */ var $name = 'MyUser'; + /** * undocumented variable * @@ -2108,6 +2377,7 @@ class MyUser extends CakeTestModel { */ var $hasAndBelongsToMany = array('MyCategory'); } + /** * MyCategory class * @@ -2115,6 +2385,7 @@ class MyUser extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class MyCategory extends CakeTestModel { + /** * name property * @@ -2122,6 +2393,7 @@ class MyCategory extends CakeTestModel { * @access public */ var $name = 'MyCategory'; + /** * undocumented variable * @@ -2130,6 +2402,7 @@ class MyCategory extends CakeTestModel { */ var $hasAndBelongsToMany = array('MyProduct', 'MyUser'); } + /** * MyProduct class * @@ -2137,6 +2410,7 @@ class MyCategory extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class MyProduct extends CakeTestModel { + /** * name property * @@ -2144,6 +2418,7 @@ class MyProduct extends CakeTestModel { * @access public */ var $name = 'MyProduct'; + /** * undocumented variable * @@ -2152,6 +2427,7 @@ class MyProduct extends CakeTestModel { */ var $hasAndBelongsToMany = array('MyCategory'); } + /** * MyCategoriesMyUser class * @@ -2159,6 +2435,7 @@ class MyProduct extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class MyCategoriesMyUser extends CakeTestModel { + /** * name property * @@ -2167,6 +2444,7 @@ class MyCategoriesMyUser extends CakeTestModel { */ var $name = 'MyCategoriesMyUser'; } + /** * MyCategoriesMyProduct class * @@ -2174,6 +2452,7 @@ class MyCategoriesMyUser extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class MyCategoriesMyProduct extends CakeTestModel { + /** * name property * @@ -2182,6 +2461,7 @@ class MyCategoriesMyProduct extends CakeTestModel { */ var $name = 'MyCategoriesMyProduct'; } + /** * I18nModel class * @@ -2189,6 +2469,7 @@ class MyCategoriesMyProduct extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class I18nModel extends CakeTestModel { + /** * name property * @@ -2196,6 +2477,7 @@ class I18nModel extends CakeTestModel { * @access public */ var $name = 'I18nModel'; + /** * useTable property * @@ -2203,6 +2485,7 @@ class I18nModel extends CakeTestModel { * @access public */ var $useTable = 'i18n'; + /** * displayField property * @@ -2211,6 +2494,7 @@ class I18nModel extends CakeTestModel { */ var $displayField = 'field'; } + /** * NumberTree class * @@ -2218,6 +2502,7 @@ class I18nModel extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class NumberTree extends CakeTestModel { + /** * name property * @@ -2225,6 +2510,7 @@ class NumberTree extends CakeTestModel { * @access public */ var $name = 'NumberTree'; + /** * actsAs property * @@ -2232,6 +2518,7 @@ class NumberTree extends CakeTestModel { * @access public */ var $actsAs = array('Tree'); + /** * initialize method * @@ -2274,6 +2561,7 @@ class NumberTree extends CakeTestModel { } } } + /** * NumberTreeTwo class * @@ -2281,6 +2569,7 @@ class NumberTree extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class NumberTreeTwo extends NumberTree { + /** * name property * @@ -2288,6 +2577,7 @@ class NumberTreeTwo extends NumberTree { * @access public */ var $name = 'NumberTreeTwo'; + /** * actsAs property * @@ -2296,6 +2586,7 @@ class NumberTreeTwo extends NumberTree { */ var $actsAs = array(); } + /** * FlagTree class * @@ -2303,6 +2594,7 @@ class NumberTreeTwo extends NumberTree { * @subpackage cake.tests.cases.libs.model */ class FlagTree extends NumberTree { + /** * name property * @@ -2311,6 +2603,7 @@ class FlagTree extends NumberTree { */ var $name = 'FlagTree'; } + /** * UnconventionalTree class * @@ -2318,6 +2611,7 @@ class FlagTree extends NumberTree { * @subpackage cake.tests.cases.libs.model */ class UnconventionalTree extends NumberTree { + /** * name property * @@ -2333,6 +2627,7 @@ class UnconventionalTree extends NumberTree { ) ); } + /** * UuidTree class * @@ -2340,6 +2635,7 @@ class UnconventionalTree extends NumberTree { * @subpackage cake.tests.cases.libs.model */ class UuidTree extends NumberTree { + /** * name property * @@ -2356,6 +2652,7 @@ class UuidTree extends NumberTree { * @subpackage cake.tests.cases.libs.model */ class Campaign extends CakeTestModel { + /** * name property * @@ -2363,6 +2660,7 @@ class Campaign extends CakeTestModel { * @access public */ var $name = 'Campaign'; + /** * hasMany property * @@ -2371,6 +2669,7 @@ class Campaign extends CakeTestModel { */ var $hasMany = array('Ad' => array('fields' => array('id','campaign_id','name'))); } + /** * Ad class * @@ -2378,6 +2677,7 @@ class Campaign extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Ad extends CakeTestModel { + /** * name property * @@ -2385,6 +2685,7 @@ class Ad extends CakeTestModel { * @access public */ var $name = 'Ad'; + /** * actsAs property * @@ -2392,6 +2693,7 @@ class Ad extends CakeTestModel { * @access public */ var $actsAs = array('Tree'); + /** * belongsTo property * @@ -2400,6 +2702,7 @@ class Ad extends CakeTestModel { */ var $belongsTo = array('Campaign'); } + /** * AfterTree class * @@ -2407,6 +2710,7 @@ class Ad extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class AfterTree extends NumberTree { + /** * name property * @@ -2414,6 +2718,7 @@ class AfterTree extends NumberTree { * @access public */ var $name = 'AfterTree'; + /** * actsAs property * @@ -2428,6 +2733,7 @@ class AfterTree extends NumberTree { } } } + /** * Nonconformant Content class * @@ -2435,6 +2741,7 @@ class AfterTree extends NumberTree { * @subpackage cake.tests.cases.libs.model */ class Content extends CakeTestModel { + /** * name property * @@ -2442,6 +2749,7 @@ class Content extends CakeTestModel { * @access public */ var $name = 'Content'; + /** * useTable property * @@ -2449,6 +2757,7 @@ class Content extends CakeTestModel { * @access public */ var $useTable = 'Content'; + /** * primaryKey property * @@ -2456,6 +2765,7 @@ class Content extends CakeTestModel { * @access public */ var $primaryKey = 'iContentId'; + /** * hasAndBelongsToMany property * @@ -2464,6 +2774,7 @@ class Content extends CakeTestModel { */ var $hasAndBelongsToMany = array('Account' => array('className' => 'Account', 'with' => 'ContentAccount', 'joinTable' => 'ContentAccounts', 'foreignKey' => 'iContentId', 'associationForeignKey', 'iAccountId')); } + /** * Nonconformant Account class * @@ -2471,6 +2782,7 @@ class Content extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Account extends CakeTestModel { + /** * name property * @@ -2478,6 +2790,7 @@ class Account extends CakeTestModel { * @access public */ var $name = 'Account'; + /** * useTable property * @@ -2485,6 +2798,7 @@ class Account extends CakeTestModel { * @access public */ var $useTable = 'Accounts'; + /** * primaryKey property * @@ -2493,6 +2807,7 @@ class Account extends CakeTestModel { */ var $primaryKey = 'iAccountId'; } + /** * Nonconformant ContentAccount class * @@ -2500,6 +2815,7 @@ class Account extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class ContentAccount extends CakeTestModel { + /** * name property * @@ -2507,6 +2823,7 @@ class ContentAccount extends CakeTestModel { * @access public */ var $name = 'ContentAccount'; + /** * useTable property * @@ -2514,6 +2831,7 @@ class ContentAccount extends CakeTestModel { * @access public */ var $useTable = 'ContentAccounts'; + /** * primaryKey property * @@ -2522,6 +2840,7 @@ class ContentAccount extends CakeTestModel { */ var $primaryKey = 'iContentAccountsId'; } + /** * FilmFile class * @@ -2531,6 +2850,7 @@ class ContentAccount extends CakeTestModel { class FilmFile extends CakeTestModel { var $name = 'FilmFile'; } + /** * Basket test model * @@ -2550,6 +2870,7 @@ class Basket extends CakeTestModel { ) ); } + /** * TestPluginArticle class * @@ -2557,6 +2878,7 @@ class Basket extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TestPluginArticle extends CakeTestModel { + /** * name property * @@ -2564,6 +2886,7 @@ class TestPluginArticle extends CakeTestModel { * @access public */ var $name = 'TestPluginArticle'; + /** * belongsTo property * @@ -2571,6 +2894,7 @@ class TestPluginArticle extends CakeTestModel { * @access public */ var $belongsTo = array('User'); + /** * hasMany property * @@ -2585,6 +2909,7 @@ class TestPluginArticle extends CakeTestModel { ) ); } + /** * TestPluginComment class * @@ -2592,6 +2917,7 @@ class TestPluginArticle extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TestPluginComment extends CakeTestModel { + /** * name property * @@ -2599,6 +2925,7 @@ class TestPluginComment extends CakeTestModel { * @access public */ var $name = 'TestPluginComment'; + /** * belongsTo property * @@ -2613,6 +2940,7 @@ class TestPluginComment extends CakeTestModel { 'User' ); } + /** * Uuidportfolio class * @@ -2620,6 +2948,7 @@ class TestPluginComment extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Uuidportfolio extends CakeTestModel { + /** * name property * @@ -2627,6 +2956,7 @@ class Uuidportfolio extends CakeTestModel { * @access public */ var $name = 'Uuidportfolio'; + /** * hasAndBelongsToMany property * @@ -2635,6 +2965,7 @@ class Uuidportfolio extends CakeTestModel { */ var $hasAndBelongsToMany = array('Uuiditem'); } + /** * Uuiditem class * @@ -2642,6 +2973,7 @@ class Uuidportfolio extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class Uuiditem extends CakeTestModel { + /** * name property * @@ -2649,6 +2981,7 @@ class Uuiditem extends CakeTestModel { * @access public */ var $name = 'Uuiditem'; + /** * hasAndBelongsToMany property * @@ -2660,6 +2993,7 @@ class Uuiditem extends CakeTestModel { var $hasAndBelongsToMany = array('Uuidportfolio' => array('with' => 'UuiditemsUuidportfolioNumericid')); } + /** * UuiditemsPortfolio class * @@ -2667,6 +3001,7 @@ class Uuiditem extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class UuiditemsUuidportfolio extends CakeTestModel { + /** * name property * @@ -2675,6 +3010,7 @@ class UuiditemsUuidportfolio extends CakeTestModel { */ var $name = 'UuiditemsUuidportfolio'; } + /** * UuiditemsPortfolioNumericid class * @@ -2682,6 +3018,7 @@ class UuiditemsUuidportfolio extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class UuiditemsUuidportfolioNumericid extends CakeTestModel { + /** * name property * @@ -2690,6 +3027,7 @@ class UuiditemsUuidportfolioNumericid extends CakeTestModel { */ var $name = 'UuiditemsUuidportfolioNumericid'; } + /** * TranslateTestModel class. * @@ -2697,6 +3035,7 @@ class UuiditemsUuidportfolioNumericid extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TranslateTestModel extends CakeTestModel { + /** * name property * @@ -2704,6 +3043,7 @@ class TranslateTestModel extends CakeTestModel { * @access public */ var $name = 'TranslateTestModel'; + /** * useTable property * @@ -2711,6 +3051,7 @@ class TranslateTestModel extends CakeTestModel { * @access public */ var $useTable = 'i18n'; + /** * displayField property * @@ -2719,6 +3060,7 @@ class TranslateTestModel extends CakeTestModel { */ var $displayField = 'field'; } + /** * TranslatedItem class. * @@ -2726,6 +3068,7 @@ class TranslateTestModel extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TranslatedItem extends CakeTestModel { + /** * name property * @@ -2733,6 +3076,7 @@ class TranslatedItem extends CakeTestModel { * @access public */ var $name = 'TranslatedItem'; + /** * cacheQueries property * @@ -2740,6 +3084,7 @@ class TranslatedItem extends CakeTestModel { * @access public */ var $cacheQueries = false; + /** * actsAs property * @@ -2747,6 +3092,7 @@ class TranslatedItem extends CakeTestModel { * @access public */ var $actsAs = array('Translate' => array('content', 'title')); + /** * translateModel property * @@ -2755,6 +3101,7 @@ class TranslatedItem extends CakeTestModel { */ var $translateModel = 'TranslateTestModel'; } + /** * TranslatedItemWithTable class. * @@ -2762,6 +3109,7 @@ class TranslatedItem extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TranslatedItemWithTable extends CakeTestModel { + /** * name property * @@ -2769,6 +3117,7 @@ class TranslatedItemWithTable extends CakeTestModel { * @access public */ var $name = 'TranslatedItemWithTable'; + /** * useTable property * @@ -2776,6 +3125,7 @@ class TranslatedItemWithTable extends CakeTestModel { * @access public */ var $useTable = 'translated_items'; + /** * cacheQueries property * @@ -2783,6 +3133,7 @@ class TranslatedItemWithTable extends CakeTestModel { * @access public */ var $cacheQueries = false; + /** * actsAs property * @@ -2790,6 +3141,7 @@ class TranslatedItemWithTable extends CakeTestModel { * @access public */ var $actsAs = array('Translate' => array('content', 'title')); + /** * translateModel property * @@ -2797,6 +3149,7 @@ class TranslatedItemWithTable extends CakeTestModel { * @access public */ var $translateModel = 'TranslateTestModel'; + /** * translateTable property * @@ -2805,6 +3158,7 @@ class TranslatedItemWithTable extends CakeTestModel { */ var $translateTable = 'another_i18n'; } + /** * TranslateArticleModel class. * @@ -2812,6 +3166,7 @@ class TranslatedItemWithTable extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TranslateArticleModel extends CakeTestModel { + /** * name property * @@ -2819,6 +3174,7 @@ class TranslateArticleModel extends CakeTestModel { * @access public */ var $name = 'TranslateArticleModel'; + /** * useTable property * @@ -2826,6 +3182,7 @@ class TranslateArticleModel extends CakeTestModel { * @access public */ var $useTable = 'article_i18n'; + /** * displayField property * @@ -2834,6 +3191,7 @@ class TranslateArticleModel extends CakeTestModel { */ var $displayField = 'field'; } + /** * TranslatedArticle class. * @@ -2841,6 +3199,7 @@ class TranslateArticleModel extends CakeTestModel { * @subpackage cake.tests.cases.libs.model */ class TranslatedArticle extends CakeTestModel { + /** * name property * @@ -2848,6 +3207,7 @@ class TranslatedArticle extends CakeTestModel { * @access public */ var $name = 'TranslatedArticle'; + /** * cacheQueries property * @@ -2855,6 +3215,7 @@ class TranslatedArticle extends CakeTestModel { * @access public */ var $cacheQueries = false; + /** * actsAs property * @@ -2862,6 +3223,7 @@ class TranslatedArticle extends CakeTestModel { * @access public */ var $actsAs = array('Translate' => array('title', 'body')); + /** * translateModel property * @@ -2869,6 +3231,7 @@ class TranslatedArticle extends CakeTestModel { * @access public */ var $translateModel = 'TranslateArticleModel'; + /** * belongsTo property * diff --git a/cake/tests/cases/libs/multibyte.test.php b/cake/tests/cases/libs/multibyte.test.php index 68950cc78..44f59d41b 100644 --- a/cake/tests/cases/libs/multibyte.test.php +++ b/cake/tests/cases/libs/multibyte.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * MultibyteTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Multibyte'); + /** * MultibyteTest class * @@ -32,6 +34,7 @@ App::import('Core', 'Multibyte'); * @subpackage cake.tests.cases.libs */ class MultibyteTest extends CakeTestCase { + /** * testUtf8 method * @@ -355,6 +358,7 @@ class MultibyteTest extends CakeTestCase { $expected = array(64256, 64257, 64258, 64259, 64260, 64261, 64262, 64275, 64276, 64277, 64278, 64279); $this->assertEqual($result, $expected); } + /** * testAscii method * @@ -675,6 +679,7 @@ class MultibyteTest extends CakeTestCase { $expected = 'fffiflffifflſtstﬓﬔﬕﬖﬗ'; $this->assertEqual($result, $expected); } + /** * testUsingMbStripos method * @@ -922,6 +927,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testMultibyteStripos method * @@ -1169,6 +1175,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testUsingMbStristr method * @@ -1559,6 +1566,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testMultibyteStristr method * @@ -1949,6 +1957,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testUsingMbStrlen method * @@ -2096,6 +2105,7 @@ class MultibyteTest extends CakeTestCase { $expected = 6; $this->assertEqual($result, $expected); } + /** * testMultibyteStrlen method * @@ -2243,6 +2253,7 @@ class MultibyteTest extends CakeTestCase { $expected = 6; $this->assertEqual($result, $expected); } + /** * testUsingMbStrpos method * @@ -2490,6 +2501,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testMultibyteStrpos method * @@ -2737,6 +2749,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testUsingMbStrrchr method * @@ -3121,6 +3134,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testMultibyteStrrchr method * @@ -3505,6 +3519,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testUsingMbStrrichr method * @@ -3889,6 +3904,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testMultibyteStrrichr method * @@ -4273,6 +4289,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testUsingMbStrripos method * @@ -4526,6 +4543,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testMultibyteStrripos method * @@ -4779,6 +4797,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testUsingMbStrrpos method * @@ -5032,6 +5051,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testMultibyteStrrpos method * @@ -5285,6 +5305,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testUsingMbStrstr method * @@ -5681,6 +5702,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testMultibyteStrstr method * @@ -6077,6 +6099,7 @@ class MultibyteTest extends CakeTestCase { $expected = false; $this->assertEqual($result, $expected); } + /** * testUsingMbStrtolower method * @@ -6603,6 +6626,7 @@ class MultibyteTest extends CakeTestCase { $result = mb_strtolower($string); $expected = 'ωkå'; $this->assertEqual($result, $expected); + /* mb_strtolower does not work for these strings. @@ -6631,6 +6655,7 @@ mb_strtolower does not work for these strings. $expected = 'fffiflffifflſtstﬓﬔﬕﬖﬗ'; $this->assertEqual($result, $expected); } + /** * testMultibyteStrtolower method * @@ -7188,6 +7213,7 @@ mb_strtolower does not work for these strings. $expected = 'fffiflffifflſtstﬓﬔﬕﬖﬗ'; $this->assertEqual($result, $expected); } + /** * testUsingMbStrtoupper method * @@ -7704,6 +7730,7 @@ mb_strtolower does not work for these strings. $result = mb_strtoupper($string); $expected = 'ΩKÅ'; $this->assertEqual($result, $expected); + /* mb_strtoupper does not work for these strings. @@ -7732,6 +7759,7 @@ mb_strtoupper does not work for these strings. $expected = 'fffiflffifflſtstﬓﬔﬕﬖﬗ'; $this->assertEqual($result, $expected); } + /** * testMultibyteStrtoupper method * @@ -8284,6 +8312,7 @@ mb_strtoupper does not work for these strings. $expected = 'fffiflffifflſtstﬓﬔﬕﬖﬗ'; $this->assertEqual($result, $expected); } + /** * testUsingMbSubstrCount method * @@ -8537,6 +8566,7 @@ mb_strtoupper does not work for these strings. $expected = false; $this->assertEqual($result, $expected); } + /** * testMultibyteSubstrCount method * @@ -8790,6 +8820,7 @@ mb_strtoupper does not work for these strings. $expected = false; $this->assertEqual($result, $expected); } + /** * testUsingMbSubstr method * @@ -8948,6 +8979,7 @@ mb_strtoupper does not work for these strings. $expected = '一二三周永龍'; $this->assertEqual($result, $expected); } + /** * testMultibyteSubstr method * @@ -9106,6 +9138,7 @@ mb_strtoupper does not work for these strings. $expected = '一二三周永龍'; $this->assertEqual($result, $expected); } + /** * testMultibyteSubstr method * diff --git a/cake/tests/cases/libs/object.test.php b/cake/tests/cases/libs/object.test.php index 8ed9adec3..3b97003db 100644 --- a/cake/tests/cases/libs/object.test.php +++ b/cake/tests/cases/libs/object.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ObjectTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', array('Object', 'Controller', 'Model')); + /** * RequestActionPost class * @@ -32,6 +34,7 @@ App::import('Core', array('Object', 'Controller', 'Model')); * @subpackage cake.tests.cases.libs.object */ class RequestActionPost extends CakeTestModel { + /** * name property * @@ -39,6 +42,7 @@ class RequestActionPost extends CakeTestModel { * @access public */ var $name = 'RequestActionPost'; + /** * useTable property * @@ -47,6 +51,7 @@ class RequestActionPost extends CakeTestModel { */ var $useTable = 'posts'; } + /** * RequestActionController class * @@ -54,6 +59,7 @@ class RequestActionPost extends CakeTestModel { * @subpackage cake.tests.cases.libs */ class RequestActionController extends Controller { + /** * uses property * @@ -61,6 +67,7 @@ class RequestActionController extends Controller { * @access public */ var $uses = array('RequestActionPost'); + /** * test_request_action method * @@ -70,6 +77,7 @@ class RequestActionController extends Controller { function test_request_action() { return 'This is a test'; } + /** * another_ra_test method * @@ -81,6 +89,7 @@ class RequestActionController extends Controller { function another_ra_test($id, $other) { return $id + $other; } + /** * normal_request_action method * @@ -90,6 +99,7 @@ class RequestActionController extends Controller { function normal_request_action() { return 'Hello World'; } + /** * paginate_request_action method * @@ -100,6 +110,7 @@ class RequestActionController extends Controller { $data = $this->paginate(); return true; } + /** * post pass, testing post passing * @@ -108,6 +119,7 @@ class RequestActionController extends Controller { function post_pass() { return $this->data; } + /** * test param passing and parsing. * @@ -117,6 +129,7 @@ class RequestActionController extends Controller { return $this->params; } } + /** * RequestActionPersistentController class * @@ -124,6 +137,7 @@ class RequestActionController extends Controller { * @subpackage cake.tests.cases.libs */ class RequestActionPersistentController extends Controller { + /** * uses property * @@ -139,6 +153,7 @@ class RequestActionPersistentController extends Controller { * @access public */ var $persistModel = true; + /** * post pass, testing post passing * @@ -148,6 +163,7 @@ class RequestActionPersistentController extends Controller { return 'This is a test'; } } + /** * TestObject class * @@ -155,6 +171,7 @@ class RequestActionPersistentController extends Controller { * @subpackage cake.tests.cases.libs */ class TestObject extends Object { + /** * firstName property * @@ -162,6 +179,7 @@ class TestObject extends Object { * @access public */ var $firstName = 'Joel'; + /** * lastName property * @@ -169,6 +187,7 @@ class TestObject extends Object { * @access public */ var $lastName = 'Moss'; + /** * methodCalls property * @@ -176,6 +195,7 @@ class TestObject extends Object { * @access public */ var $methodCalls = array(); + /** * emptyMethod method * @@ -185,6 +205,7 @@ class TestObject extends Object { function emptyMethod() { $this->methodCalls[] = 'emptyMethod'; } + /** * oneParamMethod method * @@ -195,6 +216,7 @@ class TestObject extends Object { function oneParamMethod($param) { $this->methodCalls[] = array('oneParamMethod' => array($param)); } + /** * twoParamMethod method * @@ -206,6 +228,7 @@ class TestObject extends Object { function twoParamMethod($param, $param2) { $this->methodCalls[] = array('twoParamMethod' => array($param, $param2)); } + /** * threeParamMethod method * @@ -245,6 +268,7 @@ class TestObject extends Object { function fiveParamMethod($param, $param2, $param3, $param4, $param5) { $this->methodCalls[] = array('fiveParamMethod' => array($param, $param2, $param3, $param4, $param5)); } + /** * crazyMethod method * @@ -261,6 +285,7 @@ class TestObject extends Object { function crazyMethod($param, $param2, $param3, $param4, $param5, $param6, $param7 = null) { $this->methodCalls[] = array('crazyMethod' => array($param, $param2, $param3, $param4, $param5, $param6, $param7)); } + /** * methodWithOptionalParam method * @@ -271,6 +296,7 @@ class TestObject extends Object { function methodWithOptionalParam($param = null) { $this->methodCalls[] = array('methodWithOptionalParam' => array($param)); } + /** * testPersist * @@ -280,6 +306,7 @@ class TestObject extends Object { return $this->_persist($name, $return, $object, $type); } } + /** * ObjectTestModel class * @@ -290,6 +317,7 @@ class ObjectTestModel extends CakeTestModel { var $useTable = false; var $name = 'ObjectTestModel'; } + /** * Object Test class * @@ -297,12 +325,14 @@ class ObjectTestModel extends CakeTestModel { * @subpackage cake.tests.cases.libs */ class ObjectTest extends CakeTestCase { + /** * fixtures * * @var string **/ var $fixtures = array('core.post', 'core.comment'); + /** * setUp method * @@ -312,6 +342,7 @@ class ObjectTest extends CakeTestCase { function setUp() { $this->object = new TestObject(); } + /** * tearDown method * @@ -321,6 +352,7 @@ class ObjectTest extends CakeTestCase { function tearDown() { unset($this->object); } + /** * endTest * @@ -330,6 +362,7 @@ class ObjectTest extends CakeTestCase { function endTest() { App::build(); } + /** * testLog method * @@ -359,6 +392,7 @@ class ObjectTest extends CakeTestCase { $this->assertPattern('/^\)$/', $result[4]); unlink(LOGS . 'error.log'); } + /** * testSet method * @@ -379,6 +413,7 @@ class ObjectTest extends CakeTestCase { $this->assertEqual($this->object->firstName, 'Joel'); $this->assertEqual($this->object->lastName, 'Moose'); } + /** * testPersist method * @@ -421,6 +456,7 @@ class ObjectTest extends CakeTestCase { Configure::write('Cache.disable', $cacheDisable); } + /** * testPersistWithRequestAction method * @@ -466,6 +502,7 @@ class ObjectTest extends CakeTestCase { @unlink(CACHE . 'persistent' . DS . 'persisterone.php'); @unlink(CACHE . 'persistent' . DS . 'persisteroneregistry.php'); } + /** * testPersistWithBehaviorAndRequestAction method * @@ -523,6 +560,7 @@ class ObjectTest extends CakeTestCase { Configure::write('Cache.disable', $cacheDisable); } + /** * testToString method * @@ -533,6 +571,7 @@ class ObjectTest extends CakeTestCase { $result = strtolower($this->object->toString()); $this->assertEqual($result, 'testobject'); } + /** * testMethodDispatching method * @@ -599,6 +638,7 @@ class ObjectTest extends CakeTestCase { $expected[] = array('methodWithOptionalParam' => array(null)); $this->assertIdentical($this->object->methodCalls, $expected); } + /** * testRequestAction method * @@ -685,6 +725,7 @@ class ObjectTest extends CakeTestCase { $result = $this->object->requestAction(array('controller'=>'request_action', 'action'=>'paginate_request_action'), array('pass' => array(5), 'named' => array('param' => 'value'))); $this->assertTrue($result); } + /** * Test that requestAction() is populating $this->params properly * @@ -707,6 +748,7 @@ class ObjectTest extends CakeTestCase { $result = $this->object->requestAction(array('controller' => 'request_action', 'action' => 'params_pass'), array('named' => array('sort' => 'desc', 'limit' => 5))); $this->assertEqual($result['named'], $expected); } + /** * test requestAction and POST parameter passing, and not passing when url is an array. * @@ -733,6 +775,7 @@ class ObjectTest extends CakeTestCase { $_POST = $_tmp; } + /** * testCakeError * diff --git a/cake/tests/cases/libs/overloadable.test.php b/cake/tests/cases/libs/overloadable.test.php index ed06e8cc7..48a330e60 100644 --- a/cake/tests/cases/libs/overloadable.test.php +++ b/cake/tests/cases/libs/overloadable.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * OverloadableTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Overloadable'); + /** * OverloadableTest class * @@ -32,6 +34,7 @@ App::import('Core', 'Overloadable'); * @subpackage cake.tests.cases.libs */ class OverloadableTest extends CakeTestCase { + /** * skip method * diff --git a/cake/tests/cases/libs/router.test.php b/cake/tests/cases/libs/router.test.php index 99d0e220d..54b6fa3c3 100644 --- a/cake/tests/cases/libs/router.test.php +++ b/cake/tests/cases/libs/router.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * RouterTest file * @@ -29,6 +30,7 @@ App::import('Core', array('Router', 'Debugger')); if (!defined('FULL_BASE_URL')) { define('FULL_BASE_URL', 'http://cakephp.org'); } + /** * RouterTest class * @@ -36,6 +38,7 @@ if (!defined('FULL_BASE_URL')) { * @subpackage cake.tests.cases.libs */ class RouterTest extends CakeTestCase { + /** * setUp method * @@ -47,6 +50,7 @@ class RouterTest extends CakeTestCase { Router::reload(); $this->router =& Router::getInstance(); } + /** * testReturnedInstanceReference method * @@ -58,6 +62,7 @@ class RouterTest extends CakeTestCase { $this->assertIdentical($this->router, Router::getInstance()); unset($this->router->testVar); } + /** * testFullBaseURL method * @@ -68,6 +73,7 @@ class RouterTest extends CakeTestCase { $this->assertPattern('/^http(s)?:\/\//', Router::url('/', true)); $this->assertPattern('/^http(s)?:\/\//', Router::url(null, true)); } + /** * testRouteWriting method * @@ -137,6 +143,7 @@ class RouterTest extends CakeTestCase { $this->assertEqual($this->router->routes[0][2], array('id', 'title', 'year')); $this->assertEqual($this->router->routes[0][1], '#^/posts(?:/([^\/]+))?(?:\\:([^\/]+))?(?:/([^\/]+))?[\/]*$#'); } + /** * testRouteDefaultParams method * @@ -147,6 +154,7 @@ class RouterTest extends CakeTestCase { Router::connect('/:controller', array('controller' => 'posts')); $this->assertEqual(Router::url(array('action' => 'index')), '/'); } + /** * testRouterIdentity method * @@ -157,6 +165,7 @@ class RouterTest extends CakeTestCase { $router2 = new Router(); $this->assertEqual(get_object_vars($this->router), get_object_vars($router2)); } + /** * testResourceRoutes method * @@ -213,6 +222,7 @@ class RouterTest extends CakeTestCase { $this->assertEqual($result, array('pass' => array('name'), 'named' => array(), 'plugin' => '', 'controller' => 'posts', 'action' => 'edit', 'id' => 'name', '[method]' => 'PUT')); $this->assertEqual($this->router->__resourceMapped, array('posts')); } + /** * testMultipleResourceRoute method * @@ -230,6 +240,7 @@ class RouterTest extends CakeTestCase { $result = Router::parse('/posts'); $this->assertEqual($result, array('pass' => array(), 'named' => array(), 'plugin' => '', 'controller' => 'posts', 'action' => 'index', '[method]' => array('GET', 'POST'))); } + /** * testGenerateUrlResourceRoute method * @@ -263,6 +274,7 @@ class RouterTest extends CakeTestCase { $expected = '/posts/10'; $this->assertEqual($result, $expected); } + /** * testUrlNormalization method * @@ -312,12 +324,12 @@ class RouterTest extends CakeTestCase { Router::reload(); $_back = Configure::read('App.baseUrl'); Configure::write('App.baseUrl', '/'); - + Router::setRequestInfo(array(array(), array('base' => '/'))); $result = Router::normalize('users/login'); $this->assertEqual($result, '/users/login'); Configure::write('App.baseUrl', $_back); - + Router::reload(); Router::setRequestInfo(array(array(), array('base' => 'beer'))); $result = Router::normalize('beer/admin/beers_tags/add'); @@ -326,6 +338,7 @@ class RouterTest extends CakeTestCase { $result = Router::normalize('/admin/beers_tags/add'); $this->assertEqual($result, '/admin/beers_tags/add'); } + /** * testUrlGeneration method * @@ -694,6 +707,7 @@ class RouterTest extends CakeTestCase { $expected = '/admin/shows/show_tickets/edit/6'; $this->assertEqual($result, $expected); } + /** * testUrlGenerationWithPrefix method * @@ -721,6 +735,7 @@ class RouterTest extends CakeTestCase { $expected = '/admin/registrations/index/page:2'; $this->assertEqual($result, $expected); } + /** * testUrlGenerationWithExtensions method * @@ -745,6 +760,7 @@ class RouterTest extends CakeTestCase { $expected = '/articles.json'; $this->assertEqual($result, $expected); } + /** * testPluginUrlGeneration method * @@ -787,6 +803,7 @@ class RouterTest extends CakeTestCase { $expected = '/en/shows/page:1'; $this->assertEqual($result, $expected); } + /** * testUrlParsing method * @@ -934,6 +951,7 @@ class RouterTest extends CakeTestCase { $result = Router::url(array('controller' => 'pages', 'action' => 'view', 'about')); $this->assertEqual($result, $expected); } + /** * testUuidRoutes method * @@ -950,6 +968,7 @@ class RouterTest extends CakeTestCase { $expected = array('pass' => array(), 'named' => array(), 'category_id' => '4795d601-19c8-49a6-930e-06a8b01d17b7', 'plugin' => null, 'controller' => 'subjects', 'action' => 'add'); $this->assertEqual($result, $expected); } + /** * testRouteSymmetry method * @@ -988,6 +1007,7 @@ class RouterTest extends CakeTestCase { $expected = '/some_extra/page/this_is_the_slug'; $this->assertEqual($result, $expected); } + /** * testAdminRouting method * @@ -1062,9 +1082,9 @@ class RouterTest extends CakeTestCase { Router::reload(); Router::setRequestInfo(array( - array('admin' => true, 'controller' => 'controller', 'action' => 'action', + array('admin' => true, 'controller' => 'controller', 'action' => 'action', 'form' => array(), 'url' => array(), 'plugin' => null), - array('base' => '/', 'here' => '/', 'webroot' => '/base/', 'passedArgs' => array(), + array('base' => '/', 'here' => '/', 'webroot' => '/base/', 'passedArgs' => array(), 'argSeparator' => ':', 'namedArgs' => array()) )); Router::parse('/'); @@ -1075,6 +1095,7 @@ class RouterTest extends CakeTestCase { Configure::write('pluginPaths', $paths); } + /** * testExtensionParsingSetting method * @@ -1088,6 +1109,7 @@ class RouterTest extends CakeTestCase { $router->parseExtensions(); $this->assertTrue($this->router->__parseExtensions); } + /** * testExtensionParsing method * @@ -1135,6 +1157,7 @@ class RouterTest extends CakeTestCase { $expected = array('controller' => 'controller', 'action' => 'action', 'plugin' => null, 'url' => array('ext' => 'rss'), 'named' => array(), 'pass' => array()); $this->assertEqual($result, $expected); } + /** * testQuerystringGeneration method * @@ -1164,6 +1187,7 @@ class RouterTest extends CakeTestCase { $expected = '/posts/index/0?var=test&var2=test2'; $this->assertEqual($result, $expected); } + /** * testConnectNamed method * @@ -1195,6 +1219,7 @@ class RouterTest extends CakeTestCase { $result = Router::parse('/categories/index?limit=5'); $this->assertTrue(empty($result['named'])); } + /** * testNamedArgsUrlGeneration method * @@ -1248,6 +1273,7 @@ class RouterTest extends CakeTestCase { $expected = "/admin/controller/index/type:new"; $this->assertEqual($result, $expected); } + /** * testNamedArgsUrlParsing method * @@ -1314,6 +1340,7 @@ class RouterTest extends CakeTestCase { $expected = array('pass' => array('param2:value2:3', 'param3:value'), 'named' => array('param1' => 'value1:1'), 'controller' => 'bar', 'action' => 'fubar', 'plugin' => null); $this->assertEqual($result, $expected); } + /** * testUrlGenerationWithPrefixes method * @@ -1366,16 +1393,17 @@ class RouterTest extends CakeTestCase { $result = Router::url(array('controller' => 'others', 'action' => 'edit', 1, 'protected' => true)); $expected = '/protected/others/edit/1'; $this->assertEqual($result, $expected); - + $result = Router::url(array('controller' => 'others', 'action' => 'edit', 1, 'protected' => true, 'page' => 1)); $expected = '/protected/others/edit/1/page:1'; $this->assertEqual($result, $expected); - + Router::connectNamed(array('random')); $result = Router::url(array('controller' => 'others', 'action' => 'edit', 1, 'protected' => true, 'random' => 'my-value')); $expected = '/protected/others/edit/1/random:my-value'; $this->assertEqual($result, $expected); } + /** * testRemoveBase method * @@ -1400,6 +1428,7 @@ class RouterTest extends CakeTestCase { $expected = '/base/my_controller/my_action/base:1'; $this->assertEqual($result, $expected); } + /** * testParamsUrlParsing method * @@ -1428,6 +1457,7 @@ class RouterTest extends CakeTestCase { $expected = array('pass' => array(), 'named' => array(), 'controller' => 'bob-p-500', 'plugin' => null, 'action' => 'index'); $this->assertEqual($result, $expected); } + /** * testPagesUrlParsing method * @@ -1489,6 +1519,7 @@ class RouterTest extends CakeTestCase { $expected = array('pass'=>array('contact'), 'named' => array(), 'plugin'=> null, 'controller'=>'pages', 'action'=>'display'); $this->assertEqual($result, $expected); } + /** * testParsingWithPrefixes method * @@ -1549,6 +1580,7 @@ class RouterTest extends CakeTestCase { $expected = array('pass' => array(), 'named' => array(), 'plugin' => null, 'controller' => 'posts', 'action' => 'index'); $this->assertEqual($result, $expected); } + /** * Tests URL generation with flags and prefixes in and out of context * @@ -1572,6 +1604,7 @@ class RouterTest extends CakeTestCase { $expected = '/login'; $this->assertEqual($result, $expected); } + /** * testPassedArgsOrder method * @@ -1614,6 +1647,7 @@ class RouterTest extends CakeTestCase { $expected = array('protected', 'admin'); $this->assertEqual($result, $expected); } + /** * testRegexRouteMatching method * @@ -1655,6 +1689,7 @@ class RouterTest extends CakeTestCase { $expected = '/test/test_another_action/locale:badness'; $this->assertEqual($result, $expected); } + /** * testStripPlugin * diff --git a/cake/tests/cases/libs/sanitize.test.php b/cake/tests/cases/libs/sanitize.test.php index e564f9a92..16dc92e18 100644 --- a/cake/tests/cases/libs/sanitize.test.php +++ b/cake/tests/cases/libs/sanitize.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * SanitizeTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Sanitize'); + /** * DataTest class * @@ -32,6 +34,7 @@ App::import('Core', 'Sanitize'); * @subpackage cake.tests.cases.libs */ class SanitizeDataTest extends CakeTestModel { + /** * name property * @@ -39,6 +42,7 @@ class SanitizeDataTest extends CakeTestModel { * @access public */ var $name = 'SanitizeDataTest'; + /** * useTable property * @@ -47,6 +51,7 @@ class SanitizeDataTest extends CakeTestModel { */ var $useTable = 'data_tests'; } + /** * Article class * @@ -54,6 +59,7 @@ class SanitizeDataTest extends CakeTestModel { * @subpackage cake.tests.cases.libs */ class SanitizeArticle extends CakeTestModel { + /** * name property * @@ -61,6 +67,7 @@ class SanitizeArticle extends CakeTestModel { * @access public */ var $name = 'SanitizeArticle'; + /** * useTable property * @@ -69,6 +76,7 @@ class SanitizeArticle extends CakeTestModel { */ var $useTable = 'articles'; } + /** * SanitizeTest class * @@ -76,6 +84,7 @@ class SanitizeArticle extends CakeTestModel { * @subpackage cake.tests.cases.libs */ class SanitizeTest extends CakeTestCase { + /** * autoFixtures property * @@ -83,6 +92,7 @@ class SanitizeTest extends CakeTestCase { * @access public */ var $autoFixtures = false; + /** * fixtures property * @@ -90,6 +100,7 @@ class SanitizeTest extends CakeTestCase { * @access public */ var $fixtures = array('core.data_test', 'core.article'); + /** * startTest method * @@ -101,6 +112,7 @@ class SanitizeTest extends CakeTestCase { parent::startTest($method); $this->_initDb(); } + /** * testEscapeAlphaNumeric method * @@ -132,6 +144,7 @@ class SanitizeTest extends CakeTestCase { $resultNull = Sanitize::escape(true, 'test_suite'); $this->assertEqual($resultNull, true); } + /** * testClean method * diff --git a/cake/tests/cases/libs/security.test.php b/cake/tests/cases/libs/security.test.php index f00af06b7..0ceb423ad 100644 --- a/cake/tests/cases/libs/security.test.php +++ b/cake/tests/cases/libs/security.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * SecurityTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Security'); + /** * SecurityTest class * @@ -32,6 +34,7 @@ App::import('Core', 'Security'); * @subpackage cake.tests.cases.libs */ class SecurityTest extends CakeTestCase { + /** * sut property * @@ -39,6 +42,7 @@ class SecurityTest extends CakeTestCase { * @access public */ var $sut = null; + /** * setUp method * @@ -48,6 +52,7 @@ class SecurityTest extends CakeTestCase { function setUp() { $this->sut =& Security::getInstance(); } + /** * testInactiveMins method * @@ -64,6 +69,7 @@ class SecurityTest extends CakeTestCase { Configure::write('Security.level', 'low'); $this->assertEqual(300, Security::inactiveMins()); } + /** * testGenerateAuthkey method * @@ -73,6 +79,7 @@ class SecurityTest extends CakeTestCase { function testGenerateAuthkey() { $this->assertEqual(strlen(Security::generateAuthKey()), 40); } + /** * testValidateAuthKey method * @@ -83,6 +90,7 @@ class SecurityTest extends CakeTestCase { $authKey = Security::generateAuthKey(); $this->assertTrue(Security::validateAuthKey($authKey)); } + /** * testHash method * @@ -132,6 +140,7 @@ class SecurityTest extends CakeTestCase { Security::setHash($_hashType); } + /** * testCipher method * diff --git a/cake/tests/cases/libs/set.test.php b/cake/tests/cases/libs/set.test.php index d0b7c10f9..a87101404 100644 --- a/cake/tests/cases/libs/set.test.php +++ b/cake/tests/cases/libs/set.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * SetTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Set'); + /** * SetTest class * @@ -32,6 +34,7 @@ App::import('Core', 'Set'); * @subpackage cake.tests.cases.libs */ class SetTest extends CakeTestCase { + /** * testNumericKeyExtraction method * @@ -43,6 +46,7 @@ class SetTest extends CakeTestCase { $this->assertIdentical(Set::extract($data, '{n}'), array(1, 'whatever')); $this->assertIdentical(Set::diff($data, Set::extract($data, '{n}')), array('plugin' => null, 'controller' => '', 'action' => '')); } + /** * testEnum method * @@ -83,6 +87,7 @@ class SetTest extends CakeTestCase { $result = Set::enum(2); $this->assertNull($result); } + /** * testFilter method * @@ -94,6 +99,7 @@ class SetTest extends CakeTestCase { $expected = array('0', 2 => true, 3 => 0, 4 => array('one thing', 'I can tell you', 'is you got to be', false)); $this->assertIdentical($result, $expected); } + /** * testNumericArrayCheck method * @@ -131,6 +137,7 @@ class SetTest extends CakeTestCase { $data = array('one', 2 => 'two', 3 => 'three', 4 => 'four', 'a' => 'five'); $this->assertFalse(Set::numeric(array_keys($data))); } + /** * testKeyCheck method * @@ -168,6 +175,7 @@ class SetTest extends CakeTestCase { $this->assertTrue(Set::check($data, '0.Article.user_id')); $this->assertFalse(Set::check($data, '0.Article.user_id.a')); } + /** * testMerge method * @@ -252,6 +260,7 @@ class SetTest extends CakeTestCase { $this->assertIdentical(Set::normalize(Set::merge($a, $b)), $expected); } + /** * testSort method * @@ -337,6 +346,7 @@ class SetTest extends CakeTestCase { $a = Set::sort($a, '{n}.Person.name', 'ASC'); $this->assertIdentical($a, $b); } + /** * testExtract method * @@ -971,6 +981,7 @@ class SetTest extends CakeTestCase { $this->assertEqual($r, $expected); } + /** * testMatches method * @@ -1043,6 +1054,7 @@ class SetTest extends CakeTestCase { } + /** * testSetExtractReturnsEmptyArray method * @@ -1063,6 +1075,7 @@ class SetTest extends CakeTestCase { $this->assertIdentical(Set::extract(array(), 'Message.flash'), null); } + /** * testClassicExtract method * @@ -1214,6 +1227,7 @@ class SetTest extends CakeTestCase { $expected = array( 'Article 1', 'Article 2', 'Article 3' ); $this->assertIdentical($result, $expected); } + /** * testInsert method * @@ -1257,6 +1271,7 @@ class SetTest extends CakeTestCase { ); $this->assertIdentical($result, $expected); } + /** * testRemove method * @@ -1295,6 +1310,7 @@ class SetTest extends CakeTestCase { $expected = $a; $this->assertIdentical($result, $expected); } + /** * testCheck method * @@ -1317,6 +1333,7 @@ class SetTest extends CakeTestCase { $this->assertTrue(Set::check($set, 'My Index 1.First.Second.Third.Fourth')); $this->assertFalse(Set::check($set, 'My Index 1.First.Seconds.Third.Fourth')); } + /** * testWritingWithFunkyKeys method * @@ -1333,6 +1350,7 @@ class SetTest extends CakeTestCase { $this->assertTrue($set = Set::insert(array(), 'Session Test.Test Case', "test")); $this->assertTrue(Set::check($set, 'Session Test.Test Case')); } + /** * testDiff method * @@ -1375,6 +1393,7 @@ class SetTest extends CakeTestCase { ); $this->assertIdentical($result, $expected); } + /** * testIsEqual method * @@ -1397,6 +1416,7 @@ class SetTest extends CakeTestCase { $this->assertFalse(Set::isEqual($a, $b)); $this->assertFalse(Set::isEqual($b, $a)); } + /** * testContains method * @@ -1419,6 +1439,7 @@ class SetTest extends CakeTestCase { $this->assertFalse(Set::contains($a, $b)); $this->assertTrue(Set::contains($b, $a)); } + /** * testCombine method * @@ -1551,6 +1572,7 @@ class SetTest extends CakeTestCase { $expected = array(2 => null, 14 => null, 25 => null); $this->assertIdentical($result, $expected); } + /** * testMapReverse method * @@ -1800,6 +1822,7 @@ class SetTest extends CakeTestCase { $expected = array('User' => array('id' => '100'), 'Profile' => array('name' => 'Joe Mamma')); $this->assertEqual($result, $expected); } + /** * testFormatting method * @@ -1847,6 +1870,7 @@ class SetTest extends CakeTestCase { $expected = array('Nate, 42', 'Larry, 0', 'Garrett, 0'); $this->assertEqual($result, $expected); } + /** * testCountDim method * @@ -1901,6 +1925,7 @@ class SetTest extends CakeTestCase { $result = Set::countDim($set, true); $this->assertEqual($result, 5); } + /** * testMapNesting method * @@ -2025,6 +2050,7 @@ class SetTest extends CakeTestCase { $expected = null; $this->assertEqual($result, $expected); } + /** * testNestedMappedData method * @@ -2273,6 +2299,7 @@ class SetTest extends CakeTestCase { $this->assertIdentical($expected, $result); } + /** * testPushDiff method * @@ -2319,6 +2346,7 @@ class SetTest extends CakeTestCase { $result = Set::pushDiff($array1, $array2); $this->assertIdentical($result, $array1+$array2); } + /** * testXmlSetReverse method * @@ -2564,6 +2592,7 @@ class SetTest extends CakeTestCase { )); $this->assertEqual($result, $expected); } + /** * testStrictKeyCheck method * @@ -2574,6 +2603,7 @@ class SetTest extends CakeTestCase { $set = array('a' => 'hi'); $this->assertFalse(Set::check($set, 'a.b')); } + /** * Tests Set::flatten * diff --git a/cake/tests/cases/libs/string.test.php b/cake/tests/cases/libs/string.test.php index d6fe7a1ab..df1066012 100644 --- a/cake/tests/cases/libs/string.test.php +++ b/cake/tests/cases/libs/string.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * StringTest file * @@ -21,6 +22,7 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ App::import('Core', 'String'); + /** * StringTest class * diff --git a/cake/tests/cases/libs/test_manager.test.php b/cake/tests/cases/libs/test_manager.test.php index b8eb5de29..40e7a33bb 100644 --- a/cake/tests/cases/libs/test_manager.test.php +++ b/cake/tests/cases/libs/test_manager.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * TestManagerTest file * @@ -27,6 +28,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'TestManager'); + /** * TestManagerTest class * @@ -34,6 +36,7 @@ App::import('Core', 'TestManager'); * @subpackage cake.tests.cases.libs */ class TestManagerTest extends CakeTestCase { + /** * setUp method * @@ -44,6 +47,7 @@ class TestManagerTest extends CakeTestCase { $this->Sut =& new TestManager(); $this->Reporter =& new CakeHtmlReporter(); } + /** * testRunAllTests method * @@ -60,6 +64,7 @@ class TestManagerTest extends CakeTestCase { $this->assertEqual(count($out), count($list)); } + /** * testRunTestCase method * @@ -76,6 +81,7 @@ class TestManagerTest extends CakeTestCase { $result = $this->Sut->runTestCase($file, $this->Reporter, true); $this->assertTrue($result); } + /** * testRunGroupTest method * @@ -84,6 +90,7 @@ class TestManagerTest extends CakeTestCase { */ function testRunGroupTest() { } + /** * testAddTestCasesFromDirectory method * @@ -92,6 +99,7 @@ class TestManagerTest extends CakeTestCase { */ function testAddTestCasesFromDirectory() { } + /** * testAddTestFile method * @@ -100,6 +108,7 @@ class TestManagerTest extends CakeTestCase { */ function testAddTestFile() { } + /** * testGetTestCaseList method * @@ -108,6 +117,7 @@ class TestManagerTest extends CakeTestCase { */ function testGetTestCaseList() { } + /** * testGetGroupTestList method * diff --git a/cake/tests/cases/libs/validation.test.php b/cake/tests/cases/libs/validation.test.php index 98c3e6866..bde7d34dc 100644 --- a/cake/tests/cases/libs/validation.test.php +++ b/cake/tests/cases/libs/validation.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ValidationTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Validation'); + /** * CustomValidator class * @@ -32,6 +34,7 @@ App::import('Core', 'Validation'); * @subpackage cake.tests.cases.libs */ class CustomValidator { + /** * Makes sure that a given $email address is valid and unique * @@ -43,6 +46,7 @@ class CustomValidator { return preg_match('/^[0-9]{3}$/', $check); } } + /** * Test Case for Validation Class * @@ -50,6 +54,7 @@ class CustomValidator { * @subpackage cake.tests.cases.libs */ class ValidationTest extends CakeTestCase { + /** * Validation property * @@ -57,6 +62,7 @@ class ValidationTest extends CakeTestCase { * @access public */ var $Validation = null; + /** * setup method * @@ -67,6 +73,7 @@ class ValidationTest extends CakeTestCase { $this->Validation =& Validation::getInstance(); $this->_appEncoding = Configure::read('App.encoding'); } + /** * tearDown method * @@ -76,6 +83,7 @@ class ValidationTest extends CakeTestCase { function tearDown() { Configure::write('App.encoding', $this->_appEncoding); } + /** * testNotEmpty method * @@ -94,6 +102,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::notEmpty("")); } + /** * testNotEmptyISO88591Encoding method * @@ -111,6 +120,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::notEmpty("\t ")); $this->assertFalse(Validation::notEmpty("")); } + /** * testAlphaNumeric method * @@ -137,6 +147,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::alphaNumeric(' ')); $this->assertFalse(Validation::alphaNumeric('')); } + /** * testAlphaNumericPassedAsArray method * @@ -156,6 +167,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::alphaNumeric(array('check' => ' '))); $this->assertFalse(Validation::alphaNumeric(array('check' => ''))); } + /** * testBetween method * @@ -167,6 +179,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::between('', 0, 7)); $this->assertFalse(Validation::between('abcdefg', 1, 6)); } + /** * testBlank method * @@ -182,6 +195,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::blank(' Blank')); $this->assertFalse(Validation::blank('Blank')); } + /** * testBlankAsArray method * @@ -197,6 +211,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::blank(array('check' => ' Blank'))); $this->assertFalse(Validation::blank(array('check' => 'Blank'))); } + /** * testcc method * @@ -641,6 +656,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::cc('869921250068209', array('voyager'))); $this->assertTrue(Validation::cc('869972521242198', array('voyager'))); } + /** * testLuhn method * @@ -720,6 +736,7 @@ class ValidationTest extends CakeTestCase { $this->Validation->check = '869940697287173'; $this->assertFalse($this->Validation->_luhn()); } + /** * testCustomRegexForCc method * @@ -731,6 +748,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::cc('1233210593374358', null, null, '/123321\\d{11}/')); $this->assertFalse(Validation::cc('12312305933743585', null, null, '/123321\\d{11}/')); } + /** * testCustomRegexForCcWithLuhnCheck method * @@ -743,6 +761,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::cc('12332105933743587', null, true, '/123321\\d{11}/')); $this->assertFalse(Validation::cc('12312305933743585', null, true, '/123321\\d{11}/')); } + /** * testFastCc method * @@ -771,6 +790,7 @@ class ValidationTest extends CakeTestCase { //Visa Electron $this->assertTrue(Validation::cc('4175003346287100')); } + /** * testAllCc method * @@ -821,6 +841,7 @@ class ValidationTest extends CakeTestCase { //Voyager $this->assertTrue(Validation::cc('869940697287073', 'all')); } + /** * testAllCcDeep method * @@ -871,6 +892,7 @@ class ValidationTest extends CakeTestCase { //Voyager $this->assertTrue(Validation::cc('869940697287073', 'all', true)); } + /** * testComparison method * @@ -908,6 +930,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::comparison(7, 'not equal', 7)); $this->assertFalse(Validation::comparison(7, '!=', 7)); } + /** * testComparisonAsArray method * @@ -944,6 +967,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::comparison(array('check1' => 7, 'operator' => 'not equal', 'check2' => 7))); $this->assertFalse(Validation::comparison(array('check1' => 7, 'operator' => '!=', 'check2' => 7))); } + /** * testCustom method * @@ -956,6 +980,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::custom('123.45', '/(?<!\\S)\\d++(?!\\S)/')); $this->assertFalse(Validation::custom('missing regex')); } + /** * testCustomAsArray method * @@ -967,6 +992,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::custom(array('check' => 'Text', 'regex' => '/(?<!\\S)\\d++(?!\\S)/'))); $this->assertFalse(Validation::custom(array('check' => '123.45', 'regex' => '/(?<!\\S)\\d++(?!\\S)/'))); } + /** * testDateDdmmyyyy method * @@ -987,6 +1013,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('31/11/2006', array('dmy'))); $this->assertFalse(Validation::date('31 11 2006', array('dmy'))); } + /** * testDateDdmmyyyyLeapYear method * @@ -1003,6 +1030,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('29/02/2006', array('dmy'))); $this->assertFalse(Validation::date('29 02 2006', array('dmy'))); } + /** * testDateDdmmyy method * @@ -1023,6 +1051,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('31/11/06', array('dmy'))); $this->assertFalse(Validation::date('31 11 06', array('dmy'))); } + /** * testDateDdmmyyLeapYear method * @@ -1039,6 +1068,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('29/02/06', array('dmy'))); $this->assertFalse(Validation::date('29 02 06', array('dmy'))); } + /** * testDateDmyy method * @@ -1059,6 +1089,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('32/2/06', array('dmy'))); $this->assertFalse(Validation::date('32 2 06', array('dmy'))); } + /** * testDateDmyyLeapYear method * @@ -1075,6 +1106,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('29/2/06', array('dmy'))); $this->assertFalse(Validation::date('29 2 06', array('dmy'))); } + /** * testDateDmyyyy method * @@ -1095,6 +1127,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('32/2/2006', array('dmy'))); $this->assertFalse(Validation::date('32 2 2006', array('dmy'))); } + /** * testDateDmyyyyLeapYear method * @@ -1111,6 +1144,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('29/2/2006', array('dmy'))); $this->assertFalse(Validation::date('29 2 2006', array('dmy'))); } + /** * testDateMmddyyyy method * @@ -1131,6 +1165,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('11/31/2006', array('mdy'))); $this->assertFalse(Validation::date('11 31 2006', array('mdy'))); } + /** * testDateMmddyyyyLeapYear method * @@ -1147,6 +1182,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('02/29/2006', array('mdy'))); $this->assertFalse(Validation::date('02 29 2006', array('mdy'))); } + /** * testDateMmddyy method * @@ -1167,6 +1203,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('11/31/06', array('mdy'))); $this->assertFalse(Validation::date('11 31 06', array('mdy'))); } + /** * testDateMmddyyLeapYear method * @@ -1183,6 +1220,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('02/29/06', array('mdy'))); $this->assertFalse(Validation::date('02 29 06', array('mdy'))); } + /** * testDateMdyy method * @@ -1203,6 +1241,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('2/32/06', array('mdy'))); $this->assertFalse(Validation::date('2 32 06', array('mdy'))); } + /** * testDateMdyyLeapYear method * @@ -1219,6 +1258,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('2/29/06', array('mdy'))); $this->assertFalse(Validation::date('2 29 06', array('mdy'))); } + /** * testDateMdyyyy method * @@ -1239,6 +1279,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('2/32/2006', array('mdy'))); $this->assertFalse(Validation::date('2 32 2006', array('mdy'))); } + /** * testDateMdyyyyLeapYear method * @@ -1255,6 +1296,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('2/29/2006', array('mdy'))); $this->assertFalse(Validation::date('2 29 2006', array('mdy'))); } + /** * testDateYyyymmdd method * @@ -1271,6 +1313,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('2006/11/31', array('ymd'))); $this->assertFalse(Validation::date('2006 11 31', array('ymd'))); } + /** * testDateYyyymmddLeapYear method * @@ -1287,6 +1330,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('2006/02/29', array('ymd'))); $this->assertFalse(Validation::date('2006 02 29', array('ymd'))); } + /** * testDateYymmdd method * @@ -1307,6 +1351,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('06/11/31', array('ymd'))); $this->assertFalse(Validation::date('06 11 31', array('ymd'))); } + /** * testDateYymmddLeapYear method * @@ -1323,6 +1368,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('2006/02/29', array('ymd'))); $this->assertFalse(Validation::date('2006 02 29', array('ymd'))); } + /** * testDateDdMMMMyyyy method * @@ -1335,6 +1381,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('2006 Dec 27', array('dMy'))); $this->assertFalse(Validation::date('2006 December 27', array('dMy'))); } + /** * testDateDdMMMMyyyyLeapYear method * @@ -1345,6 +1392,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::date('29 February 2004', array('dMy'))); $this->assertFalse(Validation::date('29 February 2006', array('dMy'))); } + /** * testDateMmmmDdyyyy method * @@ -1359,6 +1407,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('27 Dec 2006', array('Mdy'))); $this->assertFalse(Validation::date('2006 December 27', array('Mdy'))); } + /** * testDateMmmmDdyyyyLeapYear method * @@ -1372,6 +1421,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::date('Feb 29 2004', array('Mdy'))); $this->assertFalse(Validation::date('February 29, 2006', array('Mdy'))); } + /** * testDateMy method * @@ -1384,6 +1434,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::date('December/2006', array('My'))); $this->assertTrue(Validation::date('Dec/2006', array('My'))); } + /** * testDateMyNumeric method * @@ -1400,6 +1451,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::date('12.06', array('my'))); $this->assertFalse(Validation::date('12 06', array('my'))); } + /** * testTime method * @@ -1421,6 +1473,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::time('13:00pm')); $this->assertFalse(Validation::time('9:00')); } + /** * testBoolean method * @@ -1440,6 +1493,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::boolean('2')); $this->assertFalse(Validation::boolean('Boo!')); } + /** * testDateCustomRegx method * @@ -1450,6 +1504,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::date('2006-12-27', null, '%^(19|20)[0-9]{2}[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$%')); $this->assertFalse(Validation::date('12-27-2006', null, '%^(19|20)[0-9]{2}[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$%')); } + /** * testDecimal method * @@ -1468,6 +1523,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::decimal('-1234')); $this->assertFalse(Validation::decimal('+1234')); } + /** * testDecimalWithPlaces method * @@ -1492,6 +1548,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::decimal(-1234.5678, 3)); $this->assertFalse(Validation::decimal(+1234.5678, 3)); } + /** * testDecimalCustomRegex method * @@ -1502,6 +1559,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::decimal('1.54321', null, '/^[-+]?[0-9]+(\\.[0-9]+)?$/s')); $this->assertFalse(Validation::decimal('.54321', null, '/^[-+]?[0-9]+(\\.[0-9]+)?$/s')); } + /** * testEmail method * @@ -1577,6 +1635,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::email('abc@example_underscored.com')); $this->assertFalse(Validation::email('raw@test.ra.ru....com')); } + /** * testEmailDeep method * @@ -1588,6 +1647,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::email('abc.efg@caphpkeinvalid.com', true)); $this->assertFalse(Validation::email('abc@example.abcd', true)); } + /** * testEmailCustomRegex method * @@ -1598,6 +1658,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::email('abc.efg@cakephp.org', null, '/^[A-Z0-9._%-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$/i')); $this->assertFalse(Validation::email('abc.efg@com.caphpkeinvalid', null, '/^[A-Z0-9._%-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$/i')); } + /** * testEqualTo method * @@ -1612,6 +1673,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::equalTo(0, false)); $this->assertFalse(Validation::equalTo(null, false)); } + /** * testIp method * @@ -1626,6 +1688,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::ip('127.0.0.a')); $this->assertFalse(Validation::ip('127.0.0.256')); } + /** * testMaxLength method * @@ -1637,6 +1700,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::maxLength('abc', 3)); $this->assertFalse(Validation::maxLength('abcd', 3)); } + /** * testMinLength method * @@ -1648,6 +1712,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::minLength('abc', 3)); $this->assertTrue(Validation::minLength('abcd', 3)); } + /** * testUrl method * @@ -1691,6 +1756,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::url('www.cakephp.org', true)); $this->assertTrue(Validation::url('http://www.cakephp.org', true)); } + /** * testInList method * @@ -1702,6 +1768,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::inList('two', array('one', 'two'))); $this->assertFalse(Validation::inList('three', array('one', 'two'))); } + /** * testValidNumber method * @@ -1728,6 +1795,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::custom('.2345', VALID_NUMBER)); $this->assertFalse(Validation::custom('12345.', VALID_NUMBER)); } + /** * testRange method * @@ -1743,6 +1811,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::range(-5, -10, 1)); $this->assertFalse(Validation::range('word')); } + /** * testExtension method * @@ -1772,6 +1841,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::extension(array('noextension', 'extension.JPG', 'extension.gif', 'extension.png'))); $this->assertFalse(Validation::extension(array('extension.pdf', 'extension.JPG', 'extension.gif', 'extension.png'))); } + /** * testMoney method * @@ -1804,6 +1874,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::money('100.1€', 'right')); $this->assertFalse(Validation::money('100.1111€', 'right')); } + /** * Test Multiple Select Validation * @@ -1843,6 +1914,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::multiple(array(0, 5, 9, 8, 6, 2, 1), array('in' => range(0, 10), 'max' => 5, 'min' => 2))); $this->assertFalse(Validation::multiple(array(0, 5, 9, 8, 11), array('in' => range(0, 10), 'max' => 5, 'min' => 2))); } + /** * testNumeric method * @@ -1859,6 +1931,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::numeric(2.2)); $this->assertTrue(Validation::numeric('2.2')); } + /** * testPhone method * @@ -1890,6 +1963,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::phone('1.(333).333.4444')); $this->assertTrue(Validation::phone('1-333-333-4444')); } + /** * testPostal method * @@ -1942,6 +2016,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::postal('13A89-4333')); $this->assertTrue(Validation::postal('13089-3333')); } + /** * testSsn method * @@ -1963,6 +2038,7 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::ssn('111-33-333', null, 'us')); $this->assertTrue(Validation::ssn('111-33-4333', null, 'us')); } + /** * testUserDefined method * diff --git a/cake/tests/cases/libs/view/helper.test.php b/cake/tests/cases/libs/view/helper.test.php index e380650b9..6b314dece 100644 --- a/cake/tests/cases/libs/view/helper.test.php +++ b/cake/tests/cases/libs/view/helper.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * HelperTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', array('View', 'Helper')); + /** * HelperTestPost class * @@ -32,6 +34,7 @@ App::import('Core', array('View', 'Helper')); * @subpackage cake.tests.cases.libs.view */ class HelperTestPost extends Model { + /** * useTable property * @@ -39,6 +42,7 @@ class HelperTestPost extends Model { * @access public */ var $useTable = false; + /** * schema method * @@ -57,6 +61,7 @@ class HelperTestPost extends Model { ); return $this->_schema; } + /** * hasAndBelongsToMany property * @@ -65,6 +70,7 @@ class HelperTestPost extends Model { */ var $hasAndBelongsToMany = array('HelperTestTag'=> array('with' => 'HelperTestPostsTag')); } + /** * HelperTestComment class * @@ -72,6 +78,7 @@ class HelperTestPost extends Model { * @subpackage cake.tests.cases.libs.view */ class HelperTestComment extends Model { + /** * useTable property * @@ -79,6 +86,7 @@ class HelperTestComment extends Model { * @access public */ var $useTable = false; + /** * schema method * @@ -97,6 +105,7 @@ class HelperTestComment extends Model { return $this->_schema; } } + /** * HelperTestTag class * @@ -104,6 +113,7 @@ class HelperTestComment extends Model { * @subpackage cake.tests.cases.libs.view */ class HelperTestTag extends Model { + /** * useTable property * @@ -111,6 +121,7 @@ class HelperTestTag extends Model { * @access public */ var $useTable = false; + /** * schema method * @@ -127,6 +138,7 @@ class HelperTestTag extends Model { return $this->_schema; } } + /** * HelperTestPostsTag class * @@ -134,6 +146,7 @@ class HelperTestTag extends Model { * @subpackage cake.tests.cases.libs.view */ class HelperTestPostsTag extends Model { + /** * useTable property * @@ -141,6 +154,7 @@ class HelperTestPostsTag extends Model { * @access public */ var $useTable = false; + /** * schema method * @@ -155,6 +169,7 @@ class HelperTestPostsTag extends Model { return $this->_schema; } } + /** * HelperTest class * @@ -162,6 +177,7 @@ class HelperTestPostsTag extends Model { * @subpackage cake.tests.cases.libs */ class HelperTest extends CakeTestCase { + /** * setUp method * @@ -178,6 +194,7 @@ class HelperTest extends CakeTestCase { ClassRegistry::addObject('HelperTestComment', new HelperTestComment()); ClassRegistry::addObject('HelperTestTag', new HelperTestTag()); } + /** * tearDown method * @@ -188,6 +205,7 @@ class HelperTest extends CakeTestCase { unset($this->Helper, $this->View); ClassRegistry::flush(); } + /** * testFormFieldNameParsing method * @@ -324,6 +342,7 @@ class HelperTest extends CakeTestCase { $this->assertEqual($this->View->association, null); $this->assertEqual($this->View->fieldSuffix, null); } + /** * test getting values from Helper * @@ -355,6 +374,7 @@ class HelperTest extends CakeTestCase { $result = $this->Helper->value('Post.2.created.year'); $this->assertEqual($result, '2008'); } + /** * Ensure HTML escaping of url params. So link addresses are valid and not exploited * @@ -385,11 +405,12 @@ class HelperTest extends CakeTestCase { $this->assertEqual($result, "/posts/index/param:%7Baround%20here%7D%5Bthings%5D%5Bare%5D%24%24"); $result = $this->Helper->url(array( - 'controller' => 'posts', 'action' => 'index', 'page' => '1', + 'controller' => 'posts', 'action' => 'index', 'page' => '1', '?' => array('one' => 'value', 'two' => 'value', 'three' => 'purple') )); $this->assertEqual($result, "/posts/index/page:1?one=value&two=value&three=purple"); } + /** * testFieldsWithSameName method * @@ -425,6 +446,7 @@ class HelperTest extends CakeTestCase { $this->assertEqual($this->View->fieldSuffix, null); } + /** * testFieldSameAsModel method * @@ -446,6 +468,7 @@ class HelperTest extends CakeTestCase { $this->assertEqual($this->View->fieldSuffix, null); } + /** * testFieldSuffixForDate method * @@ -471,6 +494,7 @@ class HelperTest extends CakeTestCase { $this->assertEqual($this->View->association, null); $this->assertEqual($this->View->fieldSuffix, 'month'); } + /** * testMulitDimensionValue method * @@ -504,6 +528,7 @@ class HelperTest extends CakeTestCase { $result = $this->Helper->value('0.id'); $this->assertEqual($result, 100); } + /** * testClean method * diff --git a/cake/tests/cases/libs/view/helpers/ajax.test.php b/cake/tests/cases/libs/view/helpers/ajax.test.php index 439846e0d..c6977d0c3 100644 --- a/cake/tests/cases/libs/view/helpers/ajax.test.php +++ b/cake/tests/cases/libs/view/helpers/ajax.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * AjaxHelperTest file * @@ -37,6 +38,7 @@ uses( 'view' . DS . 'helpers' . DS . 'form', 'view' . DS . 'helpers' . DS . 'javascript' ); + /** * AjaxTestController class * @@ -44,6 +46,7 @@ uses( * @subpackage cake.tests.cases.libs.view.helpers */ class AjaxTestController extends Controller { + /** * name property * @@ -51,6 +54,7 @@ class AjaxTestController extends Controller { * @access public */ var $name = 'AjaxTest'; + /** * uses property * @@ -59,6 +63,7 @@ class AjaxTestController extends Controller { */ var $uses = null; } + /** * PostAjaxTest class * @@ -66,6 +71,7 @@ class AjaxTestController extends Controller { * @subpackage cake.tests.cases.libs.view.helpers */ class PostAjaxTest extends Model { + /** * primaryKey property * @@ -73,6 +79,7 @@ class PostAjaxTest extends Model { * @access public */ var $primaryKey = 'id'; + /** * useTable property * @@ -80,6 +87,7 @@ class PostAjaxTest extends Model { * @access public */ var $useTable = false; + /** * schema method * @@ -95,6 +103,7 @@ class PostAjaxTest extends Model { ); } } + /** * TestAjaxHelper class * @@ -102,6 +111,7 @@ class PostAjaxTest extends Model { * @subpackage cake.tests.cases.libs.view.helpers */ class TestAjaxHelper extends AjaxHelper { + /** * stop method * @@ -111,6 +121,7 @@ class TestAjaxHelper extends AjaxHelper { function _stop() { } } + /** * TestJavascriptHelper class * @@ -118,6 +129,7 @@ class TestAjaxHelper extends AjaxHelper { * @subpackage cake.tests.cases.libs.view.helpers */ class TestJavascriptHelper extends JavascriptHelper { + /** * codeBlocks property * @@ -125,6 +137,7 @@ class TestJavascriptHelper extends JavascriptHelper { * @access public */ var $codeBlocks; + /** * codeBlock method * @@ -139,6 +152,7 @@ class TestJavascriptHelper extends JavascriptHelper { $this->codeBlocks[] = $parameter; } } + /** * AjaxTest class * @@ -146,18 +160,21 @@ class TestJavascriptHelper extends JavascriptHelper { * @subpackage cake.tests.cases.libs.view.helpers */ class AjaxHelperTest extends CakeTestCase { + /** * Regexp for CDATA start block * * @var string */ var $cDataStart = 'preg:/^\/\/<!\[CDATA\[[\n\r]*/'; + /** * Regexp for CDATA end block * * @var string */ var $cDataEnd = 'preg:/[^\]]*\]\]\>[\s\r\n]*/'; + /** * setUp method * @@ -175,6 +192,7 @@ class AjaxHelperTest extends CakeTestCase { ClassRegistry::addObject('view', $view); ClassRegistry::addObject('PostAjaxTest', new PostAjaxTest()); } + /** * tearDown method * @@ -185,6 +203,7 @@ class AjaxHelperTest extends CakeTestCase { unset($this->Ajax); ClassRegistry::flush(); } + /** * testEvalScripts method * @@ -218,6 +237,7 @@ class AjaxHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testAutoComplete method * @@ -264,6 +284,7 @@ class AjaxHelperTest extends CakeTestCase { $this->assertPattern('/{parameters:\'key=value&key2=value2\'}/', $result); } + /** * testAsynchronous method * @@ -284,6 +305,7 @@ class AjaxHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testDraggable method * @@ -305,6 +327,7 @@ class AjaxHelperTest extends CakeTestCase { $this->assertPattern('/onDrag:doDrag/', $result); $this->assertPattern('/onEnd:doEnd/', $result); } + /** * testDroppable method * @@ -352,6 +375,7 @@ class AjaxHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testForm method * @@ -366,6 +390,7 @@ class AjaxHelperTest extends CakeTestCase { $this->assertPattern('/id="MyFormID"/', $result); $this->assertPattern('/name="SomeFormName"/', $result); } + /** * testSortable method * @@ -439,6 +464,7 @@ class AjaxHelperTest extends CakeTestCase { $expected = "Sortable.create('div', {scroll:$('someElement')});"; $this->assertEqual($result, $expected); } + /** * testSubmitWithIndicator method * @@ -450,6 +476,7 @@ class AjaxHelperTest extends CakeTestCase { $this->assertPattern('/onLoading:function\(request\) {doSomething\(\);\s+Element.show\(\'loading\'\);}/', $result); $this->assertPattern('/onComplete:function\(request, json\) {doSomethingElse\(\) ;\s+Element.hide\(\'loading\'\);}/', $result); } + /** * testLink method * @@ -559,6 +586,7 @@ class AjaxHelperTest extends CakeTestCase { $this->assertNoPattern('/^<a[^<>]+complete="test"[^<>]*>Ajax Link<\/a>/', $result); $this->assertNoPattern('/^<a\s+[^<>]*url="[^"]*"[^<>]*>/', $result); } + /** * testRemoteTimer method * @@ -614,6 +642,7 @@ class AjaxHelperTest extends CakeTestCase { $this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*new PeriodicalExecuter\(function\(\) {.+}, 10\)\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result); $this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Request(\'http://www.cakephp.org\', {asynchronous:true, evalScripts:true, postBody:\'var1=value1\'})')) . '/', $result); } + /** * testObserveField method * @@ -645,6 +674,7 @@ class AjaxHelperTest extends CakeTestCase { $this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*new Form.Element.EventObserver\(\'field\', function\(element, value\) {.+}\)\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result); $this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Updater(\'divId\',\'http://www.cakephp.org\', {asynchronous:true, evalScripts:true, parameters:Form.Element.serialize(\'otherField\'), requestHeaders:[\'X-Update\', \'divId\']})')) . '/', $result); } + /** * testObserveForm method * @@ -692,6 +722,7 @@ class AjaxHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testSlider method * @@ -769,6 +800,7 @@ class AjaxHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testRemoteFunction method * @@ -792,6 +824,7 @@ class AjaxHelperTest extends CakeTestCase { $expected = "if (confirm('Are you sure?')) { new Ajax.Updater('myDiv','/', {asynchronous:true, evalScripts:true, requestHeaders:['X-Update', 'myDiv']}); } else { event.returnValue = false; return false; }"; $this->assertEqual($result, $expected); } + /** * testDiv method * @@ -824,6 +857,7 @@ class AjaxHelperTest extends CakeTestCase { $_SERVER['HTTP_X_UPDATE'] = $oldXUpdate; } + /** * testAfterRender method * @@ -851,6 +885,7 @@ class AjaxHelperTest extends CakeTestCase { $_SERVER['HTTP_X_UPDATE'] = $oldXUpdate; } + /** * testEditor method * diff --git a/cake/tests/cases/libs/view/helpers/cache.test.php b/cake/tests/cases/libs/view/helpers/cache.test.php index 907146e24..8b6afb102 100644 --- a/cake/tests/cases/libs/view/helpers/cache.test.php +++ b/cake/tests/cases/libs/view/helpers/cache.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CacheHelperTest file * @@ -29,6 +30,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { } App::import('Core', array('Controller', 'Model', 'View')); App::import('Helper', 'Cache'); + /** * TestCacheHelper class * @@ -37,6 +39,7 @@ App::import('Helper', 'Cache'); */ class TestCacheHelper extends CacheHelper { } + /** * CacheTestController class * @@ -44,6 +47,7 @@ class TestCacheHelper extends CacheHelper { * @subpackage cake.tests.cases.libs.view.helpers */ class CacheTestController extends Controller { + /** * helpers property * @@ -51,6 +55,7 @@ class CacheTestController extends Controller { * @access public */ var $helpers = array('Html', 'Cache'); + /** * cache_parsing method * @@ -64,6 +69,7 @@ class CacheTestController extends Controller { $this->set('superman', 'clark kent'); } } + /** * CacheHelperTest class * @@ -71,6 +77,7 @@ class CacheTestController extends Controller { * @subpackage cake.tests.cases.libs.view.helpers */ class CacheHelperTest extends CakeTestCase { + /** * setUp method * @@ -83,6 +90,7 @@ class CacheHelperTest extends CakeTestCase { Configure::write('Cache.check', true); Configure::write('Cache.disable', false); } + /** * Start Case - switch view paths * @@ -94,6 +102,7 @@ class CacheHelperTest extends CakeTestCase { 'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS) )); } + /** * End Case - restore view Paths * @@ -103,6 +112,7 @@ class CacheHelperTest extends CakeTestCase { function endCase() { App::build(); } + /** * tearDown method * @@ -112,6 +122,7 @@ class CacheHelperTest extends CakeTestCase { function tearDown() { unset($this->Cache); } + /** * test cache parsing with no cake:nocache tags in view file. * @@ -139,6 +150,7 @@ class CacheHelperTest extends CakeTestCase { @unlink($filename); } + /** * Test cache parsing with cake:nocache tags in view file. * @@ -166,6 +178,7 @@ class CacheHelperTest extends CakeTestCase { @unlink($filename); } + /** * testComplexNoCache method * @@ -220,6 +233,7 @@ class CacheHelperTest extends CakeTestCase { //$this->assertPattern('/6\. in element with no cache tags/', $contents); $this->assertPattern('/7\. layout after content and after element with no cache tags/', $contents); } + /** * testCacheEmptySections method * diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php index ff6895ec7..f0d010fdf 100644 --- a/cake/tests/cases/libs/view/helpers/form.test.php +++ b/cake/tests/cases/libs/view/helpers/form.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * FormHelperTest file * @@ -30,6 +31,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { App::import('Core', array('ClassRegistry', 'Controller', 'View', 'Model', 'Security')); App::import('Helper', 'Html'); App::import('Helper', 'Form'); + /** * ContactTestController class * @@ -37,6 +39,7 @@ App::import('Helper', 'Form'); * @subpackage cake.tests.cases.libs.view.helpers */ class ContactTestController extends Controller { + /** * name property * @@ -44,6 +47,7 @@ class ContactTestController extends Controller { * @access public */ var $name = 'ContactTest'; + /** * uses property * @@ -52,6 +56,7 @@ class ContactTestController extends Controller { */ var $uses = null; } + /** * Contact class * @@ -59,6 +64,7 @@ class ContactTestController extends Controller { * @subpackage cake.tests.cases.libs.view.helpers */ class Contact extends CakeTestModel { + /** * primaryKey property * @@ -66,6 +72,7 @@ class Contact extends CakeTestModel { * @access public */ var $primaryKey = 'id'; + /** * useTable property * @@ -73,6 +80,7 @@ class Contact extends CakeTestModel { * @access public */ var $useTable = false; + /** * name property * @@ -80,6 +88,7 @@ class Contact extends CakeTestModel { * @access public */ var $name = 'Contact'; + /** * Default schema * @@ -96,6 +105,7 @@ class Contact extends CakeTestModel { 'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''), 'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); + /** * validate property * @@ -110,6 +120,7 @@ class Contact extends CakeTestModel { 'imnotrequired' => array('required' => false, 'rule' => 'alphaNumeric'), 'imalsonotrequired' => array('alpha' => array('rule' => 'alphaNumeric','required' => false), 'between' => array('rule' => array('between', 5, 30)))); + /** * schema method * @@ -119,6 +130,7 @@ class Contact extends CakeTestModel { function setSchema($schema) { $this->_schema = $schema; } + /** * hasAndBelongsToMany property * @@ -127,6 +139,7 @@ class Contact extends CakeTestModel { */ var $hasAndBelongsToMany = array('ContactTag' => array('with' => 'ContactTagsContact')); } + /** * ContactTagsContact class * @@ -134,6 +147,7 @@ class Contact extends CakeTestModel { * @subpackage cake.tests.cases.libs.view.helpers */ class ContactTagsContact extends CakeTestModel { + /** * useTable property * @@ -141,6 +155,7 @@ class ContactTagsContact extends CakeTestModel { * @access public */ var $useTable = false; + /** * name property * @@ -148,6 +163,7 @@ class ContactTagsContact extends CakeTestModel { * @access public */ var $name = 'ContactTagsContact'; + /** * Default schema * @@ -160,6 +176,7 @@ class ContactTagsContact extends CakeTestModel { 'type' => 'integer', 'null' => '', 'default' => '', 'length' => '8' ) ); + /** * schema method * @@ -170,6 +187,7 @@ class ContactTagsContact extends CakeTestModel { $this->_schema = $schema; } } + /** * ContactNonStandardPk class * @@ -177,6 +195,7 @@ class ContactTagsContact extends CakeTestModel { * @subpackage cake.tests.cases.libs.view.helpers */ class ContactNonStandardPk extends Contact { + /** * primaryKey property * @@ -184,6 +203,7 @@ class ContactNonStandardPk extends Contact { * @access public */ var $primaryKey = 'pk'; + /** * name property * @@ -191,6 +211,7 @@ class ContactNonStandardPk extends Contact { * @access public */ var $name = 'ContactNonStandardPk'; + /** * schema method * @@ -204,6 +225,7 @@ class ContactNonStandardPk extends Contact { return $this->_schema; } } + /** * ContactTag class * @@ -211,6 +233,7 @@ class ContactNonStandardPk extends Contact { * @subpackage cake.tests.cases.libs.view.helpers */ class ContactTag extends Model { + /** * useTable property * @@ -218,6 +241,7 @@ class ContactTag extends Model { * @access public */ var $useTable = false; + /** * schema definition * @@ -231,6 +255,7 @@ class ContactTag extends Model { 'modified' => array('type' => 'datetime', 'null' => true, 'default' => '', 'length' => null) ); } + /** * UserForm class * @@ -238,6 +263,7 @@ class ContactTag extends Model { * @subpackage cake.tests.cases.libs.view.helpers */ class UserForm extends CakeTestModel { + /** * useTable property * @@ -245,6 +271,7 @@ class UserForm extends CakeTestModel { * @access public */ var $useTable = false; + /** * primaryKey property * @@ -252,6 +279,7 @@ class UserForm extends CakeTestModel { * @access public */ var $primaryKey = 'id'; + /** * name property * @@ -259,6 +287,7 @@ class UserForm extends CakeTestModel { * @access public */ var $name = 'UserForm'; + /** * hasMany property * @@ -268,6 +297,7 @@ class UserForm extends CakeTestModel { var $hasMany = array( 'OpenidUrl' => array('className' => 'OpenidUrl', 'foreignKey' => 'user_form_id' )); + /** * schema definition * @@ -284,6 +314,7 @@ class UserForm extends CakeTestModel { 'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); } + /** * OpenidUrl class * @@ -291,6 +322,7 @@ class UserForm extends CakeTestModel { * @subpackage cake.tests.cases.libs.view.helpers */ class OpenidUrl extends CakeTestModel { + /** * useTable property * @@ -298,6 +330,7 @@ class OpenidUrl extends CakeTestModel { * @access public */ var $useTable = false; + /** * primaryKey property * @@ -305,6 +338,7 @@ class OpenidUrl extends CakeTestModel { * @access public */ var $primaryKey = 'id'; + /** * name property * @@ -312,6 +346,7 @@ class OpenidUrl extends CakeTestModel { * @access public */ var $name = 'OpenidUrl'; + /** * belongsTo property * @@ -321,6 +356,7 @@ class OpenidUrl extends CakeTestModel { var $belongsTo = array('UserForm' => array( 'className' => 'UserForm', 'foreignKey' => 'user_form_id' )); + /** * validate property * @@ -328,6 +364,7 @@ class OpenidUrl extends CakeTestModel { * @access public */ var $validate = array('openid_not_registered' => array()); + /** * schema method * @@ -341,6 +378,7 @@ class OpenidUrl extends CakeTestModel { ), 'url' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'), ); + /** * beforeValidate method * @@ -352,6 +390,7 @@ class OpenidUrl extends CakeTestModel { return true; } } + /** * ValidateUser class * @@ -359,6 +398,7 @@ class OpenidUrl extends CakeTestModel { * @subpackage cake.tests.cases.libs.view.helpers */ class ValidateUser extends CakeTestModel { + /** * primaryKey property * @@ -366,6 +406,7 @@ class ValidateUser extends CakeTestModel { * @access public */ var $primaryKey = 'id'; + /** * useTable property * @@ -373,6 +414,7 @@ class ValidateUser extends CakeTestModel { * @access public */ var $useTable = false; + /** * name property * @@ -380,6 +422,7 @@ class ValidateUser extends CakeTestModel { * @access public */ var $name = 'ValidateUser'; + /** * hasOne property * @@ -389,6 +432,7 @@ class ValidateUser extends CakeTestModel { var $hasOne = array('ValidateProfile' => array( 'className' => 'ValidateProfile', 'foreignKey' => 'user_id' )); + /** * schema method * @@ -403,6 +447,7 @@ class ValidateUser extends CakeTestModel { 'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''), 'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); + /** * beforeValidate method * @@ -414,6 +459,7 @@ class ValidateUser extends CakeTestModel { return false; } } + /** * ValidateProfile class * @@ -421,6 +467,7 @@ class ValidateUser extends CakeTestModel { * @subpackage cake.tests.cases.libs.view.helpers */ class ValidateProfile extends CakeTestModel { + /** * primaryKey property * @@ -428,6 +475,7 @@ class ValidateProfile extends CakeTestModel { * @access public */ var $primaryKey = 'id'; + /** * useTable property * @@ -435,6 +483,7 @@ class ValidateProfile extends CakeTestModel { * @access public */ var $useTable = false; + /** * schema property * @@ -449,6 +498,7 @@ class ValidateProfile extends CakeTestModel { 'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''), 'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); + /** * name property * @@ -456,6 +506,7 @@ class ValidateProfile extends CakeTestModel { * @access public */ var $name = 'ValidateProfile'; + /** * hasOne property * @@ -465,6 +516,7 @@ class ValidateProfile extends CakeTestModel { var $hasOne = array('ValidateItem' => array( 'className' => 'ValidateItem', 'foreignKey' => 'profile_id' )); + /** * belongsTo property * @@ -474,6 +526,7 @@ class ValidateProfile extends CakeTestModel { var $belongsTo = array('ValidateUser' => array( 'className' => 'ValidateUser', 'foreignKey' => 'user_id' )); + /** * beforeValidate method * @@ -486,6 +539,7 @@ class ValidateProfile extends CakeTestModel { return false; } } + /** * ValidateItem class * @@ -493,6 +547,7 @@ class ValidateProfile extends CakeTestModel { * @subpackage cake.tests.cases.libs.view.helpers */ class ValidateItem extends CakeTestModel { + /** * primaryKey property * @@ -500,6 +555,7 @@ class ValidateItem extends CakeTestModel { * @access public */ var $primaryKey = 'id'; + /** * useTable property * @@ -507,6 +563,7 @@ class ValidateItem extends CakeTestModel { * @access public */ var $useTable = false; + /** * name property * @@ -514,6 +571,7 @@ class ValidateItem extends CakeTestModel { * @access public */ var $name = 'ValidateItem'; + /** * schema property * @@ -530,6 +588,7 @@ class ValidateItem extends CakeTestModel { 'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''), 'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null) ); + /** * belongsTo property * @@ -537,6 +596,7 @@ class ValidateItem extends CakeTestModel { * @access public */ var $belongsTo = array('ValidateProfile' => array('foreignKey' => 'profile_id')); + /** * beforeValidate method * @@ -548,6 +608,7 @@ class ValidateItem extends CakeTestModel { return false; } } + /** * TestMail class * @@ -555,6 +616,7 @@ class ValidateItem extends CakeTestModel { * @subpackage cake.tests.cases.libs.view.helpers */ class TestMail extends CakeTestModel { + /** * primaryKey property * @@ -562,6 +624,7 @@ class TestMail extends CakeTestModel { * @access public */ var $primaryKey = 'id'; + /** * useTable property * @@ -569,6 +632,7 @@ class TestMail extends CakeTestModel { * @access public */ var $useTable = false; + /** * name property * @@ -577,6 +641,7 @@ class TestMail extends CakeTestModel { */ var $name = 'TestMail'; } + /** * FormHelperTest class * @@ -584,6 +649,7 @@ class TestMail extends CakeTestModel { * @subpackage cake.tests.cases.libs.view.helpers */ class FormHelperTest extends CakeTestCase { + /** * fixtures property * @@ -591,6 +657,7 @@ class FormHelperTest extends CakeTestCase { * @access public */ var $fixtures = array(null); + /** * setUp method * @@ -628,6 +695,7 @@ class FormHelperTest extends CakeTestCase { Configure::write('Security.salt', 'foo!'); } + /** * tearDown method * @@ -647,6 +715,7 @@ class FormHelperTest extends CakeTestCase { unset($this->Form->Html, $this->Form, $this->Controller, $this->View); Configure::write('Security.salt', $this->oldSalt); } + /** * testFormCreateWithSecurity method * @@ -674,6 +743,7 @@ class FormHelperTest extends CakeTestCase { $expected['form']['id'] = 'MyForm'; $this->assertTags($result, $expected); } + /** * Tests form hash generation with model-less data * @@ -685,6 +755,7 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->secure(array('anything')); $this->assertPattern('/540ac9c60d323c22bafe997b72c0790f39a8bdef/', $result); } + /** * Tests that models with identical field names get resolved properly * @@ -713,6 +784,7 @@ class FormHelperTest extends CakeTestCase { $this->assertPattern('/name="data\[ValidateUser\]\[name\]"/', $result); $this->assertPattern('/type="text"/', $result); } + /** * Tests that hidden fields generated for checkboxes don't get locked * @@ -726,6 +798,7 @@ class FormHelperTest extends CakeTestCase { $this->Form->checkbox('check', array('value' => '1')); $this->assertIdentical($this->Form->fields, array('check')); } + /** * testFormSecurityFields method * @@ -753,6 +826,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * Tests correct generation of text fields for double and float fields * @@ -782,6 +856,7 @@ class FormHelperTest extends CakeTestCase { '/div' ); } + /** * testFormSecurityMultipleFields method * @@ -815,6 +890,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormSecurityMultipleSubmitButtons * @@ -856,6 +932,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormSecurityMultipleInputFields method * @@ -903,6 +980,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormSecurityMultipleInputDisabledFields method * @@ -946,6 +1024,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormSecurityInputDisabledFields method * @@ -989,6 +1068,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormSecuredInput method * @@ -1094,6 +1174,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * Tests that the correct keys are added to the field hash index * @@ -1111,6 +1192,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertEqual($this->Form->fields, $expected); } + /** * test that multiple selects keys are added to field hash * @@ -1130,6 +1212,7 @@ class FormHelperTest extends CakeTestCase { $this->Form->select('Model.select', $options, null, array('multiple' => true)); $this->assertEqual($this->Form->fields, $expected); } + /** * testFormSecuredRadio method * @@ -1145,6 +1228,7 @@ class FormHelperTest extends CakeTestCase { $expected = array('Test.test'); $this->assertEqual($this->Form->fields, $expected); } + /** * testPasswordValidation method * @@ -1172,6 +1256,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormValidationAssociated method * @@ -1213,6 +1298,7 @@ class FormHelperTest extends CakeTestCase { unset($this->UserForm->OpenidUrl, $this->UserForm); } + /** * testFormValidationAssociatedFirstLevel method * @@ -1252,6 +1338,7 @@ class FormHelperTest extends CakeTestCase { unset($this->ValidateUser->ValidateProfile); unset($this->ValidateUser); } + /** * testFormValidationAssociatedSecondLevel method * @@ -1296,6 +1383,7 @@ class FormHelperTest extends CakeTestCase { unset($this->ValidateUser->ValidateProfile); unset($this->ValidateUser); } + /** * testFormValidationMultiRecord method * @@ -1344,6 +1432,7 @@ class FormHelperTest extends CakeTestCase { '/div' ); } + /** * testMultipleInputValidation method * @@ -1416,6 +1505,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormInput method * @@ -1921,6 +2011,7 @@ class FormHelperTest extends CakeTestCase { $this->assertTags($result, $expected); } } + /** * testFormInputs method * @@ -2115,6 +2206,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testSelectAsCheckbox method * @@ -2148,6 +2240,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testLabel method * @@ -2183,6 +2276,7 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->label('Person.2.name', ''); $this->assertTags($result, array('label' => array('for' => 'Person2Name'), '/label')); } + /** * testTextbox method * @@ -2217,6 +2311,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testDefaultValue method * @@ -2234,6 +2329,7 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->text('Model.field', array('default' => 'default value')); $this->assertTags($result, array('input' => array('type' => 'text', 'name' => 'data[Model][field]', 'value' => 'default value', 'id' => 'ModelField'))); } + /** * testFieldError method * @@ -2270,6 +2366,7 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->error('Model.field', "<strong>Badness!</strong>", array('wrap' => false, 'escape' => false)); $this->assertEqual($result, '<strong>Badness!</strong>'); } + /** * testPassword method * @@ -2287,6 +2384,7 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->password('Model.passwd', array('id' => 'theID')); $this->assertTags($result, array('input' => array('type' => 'password', 'name' => 'data[Model][passwd]', 'value' => 'test', 'id' => 'theID', 'class' => 'form-error'))); } + /** * testRadio method * @@ -2574,6 +2672,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testSelect method * @@ -2657,6 +2756,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * Tests that FormHelper::select() allows null to be passed in the $attributes parameter * @@ -2677,6 +2777,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testNestedSelect method * @@ -2739,6 +2840,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testSelectMultiple method * @@ -2821,6 +2923,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * test generation of multi select elements in checkbox format * @@ -2926,6 +3029,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * Checks the security hash array generated for multiple-input checkbox elements * @@ -2946,6 +3050,7 @@ class FormHelperTest extends CakeTestCase { $key = 'f7d573650a295b94e0938d32b323fde775e5f32b%3An%3A0%3A%7B%7D'; $this->assertPattern('/"' . $key . '"/', $result); } + /** * testInputMultipleCheckboxes method * @@ -3037,6 +3142,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testCheckbox method * @@ -3152,6 +3258,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * Test that disabling a checkbox also disables the hidden input so no value is submitted * @@ -3165,7 +3272,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } - + /** * Test that specifying false in the 'disabled' option will not disable either the hidden input or the checkbox input * @@ -3179,7 +3286,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } - + /** * testDateTime method * @@ -3676,6 +3783,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormDateTimeMulti method * @@ -3765,6 +3873,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testMonth method * @@ -3802,6 +3911,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testDay method * @@ -3890,6 +4000,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testMinute method * @@ -3982,6 +4093,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testHour method * @@ -4076,6 +4188,7 @@ class FormHelperTest extends CakeTestCase { $optValue = date('G'); $this->assertPattern('/<option value="' . $thisHour . '" selected="selected">'. $optValue .'<\/option>/', $result); } + /** * testYear method * @@ -4222,6 +4335,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testTextArea method * @@ -4271,6 +4385,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testTextAreaWithStupidCharacters method * @@ -4295,6 +4410,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testHiddenField method * @@ -4307,6 +4423,7 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->hidden('Model.field', array('id' => 'theID')); $this->assertTags($result, array('input' => array('type' => 'hidden', 'name' => 'data[Model][field]', 'id' => 'theID', 'value' => 'test'))); } + /** * testFileUploadField method * @@ -4329,6 +4446,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * test File upload input on a model not used in create(); * @@ -4349,6 +4467,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testButton method * @@ -4374,6 +4493,7 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->button('Upload Text', array('onClick' => "$('#postAddForm').ajaxSubmit({target: '#postTextUpload', url: '/posts/text'});return false;'", 'escape' => false)); $this->assertNoPattern('/\&039/', $result); } + /** * testSubmitButton method * @@ -4457,6 +4577,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormCreate method * @@ -4574,6 +4695,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * Test base form url when url param is passed with multiple parameters (&) * @@ -4600,6 +4722,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected, true); } + /** * testGetFormCreate method * @@ -4628,6 +4751,7 @@ class FormHelperTest extends CakeTestCase { 'name' => 'user_form', 'type' => 'text', 'value' => '', 'id' => 'ContactUserForm' ))); } + /** * testEditFormWithData method * @@ -4666,6 +4790,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormMagicInput method * @@ -4891,6 +5016,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testForMagicInputNonExistingNorValidated method * @@ -4950,6 +5076,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormMagicInputLabel method * @@ -5070,6 +5197,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFormEnd method * @@ -5135,6 +5263,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testMultipleFormWithIdFields method * @@ -5161,6 +5290,7 @@ class FormHelperTest extends CakeTestCase { 'value' => '', 'id' => 'ValidateUserId' ))); } + /** * testDbLessModel method * @@ -5200,6 +5330,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testBrokenness method * diff --git a/cake/tests/cases/libs/view/helpers/html.test.php b/cake/tests/cases/libs/view/helpers/html.test.php index 52dd5cbaf..946e4388d 100644 --- a/cake/tests/cases/libs/view/helpers/html.test.php +++ b/cake/tests/cases/libs/view/helpers/html.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * HtmlHelperTest file * @@ -26,6 +27,7 @@ */ App::import('Core', array('Helper', 'AppHelper', 'ClassRegistry', 'Controller', 'Model')); App::import('Helper', array('Html', 'Form')); + /** * TheHtmlTestController class * @@ -33,6 +35,7 @@ App::import('Helper', array('Html', 'Form')); * @subpackage cake.tests.cases.libs.view.helpers */ class TheHtmlTestController extends Controller { + /** * name property * @@ -40,6 +43,7 @@ class TheHtmlTestController extends Controller { * @access public */ var $name = 'TheTest'; + /** * uses property * @@ -48,6 +52,7 @@ class TheHtmlTestController extends Controller { */ var $uses = null; } + /** * HtmlHelperTest class * @@ -55,6 +60,7 @@ class TheHtmlTestController extends Controller { * @subpackage cake.tests.cases.libs.view.helpers */ class HtmlHelperTest extends CakeTestCase { + /** * Html property * @@ -62,6 +68,7 @@ class HtmlHelperTest extends CakeTestCase { * @access public */ var $Html = null; + /** * Backup of app encoding configuration setting * @@ -69,6 +76,7 @@ class HtmlHelperTest extends CakeTestCase { * @access protected */ var $_appEncoding; + /** * Backup of asset configuration settings * @@ -76,6 +84,7 @@ class HtmlHelperTest extends CakeTestCase { * @access protected */ var $_asset; + /** * Backup of debug configuration setting * @@ -83,6 +92,7 @@ class HtmlHelperTest extends CakeTestCase { * @access protected */ var $_debug; + /** * setUp method * @@ -97,6 +107,7 @@ class HtmlHelperTest extends CakeTestCase { $this->_asset = Configure::read('Asset'); $this->_debug = Configure::read('debug'); } + /** * tearDown method * @@ -109,6 +120,7 @@ class HtmlHelperTest extends CakeTestCase { Configure::write('debug', $this->_debug); ClassRegistry::flush(); } + /** * testDocType method * @@ -126,6 +138,7 @@ class HtmlHelperTest extends CakeTestCase { $this->assertNull($this->Html->docType('non-existing-doctype')); } + /** * testLink method * @@ -253,6 +266,7 @@ class HtmlHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testImageTag method * @@ -285,6 +299,7 @@ class HtmlHelperTest extends CakeTestCase { $result = $this->Html->image('cake.icon.gif'); $this->assertTags($result, array('img' => array('src' => 'preg:/img\/cake\.icon\.gif\?\d+/', 'alt' => ''))); } + /** * Tests creation of an image tag using a theme and asset timestamping * @@ -308,6 +323,7 @@ class HtmlHelperTest extends CakeTestCase { 'alt' => '' ))); } + /** * testStyle method * @@ -324,6 +340,7 @@ class HtmlHelperTest extends CakeTestCase { $this->assertPattern('/^\s*display\s*:\s*none\s*;\s*$/', $lines[0]); $this->assertPattern('/^\s*margin\s*:\s*10px\s*;?$/', $lines[1]); } + /** * testCssLink method * @@ -402,6 +419,7 @@ class HtmlHelperTest extends CakeTestCase { $this->assertTags($result, $expected); $this->Html->webroot = $webroot; } + /** * testCharsetTag method * @@ -420,6 +438,7 @@ class HtmlHelperTest extends CakeTestCase { $result = $this->Html->charset('UTF-7'); $this->assertTags($result, array('meta' => array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-7'))); } + /** * testBreadcrumb method * @@ -489,6 +508,7 @@ class HtmlHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testNestedList method * @@ -756,6 +776,7 @@ class HtmlHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testMeta method * @@ -812,6 +833,7 @@ class HtmlHelperTest extends CakeTestCase { $result = $view->__scripts[0]; $this->assertTags($result, array('meta' => array('name' => 'ROBOTS', 'content' => 'ALL'))); } + /** * testTableHeaders method * @@ -823,6 +845,7 @@ class HtmlHelperTest extends CakeTestCase { $expected = array('<tr', '<th', 'ID', '/th', '<th', 'Name', '/th', '<th', 'Date', '/th', '/tr'); $this->assertTags($result, $expected); } + /** * testTableCells method * @@ -896,6 +919,7 @@ class HtmlHelperTest extends CakeTestCase { $expected = "<tr class=\"odd\"><td>td content 1</td> <td>td content 2</td> <td>td content 3</td></tr>\n<tr class=\"even\"><td>td content 1</td> <td>td content 2</td> <td>td content 3</td></tr>\n<tr class=\"odd\"><td>td content 1</td> <td>td content 2</td> <td>td content 3</td></tr>"; $this->assertEqual($result, $expected); } + /** * testTag method * @@ -915,6 +939,7 @@ class HtmlHelperTest extends CakeTestCase { $result = $this->Html->tag('div', '<text>', 'class-name', true); $this->assertTags($result, array('div' => array('class' => 'class-name'), '<text>', '/div')); } + /** * testDiv method * @@ -931,6 +956,7 @@ class HtmlHelperTest extends CakeTestCase { $result = $this->Html->div('class-name', '<text>', array(), true); $this->assertTags($result, array('div' => array('class' => 'class-name'), '<text>', '/div')); } + /** * testPara method * diff --git a/cake/tests/cases/libs/view/helpers/javascript.test.php b/cake/tests/cases/libs/view/helpers/javascript.test.php index 7ebad00eb..a9d546e06 100644 --- a/cake/tests/cases/libs/view/helpers/javascript.test.php +++ b/cake/tests/cases/libs/view/helpers/javascript.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * JavascriptHelperTest file * @@ -26,6 +27,7 @@ */ App::import('Core', array('Controller', 'View', 'ClassRegistry', 'View')); App::import('Helper', array('Javascript', 'Html', 'Form')); + /** * TheJsTestController class * @@ -33,6 +35,7 @@ App::import('Helper', array('Javascript', 'Html', 'Form')); * @subpackage cake.tests.cases.libs.view.helpers */ class TheJsTestController extends Controller { + /** * name property * @@ -40,6 +43,7 @@ class TheJsTestController extends Controller { * @access public */ var $name = 'TheTest'; + /** * uses property * @@ -48,6 +52,7 @@ class TheJsTestController extends Controller { */ var $uses = null; } + /** * TheView class * @@ -55,6 +60,7 @@ class TheJsTestController extends Controller { * @subpackage cake.tests.cases.libs.view.helpers */ class TheView extends View { + /** * scripts method * @@ -65,6 +71,7 @@ class TheView extends View { return $this->__scripts; } } + /** * TestJavascriptObject class * @@ -72,6 +79,7 @@ class TheView extends View { * @subpackage cake.tests.cases.libs.view.helpers */ class TestJavascriptObject { + /** * property1 property * @@ -79,6 +87,7 @@ class TestJavascriptObject { * @access public */ var $property1 = 'value1'; + /** * property2 property * @@ -87,6 +96,7 @@ class TestJavascriptObject { */ var $property2 = 2; } + /** * JavascriptTest class * @@ -95,18 +105,21 @@ class TestJavascriptObject { * @since CakePHP Test Suite v 1.0.0.0 */ class JavascriptTest extends CakeTestCase { + /** * Regexp for CDATA start block * * @var string */ var $cDataStart = 'preg:/^\/\/<!\[CDATA\[[\n\r]*/'; + /** * Regexp for CDATA end block * * @var string */ var $cDataEnd = 'preg:/[^\]]*\]\]\>[\s\r\n]*/'; + /** * setUp method * @@ -120,6 +133,7 @@ class JavascriptTest extends CakeTestCase { $this->View =& new TheView(new TheJsTestController()); ClassRegistry::addObject('view', $this->View); } + /** * tearDown method * @@ -133,6 +147,7 @@ class JavascriptTest extends CakeTestCase { ClassRegistry::removeObject('view'); unset($this->View); } + /** * testConstruct method * @@ -146,6 +161,7 @@ class JavascriptTest extends CakeTestCase { $Javascript =& new JavascriptHelper(array('safe' => false)); $this->assertFalse($Javascript->safe); } + /** * testLink method * @@ -207,6 +223,7 @@ class JavascriptTest extends CakeTestCase { $this->assertEqual(count($resultScripts), 1); $this->assertEqual(current($resultScripts), $expected); } + /** * testFilteringAndTimestamping method * @@ -273,6 +290,7 @@ class JavascriptTest extends CakeTestCase { unlink(JS . '__cake_js_test.js'); } + /** * testValue method * @@ -319,6 +337,7 @@ class JavascriptTest extends CakeTestCase { $expected = '"CakePHP: \\\'Rapid Development Framework\\\'"'; $this->assertEqual($result, $expected); } + /** * testObjectGeneration method * @@ -393,6 +412,7 @@ class JavascriptTest extends CakeTestCase { $this->Javascript->useNative = true; } } + /** * testObjectNonNative method * @@ -417,6 +437,7 @@ class JavascriptTest extends CakeTestCase { $this->Javascript->useNative = $oldNative; } + /** * testScriptBlock method * @@ -531,6 +552,7 @@ class JavascriptTest extends CakeTestCase { $result = $this->Javascript->getCache(); $this->assertEqual('alert("this is a buffered script");', $result); } + /** * testOutOfLineScriptWriting method * @@ -549,6 +571,7 @@ class JavascriptTest extends CakeTestCase { $this->assertPattern('/' . preg_quote('$(document).ready(function() { });', '/') . '/', $script[0]); $this->assertPattern('/' . preg_quote('$(function(){ });', '/') . '/', $script[1]); } + /** * testEvent method * @@ -643,6 +666,7 @@ class JavascriptTest extends CakeTestCase { $result = $this->Javascript->getCache(); $this->assertPattern('/^\s*var Rules = {\s*\'#myId\': function\(element, event\)\s*{\s*alert\(event\);\s*}\s*}\s*EventSelectors\.start\(Rules\);\s*$/s', $result); } + /** * testWriteEvents method * @@ -690,6 +714,7 @@ class JavascriptTest extends CakeTestCase { $result = $this->Javascript->getCache(); $this->assertTrue(empty($result)); } + /** * testEscapeScript method * @@ -717,6 +742,7 @@ class JavascriptTest extends CakeTestCase { $expected = 'CakePHP: \\\'Rapid Development Framework\\\''; $this->assertEqual($result, $expected); } + /** * testEscapeString method * @@ -760,6 +786,7 @@ class JavascriptTest extends CakeTestCase { $expected = 'String with \\\n string that looks like newline'; $this->assertEqual($result, $expected); } + /** * test string escaping and compare to json_encode() * @@ -789,6 +816,7 @@ class JavascriptTest extends CakeTestCase { $data['mystring'] = 'a \\"double-quoted\\" string'; $this->assertEqual(json_encode($data), $this->Javascript->object($data)); } + /** * test that text encoded with Javascript::object decodes properly * @@ -812,6 +840,7 @@ class JavascriptTest extends CakeTestCase { $result = $this->Javascript->object($data); $this->assertEqual(json_decode($result), $data); } + /** * testAfterRender method * @@ -826,7 +855,7 @@ class JavascriptTest extends CakeTestCase { ob_start(); $this->Javascript->afterRender(); $result = ob_get_clean(); - + $expected = array( 'script' => array('type' => 'text/javascript'), $this->cDataStart, diff --git a/cake/tests/cases/libs/view/helpers/js.test.php b/cake/tests/cases/libs/view/helpers/js.test.php index d0307089b..220da8285 100644 --- a/cake/tests/cases/libs/view/helpers/js.test.php +++ b/cake/tests/cases/libs/view/helpers/js.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * JsHelperTest file * @@ -34,6 +35,7 @@ uses( 'view' . DS . 'helper', 'view' . DS . 'helpers' . DS . 'js' ); + /** * JsHelperTest class * @@ -41,6 +43,7 @@ uses( * @subpackage cake.tests.cases.libs.view.helpers */ class JsHelperTest extends UnitTestCase { + /** * skip method * @@ -50,6 +53,7 @@ class JsHelperTest extends UnitTestCase { function skip() { $this->skipIf(true, '%s JsHelper test not implemented'); } + /** * setUp method * @@ -59,6 +63,7 @@ class JsHelperTest extends UnitTestCase { function setUp() { $this->Js = new JsHelper(); } + /** * tearDown method * diff --git a/cake/tests/cases/libs/view/helpers/number.test.php b/cake/tests/cases/libs/view/helpers/number.test.php index ccc54540b..e1213f119 100644 --- a/cake/tests/cases/libs/view/helpers/number.test.php +++ b/cake/tests/cases/libs/view/helpers/number.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * NumberHelperTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Helper', 'Number'); + /** * NumberHelperTest class * @@ -32,6 +34,7 @@ App::import('Helper', 'Number'); * @subpackage cake.tests.cases.libs.view.helpers */ class NumberHelperTest extends CakeTestCase { + /** * helper property * @@ -39,6 +42,7 @@ class NumberHelperTest extends CakeTestCase { * @access public */ var $helper = null; + /** * setUp method * @@ -48,6 +52,7 @@ class NumberHelperTest extends CakeTestCase { function setUp() { $this->Number =& new NumberHelper(); } + /** * tearDown method * @@ -57,6 +62,7 @@ class NumberHelperTest extends CakeTestCase { function tearDown() { unset($this->Number); } + /** * testFormatAndCurrency method * @@ -111,6 +117,7 @@ class NumberHelperTest extends CakeTestCase { $this->assertEqual($expected, $result); } + /** * testCurrencyPositive method * @@ -144,6 +151,7 @@ class NumberHelperTest extends CakeTestCase { $expected = '£100,100,100.00'; $this->assertEqual($expected, $result); } + /** * testCurrencyNegative method * @@ -178,6 +186,7 @@ class NumberHelperTest extends CakeTestCase { $this->assertEqual($expected, $result); } + /** * testCurrencyCentsPositive method * @@ -200,6 +209,7 @@ class NumberHelperTest extends CakeTestCase { $this->assertEqual($expected, $result); } + /** * testCurrencyCentsNegative method * @@ -234,6 +244,7 @@ class NumberHelperTest extends CakeTestCase { $this->assertEqual($expected, $result); } + /** * testCurrencyZero method * @@ -260,6 +271,7 @@ class NumberHelperTest extends CakeTestCase { $this->assertEqual($expected, $result); } + /** * testCurrencyOptions method * @@ -282,6 +294,7 @@ class NumberHelperTest extends CakeTestCase { $this->assertEqual($expected, $result); } + /** * testToReadableSize method * @@ -345,6 +358,7 @@ class NumberHelperTest extends CakeTestCase { $expected = (1024 * 1024) . '.00 TB'; $this->assertEqual($expected, $result); } + /** * testToPercentage method * diff --git a/cake/tests/cases/libs/view/helpers/paginator.test.php b/cake/tests/cases/libs/view/helpers/paginator.test.php index 517f71b52..7b7c93523 100644 --- a/cake/tests/cases/libs/view/helpers/paginator.test.php +++ b/cake/tests/cases/libs/view/helpers/paginator.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * PaginatorHelperTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Helper', array('Html', 'Paginator', 'Form', 'Ajax', 'Javascript')); + /** * PaginatorHelperTest class * @@ -32,6 +34,7 @@ App::import('Helper', array('Html', 'Paginator', 'Form', 'Ajax', 'Javascript')); * @subpackage cake.tests.cases.libs.view.helpers */ class PaginatorHelperTest extends CakeTestCase { + /** * setUp method * @@ -69,6 +72,7 @@ class PaginatorHelperTest extends CakeTestCase { Configure::write('Routing.admin', ''); Router::reload(); } + /** * tearDown method * @@ -78,6 +82,7 @@ class PaginatorHelperTest extends CakeTestCase { function tearDown() { unset($this->Paginator); } + /** * testHasPrevious method * @@ -90,6 +95,7 @@ class PaginatorHelperTest extends CakeTestCase { $this->assertIdentical($this->Paginator->hasPrev(), true); $this->Paginator->params['paging']['Article']['prevPage'] = false; } + /** * testHasNext method * @@ -102,6 +108,7 @@ class PaginatorHelperTest extends CakeTestCase { $this->assertIdentical($this->Paginator->hasNext(), false); $this->Paginator->params['paging']['Article']['nextPage'] = true; } + /** * testDisabledLink method * @@ -122,6 +129,7 @@ class PaginatorHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testSortLinks method * @@ -192,6 +200,7 @@ class PaginatorHelperTest extends CakeTestCase { $result = $this->Paginator->sort('title'); $this->assertPattern('/\/accounts\/index\/param\/page:1\/sort:title\/direction:desc">Title<\/a>$/', $result); } + /** * testSortLinksUsingDotNotation method * @@ -233,6 +242,7 @@ class PaginatorHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testSortKey method * @@ -245,6 +255,7 @@ class PaginatorHelperTest extends CakeTestCase { ))); $this->assertEqual('Article.title', $result); } + /** * testSortDir method * @@ -314,6 +325,7 @@ class PaginatorHelperTest extends CakeTestCase { $this->assertEqual($result, $expected); } + /** * testSortAdminLinks method * @@ -362,6 +374,7 @@ class PaginatorHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testUrlGeneration method * @@ -393,6 +406,7 @@ class PaginatorHelperTest extends CakeTestCase { $result = $this->Paginator->url($options); $this->assertEqual($result, '/index/page:3/sort:Article.name/direction:desc'); } + /** * test URL generation with prefix routes * @@ -452,6 +466,7 @@ class PaginatorHelperTest extends CakeTestCase { $expected = '/posts/index/page:2/sort:Article.name/direction:desc'; $this->assertEqual($result, $expected); } + /** * testOptions method * @@ -499,6 +514,7 @@ class PaginatorHelperTest extends CakeTestCase { )); $this->assertEqual($expected, $this->Paginator->params['paging']); } + /** * testPagingLinks method * @@ -628,6 +644,7 @@ class PaginatorHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testPagingLinksNotDefaultModel * @@ -662,6 +679,7 @@ class PaginatorHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testGenericLinks method * @@ -695,6 +713,7 @@ class PaginatorHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * Tests generation of generic links with preset options * @@ -732,6 +751,7 @@ class PaginatorHelperTest extends CakeTestCase { '/a' )); } + /** * testNumbers method * @@ -928,6 +948,7 @@ class PaginatorHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testFirstAndLast method * @@ -1071,6 +1092,7 @@ class PaginatorHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testCounter method * @@ -1130,6 +1152,7 @@ class PaginatorHelperTest extends CakeTestCase { $expected = '1 - 3 of 13'; $this->assertEqual($result, $expected); } + /** * testHasPage method * @@ -1149,6 +1172,7 @@ class PaginatorHelperTest extends CakeTestCase { $result = $this->Paginator->hasPage(2); $this->assertTrue($result); } + /** * testWithPlugin method * diff --git a/cake/tests/cases/libs/view/helpers/rss.test.php b/cake/tests/cases/libs/view/helpers/rss.test.php index 0f49570ff..eb0f321d3 100644 --- a/cake/tests/cases/libs/view/helpers/rss.test.php +++ b/cake/tests/cases/libs/view/helpers/rss.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * RssHelperTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Helper', array('Rss', 'Time')); + /** * RssHelperTest class * @@ -32,6 +34,7 @@ App::import('Helper', array('Rss', 'Time')); * @subpackage cake.tests.cases.libs.view.helpers */ class RssHelperTest extends CakeTestCase { + /** * setUp method * @@ -46,6 +49,7 @@ class RssHelperTest extends CakeTestCase { $manager =& XmlManager::getInstance(); $manager->namespaces = array(); } + /** * tearDown method * @@ -55,6 +59,7 @@ class RssHelperTest extends CakeTestCase { function tearDown() { unset($this->Rss); } + /** * testAddNamespace method * @@ -82,6 +87,7 @@ class RssHelperTest extends CakeTestCase { $this->Rss->removeNs('dummy'); } + /** * testRemoveNamespace method * @@ -143,6 +149,7 @@ class RssHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testChannel method * @@ -172,6 +179,7 @@ class RssHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * test correct creation of channel sub elements. * @@ -261,6 +269,7 @@ class RssHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testItems method * @@ -301,6 +310,7 @@ class RssHelperTest extends CakeTestCase { $expected = ''; $this->assertEqual($result, $expected); } + /** * testItem method * @@ -516,6 +526,7 @@ class RssHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } + /** * testTime method * @@ -524,6 +535,7 @@ class RssHelperTest extends CakeTestCase { */ function testTime() { } + /** * testElementAttrNotInParent method * diff --git a/cake/tests/cases/libs/view/helpers/session.test.php b/cake/tests/cases/libs/view/helpers/session.test.php index fb4d9d984..260b92b70 100644 --- a/cake/tests/cases/libs/view/helpers/session.test.php +++ b/cake/tests/cases/libs/view/helpers/session.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * SessionHelperTest file * @@ -29,6 +30,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { } App::import('Core', array('Helper', 'AppHelper', 'Controller', 'View')); App::import('Helper', array('Session')); + /** * SessionHelperTest class * @@ -36,6 +38,7 @@ App::import('Helper', array('Session')); * @subpackage cake.tests.cases.libs.view.helpers */ class SessionHelperTest extends CakeTestCase { + /** * setUp method * @@ -73,6 +76,7 @@ class SessionHelperTest extends CakeTestCase { 'Deeply' => array('nested' => array('key' => 'value')), ); } + /** * tearDown method * @@ -83,6 +87,7 @@ class SessionHelperTest extends CakeTestCase { $_SESSION = array(); unset($this->Session); } + /** * endTest * @@ -91,7 +96,8 @@ class SessionHelperTest extends CakeTestCase { */ function endTest() { App::build(); - } + } + /** * testRead method * @@ -105,6 +111,7 @@ class SessionHelperTest extends CakeTestCase { $result = $this->Session->read('test'); $this->assertEqual($result, 'info'); } + /** * testCheck method * @@ -120,6 +127,7 @@ class SessionHelperTest extends CakeTestCase { $this->assertFalse($this->Session->check('Nope')); } + /** * testWrite method * @@ -130,6 +138,7 @@ class SessionHelperTest extends CakeTestCase { $this->expectError(); $this->Session->write('NoWay', 'AccessDenied'); } + /** * testFlash method * @@ -177,6 +186,7 @@ class SessionHelperTest extends CakeTestCase { $this->assertEqual($result, $expected); $this->assertFalse($this->Session->check('Message.bare')); } + /** * testID method * @@ -188,6 +198,7 @@ class SessionHelperTest extends CakeTestCase { $result = $this->Session->id(); $this->assertEqual($id, $result); } + /** * testError method * @@ -203,6 +214,7 @@ class SessionHelperTest extends CakeTestCase { $expected = "CauseError doesn't exist"; $this->assertEqual($result, $expected); } + /** * testDisabling method * @@ -224,6 +236,7 @@ class SessionHelperTest extends CakeTestCase { ob_clean(); $this->assertFalse($result); } + /** * testValid method * diff --git a/cake/tests/cases/libs/view/helpers/text.test.php b/cake/tests/cases/libs/view/helpers/text.test.php index 88a26a61b..600882fef 100644 --- a/cake/tests/cases/libs/view/helpers/text.test.php +++ b/cake/tests/cases/libs/view/helpers/text.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * TextHelperTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Helper', 'Text'); + /** * TextHelperTest class * @@ -32,6 +34,7 @@ App::import('Helper', 'Text'); * @subpackage cake.tests.cases.libs.view.helpers */ class TextHelperTest extends CakeTestCase { + /** * helper property * @@ -39,6 +42,7 @@ class TextHelperTest extends CakeTestCase { * @access public */ var $helper = null; + /** * setUp method * @@ -48,6 +52,7 @@ class TextHelperTest extends CakeTestCase { function setUp() { $this->Text = new TextHelper(); } + /** * tearDown method * @@ -57,6 +62,7 @@ class TextHelperTest extends CakeTestCase { function tearDown() { unset($this->Text); } + /** * testTruncate method * @@ -106,6 +112,7 @@ class TextHelperTest extends CakeTestCase { $this->testTruncate(); } } + /** * testHighlight method * @@ -130,6 +137,7 @@ class TextHelperTest extends CakeTestCase { $result = $this->Text->highlight($text, $phrases, '<b>\1</b>'); $this->assertEqual($result, $expected); } + /** * testHighlightConsiderHtml method * @@ -155,6 +163,7 @@ class TextHelperTest extends CakeTestCase { $expected = '<b>What</b> a <b>strong</b> mouse: <img src="what-a-strong-mouse.png" alt="What a strong mouse!" />'; $this->assertEqual($this->Text->highlight($text4, array('strong', 'what'), '<b>\1</b>', true), $expected); } + /** * testStripLinks method * @@ -182,6 +191,7 @@ class TextHelperTest extends CakeTestCase { $result = $this->Text->stripLinks($text); $this->assertEqual($expected, $result); } + /** * testAutoLink method * @@ -199,6 +209,7 @@ class TextHelperTest extends CakeTestCase { $expected = 'Text with a partial <a href="http://www.cakephp.org">www.cakephp.org</a> URL and <a href="mailto:test@cakephp\.org">test@cakephp\.org</a> email address'; $this->assertPattern('#^' . $expected . '$#', $result); } + /** * testAutoLinkUrls method * @@ -237,6 +248,7 @@ class TextHelperTest extends CakeTestCase { $this->assertPattern('#^' . $expected . '$#', $result); } + /** * testAutoLinkEmails method * @@ -259,6 +271,7 @@ class TextHelperTest extends CakeTestCase { $result = $this->Text->autoLinkEmails($text, array('class' => 'link')); $this->assertPattern('#^' . $expected . '$#', $result); } + /** * testHighlightCaseInsensitivity method * @@ -275,6 +288,7 @@ class TextHelperTest extends CakeTestCase { $result = $this->Text->highlight($text, array('test'), '<b>\1</b>'); $this->assertEqual($expected, $result); } + /** * testExcerpt method * @@ -287,19 +301,19 @@ class TextHelperTest extends CakeTestCase { $expected = '...with test text...'; $result = $this->Text->excerpt($text, 'test', 9, '...'); $this->assertEqual($expected, $result); - + $expected = 'This is a...'; $result = $this->Text->excerpt($text, 'not_found', 9, '...'); $this->assertEqual($expected, $result); - + $expected = 'This is a phras...'; $result = $this->Text->excerpt($text, null, 9, '...'); $this->assertEqual($expected, $result); - + $expected = $text; $result = $this->Text->excerpt($text, null, 200, '...'); $this->assertEqual($expected, $result); - + $expected = '...phrase...'; $result = $this->Text->excerpt($text, 'phrase', 2, '...'); $this->assertEqual($expected, $result); @@ -314,6 +328,7 @@ class TextHelperTest extends CakeTestCase { $result = $this->Text->excerpt($text, $phrase, 10, '...'); $this->assertEqual($expected, $result); } + /** * testExcerptCaseInsensitivity method * @@ -331,6 +346,7 @@ class TextHelperTest extends CakeTestCase { $result = $this->Text->excerpt($text, 'NOT_FOUND', 9, '...'); $this->assertEqual($expected, $result); } + /** * testListGeneration method * diff --git a/cake/tests/cases/libs/view/helpers/time.test.php b/cake/tests/cases/libs/view/helpers/time.test.php index 94da2a997..5f79549e5 100644 --- a/cake/tests/cases/libs/view/helpers/time.test.php +++ b/cake/tests/cases/libs/view/helpers/time.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * TimeHelperTest file * @@ -28,6 +29,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { define('CAKEPHP_UNIT_TEST_EXECUTION', 1); } App::import('Helper', 'Time'); + /** * TimeHelperTest class * @@ -35,6 +37,7 @@ App::import('Helper', 'Time'); * @subpackage cake.tests.cases.libs.view.helpers */ class TimeHelperTest extends CakeTestCase { + /** * setUp method * @@ -44,6 +47,7 @@ class TimeHelperTest extends CakeTestCase { function setUp() { $this->Time = new TimeHelper(); } + /** * tearDown method * @@ -53,6 +57,7 @@ class TimeHelperTest extends CakeTestCase { function tearDown() { unset($this->Time); } + /** * testToQuarter method * @@ -81,6 +86,7 @@ class TimeHelperTest extends CakeTestCase { $result = $this->Time->toQuarter('2007-12-25', true); $this->assertEqual($result, array('2007-10-01', '2007-12-31')); } + /** * testTimeAgoInWords method * @@ -294,6 +300,7 @@ class TimeHelperTest extends CakeTestCase { $expected = 'on ' . date('j/n/y', $time); $this->assertEqual($expected, $result); } + /** * testRelative method * @@ -306,6 +313,7 @@ class TimeHelperTest extends CakeTestCase { $result = $this->Time->relativeTime('+1 week'); $this->assertEqual($result, '1 week'); } + /** * testNice method * @@ -328,6 +336,7 @@ class TimeHelperTest extends CakeTestCase { $time = null; $this->assertEqual(date('D, M jS Y, H:i', time()), $this->Time->nice($time)); } + /** * testNiceShort method * @@ -348,6 +357,7 @@ class TimeHelperTest extends CakeTestCase { $time = time() - DAY; $this->assertEqual('Yesterday, '.date('H:i', $time), $this->Time->niceShort($time)); } + /** * testDaysAsSql method * @@ -361,6 +371,7 @@ class TimeHelperTest extends CakeTestCase { $expected = '(my_field >= \''.date('Y-m-d', $begin).' 00:00:00\') AND (my_field <= \''.date('Y-m-d', $end).' 23:59:59\')'; $this->assertEqual($expected, $this->Time->daysAsSql($begin, $end, $field)); } + /** * testDayAsSql method * @@ -373,6 +384,7 @@ class TimeHelperTest extends CakeTestCase { $expected = '(my_field >= \''.date('Y-m-d', $time).' 00:00:00\') AND (my_field <= \''.date('Y-m-d', $time).' 23:59:59\')'; $this->assertEqual($expected, $this->Time->dayAsSql($time, $field)); } + /** * testToUnix method * @@ -387,6 +399,7 @@ class TimeHelperTest extends CakeTestCase { $this->assertEqual(false, $this->Time->toUnix('')); $this->assertEqual(false, $this->Time->toUnix(null)); } + /** * testToAtom method * @@ -396,6 +409,7 @@ class TimeHelperTest extends CakeTestCase { function testToAtom() { $this->assertEqual(date('Y-m-d\TH:i:s\Z'), $this->Time->toAtom(time())); } + /** * testToRss method * @@ -405,6 +419,7 @@ class TimeHelperTest extends CakeTestCase { function testToRss() { $this->assertEqual(date('r'), $this->Time->toRss(time())); } + /** * testFormat method * @@ -421,6 +436,7 @@ class TimeHelperTest extends CakeTestCase { $result = $this->Time->format('Y-m-d', null, 'never'); $this->assertEqual($result, 'never'); } + /** * testOfGmt method * @@ -447,6 +463,7 @@ class TimeHelperTest extends CakeTestCase { $expected = gmmktime($hour, $min, $sec, $month, $day, $year); $this->assertEqual($expected, $this->Time->gmt(null)); } + /** * testIsToday method * @@ -463,6 +480,7 @@ class TimeHelperTest extends CakeTestCase { $result = $this->Time->isToday('-1 day'); $this->assertFalse($result); } + /** * testIsThisWeek method * @@ -522,6 +540,7 @@ class TimeHelperTest extends CakeTestCase { break; } } + /** * testIsThisMonth method * @@ -539,6 +558,7 @@ class TimeHelperTest extends CakeTestCase { $this->assertFalse($result); } + /** * testIsThisYear method * @@ -587,6 +607,7 @@ class TimeHelperTest extends CakeTestCase { $result = $this->Time->isTomorrow('-1 day'); $this->assertFalse($result); } + /** * testWasWithinLast method * @@ -647,6 +668,7 @@ class TimeHelperTest extends CakeTestCase { $result = $this->Time->fromString(time(), $yourTimezone); $this->assertEqual($result, $expected); } + /** * test fromString() * diff --git a/cake/tests/cases/libs/view/helpers/xml.test.php b/cake/tests/cases/libs/view/helpers/xml.test.php index 514de9495..4a74943c4 100644 --- a/cake/tests/cases/libs/view/helpers/xml.test.php +++ b/cake/tests/cases/libs/view/helpers/xml.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * XmlHelperTest file * @@ -28,6 +29,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { define('CAKEPHP_UNIT_TEST_EXECUTION', 1); } App::import('Helper', 'Xml'); + /** * TestXml class * @@ -35,6 +37,7 @@ App::import('Helper', 'Xml'); * @subpackage cake.tests.cases.libs.view.helpers */ class TestXml extends Object { + /** * content property * @@ -42,6 +45,7 @@ class TestXml extends Object { * @access public */ var $content = ''; + /** * construct method * @@ -52,6 +56,7 @@ class TestXml extends Object { function __construct($content) { $this->content = $content; } + /** * toString method * @@ -62,6 +67,7 @@ class TestXml extends Object { return $this->content; } } + /** * XmlHelperTest class * @@ -69,6 +75,7 @@ class TestXml extends Object { * @subpackage cake.tests.cases.libs.view.helpers */ class XmlHelperTest extends CakeTestCase { + /** * setUp method * @@ -81,6 +88,7 @@ class XmlHelperTest extends CakeTestCase { $manager =& XmlManager::getInstance(); $manager->namespaces = array(); } + /** * tearDown method * @@ -90,6 +98,7 @@ class XmlHelperTest extends CakeTestCase { function tearDown() { unset($this->Xml); } + /** * testAddNamespace method * @@ -103,6 +112,7 @@ class XmlHelperTest extends CakeTestCase { $expected = array('custom' => 'http://example.com/dtd.xml'); $this->assertEqual($manager->namespaces, $expected); } + /** * testRemoveNamespace method * @@ -121,6 +131,7 @@ class XmlHelperTest extends CakeTestCase { $expected = array('custom2' => 'http://example.com/dtd2.xml'); $this->assertEqual($manager->namespaces, $expected); } + /** * testRenderZeroElement method * @@ -132,6 +143,7 @@ class XmlHelperTest extends CakeTestCase { $expected = '<count>0</count>'; $this->assertEqual($result, $expected); } + /** * testRenderElementWithNamespace method * @@ -166,6 +178,7 @@ class XmlHelperTest extends CakeTestCase { $expected = '<myNameSpace:count><![CDATA[content]]></myNameSpace:count>'; $this->assertEqual($result, $expected); } + /** * testSerialize method * @@ -210,6 +223,7 @@ class XmlHelperTest extends CakeTestCase { $expected = '<pages id="2" url="http://www.url.com/rb/153/?id=bbbb&t=access" />'; $this->assertIdentical($result, $expected); } + /** * testHeader method * diff --git a/cake/tests/cases/libs/view/theme.test.php b/cake/tests/cases/libs/view/theme.test.php index ee69ccb68..166e175d4 100644 --- a/cake/tests/cases/libs/view/theme.test.php +++ b/cake/tests/cases/libs/view/theme.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ThemeViewTest file * @@ -32,6 +33,7 @@ if (!class_exists('ErrorHandler')) { if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { define('CAKEPHP_UNIT_TEST_EXECUTION', 1); } + /** * ThemePostsController class * @@ -39,6 +41,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { * @subpackage cake.tests.cases.libs.view */ class ThemePostsController extends Controller { + /** * name property * @@ -46,6 +49,7 @@ class ThemePostsController extends Controller { * @access public */ var $name = 'ThemePosts'; + /** * index method * @@ -59,6 +63,7 @@ class ThemePostsController extends Controller { $this->set(compact('test2', 'test3')); } } + /** * ThemeViewTestErrorHandler class * @@ -66,6 +71,7 @@ class ThemePostsController extends Controller { * @subpackage cake.tests.cases.libs.view */ class ThemeViewTestErrorHandler extends ErrorHandler { + /** * stop method * @@ -76,6 +82,7 @@ class ThemeViewTestErrorHandler extends ErrorHandler { return; } } + /** * TestThemeView class * @@ -83,6 +90,7 @@ class ThemeViewTestErrorHandler extends ErrorHandler { * @subpackage cake.tests.cases.libs.view */ class TestThemeView extends ThemeView { + /** * renderElement method * @@ -94,6 +102,7 @@ class TestThemeView extends ThemeView { function renderElement($name, $params = array()) { return $name; } + /** * getViewFileName method * @@ -104,6 +113,7 @@ class TestThemeView extends ThemeView { function getViewFileName($name = null) { return $this->_getViewFileName($name); } + /** * getLayoutFileName method * @@ -114,6 +124,7 @@ class TestThemeView extends ThemeView { function getLayoutFileName($name = null) { return $this->_getLayoutFileName($name); } + /** * cakeError method * @@ -127,6 +138,7 @@ class TestThemeView extends ThemeView { return $error; } } + /** * ThemeViewTest class * @@ -134,6 +146,7 @@ class TestThemeView extends ThemeView { * @subpackage cake.tests.cases.libs */ class ThemeViewTest extends CakeTestCase { + /** * setUp method * @@ -148,6 +161,7 @@ class ThemeViewTest extends CakeTestCase { $this->PostsController->index(); $this->ThemeView = new ThemeView($this->PostsController); } + /** * tearDown method * @@ -159,6 +173,7 @@ class ThemeViewTest extends CakeTestCase { unset($this->PostsController); unset($this->Controller); } + /** * startTest * @@ -170,7 +185,8 @@ class ThemeViewTest extends CakeTestCase { 'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS), 'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS) )); - } + } + /** * endTest * @@ -179,7 +195,8 @@ class ThemeViewTest extends CakeTestCase { */ function endTest() { App::build(); - } + } + /** * testPluginGetTemplate method * @@ -202,6 +219,7 @@ class ThemeViewTest extends CakeTestCase { $result = $ThemeView->getLayoutFileName(); $this->assertEqual($result, $expected); } + /** * testGetTemplate method * @@ -239,6 +257,7 @@ class ThemeViewTest extends CakeTestCase { $result = $ThemeView->getLayoutFileName(); $this->assertEqual($result, $expected); } + /** * testMissingView method * @@ -263,6 +282,7 @@ class ThemeViewTest extends CakeTestCase { $this->assertPattern("/PagesController::/", $expected); $this->assertPattern("/views(\/|\\\)themed(\/|\\\)my_theme(\/|\\\)pages(\/|\\\)does_not_exist.ctp/", $expected); } + /** * testMissingLayout method * diff --git a/cake/tests/cases/libs/view/view.test.php b/cake/tests/cases/libs/view/view.test.php index aa678fb86..98f1caa2f 100644 --- a/cake/tests/cases/libs/view/view.test.php +++ b/cake/tests/cases/libs/view/view.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ViewTest file * @@ -32,6 +33,7 @@ if (!class_exists('ErrorHandler')) { if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { define('CAKEPHP_UNIT_TEST_EXECUTION', 1); } + /** * ViewPostsController class * @@ -39,6 +41,7 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { * @subpackage cake.tests.cases.libs.view */ class ViewPostsController extends Controller { + /** * name property * @@ -46,6 +49,7 @@ class ViewPostsController extends Controller { * @access public */ var $name = 'Posts'; + /** * uses property * @@ -53,6 +57,7 @@ class ViewPostsController extends Controller { * @access public */ var $uses = null; + /** * index method * @@ -65,6 +70,7 @@ class ViewPostsController extends Controller { $test3 = 'even more data'; $this->set(compact('test2', 'test3')); } + /** * nocache_tags_with_element method * @@ -76,6 +82,7 @@ class ViewPostsController extends Controller { $this->set('bar', 'this is bar var'); } } + /** * ViewTestErrorHandler class * @@ -83,6 +90,7 @@ class ViewPostsController extends Controller { * @subpackage cake.tests.cases.libs.view */ class ViewTestErrorHandler extends ErrorHandler { + /** * stop method * @@ -93,6 +101,7 @@ class ViewTestErrorHandler extends ErrorHandler { return; } } + /** * TestView class * @@ -100,6 +109,7 @@ class ViewTestErrorHandler extends ErrorHandler { * @subpackage cake.tests.cases.libs.view */ class TestView extends View { + /** * renderElement method * @@ -111,6 +121,7 @@ class TestView extends View { function renderElement($name, $params = array()) { return $name; } + /** * getViewFileName method * @@ -121,6 +132,7 @@ class TestView extends View { function getViewFileName($name = null) { return $this->_getViewFileName($name); } + /** * getLayoutFileName method * @@ -131,6 +143,7 @@ class TestView extends View { function getLayoutFileName($name = null) { return $this->_getLayoutFileName($name); } + /** * loadHelpers method * @@ -143,6 +156,7 @@ class TestView extends View { function loadHelpers(&$loaded, $helpers, $parent = null) { return $this->_loadHelpers($loaded, $helpers, $parent); } + /** * cakeError method * @@ -156,6 +170,7 @@ class TestView extends View { return $error; } } + /** * TestAfterHelper class * @@ -163,6 +178,7 @@ class TestView extends View { * @subpackage cake.tests.cases.libs.view */ class TestAfterHelper extends Helper { + /** * property property * @@ -170,6 +186,7 @@ class TestAfterHelper extends Helper { * @access public */ var $property = ''; + /** * beforeLayout method * @@ -179,6 +196,7 @@ class TestAfterHelper extends Helper { function beforeLayout() { $this->property = 'Valuation'; } + /** * afterLayout method * @@ -191,6 +209,7 @@ class TestAfterHelper extends Helper { } } Mock::generate('Helper', 'CallbackMockHelper'); + /** * ViewTest class * @@ -198,6 +217,7 @@ Mock::generate('Helper', 'CallbackMockHelper'); * @subpackage cake.tests.cases.libs */ class ViewTest extends CakeTestCase { + /** * setUp method * @@ -212,6 +232,7 @@ class ViewTest extends CakeTestCase { $this->PostsController->index(); $this->View = new View($this->PostsController); } + /** * tearDown method * @@ -223,6 +244,7 @@ class ViewTest extends CakeTestCase { unset($this->PostsController); unset($this->Controller); } + /** * endTest * @@ -234,7 +256,8 @@ class ViewTest extends CakeTestCase { 'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS), 'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS) )); - } + } + /** * endTest * @@ -243,7 +266,8 @@ class ViewTest extends CakeTestCase { */ function endTest() { App::build(); - } + } + /** * testPluginGetTemplate method * @@ -266,6 +290,7 @@ class ViewTest extends CakeTestCase { $result = $View->getLayoutFileName(); $this->assertEqual($result, $expected); } + /** * test that CamelCase plugins still find their view files. * @@ -289,6 +314,7 @@ class ViewTest extends CakeTestCase { $result = $View->getLayoutFileName(); $this->assertEqual($result, $expected); } + /** * testGetTemplate method * @@ -303,7 +329,7 @@ class ViewTest extends CakeTestCase { $this->Controller->params['pass'] = array('home'); $View = new TestView($this->Controller); - + $expected = TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views' . DS .'pages' . DS .'home.ctp'; $result = $View->getViewFileName('home'); $this->assertEqual($result, $expected); @@ -331,6 +357,7 @@ class ViewTest extends CakeTestCase { $this->assertEqual($result, $expected); } + /** * testMissingView method * @@ -352,6 +379,7 @@ class ViewTest extends CakeTestCase { $this->assertPattern("/PagesController::/", $expected); $this->assertPattern("/pages(\/|\\\)does_not_exist.ctp/", $expected); } + /** * testMissingLayout method * @@ -372,6 +400,7 @@ class ViewTest extends CakeTestCase { $this->assertPattern("/Missing Layout/", $expected); $this->assertPattern("/layouts(\/|\\\)whatever.ctp/", $expected); } + /** * testViewVars method * @@ -381,6 +410,7 @@ class ViewTest extends CakeTestCase { function testViewVars() { $this->assertEqual($this->View->viewVars, array('testData' => 'Some test data', 'test2' => 'more data', 'test3' => 'even more data')); } + /** * testUUIDGeneration method * @@ -395,6 +425,7 @@ class ViewTest extends CakeTestCase { $result = $this->View->uuid('form', array('controller' => 'posts', 'action' => 'index')); $this->assertEqual($result, 'form3ecf2e3e96'); } + /** * testAddInlineScripts method * @@ -409,6 +440,7 @@ class ViewTest extends CakeTestCase { $this->View->addScript('mainEvent', 'Event.observe(window, "load", function() { doSomething(); }, true);'); $this->assertEqual($this->View->__scripts, array('prototype.js', 'mainEvent' => 'Event.observe(window, "load", function() { doSomething(); }, true);')); } + /** * testElement method * @@ -423,6 +455,7 @@ class ViewTest extends CakeTestCase { $this->assertPattern('/Not Found:/', $result); $this->assertPattern('/non_existant_element/', $result); } + /** * testElementCacheHelperNoCache method * @@ -438,6 +471,7 @@ class ViewTest extends CakeTestCase { $result = $View->element('test_element', array('ram' => 'val', 'test' => array('foo', 'bar'))); $this->assertEqual($result, 'this is the test element'); } + /** * testElementCache method * @@ -485,6 +519,7 @@ class ViewTest extends CakeTestCase { $this->assertEqual($result, $expected); } + /** * testLoadHelpers method * @@ -506,6 +541,7 @@ class ViewTest extends CakeTestCase { $this->assertTrue(is_object($result['PluggedHelper'])); $this->assertTrue(is_object($result['PluggedHelper']->OtherHelper)); } + /** * test the correct triggering of helper callbacks * @@ -522,6 +558,7 @@ class ViewTest extends CakeTestCase { $View->loaded['CallbackMock']->expectOnce('afterLayout'); $View->render('index'); } + /** * testBeforeLayout method * @@ -534,6 +571,7 @@ class ViewTest extends CakeTestCase { $out = $View->render('index'); $this->assertEqual($View->loaded['testAfter']->property, 'Valuation'); } + /** * testAfterLayout method * @@ -552,6 +590,7 @@ class ViewTest extends CakeTestCase { $this->assertPattern('/modified in the afterlife/', $result); $this->assertPattern('/This is my view output/', $result); } + /** * testRenderLoadHelper method * @@ -584,6 +623,7 @@ class ViewTest extends CakeTestCase { $this->assertTrue(is_object($helpers['ajax']->Html)); $this->assertTrue(is_object($helpers['pluggedHelper']->OtherHelper)); } + /** * testRender method * @@ -623,6 +663,7 @@ class ViewTest extends CakeTestCase { $this->assertPattern("/<div id=\"content\">posts index<\/div>/", $result); $this->assertPattern("/<div id=\"content\">posts index<\/div>/", $result); } + /** * testGetViewFileName method * @@ -649,6 +690,7 @@ class ViewTest extends CakeTestCase { $this->assertEqual($result, $expected); } + /** * testRenderCache method * @@ -679,12 +721,14 @@ class ViewTest extends CakeTestCase { $this->assertFalse(empty($result)); @unlink($path); } + /** * testRenderNocache method * * @access public * @return void */ + /* This is a new test case for a pending enhancement function testRenderNocache() { $this->PostsController->helpers = array('Cache', 'Html'); @@ -716,6 +760,7 @@ class ViewTest extends CakeTestCase { $this->assertPattern('/printing: "in sub1"/', $result); } */ + /** * testSet method * @@ -744,6 +789,7 @@ class ViewTest extends CakeTestCase { $View->set(array('key3' => 'value3')); $this->assertIdentical($View->getVar('key3'), 'value3'); } + /** * testEntityReference method * @@ -760,6 +806,7 @@ class ViewTest extends CakeTestCase { $View->field = 'user_id'; $this->assertEqual($View->entity(), array('Comment', 'user_id')); } + /** * testBadExt method * diff --git a/cake/tests/cases/libs/xml.test.php b/cake/tests/cases/libs/xml.test.php index 386a9d94b..88f70c55c 100644 --- a/cake/tests/cases/libs/xml.test.php +++ b/cake/tests/cases/libs/xml.test.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * XmlTest file * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Xml'); + /** * XmlTest class * @@ -32,6 +34,7 @@ App::import('Core', 'Xml'); * @subpackage cake.tests.cases.libs */ class XmlTest extends CakeTestCase { + /** * setUp method * @@ -42,6 +45,7 @@ class XmlTest extends CakeTestCase { $manager =& new XmlManager(); $manager->namespaces = array(); } + /** * testRootTagParsing method * @@ -59,6 +63,7 @@ class XmlTest extends CakeTestCase { $this->assertEqual($xml->children[0]->children[0]->name, 'current'); $this->assertEqual($xml->toString(true), $input); } + /** * testSerialization method * @@ -118,7 +123,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(false); $expected = '<data example="" />'; $this->assertEqual($result, $expected, 'Boolean values incorrectly handled. %s'); - + $xml =& new Xml(array('data' => array('example' => 0))); $result = $xml->toString(false); $expected = '<data example="0" />'; @@ -129,6 +134,7 @@ class XmlTest extends CakeTestCase { $expected = '<data example="1" />'; $this->assertEqual($result, $expected, 'Boolean-ish values incorrectly handled. %s'); } + /** * testSimpleArray method * @@ -142,6 +148,7 @@ class XmlTest extends CakeTestCase { $expected = '<hello><![CDATA[world]]></hello>'; $this->assertEqual($expected, $result); } + /** * testSimpleObject method * @@ -157,6 +164,7 @@ class XmlTest extends CakeTestCase { $expected = '<hello><![CDATA[world]]></hello>'; $this->assertEqual($expected, $result); } + /** * testHeader method * @@ -172,6 +180,7 @@ class XmlTest extends CakeTestCase { $expected = '<'.'?xml version="1.0" encoding="UTF-8" ?'.'>'."\n".'<hello><![CDATA[world]]></hello>'; $this->assertEqual($expected, $result); } + /** * testOwnerAssignment method * @@ -188,6 +197,7 @@ class XmlTest extends CakeTestCase { $childOwner =& $children[0]->document(); $this->assertTrue($xml === $childOwner); } + /** * testArraySingleSerialization method * @@ -220,6 +230,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(false); $this->assertEqual($expected, $result); } + /** * testArraySerialization method * @@ -247,6 +258,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(array('header' => false, 'cdata' => false)); $this->assertEqual($expected, $result); } + /** * testNestedArraySerialization method * @@ -288,6 +300,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(array('header' => false, 'cdata' => false)); $this->assertEqual($expected, $result); } + /** * Prove that serialization with a given root node works * as expected. @@ -308,6 +321,7 @@ class XmlTest extends CakeTestCase { $result = $Xml->toString(array('header' => false)); $this->assertEqual($expected, $result); } + /** * testCloneNode * @@ -319,6 +333,7 @@ class XmlTest extends CakeTestCase { $twin =& $node->cloneNode(); $this->assertEqual($node, $twin); } + /** * testNextSibling * @@ -352,6 +367,7 @@ class XmlTest extends CakeTestCase { $noFriends =& $xml->children[0]->children[12]; $this->assertNull($noFriends->nextSibling()); } + /** * testPreviousSibling * @@ -381,6 +397,7 @@ class XmlTest extends CakeTestCase { $this->assertNull($prevSibling->previousSibling()); } + /** * testAddAndRemoveAttributes * @@ -578,6 +595,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(array('header' => false, 'cdata' => false)); $this->assertEqual($expected, $result); } */ + /** * testAllCData method * @@ -613,6 +631,7 @@ class XmlTest extends CakeTestCase { $expected = '<project>écît</project>'; $this->assertEqual($result, $expected); } */ + /** * testWhitespace method * @@ -640,6 +659,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(array('header' => false, 'cdata' => false, 'whitespace' => true)); $this->assertEqual($expected, $result); } + /** * testSetSerialization method * @@ -667,6 +687,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(array('header' => false, 'cdata' => false)); $this->assertEqual($expected, $result); } + /** * testSimpleParsing method * @@ -679,6 +700,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(); $this->assertEqual($source, $result); } + /** * test that elements with empty tag values do not collapse and corrupt data structures * @@ -740,6 +762,7 @@ class XmlTest extends CakeTestCase { $this->assertEqual($result, $expected); } + /** * testMixedParsing method * @@ -752,6 +775,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(); $this->assertEqual($source, $result); } + /** * testComplexParsing method * @@ -764,6 +788,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(array('cdata' => false)); $this->assertEqual($source, $result); } + /** * testNamespaceParsing method * @@ -783,6 +808,7 @@ class XmlTest extends CakeTestCase { $children = $children[0]->children('rule'); $this->assertEqual($children[0]->namespace, 'b'); } + /** * testNamespaces method * @@ -800,6 +826,7 @@ class XmlTest extends CakeTestCase { $result = $xml->toString(array('cdata' => false)); $this->assertEqual($expects, $result); } + /** * testEscapeCharSerialization method * @@ -813,6 +840,7 @@ class XmlTest extends CakeTestCase { $expected = '<std_class text="JavaScript & DHTML" />'; $this->assertEqual($expected, $result); } + /** * testCompleteEscapeCharSerialization method * @@ -826,6 +854,7 @@ class XmlTest extends CakeTestCase { $expected = '<std_class text="<>&"'" />'; $this->assertEqual($expected, $result); } + /** * testToArray method * @@ -1105,6 +1134,7 @@ class XmlTest extends CakeTestCase { $this->assertEqual($result, $expected); } + /** * testAppend method * @@ -1126,6 +1156,7 @@ class XmlTest extends CakeTestCase { $this->expectError(); $parentNode->append($parentNode); } + /** * testNamespacing method * @@ -1148,6 +1179,7 @@ class XmlTest extends CakeTestCase { $node->addNamespace('cake', 'http://cakephp.org'); $this->assertEqual($node->toString(), '<xml xmlns:cake="http://cakephp.org" />'); } + /** * testCamelize method * @@ -1174,6 +1206,7 @@ class XmlTest extends CakeTestCase { 'Param' => array('Value' => array('i4' => 41))))); $this->assertEqual($expected, $Xml->toArray()); } + /** * testNumericDataHandling method * diff --git a/cake/tests/fixtures/account_fixture.php b/cake/tests/fixtures/account_fixture.php index 5bd0e28c4..e0c786e3b 100644 --- a/cake/tests/fixtures/account_fixture.php +++ b/cake/tests/fixtures/account_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AccountFixture extends CakeTestFixture { + /** * name property * @@ -39,6 +42,7 @@ class AccountFixture extends CakeTestFixture { */ var $name = 'Account'; var $table = 'Accounts'; + /** * fields property * @@ -49,6 +53,7 @@ class AccountFixture extends CakeTestFixture { 'iAccountId' => array('type' => 'integer', 'key' => 'primary'), 'cDescription' => array('type' => 'string', 'length' => 10, 'null' => true) ); + /** * records property * diff --git a/cake/tests/fixtures/aco_action_fixture.php b/cake/tests/fixtures/aco_action_fixture.php index 2c35d5fe6..88e6ba5bb 100644 --- a/cake/tests/fixtures/aco_action_fixture.php +++ b/cake/tests/fixtures/aco_action_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AcoActionFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AcoActionFixture extends CakeTestFixture { * @access public */ var $name = 'AcoAction'; + /** * fields property * @@ -53,6 +57,7 @@ class AcoActionFixture extends CakeTestFixture { 'lft' => array('type' => 'integer', 'length' => 10, 'null' => true), 'rght' => array('type' => 'integer', 'length' => 10, 'null' => true) ); + /** * records property * @@ -62,4 +67,4 @@ class AcoActionFixture extends CakeTestFixture { var $records = array(); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/aco_fixture.php b/cake/tests/fixtures/aco_fixture.php index 316925e81..57e0172dd 100644 --- a/cake/tests/fixtures/aco_fixture.php +++ b/cake/tests/fixtures/aco_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AcoFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AcoFixture extends CakeTestFixture { * @access public */ var $name = 'Aco'; + /** * fields property * @@ -53,6 +57,7 @@ class AcoFixture extends CakeTestFixture { 'lft' => array('type' => 'integer', 'length' => 10, 'null' => true), 'rght' => array('type' => 'integer', 'length' => 10, 'null' => true) ); + /** * records property * diff --git a/cake/tests/fixtures/aco_two_fixture.php b/cake/tests/fixtures/aco_two_fixture.php index f139c9266..e372626ca 100644 --- a/cake/tests/fixtures/aco_two_fixture.php +++ b/cake/tests/fixtures/aco_two_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AcoTwoFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AcoTwoFixture extends CakeTestFixture { * @access public */ var $name = 'AcoTwo'; + /** * fields property * @@ -53,6 +57,7 @@ class AcoTwoFixture extends CakeTestFixture { 'lft' => array('type' => 'integer', 'length' => 10, 'null' => true), 'rght' => array('type' => 'integer', 'length' => 10, 'null' => true) ); + /** * records property * diff --git a/cake/tests/fixtures/ad_fixture.php b/cake/tests/fixtures/ad_fixture.php index 370f98daa..cf7e88c2d 100644 --- a/cake/tests/fixtures/ad_fixture.php +++ b/cake/tests/fixtures/ad_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for ad_fixture.php * @@ -23,6 +24,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * AdFixture class * @@ -30,6 +32,7 @@ * @subpackage cake.tests.fixtures */ class AdFixture extends CakeTestFixture { + /** * name property * @@ -37,6 +40,7 @@ class AdFixture extends CakeTestFixture { * @access public */ var $name = 'Ad'; + /** * fields property * @@ -51,6 +55,7 @@ class AdFixture extends CakeTestFixture { 'rght' => array('type' => 'integer'), 'name' => array('type' => 'string', 'length' => 255, 'null' => false) ); + /** * records property * diff --git a/cake/tests/fixtures/advertisement_fixture.php b/cake/tests/fixtures/advertisement_fixture.php index f5062336a..4209bb838 100644 --- a/cake/tests/fixtures/advertisement_fixture.php +++ b/cake/tests/fixtures/advertisement_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AdvertisementFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AdvertisementFixture extends CakeTestFixture { * @access public */ var $name = 'Advertisement'; + /** * fields property * @@ -50,6 +54,7 @@ class AdvertisementFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -62,4 +67,4 @@ class AdvertisementFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/after_tree_fixture.php b/cake/tests/fixtures/after_tree_fixture.php index 68cd6fba7..3e1fc968e 100644 --- a/cake/tests/fixtures/after_tree_fixture.php +++ b/cake/tests/fixtures/after_tree_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for after_tree_fixture.php * @@ -23,6 +24,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * AdFixture class * @@ -30,6 +32,7 @@ * @subpackage cake.tests.fixtures */ class AfterTreeFixture extends CakeTestFixture { + /** * name property * @@ -37,6 +40,7 @@ class AfterTreeFixture extends CakeTestFixture { * @access public */ var $name = 'AfterTree'; + /** * fields property * @@ -50,6 +54,7 @@ class AfterTreeFixture extends CakeTestFixture { 'rght' => array('type' => 'integer'), 'name' => array('type' => 'string', 'length' => 255, 'null' => false) ); + /** * records property * diff --git a/cake/tests/fixtures/another_article_fixture.php b/cake/tests/fixtures/another_article_fixture.php index ec3d19c0c..86f01692d 100644 --- a/cake/tests/fixtures/another_article_fixture.php +++ b/cake/tests/fixtures/another_article_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AnotherArticleFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AnotherArticleFixture extends CakeTestFixture { * @access public */ var $name = 'AnotherArticle'; + /** * fields property * @@ -50,6 +54,7 @@ class AnotherArticleFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -63,4 +68,4 @@ class AnotherArticleFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/apple_fixture.php b/cake/tests/fixtures/apple_fixture.php index d8d3e1250..2bc85a64a 100644 --- a/cake/tests/fixtures/apple_fixture.php +++ b/cake/tests/fixtures/apple_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AppleFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AppleFixture extends CakeTestFixture { * @access public */ var $name = 'Apple'; + /** * fields property * @@ -54,6 +58,7 @@ class AppleFixture extends CakeTestFixture { 'modified' => 'datetime', 'mytime' => 'time' ); + /** * records property * @@ -71,4 +76,4 @@ class AppleFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/aro_fixture.php b/cake/tests/fixtures/aro_fixture.php index 96ae59828..b83038e40 100644 --- a/cake/tests/fixtures/aro_fixture.php +++ b/cake/tests/fixtures/aro_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AroFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AroFixture extends CakeTestFixture { * @access public */ var $name = 'Aro'; + /** * fields property * @@ -53,6 +57,7 @@ class AroFixture extends CakeTestFixture { 'lft' => array('type' => 'integer', 'length' => 10, 'null' => true), 'rght' => array('type' => 'integer', 'length' => 10, 'null' => true) ); + /** * records property * @@ -67,4 +72,4 @@ class AroFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/aro_two_fixture.php b/cake/tests/fixtures/aro_two_fixture.php index a61d35c0b..55aca57c1 100644 --- a/cake/tests/fixtures/aro_two_fixture.php +++ b/cake/tests/fixtures/aro_two_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AroTwoFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AroTwoFixture extends CakeTestFixture { * @access public */ var $name = 'AroTwo'; + /** * fields property * @@ -53,6 +57,7 @@ class AroTwoFixture extends CakeTestFixture { 'lft' => array('type' => 'integer', 'length' => 10, 'null' => true), 'rght' => array('type' => 'integer', 'length' => 10, 'null' => true) ); + /** * records property * @@ -73,4 +78,4 @@ class AroTwoFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/aros_aco_fixture.php b/cake/tests/fixtures/aros_aco_fixture.php index be181c6fb..ae0761769 100644 --- a/cake/tests/fixtures/aros_aco_fixture.php +++ b/cake/tests/fixtures/aros_aco_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ArosAcoFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ArosAcoFixture extends CakeTestFixture { * @access public */ var $name = 'ArosAco'; + /** * fields property * @@ -53,6 +57,7 @@ class ArosAcoFixture extends CakeTestFixture { '_update' => array('type' => 'string', 'length' => 2, 'default' => 0), '_delete' => array('type' => 'string', 'length' => 2, 'default' => 0) ); + /** * records property * @@ -62,4 +67,4 @@ class ArosAcoFixture extends CakeTestFixture { var $records = array(); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/aros_aco_two_fixture.php b/cake/tests/fixtures/aros_aco_two_fixture.php index 74866e5fe..a14e68d71 100644 --- a/cake/tests/fixtures/aros_aco_two_fixture.php +++ b/cake/tests/fixtures/aros_aco_two_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ArosAcoTwoFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ArosAcoTwoFixture extends CakeTestFixture { * @access public */ var $name = 'ArosAcoTwo'; + /** * fields property * @@ -53,6 +57,7 @@ class ArosAcoTwoFixture extends CakeTestFixture { '_update' => array('type' => 'string', 'length' => 2, 'default' => 0), '_delete' => array('type' => 'string', 'length' => 2, 'default' => 0) ); + /** * records property * @@ -83,4 +88,4 @@ class ArosAcoTwoFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/article_featured_fixture.php b/cake/tests/fixtures/article_featured_fixture.php index 67b967499..01707a2f7 100644 --- a/cake/tests/fixtures/article_featured_fixture.php +++ b/cake/tests/fixtures/article_featured_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ArticleFeaturedFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ArticleFeaturedFixture extends CakeTestFixture { * @access public */ var $name = 'ArticleFeatured'; + /** * fields property * @@ -53,6 +57,7 @@ class ArticleFeaturedFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -66,4 +71,4 @@ class ArticleFeaturedFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/article_featureds_tags_fixture.php b/cake/tests/fixtures/article_featureds_tags_fixture.php index e1ac130f6..56c5ae692 100644 --- a/cake/tests/fixtures/article_featureds_tags_fixture.php +++ b/cake/tests/fixtures/article_featureds_tags_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ArticleFeaturedsTagsFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ArticleFeaturedsTagsFixture extends CakeTestFixture { * @access public */ var $name = 'ArticleFeaturedsTags'; + /** * fields property * @@ -51,4 +55,4 @@ class ArticleFeaturedsTagsFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/article_fixture.php b/cake/tests/fixtures/article_fixture.php index fe2721d74..bacf5f433 100644 --- a/cake/tests/fixtures/article_fixture.php +++ b/cake/tests/fixtures/article_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ArticleFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ArticleFixture extends CakeTestFixture { * @access public */ var $name = 'Article'; + /** * fields property * @@ -53,6 +57,7 @@ class ArticleFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -66,4 +71,4 @@ class ArticleFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/articles_tag_fixture.php b/cake/tests/fixtures/articles_tag_fixture.php index a19bcd142..52ad94ab3 100644 --- a/cake/tests/fixtures/articles_tag_fixture.php +++ b/cake/tests/fixtures/articles_tag_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ArticlesTagFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ArticlesTagFixture extends CakeTestFixture { * @access public */ var $name = 'ArticlesTag'; + /** * fields property * @@ -49,6 +53,7 @@ class ArticlesTagFixture extends CakeTestFixture { 'tag_id' => array('type' => 'integer', 'null' => false), 'indexes' => array('UNIQUE_TAG' => array('column'=> array('article_id', 'tag_id'), 'unique'=>1)) ); + /** * records property * @@ -63,4 +68,4 @@ class ArticlesTagFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/attachment_fixture.php b/cake/tests/fixtures/attachment_fixture.php index de0d8b492..c12e26c46 100644 --- a/cake/tests/fixtures/attachment_fixture.php +++ b/cake/tests/fixtures/attachment_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AttachmentFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AttachmentFixture extends CakeTestFixture { * @access public */ var $name = 'Attachment'; + /** * fields property * @@ -51,6 +55,7 @@ class AttachmentFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -62,4 +67,4 @@ class AttachmentFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/auth_user_custom_field_fixture.php b/cake/tests/fixtures/auth_user_custom_field_fixture.php index ebc2c3f29..c9731dd99 100644 --- a/cake/tests/fixtures/auth_user_custom_field_fixture.php +++ b/cake/tests/fixtures/auth_user_custom_field_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AuthUserCustomFieldFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AuthUserCustomFieldFixture extends CakeTestFixture { * @access public */ var $name = 'AuthUserCustomField'; + /** * fields property * @@ -51,6 +55,7 @@ class AuthUserCustomFieldFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -67,4 +72,4 @@ class AuthUserCustomFieldFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/auth_user_fixture.php b/cake/tests/fixtures/auth_user_fixture.php index d16c7759e..1bd3e81e5 100644 --- a/cake/tests/fixtures/auth_user_fixture.php +++ b/cake/tests/fixtures/auth_user_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AuthUserFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AuthUserFixture extends CakeTestFixture { * @access public */ var $name = 'AuthUser'; + /** * fields property * @@ -51,6 +55,7 @@ class AuthUserFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -67,4 +72,4 @@ class AuthUserFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/author_fixture.php b/cake/tests/fixtures/author_fixture.php index 96ee0ea44..d511bcbb5 100644 --- a/cake/tests/fixtures/author_fixture.php +++ b/cake/tests/fixtures/author_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class AuthorFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class AuthorFixture extends CakeTestFixture { * @access public */ var $name = 'Author'; + /** * fields property * @@ -51,6 +55,7 @@ class AuthorFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -65,4 +70,4 @@ class AuthorFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/basket_fixture.php b/cake/tests/fixtures/basket_fixture.php index c20014ff3..346d91895 100644 --- a/cake/tests/fixtures/basket_fixture.php +++ b/cake/tests/fixtures/basket_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class BasketFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class BasketFixture extends CakeTestFixture { * @access public */ var $name = 'Basket'; + /** * fields property * @@ -51,6 +55,7 @@ class BasketFixture extends CakeTestFixture { 'object_id' => array('type' => 'integer'), 'user_id' => array('type' => 'integer'), ); + /** * records property * diff --git a/cake/tests/fixtures/bid_fixture.php b/cake/tests/fixtures/bid_fixture.php index 9b118cca8..1c9fa4e7c 100644 --- a/cake/tests/fixtures/bid_fixture.php +++ b/cake/tests/fixtures/bid_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class BidFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class BidFixture extends CakeTestFixture { * @access public */ var $name = 'Bid'; + /** * fields property * @@ -49,6 +53,7 @@ class BidFixture extends CakeTestFixture { 'message_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -63,4 +68,4 @@ class BidFixture extends CakeTestFixture { array('message_id' => 2, 'name' => 'Bid 2.2') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/binary_test_fixture.php b/cake/tests/fixtures/binary_test_fixture.php index b9c09cbe2..dfe27d917 100644 --- a/cake/tests/fixtures/binary_test_fixture.php +++ b/cake/tests/fixtures/binary_test_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class BinaryTestFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class BinaryTestFixture extends CakeTestFixture { * @access public */ var $name = 'BinaryTest'; + /** * fields property * @@ -48,6 +52,7 @@ class BinaryTestFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'data' => 'binary' ); + /** * records property * @@ -57,4 +62,4 @@ class BinaryTestFixture extends CakeTestFixture { var $records = array(); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/book_fixture.php b/cake/tests/fixtures/book_fixture.php index 823408c8f..297251ea3 100644 --- a/cake/tests/fixtures/book_fixture.php +++ b/cake/tests/fixtures/book_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class BookFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class BookFixture extends CakeTestFixture { * @access public */ var $name = 'Book'; + /** * fields property * @@ -52,6 +56,7 @@ class BookFixture extends CakeTestFixture { 'year' => array('type' => 'integer', 'null' => true), 'pages' => array('type' => 'integer', 'null' => true) ); + /** * records property * diff --git a/cake/tests/fixtures/cache_test_model_fixture.php b/cake/tests/fixtures/cache_test_model_fixture.php index ff4f855c0..e5cd6e0d5 100644 --- a/cake/tests/fixtures/cache_test_model_fixture.php +++ b/cake/tests/fixtures/cache_test_model_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class CacheTestModelFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class CacheTestModelFixture extends CakeTestFixture { * @access public */ var $name = 'CacheTestModel'; + /** * fields property * @@ -51,4 +55,4 @@ class CacheTestModelFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/callback_fixture.php b/cake/tests/fixtures/callback_fixture.php index 6ef3d1eb5..299db85fa 100644 --- a/cake/tests/fixtures/callback_fixture.php +++ b/cake/tests/fixtures/callback_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class CallbackFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class CallbackFixture extends CakeTestFixture { * @access public */ var $name = 'Callback'; + /** * fields property * @@ -51,6 +55,7 @@ class CallbackFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -64,4 +69,4 @@ class CallbackFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/campaign_fixture.php b/cake/tests/fixtures/campaign_fixture.php index 2e91feb5e..9594b6a37 100644 --- a/cake/tests/fixtures/campaign_fixture.php +++ b/cake/tests/fixtures/campaign_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for campaign_fixture.php * @@ -23,6 +24,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * CampaignFixture class * @@ -30,6 +32,7 @@ * @subpackage cake.tests.fixtures */ class CampaignFixture extends CakeTestFixture { + /** * name property * @@ -37,6 +40,7 @@ class CampaignFixture extends CakeTestFixture { * @access public */ var $name = 'Campaign'; + /** * fields property * @@ -47,6 +51,7 @@ class CampaignFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'length' => 255, 'null' => false), ); + /** * records property * diff --git a/cake/tests/fixtures/category_fixture.php b/cake/tests/fixtures/category_fixture.php index 5cb04f106..54f3c9ddb 100644 --- a/cake/tests/fixtures/category_fixture.php +++ b/cake/tests/fixtures/category_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class CategoryFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class CategoryFixture extends CakeTestFixture { * @access public */ var $name = 'Category'; + /** * fields property * @@ -51,6 +55,7 @@ class CategoryFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -69,4 +74,4 @@ class CategoryFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/category_thread_fixture.php b/cake/tests/fixtures/category_thread_fixture.php index 5da10d7d8..6c9b80b3d 100644 --- a/cake/tests/fixtures/category_thread_fixture.php +++ b/cake/tests/fixtures/category_thread_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class CategoryThreadFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class CategoryThreadFixture extends CakeTestFixture { * @access public */ var $name = 'CategoryThread'; + /** * fields property * @@ -51,6 +55,7 @@ class CategoryThreadFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -68,4 +73,4 @@ class CategoryThreadFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/cd_fixture.php b/cake/tests/fixtures/cd_fixture.php index 16b74f565..0cf6702be 100644 --- a/cake/tests/fixtures/cd_fixture.php +++ b/cake/tests/fixtures/cd_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class CdFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class CdFixture extends CakeTestFixture { * @access public */ var $name = 'Cd'; + /** * fields property * @@ -50,6 +54,7 @@ class CdFixture extends CakeTestFixture { 'artist' => array('type' => 'string', 'length' => 255, 'null' => true), 'genre' => array('type' => 'string', 'length' => 255, 'null' => true) ); + /** * records property * diff --git a/cake/tests/fixtures/comment_fixture.php b/cake/tests/fixtures/comment_fixture.php index b2283c9af..45db545ac 100644 --- a/cake/tests/fixtures/comment_fixture.php +++ b/cake/tests/fixtures/comment_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class CommentFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class CommentFixture extends CakeTestFixture { * @access public */ var $name = 'Comment'; + /** * fields property * @@ -53,6 +57,7 @@ class CommentFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -69,4 +74,4 @@ class CommentFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/content_account_fixture.php b/cake/tests/fixtures/content_account_fixture.php index 8eb7be738..b92c74849 100644 --- a/cake/tests/fixtures/content_account_fixture.php +++ b/cake/tests/fixtures/content_account_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ContentAccountFixture extends CakeTestFixture { + /** * name property * @@ -39,6 +42,7 @@ class ContentAccountFixture extends CakeTestFixture { */ var $name = 'ContentAccount'; var $table = 'ContentAccounts'; + /** * fields property * @@ -50,6 +54,7 @@ class ContentAccountFixture extends CakeTestFixture { 'iContentId' => array('type' => 'integer'), 'iAccountId' => array('type' => 'integer') ); + /** * records property * diff --git a/cake/tests/fixtures/content_fixture.php b/cake/tests/fixtures/content_fixture.php index b7e3131cd..f6b62500a 100644 --- a/cake/tests/fixtures/content_fixture.php +++ b/cake/tests/fixtures/content_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ContentFixture extends CakeTestFixture { + /** * name property * @@ -39,6 +42,7 @@ class ContentFixture extends CakeTestFixture { */ var $name = 'Content'; var $table = 'Content'; + /** * fields property * @@ -49,6 +53,7 @@ class ContentFixture extends CakeTestFixture { 'iContentId' => array('type' => 'integer', 'key' => 'primary'), 'cDescription' => array('type' => 'string', 'length' => 50, 'null' => true) ); + /** * records property * diff --git a/cake/tests/fixtures/counter_cache_post_fixture.php b/cake/tests/fixtures/counter_cache_post_fixture.php index eb9413072..68847d0ae 100644 --- a/cake/tests/fixtures/counter_cache_post_fixture.php +++ b/cake/tests/fixtures/counter_cache_post_fixture.php @@ -1,50 +1,52 @@ -<?php -/* SVN FILE: $Id: counter_cache_fixture.php 7848 2008-11-08 02:58:37Z nate $ */ -/** - * Short description for file. - * - * Long description for file - * - * PHP versions 4 and 5 - * - * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> - * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) - * - * Licensed under The Open Group Test Suite License - * Redistributions of files must retain the above copyright notice. - * - * @filesource - * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) - * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests - * @package cake - * @subpackage cake.tests.fixtures - * @since CakePHP(tm) v 1.2.0.4667 - * @version $Revision: 7848 $ - * @modifiedby $LastChangedBy: renan.saddam $ - * @lastmodified $Date: 2008-11-07 21:58:37 -0500 (Fri, 07 Nov 2008) $ - * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License - */ -/** - * Short description for class. - * - * @package cake - * @subpackage cake.tests.fixtures - */ -class CounterCachePostFixture extends CakeTestFixture { - - var $name = 'CounterCachePost'; - - var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), - 'title' => array('type' => 'string', 'length' => 255, 'null' => false), - 'user_id' => array('type' => 'integer', 'null' => true), - ); - - var $records = array( - array('id' => 1, 'title' => 'Rock and Roll', 'user_id' => 66), - array('id' => 2, 'title' => 'Music', 'user_id' => 66), - array('id' => 3, 'title' => 'Food', 'user_id' => 301), - ); -} - +<?php +/* SVN FILE: $Id: counter_cache_fixture.php 7848 2008-11-08 02:58:37Z nate $ */ + +/** + * Short description for file. + * + * Long description for file + * + * PHP versions 4 and 5 + * + * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> + * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 7848 $ + * @modifiedby $LastChangedBy: renan.saddam $ + * @lastmodified $Date: 2008-11-07 21:58:37 -0500 (Fri, 07 Nov 2008) $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ + +/** + * Short description for class. + * + * @package cake + * @subpackage cake.tests.fixtures + */ +class CounterCachePostFixture extends CakeTestFixture { + + var $name = 'CounterCachePost'; + + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary'), + 'title' => array('type' => 'string', 'length' => 255, 'null' => false), + 'user_id' => array('type' => 'integer', 'null' => true), + ); + + var $records = array( + array('id' => 1, 'title' => 'Rock and Roll', 'user_id' => 66), + array('id' => 2, 'title' => 'Music', 'user_id' => 66), + array('id' => 3, 'title' => 'Food', 'user_id' => 301), + ); +} + ?> \ No newline at end of file diff --git a/cake/tests/fixtures/counter_cache_post_nonstandard_primary_key_fixture.php b/cake/tests/fixtures/counter_cache_post_nonstandard_primary_key_fixture.php index 15c577dc2..34280e139 100644 --- a/cake/tests/fixtures/counter_cache_post_nonstandard_primary_key_fixture.php +++ b/cake/tests/fixtures/counter_cache_post_nonstandard_primary_key_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id: counter_cache_fixture.php 7848 2008-11-08 02:58:37Z nate $ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date: 2008-11-07 21:58:37 -0500 (Fri, 07 Nov 2008) $ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * diff --git a/cake/tests/fixtures/counter_cache_user_fixture.php b/cake/tests/fixtures/counter_cache_user_fixture.php index ad592386a..253747059 100644 --- a/cake/tests/fixtures/counter_cache_user_fixture.php +++ b/cake/tests/fixtures/counter_cache_user_fixture.php @@ -1,49 +1,51 @@ -<?php -/* SVN FILE: $Id: counter_cache_user_fixture.php 7848 2008-11-08 02:58:37Z nate $ */ -/** - * Short description for file. - * - * Long description for file - * - * PHP versions 4 and 5 - * - * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> - * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) - * - * Licensed under The Open Group Test Suite License - * Redistributions of files must retain the above copyright notice. - * - * @filesource - * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) - * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests - * @package cake - * @subpackage cake.tests.fixtures - * @since CakePHP(tm) v 1.2.0.4667 - * @version $Revision: 7848 $ - * @modifiedby $LastChangedBy: renan.saddam $ - * @lastmodified $Date: 2008-11-07 21:58:37 -0500 (Fri, 07 Nov 2008) $ - * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License - */ -/** - * Short description for class. - * - * @package cake - * @subpackage cake.tests.fixtures - */ -class CounterCacheUserFixture extends CakeTestFixture { - - var $name = 'CounterCacheUser'; - - var $fields = array( - 'id' => array('type' => 'integer', 'key' => 'primary'), - 'name' => array('type' => 'string', 'length' => 255, 'null' => false), - 'post_count' => array('type' => 'integer', 'null' => true) - ); - - var $records = array( - array('id' => 66, 'name' => 'Alexander','post_count' => 2), - array('id' => 301, 'name' => 'Steven','post_count' => 1), - ); -} - +<?php +/* SVN FILE: $Id: counter_cache_user_fixture.php 7848 2008-11-08 02:58:37Z nate $ */ + +/** + * Short description for file. + * + * Long description for file + * + * PHP versions 4 and 5 + * + * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> + * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 7848 $ + * @modifiedby $LastChangedBy: renan.saddam $ + * @lastmodified $Date: 2008-11-07 21:58:37 -0500 (Fri, 07 Nov 2008) $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ + +/** + * Short description for class. + * + * @package cake + * @subpackage cake.tests.fixtures + */ +class CounterCacheUserFixture extends CakeTestFixture { + + var $name = 'CounterCacheUser'; + + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary'), + 'name' => array('type' => 'string', 'length' => 255, 'null' => false), + 'post_count' => array('type' => 'integer', 'null' => true) + ); + + var $records = array( + array('id' => 66, 'name' => 'Alexander','post_count' => 2), + array('id' => 301, 'name' => 'Steven','post_count' => 1), + ); +} + ?> \ No newline at end of file diff --git a/cake/tests/fixtures/counter_cache_user_nonstandard_primary_key_fixture.php b/cake/tests/fixtures/counter_cache_user_nonstandard_primary_key_fixture.php index e7bb7658b..c1bdede1c 100644 --- a/cake/tests/fixtures/counter_cache_user_nonstandard_primary_key_fixture.php +++ b/cake/tests/fixtures/counter_cache_user_nonstandard_primary_key_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id: counter_cache_user_fixture.php 7848 2008-11-08 02:58:37Z nate $ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date: 2008-11-07 21:58:37 -0500 (Fri, 07 Nov 2008) $ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * diff --git a/cake/tests/fixtures/data_test_fixture.php b/cake/tests/fixtures/data_test_fixture.php index afed9aa9b..858fe2b9b 100644 --- a/cake/tests/fixtures/data_test_fixture.php +++ b/cake/tests/fixtures/data_test_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class DataTestFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class DataTestFixture extends CakeTestFixture { * @access public */ var $name = 'DataTest'; + /** * fields property * @@ -52,6 +56,7 @@ class DataTestFixture extends CakeTestFixture { 'created' => array('type' => 'datetime', 'default' => null), 'updated' => array('type' => 'datetime', 'default' => null) ); + /** * records property * @@ -61,4 +66,4 @@ class DataTestFixture extends CakeTestFixture { var $records = array(); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/datatype_fixture.php b/cake/tests/fixtures/datatype_fixture.php index 281da2f48..2c50095cb 100644 --- a/cake/tests/fixtures/datatype_fixture.php +++ b/cake/tests/fixtures/datatype_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class DatatypeFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class DatatypeFixture extends CakeTestFixture { * @access public */ var $name = 'Datatype'; + /** * fields property * @@ -48,6 +52,7 @@ class DatatypeFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'null'=> false, 'default'=> 0, 'key' => 'primary'), 'float_field' => array('type' => 'float', 'length' => '5,2', 'null' => false, 'default' => null), ); + /** * records property * @@ -59,4 +64,4 @@ class DatatypeFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/dependency_fixture.php b/cake/tests/fixtures/dependency_fixture.php index 8b1720798..6f5b4ee9b 100644 --- a/cake/tests/fixtures/dependency_fixture.php +++ b/cake/tests/fixtures/dependency_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for file. * @@ -34,6 +36,7 @@ * @since CakePHP(tm) v 1.2.0.6879//Correct version number as needed** */ class DependencyFixture extends CakeTestFixture { + /** * name property * @@ -41,6 +44,7 @@ class DependencyFixture extends CakeTestFixture { * @access public */ var $name = 'Dependency'; + /** * fields property * @@ -51,6 +55,7 @@ class DependencyFixture extends CakeTestFixture { 'child_id' => 'integer', 'parent_id' => 'integer' ); + /** * records property * @@ -62,4 +67,4 @@ class DependencyFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/device_fixture.php b/cake/tests/fixtures/device_fixture.php index 3b0638d15..83930aa35 100644 --- a/cake/tests/fixtures/device_fixture.php +++ b/cake/tests/fixtures/device_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class DeviceFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class DeviceFixture extends CakeTestFixture { * @access public */ var $name = 'Device'; + /** * fields property * @@ -50,6 +54,7 @@ class DeviceFixture extends CakeTestFixture { 'name' => array('type' => 'string', 'null' => false), 'typ' => array('type' => 'integer', 'null' => false), ); + /** * records property * @@ -62,4 +67,4 @@ class DeviceFixture extends CakeTestFixture { array('device_type_id' => 1, 'name' => 'Device 3', 'typ' => 2) ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/device_type_category_fixture.php b/cake/tests/fixtures/device_type_category_fixture.php index ee33c18b2..9a88e68e0 100644 --- a/cake/tests/fixtures/device_type_category_fixture.php +++ b/cake/tests/fixtures/device_type_category_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class DeviceTypeCategoryFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class DeviceTypeCategoryFixture extends CakeTestFixture { * @access public */ var $name = 'DeviceTypeCategory'; + /** * fields property * @@ -48,6 +52,7 @@ class DeviceTypeCategoryFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -58,4 +63,4 @@ class DeviceTypeCategoryFixture extends CakeTestFixture { array('name' => 'DeviceTypeCategory 1') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/device_type_fixture.php b/cake/tests/fixtures/device_type_fixture.php index cb8970a57..7f53948ad 100644 --- a/cake/tests/fixtures/device_type_fixture.php +++ b/cake/tests/fixtures/device_type_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class DeviceTypeFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class DeviceTypeFixture extends CakeTestFixture { * @access public */ var $name = 'DeviceType'; + /** * fields property * @@ -55,6 +59,7 @@ class DeviceTypeFixture extends CakeTestFixture { 'name' => array('type' => 'string', 'null' => false), 'order' => array('type' => 'integer', 'null' => false) ); + /** * records property * @@ -65,4 +70,4 @@ class DeviceTypeFixture extends CakeTestFixture { array('device_type_category_id' => 1, 'feature_set_id' => 1, 'exterior_type_category_id' => 1, 'image_id' => 1, 'extra1_id' => 1, 'extra2_id' => 1, 'name' => 'DeviceType 1', 'order' => 0) ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/document_directory_fixture.php b/cake/tests/fixtures/document_directory_fixture.php index ff67dfa47..5be9aa916 100644 --- a/cake/tests/fixtures/document_directory_fixture.php +++ b/cake/tests/fixtures/document_directory_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class DocumentDirectoryFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class DocumentDirectoryFixture extends CakeTestFixture { * @access public */ var $name = 'DocumentDirectory'; + /** * fields property * @@ -48,6 +52,7 @@ class DocumentDirectoryFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -58,4 +63,4 @@ class DocumentDirectoryFixture extends CakeTestFixture { array('name' => 'DocumentDirectory 1') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/document_fixture.php b/cake/tests/fixtures/document_fixture.php index fde15f92d..6731b5389 100644 --- a/cake/tests/fixtures/document_fixture.php +++ b/cake/tests/fixtures/document_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class DocumentFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class DocumentFixture extends CakeTestFixture { * @access public */ var $name = 'Document'; + /** * fields property * @@ -49,6 +53,7 @@ class DocumentFixture extends CakeTestFixture { 'document_directory_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -59,4 +64,4 @@ class DocumentFixture extends CakeTestFixture { array('document_directory_id' => 1, 'name' => 'Document 1') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/exterior_type_category_fixture.php b/cake/tests/fixtures/exterior_type_category_fixture.php index 0905c3eca..6672b5d2c 100644 --- a/cake/tests/fixtures/exterior_type_category_fixture.php +++ b/cake/tests/fixtures/exterior_type_category_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ExteriorTypeCategoryFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ExteriorTypeCategoryFixture extends CakeTestFixture { * @access public */ var $name = 'ExteriorTypeCategory'; + /** * fields property * @@ -49,6 +53,7 @@ class ExteriorTypeCategoryFixture extends CakeTestFixture { 'image_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -59,4 +64,4 @@ class ExteriorTypeCategoryFixture extends CakeTestFixture { array('image_id' => 1, 'name' => 'ExteriorTypeCategory 1') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/feature_set_fixture.php b/cake/tests/fixtures/feature_set_fixture.php index 533601535..a9df1ff29 100644 --- a/cake/tests/fixtures/feature_set_fixture.php +++ b/cake/tests/fixtures/feature_set_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class FeatureSetFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class FeatureSetFixture extends CakeTestFixture { * @access public */ var $name = 'FeatureSet'; + /** * fields property * @@ -48,6 +52,7 @@ class FeatureSetFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -58,4 +63,4 @@ class FeatureSetFixture extends CakeTestFixture { array('name' => 'FeatureSet 1') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/featured_fixture.php b/cake/tests/fixtures/featured_fixture.php index 3f3e83372..8ab6c992b 100644 --- a/cake/tests/fixtures/featured_fixture.php +++ b/cake/tests/fixtures/featured_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class FeaturedFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class FeaturedFixture extends CakeTestFixture { * @access public */ var $name = 'Featured'; + /** * fields property * @@ -53,6 +57,7 @@ class FeaturedFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -65,4 +70,4 @@ class FeaturedFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/film_file_fixture.php b/cake/tests/fixtures/film_file_fixture.php index 1483947a3..f5a88d421 100644 --- a/cake/tests/fixtures/film_file_fixture.php +++ b/cake/tests/fixtures/film_file_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class FilmFileFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class FilmFileFixture extends CakeTestFixture { * @access public */ var $name = 'FilmFile'; + /** * fields property * @@ -48,6 +52,7 @@ class FilmFileFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'length' => 255) ); + /** * records property * diff --git a/cake/tests/fixtures/flag_tree_fixture.php b/cake/tests/fixtures/flag_tree_fixture.php index d81744261..7cd9546bf 100644 --- a/cake/tests/fixtures/flag_tree_fixture.php +++ b/cake/tests/fixtures/flag_tree_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Tree behavior class test fixture. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Flag Tree Test Fixture * @@ -33,6 +35,7 @@ * @subpackage cake.tests.fixtures */ class FlagTreeFixture extends CakeTestFixture { + /** * name property * @@ -40,6 +43,7 @@ class FlagTreeFixture extends CakeTestFixture { * @access public */ var $name = 'FlagTree'; + /** * fields property * @@ -56,4 +60,4 @@ class FlagTreeFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/fruit_fixture.php b/cake/tests/fixtures/fruit_fixture.php index bf90baea8..208e79144 100644 --- a/cake/tests/fixtures/fruit_fixture.php +++ b/cake/tests/fixtures/fruit_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class FruitFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class FruitFixture extends CakeTestFixture { * @access public */ var $name = 'Fruit'; + /** * fields property * @@ -51,6 +55,7 @@ class FruitFixture extends CakeTestFixture { 'shape' => array('type' => 'string', 'length' => 255), 'taste' => array('type' => 'string', 'length' => 255) ); + /** * records property * diff --git a/cake/tests/fixtures/fruits_uuid_tag_fixture.php b/cake/tests/fixtures/fruits_uuid_tag_fixture.php index 7c84c660d..9c1305b61 100644 --- a/cake/tests/fixtures/fruits_uuid_tag_fixture.php +++ b/cake/tests/fixtures/fruits_uuid_tag_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class FruitsUuidTagFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class FruitsUuidTagFixture extends CakeTestFixture { * @access public */ var $name = 'FruitsUuidTag'; + /** * fields property * @@ -51,6 +55,7 @@ class FruitsUuidTagFixture extends CakeTestFixture { 'unique_fruits_tags' => array('unique' => true, 'column' => array('fruit_id', 'uuid_tag_id')), ), ); + /** * records property * diff --git a/cake/tests/fixtures/home_fixture.php b/cake/tests/fixtures/home_fixture.php index f88b8f7b0..623936037 100644 --- a/cake/tests/fixtures/home_fixture.php +++ b/cake/tests/fixtures/home_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class HomeFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class HomeFixture extends CakeTestFixture { * @access public */ var $name = 'Home'; + /** * fields property * @@ -52,6 +56,7 @@ class HomeFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -64,4 +69,4 @@ class HomeFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/image_fixture.php b/cake/tests/fixtures/image_fixture.php index e30862fc9..30fdc591c 100644 --- a/cake/tests/fixtures/image_fixture.php +++ b/cake/tests/fixtures/image_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ImageFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ImageFixture extends CakeTestFixture { * @access public */ var $name = 'Image'; + /** * fields property * @@ -48,6 +52,7 @@ class ImageFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -62,4 +67,4 @@ class ImageFixture extends CakeTestFixture { array('name' => 'Image 5') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/item_fixture.php b/cake/tests/fixtures/item_fixture.php index 1602fb698..04e0cf075 100644 --- a/cake/tests/fixtures/item_fixture.php +++ b/cake/tests/fixtures/item_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ItemFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ItemFixture extends CakeTestFixture { * @access public */ var $name = 'Item'; + /** * fields property * @@ -50,6 +54,7 @@ class ItemFixture extends CakeTestFixture { 'published' => array('type' => 'boolean', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -65,4 +70,4 @@ class ItemFixture extends CakeTestFixture { array('syfile_id' => 6, 'published' => 0, 'name' => 'Item 6') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/items_portfolio_fixture.php b/cake/tests/fixtures/items_portfolio_fixture.php index fb7dd71bb..693038a6f 100644 --- a/cake/tests/fixtures/items_portfolio_fixture.php +++ b/cake/tests/fixtures/items_portfolio_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ItemsPortfolioFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ItemsPortfolioFixture extends CakeTestFixture { * @access public */ var $name = 'ItemsPortfolio'; + /** * fields property * @@ -49,6 +53,7 @@ class ItemsPortfolioFixture extends CakeTestFixture { 'item_id' => array('type' => 'integer', 'null' => false), 'portfolio_id' => array('type' => 'integer', 'null' => false) ); + /** * records property * @@ -64,4 +69,4 @@ class ItemsPortfolioFixture extends CakeTestFixture { array('item_id' => 6, 'portfolio_id' => 2) ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/join_a_b_fixture.php b/cake/tests/fixtures/join_a_b_fixture.php index c1a5db5df..476d68284 100644 --- a/cake/tests/fixtures/join_a_b_fixture.php +++ b/cake/tests/fixtures/join_a_b_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class JoinABFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class JoinABFixture extends CakeTestFixture { * @access public */ var $name = 'JoinAsJoinB'; + /** * fields property * @@ -52,6 +56,7 @@ class JoinABFixture extends CakeTestFixture { 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); + /** * records property * @@ -65,4 +70,4 @@ class JoinABFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/join_a_c_fixture.php b/cake/tests/fixtures/join_a_c_fixture.php index 2fc335b3e..2fd5ebff9 100644 --- a/cake/tests/fixtures/join_a_c_fixture.php +++ b/cake/tests/fixtures/join_a_c_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class JoinACFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class JoinACFixture extends CakeTestFixture { * @access public */ var $name = 'JoinAsJoinC'; + /** * fields property * @@ -52,6 +56,7 @@ class JoinACFixture extends CakeTestFixture { 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); + /** * records property * @@ -65,4 +70,4 @@ class JoinACFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/join_a_fixture.php b/cake/tests/fixtures/join_a_fixture.php index a4401e452..63bb6bdfa 100644 --- a/cake/tests/fixtures/join_a_fixture.php +++ b/cake/tests/fixtures/join_a_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class JoinAFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class JoinAFixture extends CakeTestFixture { * @access public */ var $name = 'JoinA'; + /** * fields property * @@ -51,6 +55,7 @@ class JoinAFixture extends CakeTestFixture { 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); + /** * records property * @@ -64,4 +69,4 @@ class JoinAFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/join_b_fixture.php b/cake/tests/fixtures/join_b_fixture.php index 16294ce97..630d96ff3 100644 --- a/cake/tests/fixtures/join_b_fixture.php +++ b/cake/tests/fixtures/join_b_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class JoinBFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class JoinBFixture extends CakeTestFixture { * @access public */ var $name = 'JoinB'; + /** * fields property * @@ -50,6 +54,7 @@ class JoinBFixture extends CakeTestFixture { 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); + /** * records property * @@ -62,4 +67,4 @@ class JoinBFixture extends CakeTestFixture { array('name' => 'Join B 3', 'created' => '2008-01-03 10:55:03', 'updated' => '2008-01-03 10:55:03') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/join_c_fixture.php b/cake/tests/fixtures/join_c_fixture.php index 333f3e28b..9462226bc 100644 --- a/cake/tests/fixtures/join_c_fixture.php +++ b/cake/tests/fixtures/join_c_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class JoinCFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class JoinCFixture extends CakeTestFixture { * @access public */ var $name = 'JoinC'; + /** * fields property * @@ -50,6 +54,7 @@ class JoinCFixture extends CakeTestFixture { 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); + /** * records property * @@ -62,4 +67,4 @@ class JoinCFixture extends CakeTestFixture { array('name' => 'Join C 3', 'created' => '2008-01-03 10:56:13', 'updated' => '2008-01-03 10:56:13') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/join_thing_fixture.php b/cake/tests/fixtures/join_thing_fixture.php index 59ebe680c..8be6fcdd1 100644 --- a/cake/tests/fixtures/join_thing_fixture.php +++ b/cake/tests/fixtures/join_thing_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class JoinThingFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class JoinThingFixture extends CakeTestFixture { * @access public */ var $name = 'JoinThing'; + /** * fields property * @@ -52,6 +56,7 @@ class JoinThingFixture extends CakeTestFixture { 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); + /** * records property * @@ -65,4 +70,4 @@ class JoinThingFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/message_fixture.php b/cake/tests/fixtures/message_fixture.php index 94b53d5ca..448ae8a70 100644 --- a/cake/tests/fixtures/message_fixture.php +++ b/cake/tests/fixtures/message_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class MessageFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class MessageFixture extends CakeTestFixture { * @access public */ var $name = 'Message'; + /** * fields property * @@ -49,6 +53,7 @@ class MessageFixture extends CakeTestFixture { 'thread_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -61,4 +66,4 @@ class MessageFixture extends CakeTestFixture { array('thread_id' => 3, 'name' => 'Thread 3, Message 1') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/my_categories_my_products_fixture.php b/cake/tests/fixtures/my_categories_my_products_fixture.php index b570340fc..575504c2f 100644 --- a/cake/tests/fixtures/my_categories_my_products_fixture.php +++ b/cake/tests/fixtures/my_categories_my_products_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class MyCategoriesMyProductsFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class MyCategoriesMyProductsFixture extends CakeTestFixture { * @access public */ var $name = 'MyCategoriesMyProducts'; + /** * fields property * @@ -48,6 +52,7 @@ class MyCategoriesMyProductsFixture extends CakeTestFixture { 'my_category_id' => array('type' => 'integer'), 'my_product_id' => array('type' => 'integer'), ); + /** * records property * diff --git a/cake/tests/fixtures/my_categories_my_users_fixture.php b/cake/tests/fixtures/my_categories_my_users_fixture.php index d708d8dc5..af715716a 100644 --- a/cake/tests/fixtures/my_categories_my_users_fixture.php +++ b/cake/tests/fixtures/my_categories_my_users_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class MyCategoriesMyUsersFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class MyCategoriesMyUsersFixture extends CakeTestFixture { * @access public */ var $name = 'MyCategoriesMyUsers'; + /** * fields property * @@ -48,6 +52,7 @@ class MyCategoriesMyUsersFixture extends CakeTestFixture { 'my_category_id' => array('type' => 'integer'), 'my_user_id' => array('type' => 'integer'), ); + /** * records property * diff --git a/cake/tests/fixtures/my_category_fixture.php b/cake/tests/fixtures/my_category_fixture.php index c333890c3..0c03821b1 100644 --- a/cake/tests/fixtures/my_category_fixture.php +++ b/cake/tests/fixtures/my_category_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class MyCategoryFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class MyCategoryFixture extends CakeTestFixture { * @access public */ var $name = 'MyCategory'; + /** * fields property * @@ -48,6 +52,7 @@ class MyCategoryFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false), ); + /** * records property * diff --git a/cake/tests/fixtures/my_product_fixture.php b/cake/tests/fixtures/my_product_fixture.php index 9e2f7948a..2cbca54a9 100644 --- a/cake/tests/fixtures/my_product_fixture.php +++ b/cake/tests/fixtures/my_product_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class MyProductFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class MyProductFixture extends CakeTestFixture { * @access public */ var $name = 'MyProduct'; + /** * fields property * @@ -48,6 +52,7 @@ class MyProductFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false), ); + /** * records property * @@ -60,4 +65,4 @@ class MyProductFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/my_user_fixture.php b/cake/tests/fixtures/my_user_fixture.php index 1806851a8..6a7e18cae 100644 --- a/cake/tests/fixtures/my_user_fixture.php +++ b/cake/tests/fixtures/my_user_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class MyUserFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class MyUserFixture extends CakeTestFixture { * @access public */ var $name = 'MyUser'; + /** * fields property * @@ -48,6 +52,7 @@ class MyUserFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'firstname' => array('type' => 'string', 'null' => false), ); + /** * records property * diff --git a/cake/tests/fixtures/node_fixture.php b/cake/tests/fixtures/node_fixture.php index a75ac25ae..c290eba59 100644 --- a/cake/tests/fixtures/node_fixture.php +++ b/cake/tests/fixtures/node_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Short description for file. * @@ -34,6 +36,7 @@ * @since CakePHP(tm) v 1.2.0.6879 //Correct version number as needed** */ class NodeFixture extends CakeTestFixture { + /** * name property * @@ -41,6 +44,7 @@ class NodeFixture extends CakeTestFixture { * @access public */ var $name = 'Node'; + /** * fields property * @@ -52,6 +56,7 @@ class NodeFixture extends CakeTestFixture { 'name' => 'string', 'state' => 'integer' ); + /** * records property * @@ -64,4 +69,4 @@ class NodeFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/number_tree_fixture.php b/cake/tests/fixtures/number_tree_fixture.php index 4e1b973e8..4e9bf55c5 100644 --- a/cake/tests/fixtures/number_tree_fixture.php +++ b/cake/tests/fixtures/number_tree_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Tree behavior class. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Number Tree Test Fixture * @@ -33,6 +35,7 @@ * @subpackage cake.tests.fixtures */ class NumberTreeFixture extends CakeTestFixture { + /** * name property * @@ -40,6 +43,7 @@ class NumberTreeFixture extends CakeTestFixture { * @access public */ var $name = 'NumberTree'; + /** * fields property * @@ -55,4 +59,4 @@ class NumberTreeFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/number_tree_two_fixture.php b/cake/tests/fixtures/number_tree_two_fixture.php index 244191c32..443b8b206 100644 --- a/cake/tests/fixtures/number_tree_two_fixture.php +++ b/cake/tests/fixtures/number_tree_two_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Tree behavior class. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Number Tree Test Fixture * @@ -33,6 +35,7 @@ * @subpackage cake.tests.fixtures */ class NumberTreeTwoFixture extends CakeTestFixture { + /** * name property * @@ -40,6 +43,7 @@ class NumberTreeTwoFixture extends CakeTestFixture { * @access public */ var $name = 'NumberTreeTwo'; + /** * fields property * diff --git a/cake/tests/fixtures/numeric_article_fixture.php b/cake/tests/fixtures/numeric_article_fixture.php index 44fdce11c..ef22a13dd 100644 --- a/cake/tests/fixtures/numeric_article_fixture.php +++ b/cake/tests/fixtures/numeric_article_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class NumericArticleFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class NumericArticleFixture extends CakeTestFixture { * @access public */ var $name = 'NumericArticle'; + /** * fields property * @@ -50,6 +54,7 @@ class NumericArticleFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -62,4 +67,4 @@ class NumericArticleFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/overall_favorite_fixture.php b/cake/tests/fixtures/overall_favorite_fixture.php index b36ba1b44..bb8654363 100644 --- a/cake/tests/fixtures/overall_favorite_fixture.php +++ b/cake/tests/fixtures/overall_favorite_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class OverallFavoriteFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class OverallFavoriteFixture extends CakeTestFixture { * @access public */ var $name = 'OverallFavorite'; + /** * fields property * @@ -50,6 +54,7 @@ class OverallFavoriteFixture extends CakeTestFixture { 'model_id' => array('type' => 'integer'), 'priority' => array('type' => 'integer') ); + /** * records property * diff --git a/cake/tests/fixtures/person_fixture.php b/cake/tests/fixtures/person_fixture.php index 160befaeb..57d5e0e87 100644 --- a/cake/tests/fixtures/person_fixture.php +++ b/cake/tests/fixtures/person_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class PersonFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class PersonFixture extends CakeTestFixture { * @access public */ var $name = 'Person'; + /** * fields property * @@ -54,6 +58,7 @@ class PersonFixture extends CakeTestFixture { 'mother_id' => array('column' => array('mother_id', 'father_id'), 'unique' => 0) ) ); + /** * records property * @@ -70,4 +75,4 @@ class PersonFixture extends CakeTestFixture { array('name' => 'father - grand father', 'mother_id' => 0, 'father_id' => 0) ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/portfolio_fixture.php b/cake/tests/fixtures/portfolio_fixture.php index 7b4bcb584..d72c59d49 100644 --- a/cake/tests/fixtures/portfolio_fixture.php +++ b/cake/tests/fixtures/portfolio_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class PortfolioFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class PortfolioFixture extends CakeTestFixture { * @access public */ var $name = 'Portfolio'; + /** * fields property * @@ -49,6 +53,7 @@ class PortfolioFixture extends CakeTestFixture { 'seller_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -61,4 +66,4 @@ class PortfolioFixture extends CakeTestFixture { array('seller_id' => 2, 'name' => 'Portfolio 1') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/post_fixture.php b/cake/tests/fixtures/post_fixture.php index 9277517ed..824435714 100644 --- a/cake/tests/fixtures/post_fixture.php +++ b/cake/tests/fixtures/post_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class PostFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class PostFixture extends CakeTestFixture { * @access public */ var $name = 'Post'; + /** * fields property * @@ -53,6 +57,7 @@ class PostFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -65,4 +70,4 @@ class PostFixture extends CakeTestFixture { array('author_id' => 1, 'title' => 'Third Post', 'body' => 'Third Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/posts_tag_fixture.php b/cake/tests/fixtures/posts_tag_fixture.php index 2c4ae6c7f..843516969 100644 --- a/cake/tests/fixtures/posts_tag_fixture.php +++ b/cake/tests/fixtures/posts_tag_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class PostsTagFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class PostsTagFixture extends CakeTestFixture { * @access public */ var $name = 'PostsTag'; + /** * fields property * @@ -49,6 +53,7 @@ class PostsTagFixture extends CakeTestFixture { 'tag_id' => array('type' => 'string', 'null' => false), 'indexes' => array('posts_tag' => array('column' => array('tag_id', 'post_id'), 'unique' => 1)) ); + /** * records property * @@ -63,4 +68,4 @@ class PostsTagFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/primary_model_fixture.php b/cake/tests/fixtures/primary_model_fixture.php index 8c0b3e7bc..e86f259dc 100644 --- a/cake/tests/fixtures/primary_model_fixture.php +++ b/cake/tests/fixtures/primary_model_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class PrimaryModelFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class PrimaryModelFixture extends CakeTestFixture { * @access public */ var $name = 'PrimaryModel'; + /** * fields property * @@ -48,6 +52,7 @@ class PrimaryModelFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'primary_name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -59,4 +64,4 @@ class PrimaryModelFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/product_fixture.php b/cake/tests/fixtures/product_fixture.php index 9355030eb..e04527935 100644 --- a/cake/tests/fixtures/product_fixture.php +++ b/cake/tests/fixtures/product_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ProductFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ProductFixture extends CakeTestFixture { * @access public */ var $name = 'Product'; + /** * fields property * @@ -50,6 +54,7 @@ class ProductFixture extends CakeTestFixture { 'type' => array('type' => 'string', 'length' => 255, 'null' => false), 'price' => array('type' => 'integer', 'null' => false) ); + /** * records property * diff --git a/cake/tests/fixtures/project_fixture.php b/cake/tests/fixtures/project_fixture.php index 6f48b05b8..26618de51 100644 --- a/cake/tests/fixtures/project_fixture.php +++ b/cake/tests/fixtures/project_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ProjectFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ProjectFixture extends CakeTestFixture { * @access public */ var $name = 'Project'; + /** * fields property * @@ -48,6 +52,7 @@ class ProjectFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -60,4 +65,4 @@ class ProjectFixture extends CakeTestFixture { array('name' => 'Project 3') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/sample_fixture.php b/cake/tests/fixtures/sample_fixture.php index 87448938a..20a331bb6 100644 --- a/cake/tests/fixtures/sample_fixture.php +++ b/cake/tests/fixtures/sample_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class SampleFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class SampleFixture extends CakeTestFixture { * @access public */ var $name = 'Sample'; + /** * fields property * @@ -49,6 +53,7 @@ class SampleFixture extends CakeTestFixture { 'apple_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'length' => 40, 'null' => false) ); + /** * records property * @@ -61,4 +66,4 @@ class SampleFixture extends CakeTestFixture { array('apple_id' => 4, 'name' => 'sample3'), array('apple_id' => 5, 'name' => 'sample4') ); -} +} \ No newline at end of file diff --git a/cake/tests/fixtures/secondary_model_fixture.php b/cake/tests/fixtures/secondary_model_fixture.php index 8c7ccfc3a..d16367f0b 100644 --- a/cake/tests/fixtures/secondary_model_fixture.php +++ b/cake/tests/fixtures/secondary_model_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class SecondaryModelFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class SecondaryModelFixture extends CakeTestFixture { * @access public */ var $name = 'SecondaryModel'; + /** * fields property * @@ -48,6 +52,7 @@ class SecondaryModelFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'secondary_name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -59,4 +64,4 @@ class SecondaryModelFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/session_fixture.php b/cake/tests/fixtures/session_fixture.php index 1dc3c751a..e1e3d038d 100644 --- a/cake/tests/fixtures/session_fixture.php +++ b/cake/tests/fixtures/session_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class SessionFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class SessionFixture extends CakeTestFixture { * @access public */ var $name = 'Session'; + /** * fields property * @@ -49,6 +53,7 @@ class SessionFixture extends CakeTestFixture { 'data' => array('type' => 'text','null' => true), 'expires' => array('type' => 'integer', 'length' => 11, 'null' => true) ); + /** * records property * @@ -57,4 +62,4 @@ class SessionFixture extends CakeTestFixture { */ var $records = array(); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/something_else_fixture.php b/cake/tests/fixtures/something_else_fixture.php index 7b6dbd2cd..3bb061ff6 100644 --- a/cake/tests/fixtures/something_else_fixture.php +++ b/cake/tests/fixtures/something_else_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class SomethingElseFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class SomethingElseFixture extends CakeTestFixture { * @access public */ var $name = 'SomethingElse'; + /** * fields property * @@ -52,6 +56,7 @@ class SomethingElseFixture extends CakeTestFixture { 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); + /** * records property * @@ -65,4 +70,4 @@ class SomethingElseFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/something_fixture.php b/cake/tests/fixtures/something_fixture.php index cecfb3f9d..b6995cccc 100644 --- a/cake/tests/fixtures/something_fixture.php +++ b/cake/tests/fixtures/something_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class SomethingFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class SomethingFixture extends CakeTestFixture { * @access public */ var $name = 'Something'; + /** * fields property * @@ -52,6 +56,7 @@ class SomethingFixture extends CakeTestFixture { 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); + /** * records property * @@ -65,4 +70,4 @@ class SomethingFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/stories_tag_fixture.php b/cake/tests/fixtures/stories_tag_fixture.php index b39566abb..52f69c7eb 100644 --- a/cake/tests/fixtures/stories_tag_fixture.php +++ b/cake/tests/fixtures/stories_tag_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class StoriesTagFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class StoriesTagFixture extends CakeTestFixture { * @access public */ var $name = 'StoriesTag'; + /** * fields property * @@ -49,6 +53,7 @@ class StoriesTagFixture extends CakeTestFixture { 'tag_id' => array('type' => 'integer', 'null' => false), 'indexes' => array('UNIQUE_STORY_TAG' => array('column'=> array('story', 'tag_id'), 'unique'=>1)) ); + /** * records property * @@ -59,4 +64,4 @@ class StoriesTagFixture extends CakeTestFixture { array('story' => 1, 'tag_id' => 1) ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/story_fixture.php b/cake/tests/fixtures/story_fixture.php index c8e90de6d..3cab86ff9 100644 --- a/cake/tests/fixtures/story_fixture.php +++ b/cake/tests/fixtures/story_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class StoryFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class StoryFixture extends CakeTestFixture { * @access public */ var $name = 'Story'; + /** * fields property * @@ -48,6 +52,7 @@ class StoryFixture extends CakeTestFixture { 'story' => array('type' => 'integer', 'key' => 'primary'), 'title' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -59,4 +64,4 @@ class StoryFixture extends CakeTestFixture { array('title' => 'Second Story') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/syfile_fixture.php b/cake/tests/fixtures/syfile_fixture.php index 8e5a075ad..52d50c0e8 100644 --- a/cake/tests/fixtures/syfile_fixture.php +++ b/cake/tests/fixtures/syfile_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class SyfileFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class SyfileFixture extends CakeTestFixture { * @access public */ var $name = 'Syfile'; + /** * fields property * @@ -50,6 +54,7 @@ class SyfileFixture extends CakeTestFixture { 'name' => array('type' => 'string', 'null' => false), 'item_count' => array('type' => 'integer', 'null' => true) ); + /** * records property * @@ -66,4 +71,4 @@ class SyfileFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/tag_fixture.php b/cake/tests/fixtures/tag_fixture.php index afc205e57..5d10f101b 100644 --- a/cake/tests/fixtures/tag_fixture.php +++ b/cake/tests/fixtures/tag_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class TagFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class TagFixture extends CakeTestFixture { * @access public */ var $name = 'Tag'; + /** * fields property * @@ -50,6 +54,7 @@ class TagFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -63,4 +68,4 @@ class TagFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/test_plugin_article_fixture.php b/cake/tests/fixtures/test_plugin_article_fixture.php index 148fea15d..046b225ec 100644 --- a/cake/tests/fixtures/test_plugin_article_fixture.php +++ b/cake/tests/fixtures/test_plugin_article_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class TestPluginArticleFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class TestPluginArticleFixture extends CakeTestFixture { * @access public */ var $name = 'TestPluginArticle'; + /** * fields property * @@ -53,6 +57,7 @@ class TestPluginArticleFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -66,4 +71,4 @@ class TestPluginArticleFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/test_plugin_comment_fixture.php b/cake/tests/fixtures/test_plugin_comment_fixture.php index 847d2ce4b..0a5fee3bc 100644 --- a/cake/tests/fixtures/test_plugin_comment_fixture.php +++ b/cake/tests/fixtures/test_plugin_comment_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class TestPluginCommentFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class TestPluginCommentFixture extends CakeTestFixture { * @access public */ var $name = 'TestPluginComment'; + /** * fields property * @@ -53,6 +57,7 @@ class TestPluginCommentFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -69,4 +74,4 @@ class TestPluginCommentFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/the_paper_monkies_fixture.php b/cake/tests/fixtures/the_paper_monkies_fixture.php index f8efce2db..f2796001e 100644 --- a/cake/tests/fixtures/the_paper_monkies_fixture.php +++ b/cake/tests/fixtures/the_paper_monkies_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ThePaperMonkiesFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ThePaperMonkiesFixture extends CakeTestFixture { * @access public */ var $name = 'ThePaperMonkies'; + /** * fields property * @@ -48,6 +52,7 @@ class ThePaperMonkiesFixture extends CakeTestFixture { 'apple_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'device_id' => array('type' => 'integer', 'length' => 10, 'null' => true) ); + /** * records property * @@ -57,4 +62,4 @@ class ThePaperMonkiesFixture extends CakeTestFixture { var $records = array(); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/thread_fixture.php b/cake/tests/fixtures/thread_fixture.php index 118aa0ff2..75f647e1c 100644 --- a/cake/tests/fixtures/thread_fixture.php +++ b/cake/tests/fixtures/thread_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class ThreadFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class ThreadFixture extends CakeTestFixture { * @access public */ var $name = 'Thread'; + /** * fields property * @@ -49,6 +53,7 @@ class ThreadFixture extends CakeTestFixture { 'project_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -61,4 +66,4 @@ class ThreadFixture extends CakeTestFixture { array('project_id' => 2, 'name' => 'Project 2, Thread 1') ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/translate_article_fixture.php b/cake/tests/fixtures/translate_article_fixture.php index 549872c34..2c808329e 100644 --- a/cake/tests/fixtures/translate_article_fixture.php +++ b/cake/tests/fixtures/translate_article_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class TranslateArticleFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class TranslateArticleFixture extends CakeTestFixture { * @access public */ var $name = 'TranslateArticle'; + /** * table property * @@ -45,6 +49,7 @@ class TranslateArticleFixture extends CakeTestFixture { * @access public */ var $table = 'article_i18n'; + /** * fields property * @@ -59,6 +64,7 @@ class TranslateArticleFixture extends CakeTestFixture { 'field' => array('type' => 'string', 'null' => false), 'content' => array('type' => 'text') ); + /** * records property * @@ -87,4 +93,4 @@ class TranslateArticleFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/translate_fixture.php b/cake/tests/fixtures/translate_fixture.php index 17b97a956..47fb3caa2 100644 --- a/cake/tests/fixtures/translate_fixture.php +++ b/cake/tests/fixtures/translate_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class TranslateFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class TranslateFixture extends CakeTestFixture { * @access public */ var $name = 'Translate'; + /** * table property * @@ -45,6 +49,7 @@ class TranslateFixture extends CakeTestFixture { * @access public */ var $table = 'i18n'; + /** * fields property * @@ -59,6 +64,7 @@ class TranslateFixture extends CakeTestFixture { 'field' => array('type' => 'string', 'null' => false), 'content' => array('type' => 'text') ); + /** * records property * diff --git a/cake/tests/fixtures/translate_table_fixture.php b/cake/tests/fixtures/translate_table_fixture.php index 1a645e375..19ac09f40 100644 --- a/cake/tests/fixtures/translate_table_fixture.php +++ b/cake/tests/fixtures/translate_table_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class TranslateTableFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class TranslateTableFixture extends CakeTestFixture { * @access public */ var $name = 'TranslateTable'; + /** * table property * @@ -45,6 +49,7 @@ class TranslateTableFixture extends CakeTestFixture { * @access public */ var $table = 'another_i18n'; + /** * fields property * @@ -58,6 +63,7 @@ class TranslateTableFixture extends CakeTestFixture { 'foreign_key' => array('type' => 'integer', 'null' => false), 'field' => array('type' => 'string', 'null' => false), 'content' => array('type' => 'text')); + /** * records property * @@ -70,4 +76,4 @@ class TranslateTableFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/translated_article_fixture.php b/cake/tests/fixtures/translated_article_fixture.php index bce536975..e4c99c51d 100644 --- a/cake/tests/fixtures/translated_article_fixture.php +++ b/cake/tests/fixtures/translated_article_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class TranslatedArticleFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class TranslatedArticleFixture extends CakeTestFixture { * @access public */ var $name = 'TranslatedArticle'; + /** * fields property * @@ -51,6 +55,7 @@ class TranslatedArticleFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -64,4 +69,4 @@ class TranslatedArticleFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/translated_item_fixture.php b/cake/tests/fixtures/translated_item_fixture.php index f8b93ce8a..7f17292ee 100644 --- a/cake/tests/fixtures/translated_item_fixture.php +++ b/cake/tests/fixtures/translated_item_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class TranslatedItemFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class TranslatedItemFixture extends CakeTestFixture { * @access public */ var $name = 'TranslatedItem'; + /** * fields property * @@ -48,6 +52,7 @@ class TranslatedItemFixture extends CakeTestFixture { 'id' => array('type' => 'integer', 'key' => 'primary'), 'slug' => array('type' => 'string', 'null' => false) ); + /** * records property * @@ -61,4 +66,4 @@ class TranslatedItemFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/unconventional_tree_fixture.php b/cake/tests/fixtures/unconventional_tree_fixture.php index 87b517842..9972cda08 100644 --- a/cake/tests/fixtures/unconventional_tree_fixture.php +++ b/cake/tests/fixtures/unconventional_tree_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Unconventional Tree behavior class test fixture. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * UnconventionalTreeFixture class * @@ -32,6 +34,7 @@ * @subpackage cake.tests.fixtures */ class UnconventionalTreeFixture extends CakeTestFixture { + /** * name property * @@ -39,6 +42,7 @@ class UnconventionalTreeFixture extends CakeTestFixture { * @access public */ var $name = 'UnconventionalTree'; + /** * fields property * diff --git a/cake/tests/fixtures/underscore_field_fixture.php b/cake/tests/fixtures/underscore_field_fixture.php index c87ace540..8dca12de4 100644 --- a/cake/tests/fixtures/underscore_field_fixture.php +++ b/cake/tests/fixtures/underscore_field_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * UnderscoreFieldFixture class * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class UnderscoreFieldFixture extends CakeTestFixture { + /** * name property * @@ -66,4 +69,4 @@ class UnderscoreFieldFixture extends CakeTestFixture { } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/user_fixture.php b/cake/tests/fixtures/user_fixture.php index bb8478034..269fa521c 100644 --- a/cake/tests/fixtures/user_fixture.php +++ b/cake/tests/fixtures/user_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class UserFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class UserFixture extends CakeTestFixture { * @access public */ var $name = 'User'; + /** * fields property * @@ -51,6 +55,7 @@ class UserFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -65,4 +70,4 @@ class UserFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/uuid_fixture.php b/cake/tests/fixtures/uuid_fixture.php index 12a0dd99f..723e6cd51 100644 --- a/cake/tests/fixtures/uuid_fixture.php +++ b/cake/tests/fixtures/uuid_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class UuidFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class UuidFixture extends CakeTestFixture { * @access public */ var $name = 'Uuid'; + /** * fields property * @@ -51,6 +55,7 @@ class UuidFixture extends CakeTestFixture { 'created' => 'datetime', 'updated' => 'datetime' ); + /** * records property * @@ -65,4 +70,4 @@ class UuidFixture extends CakeTestFixture { ); } -?> +?> \ No newline at end of file diff --git a/cake/tests/fixtures/uuid_tag_fixture.php b/cake/tests/fixtures/uuid_tag_fixture.php index 0665b4649..d57247443 100644 --- a/cake/tests/fixtures/uuid_tag_fixture.php +++ b/cake/tests/fixtures/uuid_tag_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class UuidTagFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class UuidTagFixture extends CakeTestFixture { * @access public */ var $name = 'UuidTag'; + /** * fields property * @@ -49,6 +53,7 @@ class UuidTagFixture extends CakeTestFixture { 'name' => array('type' => 'string', 'length' => 255), 'created' => array('type' => 'datetime') ); + /** * records property * diff --git a/cake/tests/fixtures/uuid_tree_fixture.php b/cake/tests/fixtures/uuid_tree_fixture.php index 6cc36c43b..6b487c665 100644 --- a/cake/tests/fixtures/uuid_tree_fixture.php +++ b/cake/tests/fixtures/uuid_tree_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * UUID Tree behavior fixture. * @@ -22,6 +23,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * UuidTreeFixture class * @@ -30,6 +32,7 @@ * @subpackage cake.tests.fixtures */ class UuidTreeFixture extends CakeTestFixture { + /** * name property * @@ -37,6 +40,7 @@ class UuidTreeFixture extends CakeTestFixture { * @access public */ var $name = 'UuidTree'; + /** * fields property * diff --git a/cake/tests/fixtures/uuiditem_fixture.php b/cake/tests/fixtures/uuiditem_fixture.php index bbc9b0592..3de1654d7 100644 --- a/cake/tests/fixtures/uuiditem_fixture.php +++ b/cake/tests/fixtures/uuiditem_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class UuiditemFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class UuiditemFixture extends CakeTestFixture { * @access public */ var $name = 'Uuiditem'; + /** * fields property * @@ -49,6 +53,7 @@ class UuiditemFixture extends CakeTestFixture { 'published' => array('type' => 'boolean', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * diff --git a/cake/tests/fixtures/uuiditems_uuidportfolio_fixture.php b/cake/tests/fixtures/uuiditems_uuidportfolio_fixture.php index c3c961282..6fc851be6 100644 --- a/cake/tests/fixtures/uuiditems_uuidportfolio_fixture.php +++ b/cake/tests/fixtures/uuiditems_uuidportfolio_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class UuiditemsUuidportfolioFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class UuiditemsUuidportfolioFixture extends CakeTestFixture { * @access public */ var $name = 'UuiditemsUuidportfolio'; + /** * fields property * @@ -49,6 +53,7 @@ class UuiditemsUuidportfolioFixture extends CakeTestFixture { 'uuiditem_id' => array('type' => 'string', 'length' => 36, 'null' => false), 'uuidportfolio_id' => array('type' => 'string', 'length' => 36, 'null' => false) ); + /** * records property * diff --git a/cake/tests/fixtures/uuiditems_uuidportfolio_numericid_fixture.php b/cake/tests/fixtures/uuiditems_uuidportfolio_numericid_fixture.php index 9938db735..9a6845546 100644 --- a/cake/tests/fixtures/uuiditems_uuidportfolio_numericid_fixture.php +++ b/cake/tests/fixtures/uuiditems_uuidportfolio_numericid_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class UuiditemsUuidportfolioNumericidFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class UuiditemsUuidportfolioNumericidFixture extends CakeTestFixture { * @access public */ var $name = 'UuiditemsUuidportfolioNumericid'; + /** * fields property * @@ -49,6 +53,7 @@ class UuiditemsUuidportfolioNumericidFixture extends CakeTestFixture { 'uuiditem_id' => array('type' => 'string', 'length' => 36, 'null' => false), 'uuidportfolio_id' => array('type' => 'string', 'length' => 36, 'null' => false) ); + /** * records property * diff --git a/cake/tests/fixtures/uuidportfolio_fixture.php b/cake/tests/fixtures/uuidportfolio_fixture.php index 96c65d978..0279044a1 100644 --- a/cake/tests/fixtures/uuidportfolio_fixture.php +++ b/cake/tests/fixtures/uuidportfolio_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,6 +33,7 @@ * @subpackage cake.tests.fixtures */ class UuidportfolioFixture extends CakeTestFixture { + /** * name property * @@ -38,6 +41,7 @@ class UuidportfolioFixture extends CakeTestFixture { * @access public */ var $name = 'Uuidportfolio'; + /** * fields property * @@ -48,6 +52,7 @@ class UuidportfolioFixture extends CakeTestFixture { 'id' => array('type' => 'string', 'length' => 36, 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); + /** * records property * diff --git a/cake/tests/groups/acl.group.php b/cake/tests/groups/acl.group.php index 7dad05ff2..25ec2712f 100644 --- a/cake/tests/groups/acl.group.php +++ b/cake/tests/groups/acl.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * AclAndAuthGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * AclAndAuthGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class AclAndAuthGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class AclAndAuthGroupTest extends GroupTest { * @access public */ var $label = 'Acl and Auth'; + /** * AclAndAuthGroupTest method * diff --git a/cake/tests/groups/bake.group.php b/cake/tests/groups/bake.group.php index 6289307ad..3ce2a043d 100644 --- a/cake/tests/groups/bake.group.php +++ b/cake/tests/groups/bake.group.php @@ -20,6 +20,7 @@ * @since CakePHP(tm) v 1.3 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * BakeGroupTest class * @@ -29,6 +30,7 @@ * @subpackage cake.tests.groups */ class BakeGroupTest extends GroupTest { + /** * label property * @@ -36,6 +38,7 @@ class BakeGroupTest extends GroupTest { * @access public */ var $label = 'All Tasks related to bake.'; + /** * BakeGroupTest method * diff --git a/cake/tests/groups/cache.group.php b/cake/tests/groups/cache.group.php index 85b40cc02..5da046203 100644 --- a/cake/tests/groups/cache.group.php +++ b/cake/tests/groups/cache.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CacheGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * CacheGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class CacheGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class CacheGroupTest extends GroupTest { * @access public */ var $label = 'Cache and all CacheEngines'; + /** * CacheGroupTest method * diff --git a/cake/tests/groups/components.group.php b/cake/tests/groups/components.group.php index ad4c2e538..0ce40a622 100644 --- a/cake/tests/groups/components.group.php +++ b/cake/tests/groups/components.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ComponentsGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * ComponentsGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class ComponentsGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class ComponentsGroupTest extends GroupTest { * @access public */ var $label = 'All Components'; + /** * CoreComponentsGroupTest method * diff --git a/cake/tests/groups/configure.group.php b/cake/tests/groups/configure.group.php index e1e8f35fd..47317e9cd 100644 --- a/cake/tests/groups/configure.group.php +++ b/cake/tests/groups/configure.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ConfigureGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * ConfigureGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class ConfigureGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class ConfigureGroupTest extends GroupTest { * @access public */ var $label = 'Configure, App and ClassRegistry'; + /** * ConfigureGroupTest method * diff --git a/cake/tests/groups/console.group.php b/cake/tests/groups/console.group.php index 9cc199124..0e4107b71 100644 --- a/cake/tests/groups/console.group.php +++ b/cake/tests/groups/console.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ConsoleGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * ConsoleGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class ConsoleGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class ConsoleGroupTest extends GroupTest { * @access public */ var $label = 'ShellDispatcher, Shell and all Tasks'; + /** * ConsoleGroupTest method * diff --git a/cake/tests/groups/controller.group.php b/cake/tests/groups/controller.group.php index a76073c2a..c6c828b76 100644 --- a/cake/tests/groups/controller.group.php +++ b/cake/tests/groups/controller.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ControllerGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * ControllerGroupTest * @@ -31,6 +33,7 @@ * @subpackage cake.tests.groups */ class ControllerGroupTest extends GroupTest { + /** * label property * @@ -38,6 +41,7 @@ class ControllerGroupTest extends GroupTest { * @access public */ var $label = 'All Controllers and Components'; + /** * LibControllerGroupTest method * @@ -48,4 +52,4 @@ class ControllerGroupTest extends GroupTest { TestManager::addTestCasesFromDirectory($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller'); } } -?> +?> \ No newline at end of file diff --git a/cake/tests/groups/database.group.php b/cake/tests/groups/database.group.php index 2ecf3b64d..90bc1a0d6 100644 --- a/cake/tests/groups/database.group.php +++ b/cake/tests/groups/database.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * DatabaseGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * DatabaseGroupTest class * @@ -34,6 +36,7 @@ * @subpackage cake.tests.groups */ class DatabaseGroupTest extends GroupTest { + /** * label property * @@ -41,6 +44,7 @@ class DatabaseGroupTest extends GroupTest { * @access public */ var $label = 'Datasources, Schema and DbAcl tests'; + /** * ModelGroupTest method * diff --git a/cake/tests/groups/helpers.group.php b/cake/tests/groups/helpers.group.php index a7dfbba70..4694ccff4 100644 --- a/cake/tests/groups/helpers.group.php +++ b/cake/tests/groups/helpers.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * HelpersGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * HelpersGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class HelpersGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class HelpersGroupTest extends GroupTest { * @access public */ var $label = 'All Helpers'; + /** * HelpersGroupTest method * diff --git a/cake/tests/groups/lib.group.php b/cake/tests/groups/lib.group.php index 07e6ab41b..fc095b922 100644 --- a/cake/tests/groups/lib.group.php +++ b/cake/tests/groups/lib.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * LibGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * LibGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class LibGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class LibGroupTest extends GroupTest { * @access public */ var $label = 'All Libs'; + /** * LibGroupTest method * diff --git a/cake/tests/groups/model.group.php b/cake/tests/groups/model.group.php index 6cf32d93a..10463a1ea 100644 --- a/cake/tests/groups/model.group.php +++ b/cake/tests/groups/model.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ModelGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * ModelGroupTest class * @@ -34,6 +36,7 @@ * @subpackage cake.tests.groups */ class ModelGroupTest extends GroupTest { + /** * label property * @@ -41,6 +44,7 @@ class ModelGroupTest extends GroupTest { * @access public */ var $label = 'Model & Behavior tests'; + /** * ModelGroupTest method * diff --git a/cake/tests/groups/no_cross_contamination.group.php b/cake/tests/groups/no_cross_contamination.group.php index 7a72c88a3..7a66bd757 100644 --- a/cake/tests/groups/no_cross_contamination.group.php +++ b/cake/tests/groups/no_cross_contamination.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * NoCrossContaminationGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * NoCrossContaminationGroupTest class * @@ -35,6 +37,7 @@ * @subpackage cake.tests.groups */ class NoCrossContaminationGroupTest extends GroupTest { + /** * label property * @@ -42,6 +45,7 @@ class NoCrossContaminationGroupTest extends GroupTest { * @access public */ var $label = 'No Cross Contamination'; + /** * blacklist property * @@ -49,6 +53,7 @@ class NoCrossContaminationGroupTest extends GroupTest { * @access public */ var $blacklist = array('cake_test_case.test.php', 'object.test.php'); + /** * NoCrossContaminationGroupTest method * diff --git a/cake/tests/groups/no_database.group.php b/cake/tests/groups/no_database.group.php index 278c89056..c71c2a7b8 100644 --- a/cake/tests/groups/no_database.group.php +++ b/cake/tests/groups/no_database.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * NoDatabaseGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * NoDatabaseGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class NoDatabaseGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class NoDatabaseGroupTest extends GroupTest { * @access public */ var $label = 'All Libs not requiring a database connection'; + /** * NoDatabaseGroupTest method * diff --git a/cake/tests/groups/routing_system.group.php b/cake/tests/groups/routing_system.group.php index 1afb59f12..d5d0e819e 100644 --- a/cake/tests/groups/routing_system.group.php +++ b/cake/tests/groups/routing_system.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * RoutingSystemGroupTest * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * RoutingSystemGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class RoutingSystemGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class RoutingSystemGroupTest extends GroupTest { * @access public */ var $label = 'Router and Dispatcher'; + /** * RoutingSystemGroupTest method * diff --git a/cake/tests/groups/socket.group.php b/cake/tests/groups/socket.group.php index 59d0ea569..ec8e41373 100644 --- a/cake/tests/groups/socket.group.php +++ b/cake/tests/groups/socket.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** Socket and HttpSocket tests * * This test group will run socket class tests (socket, http_socket). @@ -31,6 +33,7 @@ * @package cake.tests * @subpackage cake.tests.groups */ + /** * SocketGroupTest class * @@ -38,6 +41,7 @@ * @subpackage cake.tests.groups */ class SocketGroupTest extends GroupTest { + /** * label property * @@ -45,6 +49,7 @@ class SocketGroupTest extends GroupTest { * @access public */ var $label = 'CakeSocket and HttpSocket tests'; + /** * SocketGroupTest method * @@ -56,4 +61,4 @@ class SocketGroupTest extends GroupTest { TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'http_socket'); } } -?> +?> \ No newline at end of file diff --git a/cake/tests/groups/test_suite.group.php b/cake/tests/groups/test_suite.group.php index bccb39955..17ca0a55d 100644 --- a/cake/tests/groups/test_suite.group.php +++ b/cake/tests/groups/test_suite.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * TestSuiteGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * TestSuiteGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class TestSuiteGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class TestSuiteGroupTest extends GroupTest { * @access public */ var $label = 'TestSuite'; + /** * TestSuiteGroupTest method * diff --git a/cake/tests/groups/view.group.php b/cake/tests/groups/view.group.php index f79efc0d2..b1e0e158f 100644 --- a/cake/tests/groups/view.group.php +++ b/cake/tests/groups/view.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * ViewsGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * ViewsGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class ViewsGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class ViewsGroupTest extends GroupTest { * @access public */ var $label = 'View and ThemeView'; + /** * ViewsGroupTest method * diff --git a/cake/tests/groups/xml.group.php b/cake/tests/groups/xml.group.php index 757153346..56a69a3af 100644 --- a/cake/tests/groups/xml.group.php +++ b/cake/tests/groups/xml.group.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * XmlGroupTest file * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * XmlGroupTest class * @@ -33,6 +35,7 @@ * @subpackage cake.tests.groups */ class XmlGroupTest extends GroupTest { + /** * label property * @@ -40,6 +43,7 @@ class XmlGroupTest extends GroupTest { * @access public */ var $label = 'Xml based classes (Xml, XmlHelper and RssHelper)'; + /** * XmlGroupTest method * diff --git a/cake/tests/lib/cake_reporter.php b/cake/tests/lib/cake_reporter.php index f2688b440..18ab5f762 100644 --- a/cake/tests/lib/cake_reporter.php +++ b/cake/tests/lib/cake_reporter.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -33,6 +35,7 @@ class CakeHtmlReporter extends SimpleReporter { var $_character_set; var $_show_passes = false; + /** * Does nothing yet. The first output will * be sent on the first test start. For use @@ -46,6 +49,7 @@ class CakeHtmlReporter extends SimpleReporter { $this->SimpleReporter(); $this->_character_set = $character_set; } + /** * Paints the top of the web page setting the * title to the name of the starting test. @@ -57,6 +61,7 @@ class CakeHtmlReporter extends SimpleReporter { echo "<h2>$testName</h2>\n"; echo "<ul class='tests'>\n"; } + /** * Send the headers necessary to ensure the page is * reloaded on every request. Otherwise you could be @@ -73,6 +78,7 @@ class CakeHtmlReporter extends SimpleReporter { header("Pragma: no-cache"); } } + /** * Paints the end of the test with a summary of * the passes and failures. @@ -93,6 +99,7 @@ class CakeHtmlReporter extends SimpleReporter { echo "</div>\n"; echo "</body>\n</html>\n"; } + /** * Paints the test failure with a breadcrumbs * trail of the nesting test suites below the @@ -111,6 +118,7 @@ class CakeHtmlReporter extends SimpleReporter { echo "<div>" . implode(" -> ", $breadcrumb) . "</div>\n"; echo "</li>\n"; } + /** * Paints the test pass with a breadcrumbs * trail of the nesting test suites below the @@ -132,6 +140,7 @@ class CakeHtmlReporter extends SimpleReporter { echo "</li>\n"; } } + /** * Paints a PHP error. * @param string $message Message is ignored. @@ -147,6 +156,7 @@ class CakeHtmlReporter extends SimpleReporter { echo "<div>" . implode(" -> ", $breadcrumb) . "</div>\n"; echo "</li>\n"; } + /** * Paints a PHP exception. * @param Exception $exception Exception to display. @@ -166,6 +176,7 @@ class CakeHtmlReporter extends SimpleReporter { echo "<div>" . implode(" -> ", $breadcrumb) . "</div>\n"; echo "</li>\n"; } + /** * Prints the message for skipping tests. * @param string $message Text of skip condition. @@ -178,6 +189,7 @@ class CakeHtmlReporter extends SimpleReporter { echo $this->_htmlEntities($message); echo "</li>\n"; } + /** * Paints formatted text such as dumped variables. * @param string $message Text to show. @@ -186,6 +198,7 @@ class CakeHtmlReporter extends SimpleReporter { function paintFormattedMessage($message) { echo '<pre>' . $this->_htmlEntities($message) . '</pre>'; } + /** * Character set adjusted entity conversion. * @param string $message Plain text or Unicode message. diff --git a/cake/tests/lib/cake_test_case.php b/cake/tests/lib/cake_test_case.php index bd8425f2e..5eec9fa20 100644 --- a/cake/tests/lib/cake_test_case.php +++ b/cake/tests/lib/cake_test_case.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CakeTestCase file * @@ -30,6 +31,7 @@ if (!class_exists('dispatcher')) { require_once CAKE_TESTS_LIB . 'cake_test_model.php'; require_once CAKE_TESTS_LIB . 'cake_test_fixture.php'; App::import('Vendor', 'simpletest' . DS . 'unit_tester'); + /** * CakeTestDispatcher * @@ -37,6 +39,7 @@ App::import('Vendor', 'simpletest' . DS . 'unit_tester'); * @subpackage cake.cake.tests.lib */ class CakeTestDispatcher extends Dispatcher { + /** * controller property * @@ -45,6 +48,7 @@ class CakeTestDispatcher extends Dispatcher { */ var $controller; var $testCase; + /** * testCase method * @@ -55,6 +59,7 @@ class CakeTestDispatcher extends Dispatcher { function testCase(&$testCase) { $this->testCase =& $testCase; } + /** * invoke method * @@ -80,6 +85,7 @@ class CakeTestDispatcher extends Dispatcher { return $result; } } + /** * CakeTestCase class * @@ -87,6 +93,7 @@ class CakeTestDispatcher extends Dispatcher { * @subpackage cake.cake.tests.lib */ class CakeTestCase extends UnitTestCase { + /** * Methods used internally. * @@ -94,6 +101,7 @@ class CakeTestCase extends UnitTestCase { * @access public */ var $methods = array('start', 'end', 'startcase', 'endcase', 'starttest', 'endtest'); + /** * By default, all fixtures attached to this class will be truncated and reloaded after each test. * Set this to false to handle manually @@ -102,6 +110,7 @@ class CakeTestCase extends UnitTestCase { * @access public */ var $autoFixtures = true; + /** * Set this to false to avoid tables to be dropped if they already exist * @@ -109,6 +118,7 @@ class CakeTestCase extends UnitTestCase { * @access public */ var $dropTables = true; + /** * Maps fixture class names to fixture identifiers as included in CakeTestCase::$fixtures * @@ -116,6 +126,7 @@ class CakeTestCase extends UnitTestCase { * @access protected */ var $_fixtureClassMap = array(); + /** * truncated property * @@ -123,6 +134,7 @@ class CakeTestCase extends UnitTestCase { * @access private */ var $__truncated = true; + /** * savedGetData property * @@ -130,6 +142,7 @@ class CakeTestCase extends UnitTestCase { * @access private */ var $__savedGetData = array(); + /** * Called when a test case (group of methods) is about to start (to be overriden when needed.) * @@ -139,6 +152,7 @@ class CakeTestCase extends UnitTestCase { */ function startCase() { } + /** * Called when a test case (group of methods) has been executed (to be overriden when needed.) * @@ -148,6 +162,7 @@ class CakeTestCase extends UnitTestCase { */ function endCase() { } + /** * Called when a test case method is about to start (to be overriden when needed.) * @@ -157,6 +172,7 @@ class CakeTestCase extends UnitTestCase { */ function startTest($method) { } + /** * Called when a test case method has been executed (to be overriden when needed.) * @@ -166,6 +182,7 @@ class CakeTestCase extends UnitTestCase { */ function endTest($method) { } + /** * Overrides SimpleTestCase::assert to enable calling of skipIf() from within tests * @@ -181,6 +198,7 @@ class CakeTestCase extends UnitTestCase { } return parent::assert($expectation, $compare, $message); } + /** * Overrides SimpleTestCase::skipIf to provide a boolean return value * @@ -193,6 +211,7 @@ class CakeTestCase extends UnitTestCase { parent::skipIf($shouldSkip, $message); return $shouldSkip; } + /** * Callback issued when a controller's action is about to be invoked through testAction(). * @@ -261,6 +280,7 @@ class CakeTestCase extends UnitTestCase { } } } + /** * Callback issued when a controller's action has been invoked through testAction(). * @@ -276,6 +296,7 @@ class CakeTestCase extends UnitTestCase { } } } + /** * Executes a Cake URL, and can get (depending on the $params['return'] value): * @@ -376,6 +397,7 @@ class CakeTestCase extends UnitTestCase { return $result; } + /** * Announces the start of a test. * @@ -407,6 +429,7 @@ class CakeTestCase extends UnitTestCase { $this->startTest($method); } } + /** * Runs as first test to create tables. * @@ -434,6 +457,7 @@ class CakeTestCase extends UnitTestCase { } } } + /** * Runs as last test to drop tables. * @@ -455,6 +479,7 @@ class CakeTestCase extends UnitTestCase { ClassRegistry::flush(); } } + /** * Announces the end of a test. * @@ -481,6 +506,7 @@ class CakeTestCase extends UnitTestCase { parent::after($method); } + /** * Gets a list of test names. Normally that will be all internal methods that start with the * name "test". This method should be overridden if you want a different rule. @@ -495,6 +521,7 @@ class CakeTestCase extends UnitTestCase { array('endCase', 'end') ); } + /** * Chooses which fixtures to load for a given test * @@ -517,6 +544,7 @@ class CakeTestCase extends UnitTestCase { } } } + /** * Takes an array $expected and generates a regex from it to match the provided $string. * Samples for $expected: @@ -669,6 +697,7 @@ class CakeTestCase extends UnitTestCase { } return $this->assert(new TrueExpectation(), true, '%s'); } + /** * Initialize DB connection. * @@ -704,6 +733,7 @@ class CakeTestCase extends UnitTestCase { ClassRegistry::config(array('ds' => 'test_suite')); } + /** * Load fixtures specified in var $fixtures. * @@ -778,6 +808,7 @@ class CakeTestCase extends UnitTestCase { unset($this->_fixtures); } } + /** * Generates all permutation of an array $items and returns them in a new array. * diff --git a/cake/tests/lib/cake_test_fixture.php b/cake/tests/lib/cake_test_fixture.php index fc5a592d6..bede81046 100644 --- a/cake/tests/lib/cake_test_fixture.php +++ b/cake/tests/lib/cake_test_fixture.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Short description for class. * @@ -31,12 +33,14 @@ * @subpackage cake.cake.tests.lib */ class CakeTestFixture extends Object { + /** * Cake's DBO driver (e.g: DboMysql). * * @access public */ var $db = null; + /** * Full Table Name * @@ -55,6 +59,7 @@ class CakeTestFixture extends Object { $this->init(); } + /** * Initialize the fixture. * @@ -117,6 +122,7 @@ class CakeTestFixture extends Object { $this->primaryKey = 'id'; } } + /** * Run before all tests execute, should return SQL statement to create table for this fixture could be executed successfully. * @@ -134,6 +140,7 @@ class CakeTestFixture extends Object { $db->execute($db->createSchema($this->Schema), array('log' => false)) !== false ); } + /** * Run after all tests executed, should return SQL statement to drop table for this fixture. * @@ -147,6 +154,7 @@ class CakeTestFixture extends Object { $db->execute($db->dropSchema($this->Schema), array('log' => false)) !== false ); } + /** * Run before each tests is executed, should return a set of SQL statements to insert records for the table * of this fixture could be executed successfully. @@ -169,6 +177,7 @@ class CakeTestFixture extends Object { return true; } } + /** * Truncates the current fixture. Can be overwritten by classes extending CakeFixture to trigger other events before / after * truncate. @@ -185,4 +194,4 @@ class CakeTestFixture extends Object { return $return; } } -?> +?> \ No newline at end of file diff --git a/cake/tests/lib/cake_test_model.php b/cake/tests/lib/cake_test_model.php index bfc22bd2a..6c798a3c3 100644 --- a/cake/tests/lib/cake_test_model.php +++ b/cake/tests/lib/cake_test_model.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ require_once LIBS.'model'.DS.'model.php'; + /** * Short description for class. * diff --git a/cake/tests/lib/cake_web_test_case.php b/cake/tests/lib/cake_web_test_case.php index b12f2e426..8ea1ea72d 100644 --- a/cake/tests/lib/cake_web_test_case.php +++ b/cake/tests/lib/cake_web_test_case.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * CakeWebTestCase a simple wrapper around WebTestCase * @@ -22,10 +23,12 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ + /** * Ignore base class. */ SimpleTest::ignore('CakeWebTestCase'); + /** * Simple wrapper for the WebTestCase provided by SimpleTest * diff --git a/cake/tests/lib/cli_reporter.php b/cake/tests/lib/cli_reporter.php index 97ceea592..e93597afc 100644 --- a/cake/tests/lib/cli_reporter.php +++ b/cake/tests/lib/cli_reporter.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -34,6 +35,7 @@ define('STDERR', fopen('php://stderr', 'w')); register_shutdown_function(create_function('', 'fclose(STDOUT); fclose(STDERR); return true;')); } + /** * Minimal command line test displayer. Writes fail details to STDERR. Returns 0 * to the shell if all tests pass, ST_FAILS_RETURN_CODE if any test fails. @@ -54,6 +56,7 @@ class CLIReporter extends TextReporter { function setFailDetailSeparator($separator) { $this->faildetail_separator = $separator; } + /** * Return a formatted faildetail for printing. */ @@ -65,6 +68,7 @@ class CLIReporter extends TextReporter { $buffer .= $this->faildetail_separator . "$message\n"; return $buffer; } + /** * Paint fail faildetail to STDERR. */ @@ -72,6 +76,7 @@ class CLIReporter extends TextReporter { parent::paintFail($message); fwrite(STDERR, 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message)); } + /** * Paint exception faildetail to STDERR. */ @@ -79,6 +84,7 @@ class CLIReporter extends TextReporter { parent::paintException($message); fwrite(STDERR, 'EXCEPTION' . $this->faildetail_separator . $this->_paintTestFailDetail($message)); } + /** * Paint a footer with test case name, timestamp, counts of fails and exceptions. */ diff --git a/cake/tests/lib/code_coverage_manager.php b/cake/tests/lib/code_coverage_manager.php index 070fe5b17..46edac72e 100644 --- a/cake/tests/lib/code_coverage_manager.php +++ b/cake/tests/lib/code_coverage_manager.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * A class to manage all aspects for Code Coverage Analysis * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Core', 'Folder'); + /** * Short description for class. * @@ -32,18 +34,21 @@ App::import('Core', 'Folder'); * @subpackage cake.cake.tests.lib */ class CodeCoverageManager { + /** * Is this an app test case? * * @var string */ var $appTest = false; + /** * Is this an app test case? * * @var string */ var $pluginTest = false; + /** * Is this a grouptest? * @@ -51,24 +56,28 @@ class CodeCoverageManager { * @access public */ var $groupTest = false; + /** * The test case file to analyze * * @var string */ var $testCaseFile = ''; + /** * The currently used CakeTestReporter * * @var string */ var $reporter = ''; + /** * undocumented variable * * @var string */ var $numDiffContextLines = 7; + /** * Returns a singleton instance * @@ -82,6 +91,7 @@ class CodeCoverageManager { } return $instance[0]; } + /** * Starts a new Coverage Analyzation for a given test case file * @TODO: Works with $_GET now within the function body, which will make it hard when we do code coverage reports for CLI @@ -114,6 +124,7 @@ class CodeCoverageManager { $manager->testCaseFile = $testCaseFile; xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE); } + /** * Stops the current code coverage analyzation and dumps a nice report depending on the reporter that was passed to start() * @@ -198,6 +209,7 @@ class CodeCoverageManager { echo $result; } } + /** * Html reporting * @@ -233,6 +245,7 @@ class CodeCoverageManager { } return $manager->__paintHeader($lineCount, $coveredCount, $report); } + /** * Diff reporting * @@ -350,6 +363,7 @@ class CodeCoverageManager { } return $manager->__paintHeader($lineCount, $coveredCount, $report); } + /** * CLI reporting * @@ -379,6 +393,7 @@ class CodeCoverageManager { } return $manager->__paintHeaderCli($lineCount, $coveredCount, $report); } + /** * Diff reporting * @@ -418,6 +433,7 @@ class CodeCoverageManager { } return $manager->__paintGroupResultHeader($report); } + /** * CLI reporting * @@ -453,6 +469,7 @@ class CodeCoverageManager { } return $report; } + /** * Returns the name of the test object file based on a given test case file name * @@ -495,6 +512,7 @@ class CodeCoverageManager { } return $path; } + /** * Returns an array of names of the test object files based on a given test group file name * @@ -553,6 +571,7 @@ class CodeCoverageManager { } return $result; } + /** * Parses a given code string into an array of lines and replaces some non-executable code lines with the needed * amount of new lines in order for the code line numbers to stay in sync @@ -585,6 +604,7 @@ class CodeCoverageManager { unset($result[0]); return $result; } + /** * Replaces a given arg with the number of newlines in it * @@ -596,6 +616,7 @@ class CodeCoverageManager { $numLineBreaks = count(explode("\n", $args[0][0])); return str_pad('', $numLineBreaks - 1, "\n"); } + /** * Paints the headline for code coverage analysis * @@ -610,6 +631,7 @@ class CodeCoverageManager { return $report = '<h2>Code Coverage: ' . $codeCoverage . '%</h2> <div class="code-coverage-results"><pre>' . $report . '</pre></div>'; } + /** * Displays a notification concerning group test results * @@ -619,6 +641,7 @@ class CodeCoverageManager { function __paintGroupResultHeader($report) { return '<div class="code-coverage-results"><p class="note">Please keep in mind that the coverage can vary a little bit depending on how much the different tests in the group interfere. If for example, TEST A calls a line from TEST OBJECT B, the coverage for TEST OBJECT B will be a little greater than if you were running the corresponding test case for TEST OBJECT B alone.</p><pre>' . $report . '</pre></div>'; } + /** * Paints the headline for code coverage analysis * @@ -640,6 +663,7 @@ class CodeCoverageManager { } return '<p>Code Coverage for ' . $file . ': <span class="' . $class . '">' . $codeCoverage . '%</span></p>'; } + /** * Paints the headline for code coverage analysis * @@ -661,6 +685,7 @@ class CodeCoverageManager { } return "\n" . 'Code Coverage for ' . $file . ': ' . $codeCoverage . '% (' . $class . ')' . "\n"; } + /** * Paints the headline for code coverage analysis in the CLI * @@ -674,6 +699,7 @@ class CodeCoverageManager { $codeCoverage = $manager->__calcCoverage($lineCount, $coveredCount); return $report = 'Code Coverage: ' . $codeCoverage . '%'; } + /** * Paints a code line for html output * @@ -688,6 +714,7 @@ class CodeCoverageManager { } return '<div class="code-line ' . trim($class) . '"><span class="line-num">' . $num . '</span><span class="content">' . $line . '</span></div>'; } + /** * Calculates the coverage percentage based on a line count and a covered line count * @@ -704,6 +731,7 @@ class CodeCoverageManager { ? round(100 * $coveredCount / $lineCount, 2) : '0.00'; } + /** * Gets us the base path to look for the test files * @@ -736,6 +764,7 @@ class CodeCoverageManager { return $path; } + /** * Finds the last element of an array that contains $needle in a strpos computation * diff --git a/cake/tests/lib/content.php b/cake/tests/lib/content.php index 8c4c9aa07..312d5917b 100644 --- a/cake/tests/lib/content.php +++ b/cake/tests/lib/content.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -62,4 +63,4 @@ if (!empty($plugins)): </li> </ul> </div> -<div class="test-results"> +<div class="test-results"> \ No newline at end of file diff --git a/cake/tests/lib/footer.php b/cake/tests/lib/footer.php index 8408c75e9..a64330371 100644 --- a/cake/tests/lib/footer.php +++ b/cake/tests/lib/footer.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/lib/header.php b/cake/tests/lib/header.php index 2a125a264..86aeec3f9 100644 --- a/cake/tests/lib/header.php +++ b/cake/tests/lib/header.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -38,21 +39,21 @@ .test-results {float:left; width: 67%;} ul.tests {margin: 0; font-size:12px;} ul.tests li { - list-style: none; - margin: 14px 0; + list-style: none; + margin: 14px 0; padding-left: 20px; } - ul.tests li span { - font-size:14px; - text-transform: uppercase; - font-weight: bold; + ul.tests li span { + font-size:14px; + text-transform: uppercase; + font-weight: bold; } ul.tests li.pass span, ul.tests li.skipped span { display:inline;} ul.tests li.fail span { color: red; } ul.tests li.pass span { color: green; } ul.tests li.skipped span { color: navy; } ul.tests li.error span { color : #d15d00; } - + ul.tests li.pass, ul.tests li.error, ul.tests li.skipped, @@ -80,7 +81,7 @@ ul.tests li div { margin: 5px 0 8px 0; } ul.tests li div.msg { font-weight: bold; } table caption { color:#fff; } - + div.code-coverage-results div.code-line { padding-left:5px; display:block; @@ -129,4 +130,4 @@ <h1>CakePHP: the rapid development php framework</h1> </div> <div id="content"> - <h2>CakePHP Test Suite 1.3</h2> + <h2>CakePHP Test Suite 1.3</h2> \ No newline at end of file diff --git a/cake/tests/lib/test_manager.php b/cake/tests/lib/test_manager.php index d4fe657f8..a876c8e23 100644 --- a/cake/tests/lib/test_manager.php +++ b/cake/tests/lib/test_manager.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -28,6 +29,7 @@ define('CORE_TEST_CASES', TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'cases'); define('CORE_TEST_GROUPS', TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'groups'); define('APP_TEST_CASES', TESTS . 'cases'); define('APP_TEST_GROUPS', TESTS . 'groups'); + /** * Short description for class. * @@ -39,6 +41,7 @@ class TestManager { var $_groupExtension = '.group.php'; var $appTest = false; var $pluginTest = false; + /** * Constructor for the TestManager class * @@ -54,6 +57,7 @@ class TestManager { $this->pluginTest = $_GET['plugin']; } } + /** * Includes the required simpletest files in order for the testsuite to run * @@ -69,6 +73,7 @@ class TestManager { require_once(CAKE_TESTS_LIB . 'cake_web_test_case.php'); require_once(CAKE_TESTS_LIB . 'cake_test_case.php'); } + /** * Runs all tests in the Application depending on the current appTest setting * @@ -98,6 +103,7 @@ class TestManager { return $test->run($reporter); } + /** * Runs a specific test case file * @@ -124,6 +130,7 @@ class TestManager { $test->addTestFile($testCaseFileWithPath); return $test->run($reporter); } + /** * Runs a specific group test file * @@ -151,6 +158,7 @@ class TestManager { } return $test->run($reporter); } + /** * Adds all testcases in a given directory to a given GroupTest object * @@ -166,6 +174,7 @@ class TestManager { $groupTest->addTestFile($testCase); } } + /** * Adds a specific test file and thereby all of its test cases and group tests to a given group test file * @@ -184,6 +193,7 @@ class TestManager { } $groupTest->addTestFile($file); } + /** * Returns a list of test cases found in the current valid test case path * @@ -194,6 +204,7 @@ class TestManager { $return = $manager->_getTestCaseList($manager->_getTestsPath()); return $return; } + /** * Builds the list of test cases from a given directory * @@ -207,6 +218,7 @@ class TestManager { } return $testCases; } + /** * Returns a list of test files from a given directory * @@ -216,6 +228,7 @@ class TestManager { $return = $this->_getRecursiveFileList($directory, array(&$this, '_isTestCaseFile')); return $return; } + /** * Returns a list of group tests found in the current valid test case path * @@ -226,6 +239,7 @@ class TestManager { $return = $manager->_getTestGroupList($manager->_getTestsPath('groups')); return $return; } + /** * Returns a list of group test files from a given directory * @@ -235,6 +249,7 @@ class TestManager { $return = $this->_getRecursiveFileList($directory, array(&$this, '_isTestGroupFile')); return $return; } + /** * Returns a list of group test files from a given directory * @@ -250,6 +265,7 @@ class TestManager { sort($groupTests); return $groupTests; } + /** * Returns a list of class names from a group test file * @@ -264,6 +280,7 @@ class TestManager { } return array(); } + /** * Gets a recursive list of files from a given directory and matches then against * a given fileTestFunction, like isTestCaseFile() @@ -288,6 +305,7 @@ class TestManager { } return $fileList; } + /** * Tests if a file has the correct test case extension * @@ -298,6 +316,7 @@ class TestManager { function _isTestCaseFile($file) { return $this->_hasExpectedExtension($file, $this->_testExtension); } + /** * Tests if a file has the correct group test extension * @@ -308,6 +327,7 @@ class TestManager { function _isTestGroupFile($file) { return $this->_hasExpectedExtension($file, $this->_groupExtension); } + /** * Check if a file has a specific extension * @@ -319,6 +339,7 @@ class TestManager { function _hasExpectedExtension($file, $extension) { return $extension == strtolower(substr($file, (0 - strlen($extension)))); } + /** * Returns the given path to the test files depending on a given type of tests (cases, group, ..) * @@ -352,6 +373,7 @@ class TestManager { } return $result; } + /** * undocumented function * @@ -367,6 +389,7 @@ class TestManager { return $manager->_groupExtension; } } + /** * The CliTestManager ensures that the list of available files are printed in the correct cli format * @@ -374,6 +397,7 @@ class TestManager { * @subpackage cake.cake.tests.lib */ class CliTestManager extends TestManager { + /** * Prints the list of group tests in a cli friendly format * @@ -389,6 +413,7 @@ class CliTestManager extends TestManager { } return $buffer . "\n"; } + /** * Prints the list of test cases in a cli friendly format * @@ -405,6 +430,7 @@ class CliTestManager extends TestManager { return $buffer . "\n"; } } + /** * The TextTestManager ensures that the list of available tests is printed as a list of urls in a text-friendly format * @@ -413,6 +439,7 @@ class CliTestManager extends TestManager { */ class TextTestManager extends TestManager { var $_url; + /** * Constructor * @@ -423,6 +450,7 @@ class TextTestManager extends TestManager { parent::TestManager(); $this->_url = $_SERVER['PHP_SELF']; } + /** * Returns the base url * @@ -432,6 +460,7 @@ class TextTestManager extends TestManager { function getBaseURL() { return $this->_url; } + /** * Returns a list of available group tests in a text-friendly format * @@ -459,6 +488,7 @@ class TextTestManager extends TestManager { return $buffer; } + /** * Returns a list of available test cases in a text-friendly format * @@ -491,6 +521,7 @@ class TextTestManager extends TestManager { return $buffer; } } + /** * The HtmlTestManager provides the foundation for the web-based CakePHP testsuite. * It prints the different lists of tests and provides the interface for CodeCoverage, etc. @@ -500,6 +531,7 @@ class TextTestManager extends TestManager { */ class HtmlTestManager extends TestManager { var $_url; + /** * Constructor * @@ -510,6 +542,7 @@ class HtmlTestManager extends TestManager { parent::TestManager(); $this->_url = $_SERVER['PHP_SELF']; } + /** * Returns the current base url * @@ -519,6 +552,7 @@ class HtmlTestManager extends TestManager { function getBaseURL() { return $this->_url; } + /** * Prints the links to the available group tests * @@ -547,6 +581,7 @@ class HtmlTestManager extends TestManager { $buffer .= "</ul>\n"; return $buffer; } + /** * Prints the links to the available test cases * @@ -588,6 +623,7 @@ if (function_exists('caketestsgetreporter')) { echo "Try this one: " . CONSOLE_LIBS . "templates" . DS . "skel" . DS . "webroot" . DS . "test.php"; exit(); } else { + /** * Returns an object of the currently needed reporter * @@ -608,6 +644,7 @@ if (function_exists('caketestsgetreporter')) { } return $Reporter; } + /** * Provides the "Run More" links in the testsuite interface * @@ -653,6 +690,7 @@ if (function_exists('caketestsgetreporter')) { break; } } + /** * Provides the links to analyzing code coverage * @@ -684,6 +722,7 @@ if (function_exists('caketestsgetreporter')) { break; } } + /** * Prints a list of test cases * @@ -702,6 +741,7 @@ if (function_exists('caketestsgetreporter')) { break; } } + /** * Prints a list of group tests * @@ -719,6 +759,7 @@ if (function_exists('caketestsgetreporter')) { break; } } + /** * Includes the Testsuite Header * @@ -746,6 +787,7 @@ if (function_exists('caketestsgetreporter')) { break; } } + /** * Provides the left hand navigation for the testsuite * @@ -763,6 +805,7 @@ if (function_exists('caketestsgetreporter')) { break; } } + /** * Provides the testsuite footer text * diff --git a/cake/tests/lib/xdebug.php b/cake/tests/lib/xdebug.php index b285e700d..376c6163b 100644 --- a/cake/tests/lib/xdebug.php +++ b/cake/tests/lib/xdebug.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/config/acl.ini.php b/cake/tests/test_app/config/acl.ini.php index 351f02c99..96ab738e4 100644 --- a/cake/tests/test_app/config/acl.ini.php +++ b/cake/tests/test_app/config/acl.ini.php @@ -62,4 +62,4 @@ deny = stats, ads [anonymous] allow = -deny = posts, comments, images, files, stats, ads \ No newline at end of file +deny = posts, comments, images, files, stats, ads diff --git a/cake/tests/test_app/controllers/tests_apps_controller.php b/cake/tests/test_app/controllers/tests_apps_controller.php index 4800490f5..0bba6acb3 100644 --- a/cake/tests/test_app/controllers/tests_apps_controller.php +++ b/cake/tests/test_app/controllers/tests_apps_controller.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/controllers/tests_apps_posts_controller.php b/cake/tests/test_app/controllers/tests_apps_posts_controller.php index e9b0d0464..6ce016c8c 100644 --- a/cake/tests/test_app/controllers/tests_apps_posts_controller.php +++ b/cake/tests/test_app/controllers/tests_apps_posts_controller.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -41,6 +42,7 @@ class TestsAppsPostsController extends AppController { $this->set('posts', $this->Post->find('all')); $this->render('index'); } + /** * check url params * @@ -49,6 +51,7 @@ class TestsAppsPostsController extends AppController { $this->set('params', $this->params); $this->render('index'); } + /** * post var testing * @@ -57,6 +60,7 @@ class TestsAppsPostsController extends AppController { $this->set('data', $this->data); $this->render('index'); } + /** * Fixturized action for testAction() * diff --git a/cake/tests/test_app/models/behaviors/persister_one_behavior.php b/cake/tests/test_app/models/behaviors/persister_one_behavior.php index 63f5998a6..3ef2e3284 100644 --- a/cake/tests/test_app/models/behaviors/persister_one_behavior.php +++ b/cake/tests/test_app/models/behaviors/persister_one_behavior.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Behavior for binding management. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting * the amount of associations and data returned. @@ -32,7 +34,7 @@ * @subpackage cake.cake.console.libs */ class PersisterOneBehaviorBehavior extends ModelBehavior { - - + + } ?> \ No newline at end of file diff --git a/cake/tests/test_app/models/behaviors/persister_two_behavior.php b/cake/tests/test_app/models/behaviors/persister_two_behavior.php index c032fc3e2..017180453 100644 --- a/cake/tests/test_app/models/behaviors/persister_two_behavior.php +++ b/cake/tests/test_app/models/behaviors/persister_two_behavior.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Behavior for binding management. * @@ -24,6 +25,7 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting * the amount of associations and data returned. @@ -32,7 +34,7 @@ * @subpackage cake.cake.console.libs */ class PersisterTwoBehaviorBehavior extends ModelBehavior { - - + + } ?> \ No newline at end of file diff --git a/cake/tests/test_app/models/comment.php b/cake/tests/test_app/models/comment.php index 75c1450a5..d1ac8431b 100644 --- a/cake/tests/test_app/models/comment.php +++ b/cake/tests/test_app/models/comment.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Test App Comment Model * diff --git a/cake/tests/test_app/models/persister_one.php b/cake/tests/test_app/models/persister_one.php index 76222829f..9fe361125 100644 --- a/cake/tests/test_app/models/persister_one.php +++ b/cake/tests/test_app/models/persister_one.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Test App Comment Model * diff --git a/cake/tests/test_app/models/persister_two.php b/cake/tests/test_app/models/persister_two.php index 4596f9479..afc92ac5e 100644 --- a/cake/tests/test_app/models/persister_two.php +++ b/cake/tests/test_app/models/persister_two.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Test App Comment Model * diff --git a/cake/tests/test_app/models/post.php b/cake/tests/test_app/models/post.php index f2ea630d6..cdc314b5e 100644 --- a/cake/tests/test_app/models/post.php +++ b/cake/tests/test_app/models/post.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Test App Comment Model * diff --git a/cake/tests/test_app/plugins/test_plugin/controllers/components/other_component.php b/cake/tests/test_app/plugins/test_plugin/controllers/components/other_component.php index ab3cb7b22..4d84d2713 100644 --- a/cake/tests/test_app/plugins/test_plugin/controllers/components/other_component.php +++ b/cake/tests/test_app/plugins/test_plugin/controllers/components/other_component.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/plugins/test_plugin/controllers/components/plugins_component.php b/cake/tests/test_app/plugins/test_plugin/controllers/components/plugins_component.php index 6a80527d9..fca3642c3 100644 --- a/cake/tests/test_app/plugins/test_plugin/controllers/components/plugins_component.php +++ b/cake/tests/test_app/plugins/test_plugin/controllers/components/plugins_component.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/plugins/test_plugin/controllers/components/test_plugin_component.php b/cake/tests/test_app/plugins/test_plugin/controllers/components/test_plugin_component.php index 23a462bf9..3d03b86f6 100644 --- a/cake/tests/test_app/plugins/test_plugin/controllers/components/test_plugin_component.php +++ b/cake/tests/test_app/plugins/test_plugin/controllers/components/test_plugin_component.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/plugins/test_plugin/controllers/components/test_plugin_other_component.php b/cake/tests/test_app/plugins/test_plugin/controllers/components/test_plugin_other_component.php index 560e0702f..4e432f2c9 100644 --- a/cake/tests/test_app/plugins/test_plugin/controllers/components/test_plugin_other_component.php +++ b/cake/tests/test_app/plugins/test_plugin/controllers/components/test_plugin_other_component.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/plugins/test_plugin/controllers/tests_controller.php b/cake/tests/test_app/plugins/test_plugin/controllers/tests_controller.php index 565a4cd9a..9028dc87c 100644 --- a/cake/tests/test_app/plugins/test_plugin/controllers/tests_controller.php +++ b/cake/tests/test_app/plugins/test_plugin/controllers/tests_controller.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/plugins/test_plugin/models/test_plugin_post.php b/cake/tests/test_app/plugins/test_plugin/models/test_plugin_post.php index 52c8a35e3..6dfe81de9 100644 --- a/cake/tests/test_app/plugins/test_plugin/models/test_plugin_post.php +++ b/cake/tests/test_app/plugins/test_plugin/models/test_plugin_post.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Test Plugin Post Model * @@ -25,12 +26,14 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ class TestPluginPost extends TestPluginAppModel { + /** * Name property * * @var string */ var $name = 'Post'; + /** * useTable property * diff --git a/cake/tests/test_app/plugins/test_plugin/test_plugin_app_controller.php b/cake/tests/test_app/plugins/test_plugin/test_plugin_app_controller.php index 56ad96b9c..c22aca869 100644 --- a/cake/tests/test_app/plugins/test_plugin/test_plugin_app_controller.php +++ b/cake/tests/test_app/plugins/test_plugin/test_plugin_app_controller.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Test Suite TestPlugin AppController * diff --git a/cake/tests/test_app/plugins/test_plugin/test_plugin_app_model.php b/cake/tests/test_app/plugins/test_plugin/test_plugin_app_model.php index b6510715b..f272acf24 100644 --- a/cake/tests/test_app/plugins/test_plugin/test_plugin_app_model.php +++ b/cake/tests/test_app/plugins/test_plugin/test_plugin_app_model.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Test Suite TestPlugin AppModel * diff --git a/cake/tests/test_app/plugins/test_plugin/vendors/sample/sample_plugin.php b/cake/tests/test_app/plugins/test_plugin/vendors/sample/sample_plugin.php index d4152137e..f804037cd 100644 --- a/cake/tests/test_app/plugins/test_plugin/vendors/sample/sample_plugin.php +++ b/cake/tests/test_app/plugins/test_plugin/vendors/sample/sample_plugin.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/plugins/test_plugin/vendors/shells/example.php b/cake/tests/test_app/plugins/test_plugin/vendors/shells/example.php index d363e9217..3d81f6dcf 100644 --- a/cake/tests/test_app/plugins/test_plugin/vendors/shells/example.php +++ b/cake/tests/test_app/plugins/test_plugin/vendors/shells/example.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ class ExampleShell extends Shell { + /** * main method * diff --git a/cake/tests/test_app/plugins/test_plugin/vendors/welcome.php b/cake/tests/test_app/plugins/test_plugin/vendors/welcome.php index b5122b327..cbf8a72cc 100644 --- a/cake/tests/test_app/plugins/test_plugin/vendors/welcome.php +++ b/cake/tests/test_app/plugins/test_plugin/vendors/welcome.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/plugins/test_plugin/views/helpers/other_helper.php b/cake/tests/test_app/plugins/test_plugin/views/helpers/other_helper.php index 9ec662708..5a558f761 100644 --- a/cake/tests/test_app/plugins/test_plugin/views/helpers/other_helper.php +++ b/cake/tests/test_app/plugins/test_plugin/views/helpers/other_helper.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/plugins/test_plugin/views/helpers/plugged_helper.php b/cake/tests/test_app/plugins/test_plugin/views/helpers/plugged_helper.php index 084eee80e..a745a1abe 100644 --- a/cake/tests/test_app/plugins/test_plugin/views/helpers/plugged_helper.php +++ b/cake/tests/test_app/plugins/test_plugin/views/helpers/plugged_helper.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/plugins/test_plugin_two/vendors/shells/example.php b/cake/tests/test_app/plugins/test_plugin_two/vendors/shells/example.php index 9e4b23fd3..ba408e930 100644 --- a/cake/tests/test_app/plugins/test_plugin_two/vendors/shells/example.php +++ b/cake/tests/test_app/plugins/test_plugin_two/vendors/shells/example.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ class ExampleShell extends Shell { + /** * main method * diff --git a/cake/tests/test_app/plugins/test_plugin_two/vendors/shells/welcome.php b/cake/tests/test_app/plugins/test_plugin_two/vendors/shells/welcome.php index 57f09f3ee..f55e76aea 100644 --- a/cake/tests/test_app/plugins/test_plugin_two/vendors/shells/welcome.php +++ b/cake/tests/test_app/plugins/test_plugin_two/vendors/shells/welcome.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ class WelcomeShell extends Shell { + /** * say_hello method * diff --git a/cake/tests/test_app/vendors/Test/MyTest.php b/cake/tests/test_app/vendors/Test/MyTest.php index 2705dffc2..7190c5a76 100644 --- a/cake/tests/test_app/vendors/Test/MyTest.php +++ b/cake/tests/test_app/vendors/Test/MyTest.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/vendors/Test/hello.php b/cake/tests/test_app/vendors/Test/hello.php index d96fa7047..713390c68 100644 --- a/cake/tests/test_app/vendors/Test/hello.php +++ b/cake/tests/test_app/vendors/Test/hello.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/vendors/sample/configure_test_vendor_sample.php b/cake/tests/test_app/vendors/sample/configure_test_vendor_sample.php index 252c860d7..c815ad619 100644 --- a/cake/tests/test_app/vendors/sample/configure_test_vendor_sample.php +++ b/cake/tests/test_app/vendors/sample/configure_test_vendor_sample.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/vendors/shells/sample.php b/cake/tests/test_app/vendors/shells/sample.php index 738c57911..89cdccc74 100644 --- a/cake/tests/test_app/vendors/shells/sample.php +++ b/cake/tests/test_app/vendors/shells/sample.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * @@ -25,6 +26,7 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ class SampleShell extends Shell { + /** * main method * diff --git a/cake/tests/test_app/vendors/somename/some.name.php b/cake/tests/test_app/vendors/somename/some.name.php index 442fabcd0..3c15defa0 100644 --- a/cake/tests/test_app/vendors/somename/some.name.php +++ b/cake/tests/test_app/vendors/somename/some.name.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/vendors/welcome.php b/cake/tests/test_app/vendors/welcome.php index edb18261b..32039255b 100644 --- a/cake/tests/test_app/vendors/welcome.php +++ b/cake/tests/test_app/vendors/welcome.php @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * Short description for file. * diff --git a/cake/tests/test_app/views/elements/email/html/default.ctp b/cake/tests/test_app/views/elements/email/html/default.ctp index 35146fe4a..9281bb8c6 100644 --- a/cake/tests/test_app/views/elements/email/html/default.ctp +++ b/cake/tests/test_app/views/elements/email/html/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/tests/test_app/views/elements/email/text/default.ctp b/cake/tests/test_app/views/elements/email/text/default.ctp index cbb261c64..bd5f1aca6 100644 --- a/cake/tests/test_app/views/elements/email/text/default.ctp +++ b/cake/tests/test_app/views/elements/email/text/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/tests/test_app/views/elements/email/text/wide.ctp b/cake/tests/test_app/views/elements/email/text/wide.ctp index f2ee2792d..04dd5475c 100644 --- a/cake/tests/test_app/views/elements/email/text/wide.ctp +++ b/cake/tests/test_app/views/elements/email/text/wide.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/tests/test_app/views/layouts/ajax.ctp b/cake/tests/test_app/views/layouts/ajax.ctp index ca3459af8..4da27c73a 100644 --- a/cake/tests/test_app/views/layouts/ajax.ctp +++ b/cake/tests/test_app/views/layouts/ajax.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/tests/test_app/views/layouts/ajax2.ctp b/cake/tests/test_app/views/layouts/ajax2.ctp index 060d614a6..514a71ab0 100644 --- a/cake/tests/test_app/views/layouts/ajax2.ctp +++ b/cake/tests/test_app/views/layouts/ajax2.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id: ajax2.ctp 7062 2008-05-30 11:29:53Z nate $ */ + /** * * PHP versions 4 and 5 diff --git a/cake/tests/test_app/views/layouts/cache_empty_sections.ctp b/cake/tests/test_app/views/layouts/cache_empty_sections.ctp index c11f2f5b9..98e37d0f8 100644 --- a/cake/tests/test_app/views/layouts/cache_empty_sections.ctp +++ b/cake/tests/test_app/views/layouts/cache_empty_sections.ctp @@ -11,4 +11,4 @@ <?php echo $content_for_layout; ?> <cake:nocache><?php echo 'cached count is: ' . $x; ?></cake:nocache> </body> -</html> +</html> \ No newline at end of file diff --git a/cake/tests/test_app/views/layouts/cache_layout.ctp b/cake/tests/test_app/views/layouts/cache_layout.ctp index dee02a716..46784c1df 100644 --- a/cake/tests/test_app/views/layouts/cache_layout.ctp +++ b/cake/tests/test_app/views/layouts/cache_layout.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 @@ -36,4 +37,3 @@ </cake:nocache> <p>Additional regular text.</p> - diff --git a/cake/tests/test_app/views/layouts/default.ctp b/cake/tests/test_app/views/layouts/default.ctp index bf0d3f30c..2246bff0e 100644 --- a/cake/tests/test_app/views/layouts/default.ctp +++ b/cake/tests/test_app/views/layouts/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/tests/test_app/views/layouts/email/html/default.ctp b/cake/tests/test_app/views/layouts/email/html/default.ctp index 1853a7b3a..b596254f2 100644 --- a/cake/tests/test_app/views/layouts/email/html/default.ctp +++ b/cake/tests/test_app/views/layouts/email/html/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 @@ -34,4 +35,4 @@ <p>This email was sent using the <a href="http://cakephp.org">CakePHP Framework</a></p> </body> -</html> +</html> \ No newline at end of file diff --git a/cake/tests/test_app/views/layouts/email/html/thin.ctp b/cake/tests/test_app/views/layouts/email/html/thin.ctp index 2cd9e4020..0b4677735 100644 --- a/cake/tests/test_app/views/layouts/email/html/thin.ctp +++ b/cake/tests/test_app/views/layouts/email/html/thin.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 @@ -34,4 +35,4 @@ <p>This email was sent using the CakePHP Framework</p> </body> -</html> +</html> \ No newline at end of file diff --git a/cake/tests/test_app/views/layouts/email/text/default.ctp b/cake/tests/test_app/views/layouts/email/text/default.ctp index 77fda3bd6..bfc1ef552 100644 --- a/cake/tests/test_app/views/layouts/email/text/default.ctp +++ b/cake/tests/test_app/views/layouts/email/text/default.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 @@ -26,4 +27,3 @@ <?php echo $content_for_layout;?> This email was sent using the CakePHP Framework, http://cakephp.org. - diff --git a/cake/tests/test_app/views/layouts/flash.ctp b/cake/tests/test_app/views/layouts/flash.ctp index 95fc61fb8..11b23e8c1 100644 --- a/cake/tests/test_app/views/layouts/flash.ctp +++ b/cake/tests/test_app/views/layouts/flash.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 diff --git a/cake/tests/test_app/views/layouts/multi_cache.ctp b/cake/tests/test_app/views/layouts/multi_cache.ctp index 7c07d9be5..3eba18d4e 100644 --- a/cake/tests/test_app/views/layouts/multi_cache.ctp +++ b/cake/tests/test_app/views/layouts/multi_cache.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 @@ -42,4 +43,4 @@ <cake:nocache> <p>G. Layout After Content And After Element With No Cache Tags</p> <?php $this->log('7. layout after content and after element with no cache tags') ?> -</cake:nocache> +</cake:nocache> \ No newline at end of file diff --git a/cake/tests/test_app/views/pages/home.ctp b/cake/tests/test_app/views/pages/home.ctp index 3812f0f93..aad3ce4ca 100644 --- a/cake/tests/test_app/views/pages/home.ctp +++ b/cake/tests/test_app/views/pages/home.ctp @@ -77,4 +77,4 @@ if (!empty($filePresent)): You can also add some CSS styles for your pages at: %s', true), APP . 'views' . DS . 'pages' . DS . 'home.ctp.<br />', APP . 'views' . DS . 'layouts' . DS . 'default.ctp.<br />', APP . 'webroot' . DS . 'css'); ?> -</p> +</p> \ No newline at end of file diff --git a/cake/tests/test_app/views/posts/sequencial_nocache.ctp b/cake/tests/test_app/views/posts/sequencial_nocache.ctp index 247be625f..5ab7e0874 100644 --- a/cake/tests/test_app/views/posts/sequencial_nocache.ctp +++ b/cake/tests/test_app/views/posts/sequencial_nocache.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5 @@ -26,4 +27,4 @@ <cake:nocache> <p>D. In View File</p> <?php $this->log('4. in view file') ?> -</cake:nocache> +</cake:nocache> \ No newline at end of file diff --git a/cake/tests/test_app/views/posts/test_nocache_tags.ctp b/cake/tests/test_app/views/posts/test_nocache_tags.ctp index db0e7397c..433131435 100644 --- a/cake/tests/test_app/views/posts/test_nocache_tags.ctp +++ b/cake/tests/test_app/views/posts/test_nocache_tags.ctp @@ -1,5 +1,6 @@ <?php /* SVN FILE: $Id$ */ + /** * * PHP versions 4 and 5