Code Duplication    Length = 8-9 lines in 2 locations

eZ/Publish/Core/MVC/Symfony/View/Tests/ContentViewTest.php 1 location

@@ 70-77 (lines=8) @@
67
        new ContentView($templateIdentifier);
68
    }
69
70
    public function constructFailProvider()
71
    {
72
        return [
73
            [123],
74
            [new \stdClass()],
75
            [[1, 2, 3]],
76
        ];
77
    }
78
79
    protected function createViewUnderTest($template = null, array $parameters = [], $viewType = 'full'): View
80
    {

eZ/Publish/Core/MVC/Symfony/View/Tests/AbstractViewTest.php 1 location

@@ 143-151 (lines=9) @@
140
        $contentView->setTemplateIdentifier($badTemplateIdentifier);
141
    }
142
143
    public function badTemplateIdentifierProvider(): array
144
    {
145
        return [
146
            [123],
147
            [true],
148
            [new \stdClass()],
149
            [['foo', 'bar']],
150
        ];
151
    }
152
}
153