예제 #1
0
 public function testGenerateForConstructor()
 {
     $generatorMock = $this->getMock('Magento_Di_Generator', array('generateClass'), array(), '', false);
     foreach ($this->_expectedArguments as $order => $class) {
         $generatorMock->expects($this->at($order))->method('generateClass')->with($class);
     }
     $classGenerator = new Magento_Di_Generator_Class($generatorMock);
     $classGenerator->generateForConstructor(self::TEST_CLASS_NAME);
 }
예제 #2
0
 /**
  * @param string $class
  * @return array|string
  */
 public function getInstantiator($class)
 {
     $this->_classGenerator->generateForConstructor($class);
     return parent::getInstantiator($class);
 }
예제 #3
0
 /**
  * @param string $class
  */
 protected function processClass($class)
 {
     $this->_classGenerator->generateForConstructor($class);
     parent::processClass($class);
 }