Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MemoryFactory.php
Go to the documentation of this file.
1 <?php
8 
10 {
14  private $shell;
15 
19  public function __construct(\Magento\Framework\Shell $shell)
20  {
21  $this->shell = $shell;
22  }
23 
29  public function create($memUsageLimit, $memLeakLimit)
30  {
31  return new \Magento\TestFramework\Bootstrap\Memory(
32  new \Magento\TestFramework\MemoryLimit(
33  $memUsageLimit,
34  $memLeakLimit,
35  new \Magento\TestFramework\Helper\Memory($this->shell)
36  )
37  );
38  }
39 }
if(!file_exists($installConfigFile)) if(!defined('TESTS_INSTALLATION_DB_CONFIG_FILE')) $shell
Definition: bootstrap.php:46
create($memUsageLimit, $memLeakLimit)
__construct(\Magento\Framework\Shell $shell)