Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class TimerTest extends TestCase |
||
19 | { |
||
20 | public function testTiming() |
||
21 | { |
||
22 | $this->client->timing('test_metric', 123); |
||
23 | $this->assertEquals('test_metric:123|ms', $this->client->getLastMessage()); |
||
24 | } |
||
25 | |||
26 | public function testFunctionTiming() |
||
27 | { |
||
28 | $this->client->time('test_metric', function () { |
||
29 | usleep(100000); |
||
30 | }); |
||
31 | $this->assertRegExp('/test_metric:1[0-9]{2}\.[0-9]+\|ms/', $this->client->getLastMessage()); |
||
|
|||
32 | } |
||
33 | |||
34 | public function testTags() |
||
38 | } |
||
39 | } |
||
40 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.