Code Duplication    Length = 11-11 lines in 3 locations

_test/syntax.test.php 1 location

@@ 66-76 (lines=11) @@
63
        }
64
    }
65
66
    public function tearDown() {
67
        parent::tearDown();
68
69
        global $conf;
70
        // try to get the debug log after running the test, print and clear
71
        if($conf['allowdebug']) {
72
            print "\n";
73
            readfile(DOKU_TMP_DATA.'cache/debug.log');
74
            unlink(DOKU_TMP_DATA.'cache/debug.log');
75
        }
76
    }
77
78
    public function testIndex() {
79
        $query = array('ross');

_test/syntax_exclude.test.php 1 location

@@ 64-74 (lines=11) @@
61
        }
62
    }
63
64
    public function tearDown() {
65
        parent::tearDown();
66
67
        global $conf;
68
        // try to get the debug log after running the test, print and clear
69
        if($conf['allowdebug']) {
70
            print "\n";
71
            readfile(DOKU_TMP_DATA.'cache/debug.log');
72
            unlink(DOKU_TMP_DATA.'cache/debug.log');
73
        }
74
    }
75
76
77
    public function testExclude() {

_test/syntax_include.test.php 1 location

@@ 64-74 (lines=11) @@
61
        }
62
    }
63
64
    public function tearDown() {
65
        parent::tearDown();
66
67
        global $conf;
68
        // try to get the debug log after running the test, print and clear
69
        if($conf['allowdebug']) {
70
            print "\n";
71
            readfile(DOKU_TMP_DATA.'cache/debug.log');
72
            unlink(DOKU_TMP_DATA.'cache/debug.log');
73
        }
74
    }
75
76
    public function testInclude() {
77
        $request = new TestRequest();