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