Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 308-319 (lines=12) @@
305
    /**
306
     * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
307
     */
308
    public function testAssertArrayNotHasIntegerKey()
309
    {
310
        $this->assertArrayNotHasKey(1, array('foo'));
311
312
        try {
313
            $this->assertArrayNotHasKey(0, array('foo'));
314
        } catch (PHPUnit_Framework_AssertionFailedError $e) {
315
            return;
316
        }
317
318
        $this->fail();
319
    }
320
321
    /**
322
     * @covers PHPUnit_Framework_Assert::assertArrayHasKey
@@ 340-351 (lines=12) @@
337
    /**
338
     * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
339
     */
340
    public function testAssertArrayNotHasStringKey()
341
    {
342
        $this->assertArrayNotHasKey('bar', array('foo' => 'bar'));
343
344
        try {
345
            $this->assertArrayNotHasKey('foo', array('foo' => 'bar'));
346
        } catch (PHPUnit_Framework_AssertionFailedError $e) {
347
            return;
348
        }
349
350
        $this->fail();
351
    }
352
353
    /**
354
     * @covers PHPUnit_Framework_Assert::assertArrayHasKey