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

_s34_testPageIsSuccessful()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 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