getSourceDir() public method

public getSourceDir ( )
Beispiel #1
0
 public function test__construct()
 {
     $this->if($report = new testedClass($sourceDir = uniqid(), $token = uniqid()))->then->array($report->getFields(atoum\runner::runStart))->isEmpty()->object($report->getLocale())->isInstanceOf('mageekguy\\atoum\\locale')->object($report->getAdapter())->isInstanceOf('mageekguy\\atoum\\adapter')->array($report->getFields())->isEmpty()->object($report->getSourceDir())->isInstanceOf('\\mageekguy\\atoum\\fs\\path')->castToString($report->getSourceDir())->isEqualTo($sourceDir)->object($report->getBranchFinder())->isInstanceOf('\\Closure')->string($report->getServiceName())->isEqualTo('atoum')->variable($report->getServiceJobId())->isNull()->if($report = new testedClass($sourceDir, $token, $adapter = new atoum\test\adapter()))->then->adapter($report->getAdapter())->call('extension_loaded')->withArguments('json')->once()->if($adapter->extension_loaded = false)->then->exception(function () use($adapter) {
         new testedClass(uniqid(), uniqid(), $adapter);
     })->isInstanceOf('mageekguy\\atoum\\exceptions\\runtime')->hasMessage('JSON PHP extension is mandatory for coveralls report');
 }