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));
    }
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));
    }
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 ) ) ; }
Print memory usage info.
Print memory usage info .