public __construct ( mageekguy\atoum\adapter $adapter = null, annotations\extractor $annotationExtractor = null, asserter\generator $asserterGenerator = null, test\assertion\manager $assertionManager = null, closure $reflectionClassFactory = null, closure $phpExtensionFactory = null, mageekguy\atoum\tools\variable\analyzer $analyzer = null ) | ||
$adapter | mageekguy\atoum\adapter | |
$annotationExtractor | annotations\extractor | |
$asserterGenerator | asserter\generator | |
$assertionManager | test\assertion\manager | |
$reflectionClassFactory | closure | |
$phpExtensionFactory | closure | |
$analyzer | mageekguy\atoum\tools\variable\analyzer |
public function __construct(\mageekguy\atoum\adapter $adapter = null, \mageekguy\atoum\annotations\extractor $annotationExtractor = null, \mageekguy\atoum\asserter\generator $asserterGenerator = null, \mageekguy\atoum\test\assertion\manager $assertionManager = null, \closure $reflectionClassFactory = null) { parent::__construct($adapter, $annotationExtractor, $asserterGenerator, $assertionManager, $reflectionClassFactory); $self = $this; $this->getAssertionManager()->setHandler('fail', function ($dummy = null) use(&$self) { return $self->assert('force fail')->boolean(false)->isTrue(); }); $this->getAssertionManager()->setHandler('pass', function ($dummy = null) use(&$self) { return $self->assert('force pass')->boolean(true)->isTrue(); }); $this->logger = new \Psr\Log\NullLogger(); }
public function __construct() { $this->setTestedClassName('mageekguy\\atoum\\withStatic'); parent::__construct(); }
public function __construct(Asserters\Praspel $praspel = null, adapter $adapter = null, annotations\extractor $annotationExtractor = null, asserter\generator $asserterGenerator = null, assertion\manager $assertionManager = null, \closure $reflectionClassFactory = null) { $this->setAssertionManager($assertionManager)->setAsserterGenerator($asserterGenerator)->setPraspel($praspel); parent::__construct($adapter, $annotationExtractor, $this->getAsserterGenerator(), $this->getAssertionManager(), $reflectionClassFactory); }
public function __construct(factory $factory = null) { $this->setTestNamespace('Tests\\Units'); parent::__construct($factory); }
/** * {@inheritdoc} */ public function __construct(atoum\adapter $adapter = null, atoum\annotations\extractor $annotationExtractor = null, atoum\asserter\generator $asserterGenerator = null, atoum\test\assertion\manager $assertionManager = null, \closure $reflectionClassFactory = null) { parent::__construct($adapter, $annotationExtractor, $asserterGenerator, $assertionManager, $reflectionClassFactory); $this->setTestNamespace('Tests\\Units'); }
public function __construct(score $score = null, locale $locale = null, adapter $adapter = null) { $this->setTestNamespace('Tests\\Units'); parent::__construct($score, $locale, $adapter); }
public function __construct(adapter $adapter = null, annotations\extractor $annotationExtractor = null, asserter\generator $asserterGenerator = null, assertion\manager $assertionManager = null, \closure $reflectionClassFactory = null, \closure $phpExtensionFactory = null, analyzer $analyzer = null) { parent::__construct($adapter, $annotationExtractor, $asserterGenerator, $assertionManager, $reflectionClassFactory, $phpExtensionFactory, $analyzer); $this->setDefaultEngine(self::defaultEngine); }