ProfilerTest::testShowProfiler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Http\HttplugBundle\Tests\Functional;
6
7
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
8
9
class ProfilerTest extends WebTestCase
10
{
11
    /**
12
     * @group legacy
13
     */
14
    public function testShowProfiler(): void
15
    {
16
        $client = static::createClient();
17
18
        //Browse any page to get a profile
19
        $client->request('GET', '/');
20
21
        $client->request('GET', '/_profiler/latest?panel=httplug');
22
        $content = $client->getResponse()->getContent();
23
        $this->assertTrue(false !== strpos($content, '<h2>HTTPlug</h2>'));
24
    }
25
}
26