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

SetStatementTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setProvider() 0 12 1
A testSet() 0 3 1
1
<?php
2
3
namespace PhpMyAdmin\SqlParser\Tests\Parser;
4
5
use PhpMyAdmin\SqlParser\Tests\TestCase;
6
7
class SetStatementTest extends TestCase
8
{
9
    /**
10
     * @dataProvider setProvider
11
     *
12
     * @param mixed $test
13
     */
14
    public function testSet($test)
15
    {
16
        $this->runParserTest($test);
17
    }
18
19
    public function setProvider()
20
    {
21
        return array(
22
            array('parser/parseSetCharset'),
23
            array('parser/parseSetCharsetError'),
24
            array('parser/parseSetCharacterSet'),
25
            array('parser/parseSetCharacterSetError'),
26
            array('parser/parseAlterTableSetAutoIncrementError'),
27
            array('parser/parseSetNames'),
28
            array('parser/parseSetNamesError'),
29
            array('parser/parseSetError1'),
30
            array('parser/parseInsertIntoSet')
31
        );
32
    }
33
}
34