Test Failed
Branchmaster (10e90c)
by Alexey
03:40
created

testPageIsSuccessful()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
namespace Skobkin\Bundle\PointToolsBundle\Tests;
4
5
6
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
7
8
class ApplicationAvailabilityFunctionalTest extends WebTestCase
9
{
10
    /**
11
     * @dataProvider urlProvider
12
     */
13
    public function testPageIsSuccessful($url)
14
    {
15
        $client = self::createClient();
16
        $client->request('GET', $url);
17
18
        $this->assertTrue($client->getResponse()->isSuccessful());
19
    }
20
21
    public function urlProvider()
22
    {
23
        return [
24
            ['/'],
25
            ['/users/top'],
26
            ['/events/last'],
27
            ['/user/testuser']
28
        ];
29
    }
30
}