Code Duplication    Length = 8-8 lines in 2 locations

tests/php/View/ContentNegotiatorTest.php 1 location

@@ 18-25 (lines=8) @@
15
     * Small helper to render templates from strings
16
     * Cloned from SSViewerTest
17
     */
18
    private function render($templateString, $data = null)
19
    {
20
        $t = SSViewer::fromString($templateString);
21
        if (!$data) {
22
            $data = new TestFixture();
23
        }
24
        return $t->process($data);
25
    }
26
27
    public function testXhtmltagReplacement()
28
    {

tests/php/View/SSViewerTest.php 1 location

@@ 180-187 (lines=8) @@
177
     * @param  bool   $cacheTemplate
178
     * @return string
179
     */
180
    public function render($templateString, $data = null, $cacheTemplate = false)
181
    {
182
        $t = SSViewer::fromString($templateString, $cacheTemplate);
183
        if (!$data) {
184
            $data = new SSViewerTest\TestFixture();
185
        }
186
        return trim(''.$t->process($data));
187
    }
188
189
    public function testRequirements()
190
    {