ProfilerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testShowProfiler() 0 11 1
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