Code Duplication    Length = 9-9 lines in 2 locations

tests/phpunit/tests/term/getTerms.php 2 locations

@@ 2100-2108 (lines=9) @@
2097
2098
        $this->assertEqualSets(array( $t1, $t2, $t3 ), wp_list_pluck($found, 'term_id'));
2099
2100
        foreach ( $found as $f ) {
2101
            if ($t1 == $f->term_id ) {
2102
                $this->assertSame(3, $f->count);
2103
            } elseif ($t2 == $f->term_id ) {
2104
                $this->assertSame(2, $f->count);
2105
            } else {
2106
                $this->assertSame(1, $f->count);
2107
            }
2108
        }
2109
    }
2110
2111
    /**
@@ 2168-2176 (lines=9) @@
2165
2166
        $this->assertEqualSets(array( $t1, $t2, $t3 ), wp_list_pluck($found, 'term_id'));
2167
2168
        foreach ( $found as $f ) {
2169
            if ($t1 == $f->term_id ) {
2170
                $this->assertEquals(1, $f->count);
2171
            } elseif ($t2 == $f->term_id ) {
2172
                $this->assertEquals(2, $f->count);
2173
            } else {
2174
                $this->assertEquals(1, $f->count);
2175
            }
2176
        }
2177
    }
2178
2179
    /**