Test Failed
Push — master ( 52034c...57f1e5 )
by Jean-Bernard
01:57
created

testPageIsSuccessful()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
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 testPageIsSuccessful($url)
20
    {
21
        $this->markTestIncomplete();
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