Back to index

php5  5.3.10
Public Member Functions
gtMethodTest Class Reference

List of all members.

Public Member Functions

 testGetParams ()
 testConstructor ()
 testExtraParamList ()
 testShortParamList ()
 testAllParamList ()
 testMaxParamList ()
 testConstructorList ()
 testConstructorInit ()

Detailed Description

Definition at line 6 of file gtMethodTest.php.


Member Function Documentation

Definition at line 37 of file gtMethodTest.php.

                                     {
    $m = new gtMethod('DOMDocument', 'createAttribute');
    $m->setArgumentNames();
    $m->setValidArgumentLists();
    $a = $m->getValidArgumentLists();
    $this->assertEquals('$name',$a[0]);
  }

Definition at line 15 of file gtMethodTest.php.

                                    {
    $m = new gtMethod('DOMDocument', 'createAttribute');
    $m->setConstructorArgumentNames();
    $a = $m->getConstructorArgumentNames();
    $this->assertEquals($a[0], 'version');
    $this->assertEquals($a[1], 'encoding');
  }

Definition at line 64 of file gtMethodTest.php.

                                        {
    $m = new gtMethod('Phar', 'buildFromDirectory');
    $m->setArgumentNames();
    $m->setConstructorArgumentNames();

    $m->setConstructorInitStatements();
    $a = $m->getConstructorInitStatements();
    $this->assertEquals('$filename = ',$a[0]);
    $this->assertEquals('$flags = ',$a[1]);
    $this->assertEquals('$alias = ',$a[2]);
    $this->assertEquals('$fileformat = ',$a[3]);
  }

Definition at line 54 of file gtMethodTest.php.

                                        {
    $m = new gtMethod('Phar', 'buildFromDirectory');
    $m->setArgumentNames();
    $m->setConstructorArgumentNames();

    $m->setConstructorArgumentList();
    $this->assertEquals('$filename, $flags, $alias, $fileformat',$m->getConstructorArgumentList());

  }

Definition at line 23 of file gtMethodTest.php.

                                       {
    $m = new gtMethod('DOMDocument', 'createAttribute');
    $m->setArgumentNames();
    $m->setExtraArgumentList();
    $this->assertEquals('$name, $extra_arg',$m->getExtraArgumentList());
  }

Definition at line 8 of file gtMethodTest.php.

                                  {
    $m = new gtMethod('DOMDocument', 'createAttribute');
    $m->setArgumentNames();
    $a = $m->getMandatoryArgumentNames();
    $this->assertEquals($a[0], 'name');
  }

Definition at line 45 of file gtMethodTest.php.

                                     {
    $m = new gtMethod('DOMDocument', 'createAttribute');
    $m->setArgumentNames();
    $m->setValidArgumentLists();
    $this->assertEquals('$name',$m->getMaximumArgumentList());
  }

Definition at line 30 of file gtMethodTest.php.

                                       {
    $m = new gtMethod('DOMDocument', 'createAttribute');
    $m->setArgumentNames();
    $m->setShortArgumentList();
    $this->assertEquals('',$m->getShortArgumentList());
  }

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