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

ProfilerTest::testShowProfiler()   A

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
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