Code Duplication    Length = 13-13 lines in 2 locations

Tests/Issues/Issue90/Issue90Test.php 2 locations

@@ 16-28 (lines=13) @@
13
class Issue90Test extends \PHPUnit_Framework_TestCase
14
{
15
16
    public function testQueryDateTimeTypeWithDateParameter()
17
    {
18
        $schema = new Issue90Schema();
19
        $processor = new Processor($schema);
20
        $processor->processPayload("query{ echo(date: \"2016-11-25 09:53am\") }");
21
        $res = $processor->getResponseData();
22
23
        self::assertCount(1, $res, "Invalid response array received"); //only data expected
24
25
        self::assertNotNull($res['data']['echo'], "Invalid echo response received");
26
27
        self::assertEquals("2016-11-25 09:53am", $res['data']['echo']);
28
    }
29
30
    public function testQueryDateTimeTypeWithoutParameter()
31
    {
@@ 52-64 (lines=13) @@
49
        self::assertNull($res['data']['echo'], "Error Quering with explicit date null parameter ");
50
    }
51
52
    public function testMutatingDateTimeWithParameter()
53
    {
54
        $schema = new Issue90Schema();
55
        $processor = new Processor($schema);
56
        $processor->processPayload("mutation{ echo(date: \"2016-11-25 09:53am\") }");
57
        $res = $processor->getResponseData();
58
59
        self::assertCount(1, $res, "Invalid response array received"); //only data expected
60
61
        self::assertNotNull($res['data']['echo'], "Invalid echo response received during mutation of date parameter");
62
63
        self::assertEquals("2016-11-25 09:53am", $res['data']['echo']);
64
    }
65
66
    public function testMutatingDateTimeWithExplicitNullParameter()
67
    {