Code Duplication    Length = 13-13 lines in 2 locations

bridge/doctrine-collections/tests/Unit/StoreTest.php 2 locations

@@ 55-67 (lines=13) @@
52
    /**
53
     * It should remove an object.
54
     */
55
    public function testDelete()
56
    {
57
        $store = new Store([
58
            \stdClass::class => [
59
                $target = new \stdClass(),
60
                new \stdClass(),
61
                new \stdClass(),
62
            ],
63
        ]);
64
        $store->remove($target);
65
        $collection = $store->getCollection(\stdClass::class);
66
        $this->assertCount(2, $collection);
67
    }
68
69
    /**
70
     * It should find an object.
@@ 72-84 (lines=13) @@
69
    /**
70
     * It should find an object.
71
     */
72
    public function testFind()
73
    {
74
        $store = new Store([
75
            \stdClass::class => [
76
                $target = new \stdClass(),
77
                new \stdClass(),
78
                new \stdClass(),
79
            ],
80
        ]);
81
        $object = $store->find(\stdClass::class, 0);
82
        $this->assertInstanceOf(\stdClass::class, $object);
83
        $this->assertSame($target, $object);
84
    }
85
86
    /**
87
     * It should say if it has a collection or not.