Code Duplication    Length = 8-8 lines in 3 locations

Tests/Persister/Event/OnExceptionEventTest.php 1 location

@@ 70-77 (lines=8) @@
67
        $this->assertSame($expectedOptions, $event->getOptions());
68
    }
69
70
    public function testShouldAllowGetObjectsSetInConstructor()
71
    {
72
        $expectedObjects = [new \stdClass(), new \stdClass()];
73
74
        $event = new OnExceptionEvent($this->createPagerMock(), $this->createObjectPersisterMock(), new \Exception(), $expectedObjects, []);
75
76
        $this->assertSame($expectedObjects, $event->getObjects());
77
    }
78
79
    public function testShouldAllowGetExceptionSetInConstructor()
80
    {

Tests/Persister/Event/PostInsertObjectsEventTest.php 1 location

@@ 70-77 (lines=8) @@
67
        $this->assertSame($expectedOptions, $event->getOptions());
68
    }
69
70
    public function testShouldAllowGetObjectsSetInConstructor()
71
    {
72
        $expectedObjects = [new \stdClass(), new \stdClass()];
73
74
        $event = new PostInsertObjectsEvent($this->createPagerMock(), $this->createObjectPersisterMock(), $expectedObjects, []);
75
76
        $this->assertSame($expectedObjects, $event->getObjects());
77
    }
78
79
    /**
80
     * @return ObjectPersisterInterface|\PHPUnit_Framework_MockObject_MockObject

Tests/Persister/Event/PreInsertObjectsEventTest.php 1 location

@@ 100-107 (lines=8) @@
97
        $this->assertSame($expectedOptions, $event->getOptions());
98
    }
99
100
    public function testShouldAllowGetObjectsSetInConstructor()
101
    {
102
        $expectedObjects = [new \stdClass(), new \stdClass()];
103
104
        $event = new PreInsertObjectsEvent($this->createPagerMock(), $this->createObjectPersisterMock(), $expectedObjects, []);
105
106
        $this->assertSame($expectedObjects, $event->getObjects());
107
    }
108
109
    public function testShouldAllowGetPreviouslySetObjects()
110
    {