Completed
Push — master ( 5432fb...a44a55 )
by Peter
22:26
created

PsrControllerTest::testShow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Tests\AppBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
class PsrControllerTest extends WebTestCase
8
{
9
    public function testIndex()
10
    {
11
        $client = static::createClient();
12
13
        $crawler = $client->request('GET', '/psr');
14
15
        $this->assertEquals(200, $client->getResponse()->getStatusCode());
16
        $this->assertContains('Priporočila PHP standardov', $crawler->filter('h1')->text());
17
    }
18
19
    public function testShow()
20
    {
21
        $client = static::createClient();
22
23
        $crawler = $client->request('GET', '/psr/psr-0-standard-avtomatskega-nalagalnika');
24
        $this->assertEquals(200, $client->getResponse()->getStatusCode());
25
        $this->assertContains('Standard avtomatskega nalagalnika', $crawler->filter('h1')->text());
26
    }
27
}
28