Example #1
0
 function testTimingUnnamed()
 {
     $timer = new Timing();
     $timer->start();
     $timer->stop();
     $values = $timer->getTestValues();
     $this->assertEquals(1, count($values));
     $this->assertEquals(0, round($values[0], 4), 'Start() then Stop() should be nearly zero');
 }