Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function testSearchProductsActionSuccess() |
||
10 | { |
||
11 | $client = static::createClient(); |
||
12 | |||
13 | $client->request('GET', '/metrics/prometheus'); |
||
14 | self::assertResponseIsSuccessful(); |
||
15 | $content = $client->getResponse()->getContent(); |
||
16 | $expected = "# HELP php_info Information about the PHP environment.\n# TYPE php_info gauge\nphp_info{version=\"%s\"} 1"; |
||
17 | self::assertContains( |
||
18 | sprintf($expected, PHP_VERSION), |
||
19 | trim($content) |
||
|
|||
20 | ); |
||
22 | } |