summaryrefslogtreecommitdiffstats
path: root/tests/Parser/ReplaceStatementTest.php
blob: a3551bcbf2eee92a992c977b4d9ef9fb021c3318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

namespace PhpMyAdmin\SqlParser\Tests\Parser;

use PhpMyAdmin\SqlParser\Tests\TestCase;

class ReplaceStatementTest extends TestCase
{
    /**
     * @dataProvider testReplaceProvider
     *
     * @param mixed $test
     */
    public function testReplace($test)
    {
        $this->runParserTest($test);
    }

    public function testReplaceProvider()
    {
        return array(
            array('parser/parseReplace'),
            array('parser/parseReplace2'),
            array('parser/parseReplaceValues'),
            array('parser/parseReplaceSet'),
            array('parser/parseReplaceSelect'),
            array('parser/parseReplaceErr'),
            array('parser/parseReplaceErr2'),
            array('parser/parseReplaceErr3'),
            array('parser/parseReplaceIntoErr'),
        );
    }
}