Code Duplication    Length = 16-16 lines in 2 locations

tests/Component/DefaultControllerTest.php 1 location

@@ 14-29 (lines=16) @@
11
12
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
13
14
class DefaultControllerTest extends WebTestCase
15
{
16
    public function 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

tests/Framework/DefaultControllerTest.php 1 location

@@ 14-29 (lines=16) @@
11
12
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
13
14
class DefaultControllerTest extends WebTestCase
15
{
16
    public function 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