Code Duplication    Length = 7-7 lines in 2 locations

tests/Entities/ImageTest.php 1 location

@@ 74-80 (lines=7) @@
71
     *
72
     * @return array
73
     */
74
    public function constructorBadData()
75
    {
76
        return [
77
            'path is not a string' => [true, 'an extension'],
78
            'extension is not a string' => ['a path', false],
79
        ];
80
    }
81
82
    /**
83
     * Verify basic functionality of fromArray().

tests/Entities/UrlTest.php 1 location

@@ 58-64 (lines=7) @@
55
     *
56
     * @return array
57
     */
58
    public function constructorBadData()
59
    {
60
        return [
61
            'type is not a string' => [true, 'a url'],
62
            'url is not a string' => ['a type', false],
63
        ];
64
    }
65
66
    /**
67
     * Verify invalid constructor parameters cause exceptions.