original_string: public function printMemoryUsageInfo()
      {
          if (null === $this->memoryBeforeTearDown) {
              throw new \BadMethodCallException('To use measurement features you need to call PHPUnit_Helper::measureMemoryBeforeTearDown() first.');
          }
  
          if (null === $this->memoryAfterTearDown) {
              $this->measureMemoryAfterTearDown();
          }
  
          printf("\n(Memory used before tearDown(): %s)", $this->formatMemory($this->memoryBeforeTearDown));
          printf("\n(Memory used after tearDown(): %s)", $this->formatMemory($this->memoryAfterTearDown));
          printf("\n(Memory saved with tearDown(): %s)\n", $this->formatMemory($this->memoryBeforeTearDown - $this->memoryAfterTearDown));
      }
code: public function printMemoryUsageInfo()
      {
          if (null === $this->memoryBeforeTearDown) {
              throw new \BadMethodCallException('To use measurement features you need to call PHPUnit_Helper::measureMemoryBeforeTearDown() first.');
          }
  
          if (null === $this->memoryAfterTearDown) {
              $this->measureMemoryAfterTearDown();
          }
  
          printf("\n(Memory used before tearDown(): %s)", $this->formatMemory($this->memoryBeforeTearDown));
          printf("\n(Memory used after tearDown(): %s)", $this->formatMemory($this->memoryAfterTearDown));
          printf("\n(Memory saved with tearDown(): %s)\n", $this->formatMemory($this->memoryBeforeTearDown - $this->memoryAfterTearDown));
      }
code_tokens: public function printMemoryUsageInfo ( ) { if ( null === $ this -> memoryBeforeTearDown ) { throw new \ BadMethodCallException ( 'To use measurement features you need to call PHPUnit_Helper::measureMemoryBeforeTearDown() first.' ) ; } if ( null === $ this -> memoryAfterTearDown ) { $ this -> measureMemoryAfterTearDown ( ) ; } printf ( "\n(Memory used before tearDown(): %s)" , $ this -> formatMemory ( $ this -> memoryBeforeTearDown ) ) ; printf ( "\n(Memory used after tearDown(): %s)" , $ this -> formatMemory ( $ this -> memoryAfterTearDown ) ) ; printf ( "\n(Memory saved with tearDown(): %s)\n" , $ this -> formatMemory ( $ this -> memoryBeforeTearDown - $ this -> memoryAfterTearDown ) ) ; }
docstring: Print memory usage info.
docstring_tokens: Print memory usage info .