| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 12 |
| Ratio | 100 % |
| 1 | <?php |
||
| 8 | View Code Duplication | public function testGetReadableTime() |
|
|
1 ignored issue
–
show
|
|||
| 9 | { |
||
| 10 | $test_input = array( |
||
| 11 | '.032432' => '32.432 ms', |
||
| 12 | '24.3781' => '24.378 s', |
||
| 13 | '145.123' => '2.419 m' |
||
| 14 | ); |
||
| 15 | |||
| 16 | foreach ($test_input as $input => $expected_return) { |
||
| 17 | $this->assertEquals($expected_return, Display::getReadableTime($input)); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 34 |
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.