Definition at line 12 of file MemoryTest.php.
 
◆ setUp()
Definition at line 29 of file MemoryTest.php.
   31         $this->_memoryLimit = $this->createPartialMock(\
Magento\TestFramework\MemoryLimit::class, [
'printStats']);
    32         $this->_activationPolicy = $this->createPartialMock(\stdClass::class, [
'register_shutdown_function']);
    33         $this->_object = new \Magento\TestFramework\Bootstrap\Memory(
    35             [$this->_activationPolicy, 
'register_shutdown_function']
 
 
 
 
◆ tearDown()
Definition at line 39 of file MemoryTest.php.
   41         $this->_memoryLimit = 
null;
    42         $this->_activationPolicy = 
null;
    43         $this->_object = 
null;
  
 
 
◆ testActivateLimitValidation()
      
        
          | testActivateLimitValidation  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 81 of file MemoryTest.php.
   83         $this->_activationPolicy->expects(
    86             'register_shutdown_function'    88             $this->identicalTo([$this->_memoryLimit, 
'validateUsage'])
    90         $this->_object->activateLimitValidation();
  
 
 
◆ testActivateStatsDisplaying()
      
        
          | testActivateStatsDisplaying  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 69 of file MemoryTest.php.
   71         $this->_activationPolicy->expects(
    74             'register_shutdown_function'    76             $this->identicalTo([$this->_object, 
'displayStats'])
    78         $this->_object->activateStatsDisplaying();
  
 
 
◆ testConstructorException()
      
        
          | testConstructorException  | 
          ( | 
           | ) | 
           | 
        
      
 
@expectedException \InvalidArgumentException @expectedExceptionMessage Activation policy is expected to be a callable. 
Definition at line 50 of file MemoryTest.php.
   52         new \Magento\TestFramework\Bootstrap\Memory($this->_memoryLimit, 
'non_existing_callable');
  
 
 
◆ testDisplayStats()
Definition at line 55 of file MemoryTest.php.
   58         $this->expectOutputString(
"{$eol}=== Memory Usage System Stats ==={$eol}Dummy Statistics{$eol}");
    59         $this->_memoryLimit->expects(
    64             $this->returnValue(
'Dummy Statistics')
    66         $this->_object->displayStats();
  
 
 
◆ $_activationPolicy
◆ $_memoryLimit
◆ $_object
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/Bootstrap/MemoryTest.php