ApplicationAvailabilityFunctionalTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testPageIsSuccessful() 0 8 1
A urlProvider() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the Symfony-Util package.
5
 *
6
 * (c) Jean-Bernard Addor
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
13
14
class ApplicationAvailabilityFunctionalTest extends WebTestCase
15
{
16
    /**
17
     * @dataProvider urlProvider
18
     */
19
    public function testPageIsSuccessful($url)
20
    {
21
        $this->markTestIncomplete(); // Test does not work any more with Symfony 3.4
22
        $client = self::createClient();
23
        $client->request('GET', $url);
24
25
        $this->assertTrue($client->getResponse()->isSuccessful());
26
    }
27
28
    public function urlProvider()
29
    {
30
        return [
31
            ['/'],
32
            ['/argument'],
33
            ['/constructor'],
34
        ];
35
    }
36
}
37