Code Duplication    Length = 10-10 lines in 4 locations

tests/Entities/ComicTest.php 4 locations

@@ 236-245 (lines=10) @@
233
     *
234
     * @return void
235
     */
236
    public function getUrls()
237
    {
238
        $input = self::getTestData();
239
        $comic = new Comic($input);
240
        $this->assertSame(count($input['urls']), count($comic->getUrls()));
241
        foreach ($comic->getUrls() as $key => $url) {
242
            $this->assertSame($input['urls'][$key]['type'], $url->getType());
243
            $this->assertSame($input['urls'][$key]['url'], $url->getUrl());
244
        }
245
    }
246
247
    /**
248
     * Verify basic behavior of getSeries.
@@ 423-432 (lines=10) @@
420
     *
421
     * @return void
422
     */
423
    public function getDates()
424
    {
425
        $input = self::getTestData();
426
        $comic = new Comic($input);
427
        $this->assertSame(count($input['dates']), count($comic->getDates()));
428
        foreach ($comic->getDates() as $key => $date) {
429
            $this->assertSame($input['dates'][$key]['date'], $date->getDate()->format('r'));
430
            $this->assertSame($input['dates'][$key]['type'], $date->getType());
431
        }
432
    }
433
434
    /**
435
     * Verify basic behavior of getPrices.
@@ 441-450 (lines=10) @@
438
     *
439
     * @return void
440
     */
441
    public function getPrices()
442
    {
443
        $input = self::getTestData();
444
        $comic = new Comic($input);
445
        $this->assertSame(count($input['prices']), count($comic->getPrices()));
446
        foreach ($comic->getPrices() as $key => $date) {
447
            $this->assertSame($input['prices'][$key]['price'], $date->getPrice());
448
            $this->assertSame($input['prices'][$key]['type'], $date->getType());
449
        }
450
    }
451
452
    /**
453
     * Verify basic behavior of getThumbnail.
@@ 474-483 (lines=10) @@
471
     *
472
     * @return void
473
     */
474
    public function getImages()
475
    {
476
        $input = self::getTestData();
477
        $comic = new Comic($input);
478
        $this->assertSame(count($input['images']), count($comic->getImages()));
479
        foreach ($comic->getImages() as $key => $image) {
480
            $this->assertSame($input['images'][$key]['path'], $image->getPath());
481
            $this->assertSame($input['images'][$key]['extension'], $image->getExtension());
482
        }
483
    }
484
485
    /**
486
     * Verify basic behavior of findAll().