DoctorTestCase::__construct PHP Method

__construct() public method

Create new instance.
public __construct ( $label = false )
    function __construct($label = false)
    {
        parent::__construct($label);
        $this->appDir = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR;
        $this->testDir = $this->appDir . 'tests' . DIRECTORY_SEPARATOR;
        $this->caseDir = $this->testDir . 'cases' . DIRECTORY_SEPARATOR;
        $this->iniDir = $this->caseDir . 'ini' . DIRECTORY_SEPARATOR;
        //$tmpBase = tempnam(sys_get_temp_dir(), 'pdtmp_');
        $tmpBase = $this->caseDir;
        $this->outputDir = $tmpBase . 'output' . DIRECTORY_SEPARATOR;
        $this->tempDir = $tmpBase . 'tmp' . DIRECTORY_SEPARATOR;
        // ensure all ready for tests to run
        $this->clearOutputDir();
        $this->clearTempDir();
    }

Usage Example

Ejemplo n.º 1
0
 function __construct()
 {
     parent::__construct('Standard doclet tests');
     $this->clearOutputDir();
     $this->setIniFile('standard-doclet.ini');
     $this->runPhpDoctor();
 }
All Usage Examples Of DoctorTestCase::__construct