Code Duplication    Length = 8-9 lines in 2 locations

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

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

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