Completed
Push — sf2.7 ( 18de34...b252b6 )
by Laurent
18:26
created

DefaultControllerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIndex() 0 8 1
1
<?php
2
3
namespace AppBundle\Tests\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
class DefaultControllerTest extends WebTestCase {
8
9
    public function testIndex() {
10
        $client = static::createClient();
11
12
        $crawler = $client->request('GET', '/');
13
14
        $this->assertEquals(200, $client->getResponse()->getStatusCode());
15
        $this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text());
16
    }
17
18
}
19