Code Duplication    Length = 17-17 lines in 2 locations

vendor/phpunit/phpunit/tests/Framework/AssertTest.php 2 locations

@@ 43-59 (lines=17) @@
40
    /**
41
     * @covers PHPUnit_Framework_Assert::assertContains
42
     */
43
    public function testAssertSplObjectStorageContainsObject()
44
    {
45
        $a = new stdClass;
46
        $b = new stdClass;
47
        $c = new SplObjectStorage;
48
        $c->attach($a);
49
50
        $this->assertContains($a, $c);
51
52
        try {
53
            $this->assertContains($b, $c);
54
        } catch (PHPUnit_Framework_AssertionFailedError $e) {
55
            return;
56
        }
57
58
        $this->fail();
59
    }
60
61
    /**
62
     * @covers PHPUnit_Framework_Assert::assertContains
@@ 487-503 (lines=17) @@
484
    /**
485
     * @covers PHPUnit_Framework_Assert::assertNotContains
486
     */
487
    public function testAssertSplObjectStorageNotContainsObject()
488
    {
489
        $a = new stdClass;
490
        $b = new stdClass;
491
        $c = new SplObjectStorage;
492
        $c->attach($a);
493
494
        $this->assertNotContains($b, $c);
495
496
        try {
497
            $this->assertNotContains($a, $c);
498
        } catch (PHPUnit_Framework_AssertionFailedError $e) {
499
            return;
500
        }
501
502
        $this->fail();
503
    }
504
505
    /**
506
     * @covers PHPUnit_Framework_Assert::assertNotContains