Code Duplication    Length = 9-10 lines in 2 locations

tests/Kint_ObjectTest.php 2 locations

@@ 304-313 (lines=10) @@
301
        $this->assertEquals('private', $o->getAccess());
302
    }
303
304
    public function testGetName()
305
    {
306
        $o = new Kint_Object();
307
        $o->name = '$var';
308
        $this->assertEquals('$var', $o->getName());
309
        $o->name = '($a + $b)';
310
        $this->assertEquals('($a + $b)', $o->getName());
311
        $o->name = 'This is just a name, nothing more, nothing less.';
312
        $this->assertEquals('This is just a name, nothing more, nothing less.', $o->getName());
313
    }
314
315
    public function testGetOperator()
316
    {
@@ 329-337 (lines=9) @@
326
        $this->assertEquals('::', $o->getOperator());
327
    }
328
329
    public function testGetSize()
330
    {
331
        $o = new Kint_Object();
332
        $this->assertNull($o->getSize());
333
        $o->size = 0;
334
        $this->assertEquals(0, $o->getSize());
335
        $o->size = 42;
336
        $this->assertEquals(42, $o->getSize());
337
    }
338
339
    public function testGetValueShort()
340
    {