Completed
Push — master ( 692a36...95ce12 )
by Alexis
07:35
created

AppControllerTest::testHome()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Tests\App\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