Exemple #1
0
 /**
  * Generate Fixtures Classes
  *
  * @return bool
  */
 public function generateClasses()
 {
     $this->cnt = 0;
     $configuration = $this->configReader->read('constraint');
     foreach ($configuration as $name => $item) {
         $this->generateClass($name, $item);
     }
     \Mtf\Util\Generate\GenerateResult::addResult('Constraint Classes', $this->cnt);
 }
Exemple #2
0
 /**
  * Generate Repositories XML
  *
  * @return void
  */
 protected function generateXml()
 {
     $this->cnt = 0;
     $configuration = $this->configReader->read('fixture');
     foreach ($configuration as $name => $item) {
         $this->generateRepositoryXml($name, $item);
     }
     \Mtf\Util\Generate\GenerateResult::addResult('Repository XML Files', $this->cnt);
 }
Exemple #3
0
 /**
  * Generate Handlers
  *
  * @return bool
  */
 protected function generateHandlers()
 {
     $this->cnt = 0;
     $configuration = $this->configReader->read('fixture');
     foreach ($configuration as $name => $item) {
         $this->generateInterface($name, $item);
         $this->generateCurl($name, $item);
         $this->generateUi($name, $item);
     }
     \Mtf\Util\Generate\GenerateResult::addResult('Handlers', $this->cnt);
 }
Exemple #4
0
 /**
  * @constructor
  * @param ObjectManager $objectManager
  * @param Reader $fixtureReader
  */
 public function __construct(ObjectManager $objectManager, Reader $fixtureReader)
 {
     parent::__construct($objectManager);
     $this->configuration = $fixtureReader->read('fixture');
 }
 /**
  * @constructor
  * @param ObjectManager $objectManager
  * @param Reader $constraintReader
  */
 public function __construct(ObjectManager $objectManager, Reader $constraintReader)
 {
     $this->objectManager = $objectManager;
     $this->configuration = $constraintReader->read('constraint');
 }