public/phpmyadmin/test/classes/Rte/TriggersTest.php
/**
     * Data provider for testGetQueryFromRequest
     *
     * @return array
     */
Data provider for testGetQueryFromRequest
@return array
Data provider for testGetQueryFromRequest @return array
public function providerGetQueryFromRequest()
    {
        return array(
            array('',
                '',
                '',
                '',
                '',
                '',
                'CREATE TRIGGER ON  FOR EACH ROW ',
                5
            ),
            array(
                'root',
                'trigger',
                'BEFORE',
                'INSERT',
                'table`2',
                'SET @A=NULL',
                'CREATE TRIGGER `trigger` BEFORE INSERT ON  FOR EACH ROW SET @A=NULL',
                2
            ),
            array(
                'foo`s@host',
                'trigger`s test',
                'AFTER',
                'foo',
                'table3',
                'BEGIN SET @A=1; SET @B=2; END',
                'CREATE DEFINER=`foo``s`@`host` TRIGGER `trigger``s test` AFTER ON  FOR EACH ROW BEGIN SET @A=1; SET @B=2; END',
                2
            ),
            array(
                'root@localhost',
                'trigger',
                'BEFORE',
                'INSERT',
                'table1',
                'SET @A=NULL',
                'CREATE DEFINER=`root`@`localhost` TRIGGER `trigger` BEFORE INSERT ON `table1` FOR EACH ROW SET @A=NULL',
                0
            ),
        );
    }
public function providerGetQueryFromRequest ( ) { return array ( array ( '' , '' , '' , '' , '' , '' , 'CREATE TRIGGER ON  FOR EACH ROW ' , 5 ) , array ( 'root' , 'trigger' , 'BEFORE' , 'INSERT' , 'table`2' , 'SET @A=NULL' , 'CREATE TRIGGER `trigger` BEFORE INSERT ON  FOR EACH ROW SET @A=NULL' , 2 ) , array ( 'foo`s@host' , 'trigger`s test' , 'AFTER' , 'foo' , 'table3' , 'BEGIN SET @A=1; SET @B=2; END' , 'CREATE DEFINER=`foo``s`@`host` TRIGGER `trigger``s test` AFTER ON  FOR EACH ROW BEGIN SET @A=1; SET @B=2; END' , 2 ) , array ( 'root@localhost' , 'trigger' , 'BEFORE' , 'INSERT' , 'table1' , 'SET @A=NULL' , 'CREATE DEFINER=`root`@`localhost` TRIGGER `trigger` BEFORE INSERT ON `table1` FOR EACH ROW SET @A=NULL' , 0 ) , ) ; }
Data provider for testGetQueryFromRequest
 @return array
Data provider for testGetQueryFromRequest @return array