[ Index ]
 

Code source de PHPonTrax 2.6.6-svn

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/test/ -> ActiveRecordTest.php (sommaire)

File for the ActiveRecordTest class (PHP 5)

Author: Walt Haas <haas@xmission.com>
Copyright: (c) Walter O. Haas 2006
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id: ActiveRecordTest.php 208 2006-05-28 17:59:55Z john $
Poids: 1071 lignes (38 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 test/testenv.php

Définit 3 classes

PersonName:: (2 méthodes):
  validate_prefix()
  new_obj()

DB_find_all_result:: (1 méthode):
  fetchRow()

ActiveRecordTest:: (71 méthodes):
  main()
  setUp()
  tearDown()
  test__construct()
  testGet_attributes()
  testUpdate_attributes()
  testQuoted_attributes()
  testValidate_model_attributes()
  testQuery()
  testGet_insert_id()
  testIs_error()
  testGet_primary_key_conditions()
  testGet_updates_sql()
  testSave()
  testAdd_error()
  testFind_all()
  testFind_first()
  testFind()
  testAfter_create()
  testAfter_delete()
  testAfter_save()
  testAfter_update()
  testAfter_validation()
  testAfter_validation_on_create()
  testAfter_validation_on_update()
  testAvg_all()
  testBefore_create()
  testBefore_delete()
  testBefore_save()
  testBefore_update()
  testBefore_validation()
  testBefore_validation_on_create()
  testBefore_validation_on_update()
  testBegin()
  testColumn_attribute_exists()
  testColumn_for_attribute()
  testCommit()
  testCount_all()
  testCreate()
  testDelete()
  testDelete_all()
  testEstablish_connection()
  testFind_by()
  testFind_by_sql()
  testGet_association()
  testGet_errors()
  testGet_errors_as_string()
  testIs_new_record()
  testLimit_select()
  testLoad()
  testLog_query()
  testMax_all()
  testMin_all()
  testPage_list()
  testRaise()
  testReload()
  testRollback()
  testSave_without_validation()
  testSend()
  testSet_content_columns()
  testSet_table_name_using_class_name()
  testSum_all()
  testUpdate()
  testUpdate_all()
  testValid()
  testValidate()
  testValidate_on_create()
  testValidate_on_update()
  test__call()
  test__get()
  test__set()


Classe: PersonName  - X-Ref

Regression tester for the ActiveRecord class

This class is used only in regression testing of the ActiveRecord
class, but you might find some useful examples by reading it.
validate_prefix()   X-Ref
Pas de description

new_obj($attributes)   X-Ref
Pas de description

Classe: DB_find_all_result  - X-Ref

fetchRow()   X-Ref
Pas de description

Classe: ActiveRecordTest  - X-Ref

Test class for {@link ActiveRecord}

main()   X-Ref
Runs the test methods of this class.


setUp()   X-Ref
Set the environment ActiveRecord expects


tearDown()   X-Ref
This method is called after a test is executed.


test__construct()   X-Ref
Test constructor


testGet_attributes()   X-Ref
Test the get_attributes() method


testUpdate_attributes()   X-Ref
Test the update_attributes() method


testQuoted_attributes()   X-Ref
Test the quoted_attributes() method


testValidate_model_attributes()   X-Ref
Test the validate_model_attributes() method


testQuery()   X-Ref
Test the query() method


testGet_insert_id()   X-Ref
Test the get_insert_id() method


testIs_error()   X-Ref
Test the is_error() method


testGet_primary_key_conditions()   X-Ref
Test the get_primary_key_conditions() method


testGet_updates_sql()   X-Ref
Test the get_updates_sql() method


testSave()   X-Ref
Test the save() method


testAdd_error()   X-Ref
Test the add_error() method


testFind_all()   X-Ref
Test the find_all() method


testFind_first()   X-Ref
Test the find_first() method


testFind()   X-Ref
Test the find() method


testAfter_create()   X-Ref
Test the after_create() method


testAfter_delete()   X-Ref
Test the after_delete() method


testAfter_save()   X-Ref
Test the after_save() method


testAfter_update()   X-Ref
Test the after_update() method


testAfter_validation()   X-Ref
Test the after_validation() method


testAfter_validation_on_create()   X-Ref
Test the after_validation_on_create() method


testAfter_validation_on_update()   X-Ref
Test the after_validation_on_update() method


testAvg_all()   X-Ref
Test the avg_all() method


testBefore_create()   X-Ref
Test the before_create() method


testBefore_delete()   X-Ref
Test the before_delete() method


testBefore_save()   X-Ref
Test the before_save() method


testBefore_update()   X-Ref
Test the before_update() method


testBefore_validation()   X-Ref
Test the before_validation() method


testBefore_validation_on_create()   X-Ref
Test the before_validation_on_create() method


testBefore_validation_on_update()   X-Ref
Test the before_validation_on_update() method


testBegin()   X-Ref
Test the begin() method


testColumn_attribute_exists()   X-Ref
Test the column_attribute_exists() method


testColumn_for_attribute()   X-Ref
Test the column_for_attribute() method


testCommit()   X-Ref
Test the commit() method


testCount_all()   X-Ref
Test the count_all() method


testCreate()   X-Ref
Test the create() method


testDelete()   X-Ref
Test the delete() method


testDelete_all()   X-Ref
Test the delete_all() method


testEstablish_connection()   X-Ref
Test the establish_connection() method


testFind_by()   X-Ref
Test the find_by_*() and find_all_by_*() methods


testFind_by_sql()   X-Ref
Test the find_by_sql() method


testGet_association()   X-Ref
Test the get_association() method


testGet_errors()   X-Ref
Test the get_errors() method


testGet_errors_as_string()   X-Ref
Test the get_errors_as_string() method


testIs_new_record()   X-Ref
Test the is_new_record() method


testLimit_select()   X-Ref
Test the limit_select() method


testLoad()   X-Ref
Test the load() method


testLog_query()   X-Ref
Test the log_query() method


testMax_all()   X-Ref
Test the max_all() method


testMin_all()   X-Ref
Test the min_all() method


testPage_list()   X-Ref
Test the page_list() method


testRaise()   X-Ref
Test the raise() method


testReload()   X-Ref
Test the reload() method


testRollback()   X-Ref
Test the rollback() method


testSave_without_validation()   X-Ref
Test the save_without_validation() method


testSend()   X-Ref
Test the send() method


testSet_content_columns()   X-Ref
Test the set_content_columns() method


testSet_table_name_using_class_name()   X-Ref
Test the set_table_name_using_class_name() method


testSum_all()   X-Ref
Test the sum_all() method


testUpdate()   X-Ref
Test the update() method


testUpdate_all()   X-Ref
Test the update_all() method


testValid()   X-Ref
Test the valid() method


testValidate()   X-Ref
Test the validate() method


testValidate_on_create()   X-Ref
Test the validate_on_create() method


testValidate_on_update()   X-Ref
Test the validate_on_update() method


test__call()   X-Ref
Test the __call() method


test__get()   X-Ref
Test the __get() method


test__set()   X-Ref
Test the __set() method




Généré le : Sun Feb 25 20:04:38 2007 par Balluche grâce à PHPXref 0.7