Code Duplication    Length = 10-10 lines in 2 locations

vendor/phpunit/phpunit/src/Framework/Assert.php 2 locations

@@ 2205-2214 (lines=10) @@
2202
     * @deprecated
2203
     * @codeCoverageIgnore
2204
     */
2205
    public static function assertTag($matcher, $actual, $message = '', $isHtml = true)
2206
    {
2207
        trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED);
2208
2209
        $dom     = PHPUnit_Util_XML::load($actual, $isHtml);
2210
        $tags    = PHPUnit_Util_XML::findNodes($dom, $matcher, $isHtml);
2211
        $matched = count($tags) > 0 && $tags[0] instanceof DOMNode;
2212
2213
        self::assertTrue($matched, $message);
2214
    }
2215
2216
    /**
2217
     * This assertion is the exact opposite of assertTag().
@@ 2231-2240 (lines=10) @@
2228
     * @deprecated
2229
     * @codeCoverageIgnore
2230
     */
2231
    public static function assertNotTag($matcher, $actual, $message = '', $isHtml = true)
2232
    {
2233
        trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED);
2234
2235
        $dom     = PHPUnit_Util_XML::load($actual, $isHtml);
2236
        $tags    = PHPUnit_Util_XML::findNodes($dom, $matcher, $isHtml);
2237
        $matched = count($tags) > 0 && $tags[0] instanceof DOMNode;
2238
2239
        self::assertFalse($matched, $message);
2240
    }
2241
2242
    /**
2243
     * Evaluates a PHPUnit_Framework_Constraint matcher object.