public function testSetPharGeneratorScript() { $this->if($builder = new testedClass(uniqid()))->then->object($builder->setPharGeneratorScript($php = uniqid()))->isIdenticalTo($builder)->string($builder->getPharGeneratorScript())->isIdenticalTo($php)->object($builder->setPharGeneratorScript($php = rand(1, PHP_INT_MAX)))->isIdenticalTo($builder)->string($builder->getPharGeneratorScript())->isIdenticalTo((string) $php); }
public function test__construct() { $this->assert->if($builder = new scripts\builder($name = uniqid()))->then->string($builder->getName())->isEqualTo($name)->object($builder->getAdapter())->isInstanceOf('mageekguy\\atoum\\adapter')->object($builder->getLocale())->isInstanceOf('mageekguy\\atoum\\locale')->object($builder->getArgumentsParser())->isInstanceOf('mageekguy\\atoum\\script\\arguments\\parser')->object($builder->getOutputWriter())->isInstanceOf('mageekguy\\atoum\\writers\\std\\out')->object($builder->getErrorWriter())->isInstanceOf('mageekguy\\atoum\\writers\\std\\err')->object($builder->getSuperglobals())->isInstanceOf('mageekguy\\atoum\\superglobals')->array($builder->getRunnerConfigurationFiles())->isEmpty()->variable($builder->getVersion())->isNull()->variable($builder->getWorkingDirectory())->isNull()->variable($builder->getDestinationDirectory())->isNull()->variable($builder->getErrorsDirectory())->isNull()->variable($builder->getScoreDirectory())->isNull()->variable($builder->getRevisionFile())->isNull()->string($builder->getUnitTestRunnerScript())->isEqualTo(scripts\builder::defaultUnitTestRunnerScript)->string($builder->getPharGeneratorScript())->isEqualTo(scripts\builder::defaultPharGeneratorScript)->variable($builder->getReportTitle())->isNull()->object($builder->getVcs())->isInstanceOf('mageekguy\\atoum\\scripts\\builder\\vcs\\svn')->variable($builder->getTaggerEngine())->isNull()->if($builder = new scripts\builder($name = uniqid(), $adapter = new atoum\adapter()))->then->string($builder->getName())->isEqualTo($name)->object($builder->getAdapter())->isIdenticalTo($adapter)->object($builder->getLocale())->isInstanceOf('mageekguy\\atoum\\locale')->object($builder->getArgumentsParser())->isInstanceOf('mageekguy\\atoum\\script\\arguments\\parser')->object($builder->getOutputWriter())->isInstanceOf('mageekguy\\atoum\\writers\\std\\out')->object($builder->getErrorWriter())->isInstanceOf('mageekguy\\atoum\\writers\\std\\err')->object($builder->getSuperglobals())->isInstanceOf('mageekguy\\atoum\\superglobals')->array($builder->getRunnerConfigurationFiles())->isEmpty()->variable($builder->getVersion())->isNull()->variable($builder->getWorkingDirectory())->isNull()->variable($builder->getDestinationDirectory())->isNull()->variable($builder->getErrorsDirectory())->isNull()->variable($builder->getScoreDirectory())->isNull()->variable($builder->getRevisionFile())->isNull()->string($builder->getUnitTestRunnerScript())->isEqualTo(scripts\builder::defaultUnitTestRunnerScript)->string($builder->getPharGeneratorScript())->isEqualTo(scripts\builder::defaultPharGeneratorScript)->variable($builder->getReportTitle())->isNull()->object($builder->getVcs())->isInstanceOf('mageekguy\\atoum\\scripts\\builder\\vcs\\svn')->variable($builder->getTaggerEngine())->isNull(); }