test1.php File Reference

Go to the source code of this file.

Enumerations

enum  PUBLIC_PATH
enum  CALLER_PATH

Variables

 $strBigFile
 $oReflectionCode = new CodeInstrumentationClass( "temp_fatorial" , $strBigFile )
 $strNewCode = $oReflectionCode->getCode()
 $objTest = new fatorial( 2 )
 $objSimpleXml = simplexml_load_string( CodeInstrumentationReceiver::getInstance()->getXmlSequence()->createXml() )


Enumeration Type Documentation

Definition at line 38 of file test1.php.

Definition at line 37 of file test1.php.


Variable Documentation

$objSimpleXml = simplexml_load_string( CodeInstrumentationReceiver::getInstance()->getXmlSequence()->createXml() )

Definition at line 42 of file test1.php.

$objTest = new fatorial( 2 )

Definition at line 40 of file test1.php.

$oReflectionCode = new CodeInstrumentationClass( "temp_fatorial" , $strBigFile )

Definition at line 33 of file test1.php.

Referenced by CodeToDiagram::codeInstrumentationFile().

$strBigFile

Initial value:

 '
class fatorial
{
    protected $n;

    public function __construct( $n )
    {
        $this->n = $n;
    }

    public function calc()
    {
        if ($this->n < 2)
        {
            return 1;
        }
        else
        {
            $objFat = new Fatorial( $this->n - 1 );
            return $this->n * $objFat->calc();
        }
    }
};
'

Definition at line 5 of file test1.php.

$strNewCode = $oReflectionCode->getCode()

Definition at line 35 of file test1.php.

Referenced by CodeToDiagram::codeInstrumentationFile().


Generated on Thu Feb 3 03:55:01 2011 for CodeToDiagram by  doxygen 1.5.9