Completed
Push — master ( c7f650...5022d5 )
by Alexis
01:52 queued 19s
created

CoreControllerTest::testHome()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Tests\App\Controller;
4
5
use Silex\WebTestCase;
6
7
class CoreControllerTest 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