Scientist\Result::setEndMemory PHP Method

setEndMemory() public method

Set the callback execution ending memory usage.
public setEndMemory ( float $endMemory )
$endMemory float
    public function setEndMemory($endMemory)
    {
        $this->endMemory = $endMemory;
        return $this;
    }

Usage Example

コード例 #1
0
ファイル: ResultTest.php プロジェクト: vantoozz/scientist
 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::setEndMemory