DefaultControllerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 9
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIndex() 0 7 1
1
<?php
2
3
namespace Afsy\Bundle\TutorialBundle\Tests\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
class DefaultControllerTest extends WebTestCase
8
{
9
    public function testIndex()
10
    {
11
        $client = static::createClient();
12
13
        $crawler = $client->request('GET', '/hello/Fabien');
14
15
        $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
16
    }
17
}
18