Code Duplication    Length = 8-8 lines in 3 locations

spec/Fenos/Notifynder/Builder/NotifynderBuilderSpec.php 3 locations

@@ 174-181 (lines=8) @@
171
        };
172
    }
173
174
    public function it_create_empty_array_loop_builder()
175
    {
176
        $closure = function (NotifynderBuilder $builder, $data, $key) {
177
            return $builder->to(1)->from(2)->url('notifynder.io')->category(1);
178
        };
179
        $this->shouldThrow(IterableIsEmptyException::class)->during('loop', [[], $closure]);
180
    }
181
182
    public function it_create_empty_collection_loop_builder()
183
    {
184
        $closure = function (NotifynderBuilder $builder, $data, $key) {
@@ 182-189 (lines=8) @@
179
        $this->shouldThrow(IterableIsEmptyException::class)->during('loop', [[], $closure]);
180
    }
181
182
    public function it_create_empty_collection_loop_builder()
183
    {
184
        $closure = function (NotifynderBuilder $builder, $data, $key) {
185
            return $builder->to(1)->from(2)->url('notifynder.io')->category(1);
186
        };
187
        $this->shouldThrow(IterableIsEmptyException::class)->during('loop', [new Collection([]), $closure]);
188
    }
189
190
    public function it_create_not_iterable_loop_builder()
191
    {
192
        $closure = function (NotifynderBuilder $builder, $data, $key) {
@@ 190-197 (lines=8) @@
187
        $this->shouldThrow(IterableIsEmptyException::class)->during('loop', [new Collection([]), $closure]);
188
    }
189
190
    public function it_create_not_iterable_loop_builder()
191
    {
192
        $closure = function (NotifynderBuilder $builder, $data, $key) {
193
            return $builder->to(1)->from(2)->url('notifynder.io')->category(1);
194
        };
195
        $this->shouldThrow(EntityNotIterableException::class)->during('loop', ['hello world', $closure]);
196
    }
197
}
198