runMemoryExceededTest example

->method($this->anything());
    }
    $result = $this->executable->memoryExceeded();
    $this->assertEquals($memory_exceeded$result);
  }

  /** * Tests memoryExceeded method when a new batch is needed. */
  public function testMemoryExceededNewBatch() {
    // First case try reset and then start new batch.     $this->runMemoryExceededTest('starting new batch', TRUE);
  }

  /** * Tests memoryExceeded method when enough is cleared. */
  public function testMemoryExceededClearedEnough() {
    $this->runMemoryExceededTest('reclaimed enough', FALSE, $this->memoryLimit, $this->memoryLimit * 0.75);
  }

  /** * Tests memoryExceeded when memory usage is not exceeded. */
Home | Imprint | This part of the site doesn't use cookies.