Code Duplication    Length = 13-13 lines in 2 locations

tests/GraphNode/GraphEdgeTest.php 1 location

@@ 155-167 (lines=13) @@
152
        $this->assertEquals('faz', $field);
153
    }
154
155
    public function testFalseDefaultsWillReturnSameType()
156
    {
157
        $graphEdge = new GraphEdge($this->request, ['foo' => 'bar']);
158
159
        $field = $graphEdge->getField('baz', '');
160
        $this->assertSame('', $field);
161
162
        $field = $graphEdge->getField('baz', 0);
163
        $this->assertSame(0, $field);
164
165
        $field = $graphEdge->getField('baz', false);
166
        $this->assertFalse($field);
167
    }
168
169
    public function testTheKeysFromTheCollectionCanBeReturned()
170
    {

tests/GraphNode/GraphNodeTest.php 1 location

@@ 163-175 (lines=13) @@
160
        $this->assertEquals('faz', $field);
161
    }
162
163
    public function testFalseDefaultsWillReturnSameType()
164
    {
165
        $graphNode = new GraphNode(['foo' => 'bar']);
166
167
        $field = $graphNode->getField('baz', '');
168
        $this->assertSame('', $field);
169
170
        $field = $graphNode->getField('baz', 0);
171
        $this->assertSame(0, $field);
172
173
        $field = $graphNode->getField('baz', false);
174
        $this->assertFalse($field);
175
    }
176
177
    public function testTheKeysFromTheCollectionCanBeReturned()
178
    {