Completed
Push — master ( 5022d5...4886b8 )
by Alexis
06:42
created

AppControllerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testHome() 0 8 1
A createApplication() 0 4 1
1
<?php
2
3
namespace Tests\Controller;
4
5
use Silex\WebTestCase;
6
7
class AppControllerTest extends WebTestCase
8
{
9
    public function testHome()
10
    {
11
        $client = $this->createClient();
12
        $client->request('GET', '/');
13
14
        $this->assertTrue($client->getResponse()->isOk());
15
        $this->assertContains('<h1 class="ui header">Home</h1>', $client->getResponse()->getContent());
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function createApplication()
22
    {
23
        return require __DIR__ . '/../app.php';
24
    }
25
}
26