Passed
Pull Request — master (#311)
by William
12:43
created

AlterStatementTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 17
c 1
b 0
f 0
dl 0
loc 29
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testAlter() 0 3 1
A alterProvider() 0 17 1
1
<?php
2
3
namespace PhpMyAdmin\SqlParser\Tests\Parser;
4
5
use PhpMyAdmin\SqlParser\Tests\TestCase;
6
7
class AlterStatementTest extends TestCase
8
{
9
    /**
10
     * @dataProvider alterProvider
11
     *
12
     * @param mixed $test
13
     */
14
    public function testAlter($test)
15
    {
16
        $this->runParserTest($test);
17
    }
18
19
    public function alterProvider()
20
    {
21
        return array(
22
            array('parser/parseAlter'),
23
            array('parser/parseAlter2'),
24
            array('parser/parseAlter3'),
25
            array('parser/parseAlter4'),
26
            array('parser/parseAlter5'),
27
            array('parser/parseAlter6'),
28
            array('parser/parseAlter7'),
29
            array('parser/parseAlter8'),
30
            array('parser/parseAlter9'),
31
            array('parser/parseAlter10'),
32
            array('parser/parseAlterErr'),
33
            array('parser/parseAlterErr2'),
34
            array('parser/parseAlterErr3'),
35
            array('parser/parseAlterWithInvisible')
36
        );
37
    }
38
}
39