[ Index ]
 

Code source de PHPonTrax 2.6.6-svn

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

title

Body

[fermer]

/test/ -> TraxGeneratorTest.php (sommaire)

File for the TraxGeneratorTest 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: TraxGeneratorTest.php 208 2006-05-28 17:59:55Z john $
Poids: 826 lignes (34 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 test/testenv.php

Définit 1 class

TraxGeneratorTest:: (16 méthodes):
  main()
  setUp()
  tearDown()
  rmrfdir()
  testGenerator_help()
  testScaffold_help()
  testController_help()
  testModel_help()
  testGenerate_controller()
  testGenerate_model()
  testGenerate_scaffold1()
  testGenerate_scaffold2()
  testGenerate_scaffold3()
  testGenerate_scaffold4()
  testFix_php_brackets()
  testRun()

Définit 16 fonctions

  __autoload()

Classe: TraxGeneratorTest  - X-Ref

Test class for TraxGenerator.
Generated by PHPUnit2_Util_Skeleton on 2006-03-01 at 15:34:17.

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


setUp()   X-Ref
Set up dummy Trax work area

Create a dummy Trax work area in the temporary directory

tearDown()   X-Ref
Remove the dummy Trax work area


rmrfdir($dir)   X-Ref
Remove all the contents of a directory

param: string $dir Name of directory to empty. Ends with '/'

testGenerator_help()   X-Ref
Verify that generator_help() outputs a "Usage" message


testScaffold_help()   X-Ref
Verify that scaffold_help() outputs a "Usage" message


testController_help()   X-Ref
Verify that controller_help() outputs a "Usage" message


testModel_help()   X-Ref
Verify that model_help() outputs a "Usage" message


testGenerate_controller()   X-Ref
Verify that generate_controller() generates a controller

We would like to test
{@link TraxGenerator::create_controller() create_controller()},
{@link TraxGenerator::create_helper() create_helper()}
and {@link TraxGenerator::create_view() create_view()} in
isolation before we test
{@link TraxGenerator::generate_controller() generate_controller()}
but that's impossible because they depend on private variables
which are set only in generate_controller().

testGenerate_model()   X-Ref
Verify that generate_model() generates a model


testGenerate_scaffold1()   X-Ref
Verify that generate_scaffold() generates a model and controller


testGenerate_scaffold2()   X-Ref
Verify that generate_scaffold() defaults controller from model


testGenerate_scaffold3()   X-Ref
Verify generate_scaffold() with additional views


testGenerate_scaffold4()   X-Ref
Verify generate_scaffold() with the controller in a subdirectory


testFix_php_brackets()   X-Ref
Test fix_php_brackets()


testRun()   X-Ref


Fonctions
Fonctions qui ne font pas partie d'une Classe:

__autoload($class_name)   X-Ref
When a class is referenced, get it from app/models




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