예제 #1
0
 /**
  * @param Adapter   $adapter
  * @param Extractor $annotationExtractor
  * @param Generator $asserterGenerator
  * @param Manager   $assertionManager
  * @param \Closure  $reflectionClassFactory
  * @param \Closure  $phpExtensionFactory
  * @param Analyzer  $analyzer
  */
 public function __construct(Adapter $adapter = null, Extractor $annotationExtractor = null, Generator $asserterGenerator = null, Manager $assertionManager = null, \Closure $reflectionClassFactory = null, \Closure $phpExtensionFactory = null, Analyzer $analyzer = null)
 {
     parent::__construct($adapter, $annotationExtractor, $asserterGenerator, $assertionManager, $reflectionClassFactory, $phpExtensionFactory, $analyzer);
     $this->getAsserterGenerator()->addNamespace('Cubiche\\Core\\Enumerable\\Tests\\Asserters');
     $this->getAssertionManager()->setAlias('enumerable', 'EnumerableAsserter');
     $this->getAssertionManager()->setAlias('iterator', 'IteratorAsserter');
 }
예제 #2
0
 /**
  * @param Adapter   $adapter
  * @param Extractor $annotationExtractor
  * @param Generator $asserterGenerator
  * @param Manager   $assertionManager
  * @param Closure   $reflectionClassFactory
  * @param Closure   $phpExtensionFactory
  * @param Analyzer  $analyzer
  */
 public function __construct(Adapter $adapter = null, Extractor $annotationExtractor = null, Generator $asserterGenerator = null, Manager $assertionManager = null, \Closure $reflectionClassFactory = null, \Closure $phpExtensionFactory = null, Analyzer $analyzer = null)
 {
     parent::__construct($adapter, $annotationExtractor, $asserterGenerator, $assertionManager, $reflectionClassFactory, $phpExtensionFactory, $analyzer);
     $this->getAssertionManager()->setHandler('delegateCall', function (MockAggregator $mock) {
         return $this->delegateCall($mock);
     });
 }
예제 #3
0
 /**
  * @param Adapter   $adapter
  * @param Extractor $annotationExtractor
  * @param Generator $asserterGenerator
  * @param Manager   $assertionManager
  * @param \Closure  $reflectionClassFactory
  * @param \Closure  $phpExtensionFactory
  * @param Analyzer  $analyzer
  */
 public function __construct(Adapter $adapter = null, Extractor $annotationExtractor = null, Generator $asserterGenerator = null, Manager $assertionManager = null, \Closure $reflectionClassFactory = null, \Closure $phpExtensionFactory = null, Analyzer $analyzer = null)
 {
     parent::__construct($adapter, $annotationExtractor, $asserterGenerator, $assertionManager, $reflectionClassFactory, $phpExtensionFactory, $analyzer);
     $this->getAsserterGenerator()->addNamespace('Cubiche\\Core\\Equatable\\Tests\\Asserters');
     $this->getAsserterGenerator()->addNamespace('Cubiche\\Core\\Collections\\Tests\\Asserters');
     $this->getAssertionManager()->setAlias('variable', 'VariableAsserter');
     $this->getAssertionManager()->setAlias('collection', 'CollectionAsserter');
     $this->getAssertionManager()->setAlias('list', 'ListAsserter');
     $this->getAssertionManager()->setAlias('set', 'SetAsserter');
     $this->getAssertionManager()->setAlias('hashmap', 'HashMapAsserter');
     $this->getAssertionManager()->setAlias('datasource', 'DataSourceAsserter');
 }
예제 #4
0
 /**
  * @param Adapter   $adapter
  * @param Extractor $annotationExtractor
  * @param Generator $asserterGenerator
  * @param Manager   $assertionManager
  * @param \Closure  $reflectionClassFactory
  * @param \Closure  $phpExtensionFactory
  * @param Analyzer  $analyzer
  */
 public function __construct(Adapter $adapter = null, Extractor $annotationExtractor = null, Generator $asserterGenerator = null, Manager $assertionManager = null, \Closure $reflectionClassFactory = null, \Closure $phpExtensionFactory = null, Analyzer $analyzer = null)
 {
     parent::__construct($adapter, $annotationExtractor, $asserterGenerator, $assertionManager, $reflectionClassFactory, $phpExtensionFactory, $analyzer);
     $this->migrationsDirectory = __DIR__ . '/Migrations/Cli/Migrations';
     $this->cacheDirectory = __DIR__ . '/Migrations/Cache';
 }