PHPonTraxTest
[ class tree: PHPonTraxTest ] [ index: PHPonTraxTest ] [ all elements ]

Class: TraxGeneratorTest

Source Location: /test/TraxGeneratorTest.php

Class Overview

PHPUnit2_Framework_TestCase
   |
   --TraxGeneratorTest

Test class for TraxGenerator.


Methods



Class Details

[line 95]
Test class for TraxGenerator.

Generated by PHPUnit2_Util_Skeleton on 2006-03-01 at 15:34:17.




[ Top ]


Class Methods


method main [line 104]

void main( )

Runs the test methods of this class.



Tags:

static:  
access:  public


[ Top ]

method rmrfdir [line 141]

void rmrfdir( string $dir)

Remove all the contents of a directory



Tags:

access:  private


Parameters:

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

[ Top ]

method setUp [line 117]

void setUp( )

Set up dummy Trax work area

Create a dummy Trax work area in the temporary directory




Tags:

access:  protected


[ Top ]

method tearDown [line 131]

void tearDown( )

Remove the dummy Trax work area



Tags:

access:  protected


[ Top ]

method testController_help [line 196]

void testController_help( )

Verify that controller_help() outputs a "Usage" message



Tags:

access:  public


[ Top ]

method testFix_php_brackets [line 733]

void testFix_php_brackets( )

Test fix_php_brackets()



Tags:

access:  public


[ Top ]

method testGenerate_controller [line 227]

void testGenerate_controller( )

Verify that generate_controller() generates a controller

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




Tags:

access:  public


[ Top ]

method testGenerate_model [line 322]

void testGenerate_model( )

Verify that generate_model() generates a model



Tags:

access:  public


[ Top ]

method testGenerate_scaffold1 [line 350]

void testGenerate_scaffold1( )

Verify that generate_scaffold() generates a model and controller



Tags:

access:  public


[ Top ]

method testGenerate_scaffold2 [line 441]

void testGenerate_scaffold2( )

Verify that generate_scaffold() defaults controller from model



Tags:

access:  public


[ Top ]

method testGenerate_scaffold3 [line 533]

void testGenerate_scaffold3( )

Verify generate_scaffold() with additional views



Tags:

access:  public


[ Top ]

method testGenerate_scaffold4 [line 638]

void testGenerate_scaffold4( )

Verify generate_scaffold() with the controller in a subdirectory



Tags:

access:  public


[ Top ]

method testGenerator_help [line 174]

void testGenerator_help( )

Verify that generator_help() outputs a "Usage" message



Tags:

access:  public


[ Top ]

method testModel_help [line 207]

void testModel_help( )

Verify that model_help() outputs a "Usage" message



Tags:

access:  public


[ Top ]

method testRun [line 742]

void testRun( )



Tags:

access:  public
todo:  Implement testRun().


[ Top ]

method testScaffold_help [line 185]

void testScaffold_help( )

Verify that scaffold_help() outputs a "Usage" message



Tags:

access:  public


[ Top ]


Documentation generated on Thu, 04 May 2006 19:48:00 -0600 by phpDocumentor 1.3.0RC4