Scientist\Result::setStartMemory PHP Method

setStartMemory() public method

Set the callback execution starting memory usage.
public setStartMemory ( float $startMemory )
$startMemory float
    public function setStartMemory($startMemory)
    {
        $this->startMemory = $startMemory;
        return $this;
    }

Usage Example

Example #1
0
 public function test_result_can_have_total_memory_usage()
 {
     $r = new Result();
     $r->setStartMemory(2);
     $r->setEndMemory(5);
     $this->assertEquals(3, $r->getMemory());
 }
All Usage Examples Of Scientist\Result::setStartMemory