Code Duplication    Length = 13-13 lines in 7 locations

tests/Framework/DefaultControllerTest.php 3 locations

@@ 16-28 (lines=13) @@
13
14
class DefaultControllerTest extends WebTestCase
15
{
16
    public function _s34_testIndex()
17
    {
18
        $client = static::createClient();
19
20
        $crawler = $client->request('GET', '/');
21
22
        $this->assertSame(
23
            200, // or Symfony\Component\HttpFoundation\Response::HTTP_OK,
24
            $client->getResponse()->getStatusCode()
25
        );
26
27
        $this->assertContains('Hello Component!', $client->getResponse()->getContent());
28
    }
29
30
    public function _s34_testArgument()
31
    {
@@ 30-42 (lines=13) @@
27
        $this->assertContains('Hello Component!', $client->getResponse()->getContent());
28
    }
29
30
    public function _s34_testArgument()
31
    {
32
        $client = static::createClient();
33
34
        $crawler = $client->request('GET', '/argument');
35
36
        $this->assertSame(
37
            200, // or Symfony\Component\HttpFoundation\Response::HTTP_OK,
38
            $client->getResponse()->getStatusCode()
39
        );
40
41
        $this->assertContains('Hello Component!', $client->getResponse()->getContent());
42
    }
43
44
    public function _s34_testConstructor()
45
    {
@@ 44-56 (lines=13) @@
41
        $this->assertContains('Hello Component!', $client->getResponse()->getContent());
42
    }
43
44
    public function _s34_testConstructor()
45
    {
46
        $client = static::createClient();
47
48
        $crawler = $client->request('GET', '/constructor');
49
50
        $this->assertSame(
51
            200, // or Symfony\Component\HttpFoundation\Response::HTTP_OK,
52
            $client->getResponse()->getStatusCode()
53
        );
54
55
        $this->assertContains('Hello Component!', $client->getResponse()->getContent());
56
    }
57
}
58

tests/FrameworkTwig/DefaultControllerTest.php 4 locations

@@ 16-28 (lines=13) @@
13
14
class DefaultControllerTest extends WebTestCase
15
{
16
    public function _s34_testIndex()
17
    {
18
        $client = static::createClient();
19
20
        $crawler = $client->request('GET', '/');
21
22
        $this->assertSame(
23
            200, // or Symfony\Component\HttpFoundation\Response::HTTP_OK,
24
            $client->getResponse()->getStatusCode()
25
        );
26
27
        $this->assertContains('Hello World!', $client->getResponse()->getContent());
28
    }
29
30
    public function _s34_testArgument()
31
    {
@@ 30-42 (lines=13) @@
27
        $this->assertContains('Hello World!', $client->getResponse()->getContent());
28
    }
29
30
    public function _s34_testArgument()
31
    {
32
        $client = static::createClient();
33
34
        $crawler = $client->request('GET', '/argument');
35
36
        $this->assertSame(
37
            200, // or Symfony\Component\HttpFoundation\Response::HTTP_OK,
38
            $client->getResponse()->getStatusCode()
39
        );
40
41
        $this->assertContains('Hello World!', $client->getResponse()->getContent());
42
    }
43
44
    public function _s34_testConstructor()
45
    {
@@ 44-56 (lines=13) @@
41
        $this->assertContains('Hello World!', $client->getResponse()->getContent());
42
    }
43
44
    public function _s34_testConstructor()
45
    {
46
        $client = static::createClient();
47
48
        $crawler = $client->request('GET', '/constructor');
49
50
        $this->assertSame(
51
            200, // or Symfony\Component\HttpFoundation\Response::HTTP_OK,
52
            $client->getResponse()->getStatusCode()
53
        );
54
55
        $this->assertContains('Hello World!', $client->getResponse()->getContent());
56
    }
57
58
    public function _s34_testVariadic()
59
    {
@@ 58-70 (lines=13) @@
55
        $this->assertContains('Hello World!', $client->getResponse()->getContent());
56
    }
57
58
    public function _s34_testVariadic()
59
    {
60
        $client = static::createClient();
61
62
        $crawler = $client->request('GET', '/variadic/request');
63
64
        $this->assertSame(
65
            200, // or Symfony\Component\HttpFoundation\Response::HTTP_OK,
66
            $client->getResponse()->getStatusCode()
67
        );
68
69
        $this->assertContains('Hello World!', $client->getResponse()->getContent());
70
    }
71
}
72