/** * 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; }
public function testGetApplicationBaseDir() { $this->assertEquals($this->_appBaseDir, $this->_object->getApplicationBaseDir()); }