| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 24 | public function testGetReadableTime() |
||
| 25 | { |
||
| 26 | $test_input = array( |
||
| 27 | '.032432' => '32.432 ms', |
||
| 28 | '24.3781' => '24.378 s', |
||
| 29 | '145.123' => '2.419 m' |
||
| 30 | ); |
||
| 31 | |||
| 32 | foreach ($test_input as $input => $expected_return) { |
||
| 33 | $this->assertEquals($expected_return, PhpQuickProfiler::getReadableTime($input)); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.