Completed
Push — master ( b587fb...d05392 )
by David
20:34
created

ProfilerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testShowProfiler() 0 11 1
1
<?php
2
3
namespace Http\HttplugBundle\Tests\Functional;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
class ProfilerTest extends WebTestCase
8
{
9
    public function testShowProfiler()
10
    {
11
        $client = static::createClient();
12
13
        //Browse any page to get a profile
14
        $client->request('GET', '/');
15
16
        $client->request('GET', '/_profiler/latest?panel=httplug');
17
        $content = $client->getResponse()->getContent();
18
        $this->assertTrue(false !== strpos($content, '<h2>HTTPlug</h2>'));
19
    }
20
}
21