UTBenchmark Class Reference
[Unit Tests - Unit tests for all classes/functions in fareofficelib.]

Unit test for all functions in Benchmark.php. More...

List of all members.

Public Member Functions

 doTest ()

Private Member Functions

 _testBenchmark ()


Detailed Description

Unit test for all functions in Benchmark.php.

Author:
Daniel Lindh <[email protected]>

Definition at line 8 of file UTBenchmark.class.php.


Member Function Documentation

UTBenchmark::_testBenchmark (  )  [private]

Definition at line 15 of file UTBenchmark.class.php.

Referenced by doTest().

00016   {
00017     $timer = new Benchmark();
00018 
00019     $this->setSectionLabel('Benchmark');
00020     $timer->start();
00021     $timer->stop();
00022 
00023     $this->setSectionLabel('getElapsedTime');
00024     eval($this->needDate('$timer->getStartTime()'));
00025     eval($this->needDate('$timer->getStopTime()'));
00026     eval($this->needDate('$timer->getElapsedTime()'));
00027   }

UTBenchmark::doTest (  ) 

Definition at line 10 of file UTBenchmark.class.php.

References _testBenchmark().

00011   {
00012     $this->_testBenchmark();
00013   }


The documentation for this class was generated from the following file:

Generated on Wed May 6 23:28:24 2009 for fareofficelib by  doxygen 1.5.8