/**
  * Tests the getMemoryMegaBytes method.
  *
  * @return  void
  *
  * @covers  \Joomla\Profiler\ProfilePoint::getMemoryMegaBytes
  * @since   1.0
  */
 public function testGetMemoryMegaBytes()
 {
     $profilePoint = new ProfilePoint('test', 0, 0);
     $this->assertEquals($profilePoint->getMemoryMegaBytes(), 0);
     $profilePoint = new ProfilePoint('test', 0, 1048576);
     $this->assertEquals($profilePoint->getMemoryMegaBytes(), 1);
 }
Exemplo n.º 2
0
 /**
  * @covers  \Joomla\Profiler\ProfilePoint::getMemoryMegaBytes
  */
 public function testThePointMemoryIsReturnedInMegabytes()
 {
     $profilePoint = new ProfilePoint('test', 0, 1048576);
     $this->assertEquals($profilePoint->getMemoryMegaBytes(), 1);
 }