Test Failed
Push — master ( 3b0089...62ed45 )
by Jean-Bernard
02:07
created

ApplicationAvailabilityFunctionalTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A urlProvider() 0 8 1
A _s34_testPageIsSuccessful() 0 7 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
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
15
{
16
    /**
17
     * @dataProvider urlProvider
18
     */
19
    public function _s34_testPageIsSuccessful($url)
20
    {
21
        $client = self::createClient();
22
        $client->request('GET', $url);
23
24
        $this->assertTrue($client->getResponse()->isSuccessful());
25
    }
26
27
    public function urlProvider()
28
    {
29
        return [
30
            ['/'],
31
            ['/argument'],
32
            ['/constructor'],
33
        ];
34
    }
35
}
36