Back to index

php5  5.3.10
Public Member Functions
gtIsSpecifiedFunctionOrMethodTest Class Reference

List of all members.

Public Member Functions

 testValid ()
 testValid2 ()
 testNotValid ()
 testMessage ()

Detailed Description

Definition at line 6 of file gtIsSpecifiedFunctionOrMethodTest.php.


Member Function Documentation

Definition at line 33 of file gtIsSpecifiedFunctionOrMethodTest.php.

                                {

    $clo = new gtCommandLineOptions();
    $clo->parse(array('generate-phpt.php', '-c', 'blah'));
    $ch = new gtIsSpecifiedFunctionOrMethod();
    $this->assertEquals($ch->getMessage(), gtText::get('functionOrMethodNotSpecified'));
  }

Here is the call graph for this function:

Definition at line 24 of file gtIsSpecifiedFunctionOrMethodTest.php.

                                  {

    $clo = new gtCommandLineOptions();
    $clo->parse(array('generate-phpt.php', '-b'));
    $ch = new gtIsSpecifiedFunctionOrMethod();
    $this->assertFalse($ch->check($clo));
    
  }

Definition at line 8 of file gtIsSpecifiedFunctionOrMethodTest.php.

                              {

    $clo = new gtCommandLineOptions();
    $clo->parse(array('generate-phpt.php', '-m', 'blah'));
    $ch = new gtIsSpecifiedFunctionOrMethod();
    $this->assertTrue($ch->check($clo));
  }

Definition at line 16 of file gtIsSpecifiedFunctionOrMethodTest.php.

                               {

    $clo = new gtCommandLineOptions();
    $clo->parse(array('generate-phpt.php', '-f', 'blah'));
    $ch = new gtIsSpecifiedFunctionOrMethod();
    $this->assertTrue($ch->check($clo));
  }

The documentation for this class was generated from the following file: