Пример #1
0
 /**
  * Constructor
  *
  * @param Magento_Performance_Config $config
  * @param Magento_Shell $shell
  * @throws Magento_Exception
  */
 public function __construct(Magento_Performance_Config $config, Magento_Shell $shell)
 {
     $installerScript = $config->getApplicationBaseDir() . '/dev/shell/install.php';
     if (!is_file($installerScript)) {
         throw new Magento_Exception("File '{$installerScript}' is not found.");
     }
     $this->_installerScript = realpath($installerScript);
     $this->_config = $config;
     $this->_shell = $shell;
 }
Пример #2
0
 public function testGetApplicationBaseDir()
 {
     $this->assertEquals($this->_appBaseDir, $this->_object->getApplicationBaseDir());
 }