Back to index

php5  5.3.10
Public Member Functions
gtFunctionTest Class Reference

List of all members.

Public Member Functions

 testArguments ()
 testArguments2 ()
 testExtraArguments ()
 testShortArguments ()
 testAllArgumentList ()
 testInitialisation ()

Detailed Description

Definition at line 7 of file gtFunctionTest.php.


Member Function Documentation

Definition at line 47 of file gtFunctionTest.php.

                                         {

    $f = new gtFunction('version_compare');
    $f->setArgumentNames();
    $f->setValidArgumentLists();
    $a = $f->getValidArgumentLists();
    
    $this->assertEquals('$ver1, $ver2', $a[0]);
    $this->assertEquals('$ver1, $ver2, $oper', $a[1]);
  }

Definition at line 9 of file gtFunctionTest.php.

                                  {

    $f = new gtFunction('cos');
    $f->setArgumentNames();
    $m = $f->getMandatoryArgumentNames();
    $this->assertEquals($m[0], 'number');
  }

Definition at line 17 of file gtFunctionTest.php.

                                   {

    $f = new gtFunction('version_compare');
    $f->setArgumentNames();
    $m = $f->getMandatoryArgumentNames();
    $o = $f->getOptionalArgumentNames();
    $this->assertEquals($m[0], 'ver1');
    $this->assertEquals($m[1], 'ver2');
    $this->assertEquals($o[0], 'oper');

  }

Definition at line 29 of file gtFunctionTest.php.

                                       {

    $f = new gtFunction('version_compare');
    $f->setArgumentNames();
    $f->setExtraArgumentList();

    $this->assertEquals('$ver1, $ver2, $oper, $extra_arg', $f->getExtraArgumentList());
  }

Definition at line 58 of file gtFunctionTest.php.

                                        {

    $f = new gtFunction('version_compare');
    $f->setArgumentNames();
    $f->setInitialisationStatements();
    $a = $f->getInitialisationStatements();
    
    $this->assertEquals('$ver1 = ', $a[0]);
    $this->assertEquals('$ver2 = ', $a[1]);
    $this->assertEquals('$oper = ', $a[2]);
  }

Definition at line 38 of file gtFunctionTest.php.

                                       {

    $f = new gtFunction('version_compare');
    $f->setArgumentNames();
    $f->setShortArgumentList();

    $this->assertEquals('$ver1', $f->getShortArgumentList());
  }

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