Code Duplication    Length = 10-10 lines in 3 locations

Tests/Issues/Issue90/Issue90Test.php 3 locations

@@ 30-39 (lines=10) @@
27
        self::assertEquals("2016-11-25 09:53am", $res['data']['echo']);
28
    }
29
30
    public function testQueryDateTimeTypeWithoutParameter()
31
    {
32
        $processor = new Processor(new Issue90Schema());
33
        $processor->processPayload("query{ echo }");
34
        $res = $processor->getResponseData();
35
36
        self::assertCount(1, $res, "Invalid response array received"); //only data expected
37
38
        self::assertNull($res['data']['echo']);
39
    }
40
41
    public function testQueryDateTimeTypeWithNullParameter()
42
    {
@@ 41-50 (lines=10) @@
38
        self::assertNull($res['data']['echo']);
39
    }
40
41
    public function testQueryDateTimeTypeWithNullParameter()
42
    {
43
        $processor = new Processor(new Issue90Schema());
44
        $processor->processPayload("query{ echo(date: null) }");
45
        $res = $processor->getResponseData();
46
47
        self::assertCount(1, $res, "Invalid response array received"); //only data expected
48
49
        self::assertNull($res['data']['echo'], "Error Quering with explicit date null parameter ");
50
    }
51
52
    public function testMutatingDateTimeWithParameter()
53
    {
@@ 66-75 (lines=10) @@
63
        self::assertEquals("2016-11-25 09:53am", $res['data']['echo']);
64
    }
65
66
    public function testMutatingDateTimeWithExplicitNullParameter()
67
    {
68
        $schema = new Issue90Schema();
69
        $processor = new Processor($schema);
70
        $processor->processPayload("mutation{ echo(date: null) }");
71
        $res = $processor->getResponseData();
72
73
        self::assertCount(1, $res, "Invalid response array received"); //only data expected
74
        self::assertNull($res['data']['echo'], "Invalid echo response received during mutation of date parameter with explicit null value");
75
    }
76
}