__construct() public method

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
コード例 #1
0
ファイル: Tester.php プロジェクト: pgoergler/OngooForm
 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();
 }
コード例 #2
0
ファイル: test.php プロジェクト: atoum/atoum
 public function __construct()
 {
     $this->setTestedClassName('mageekguy\\atoum\\withStatic');
     parent::__construct();
 }
コード例 #3
0
ファイル: Test.php プロジェクト: jubianchi/PHPSandbox
 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);
 }
コード例 #4
0
ファイル: Unit.php プロジェクト: euskadi31/spore
 public function __construct(factory $factory = null)
 {
     $this->setTestNamespace('Tests\\Units');
     parent::__construct($factory);
 }
コード例 #5
0
ファイル: Test.php プロジェクト: aliel/AtoumBundle
 /**
  * {@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');
 }
コード例 #6
0
ファイル: Reader.php プロジェクト: euskadi31/robots
 public function __construct(score $score = null, locale $locale = null, adapter $adapter = null)
 {
     $this->setTestNamespace('Tests\\Units');
     parent::__construct($score, $locale, $adapter);
 }
コード例 #7
0
ファイル: test.php プロジェクト: atoum/phpunit-extension
 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);
 }