diff options
Diffstat (limited to 'test/libraries/rte/PMA_RTN_ParameterParser_test.php')
-rw-r--r-- | test/libraries/rte/PMA_RTN_ParameterParser_test.php | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/test/libraries/rte/PMA_RTN_ParameterParser_test.php b/test/libraries/rte/PMA_RTN_ParameterParser_test.php index 2ee03142ac..cfced81a20 100644 --- a/test/libraries/rte/PMA_RTN_ParameterParser_test.php +++ b/test/libraries/rte/PMA_RTN_ParameterParser_test.php @@ -114,120 +114,5 @@ class PMA_RTN_ParameterParser_Test extends PHPUnit_Framework_TestCase ) ); } - - /** - * Test for PMA_RTN_parseAllParameters - * - * @param string $query Query - * @param string $type Type - * @param array $target Expected output - * - * @return void - * - * @depends testParseOneParameter - * @dataProvider queryProvider - */ - public function testParseAllParameters($query, $type, $target) - { - PMA_RTN_setGlobals(); - $this->assertEquals( - $target, - PMA_RTN_parseAllParameters(PMA_SQP_parse($query), $type) - ); - } - - /** - * Data provider for testParseAllParameters - * - * @return array - */ - public function queryProvider() - { - return array( - array( - 'CREATE PROCEDURE `foo`() SET @A=0', - 'PROCEDURE', - array( - 'num' => 0, - 'dir' => array(), - 'name' => array(), - 'type' => array(), - 'length' => array(), - 'opts' => array() - ) - ), - array( - 'CREATE DEFINER=`user\\`@`somehost``(` FUNCTION `foo```(`baz` INT) BEGIN SELECT NULL; END', - 'FUNCTION', - array( - 'num' => 1, - 'dir' => array( - 0 => '' - ), - 'name' => array( - 0 => 'baz' - ), - 'type' => array( - 0 => 'INT' - ), - 'length' => array( - 0 => '' - ), - 'opts' => array( - 0 => '' - ) - ) - ), - array( - 'CREATE PROCEDURE `foo`(IN `baz\\)` INT(25) zerofill unsigned) BEGIN SELECT NULL; END', - 'PROCEDURE', - array( - 'num' => 1, - 'dir' => array( - 0 => 'IN' - ), - 'name' => array( - 0 => 'baz\\)' - ), - 'type' => array( - 0 => 'INT' - ), - 'length' => array( - 0 => '25' - ), - 'opts' => array( - 0 => 'UNSIGNED ZEROFILL' - ) - ) - ), - array( - 'CREATE PROCEDURE `foo`(IN `baz\\` INT(001) zerofill, out bazz varchar(15) charset UTF8) BEGIN SELECT NULL; END', - 'PROCEDURE', - array( - 'num' => 2, - 'dir' => array( - 0 => 'IN', - 1 => 'OUT' - ), - 'name' => array( - 0 => 'baz\\', - 1 => 'bazz' - ), - 'type' => array( - 0 => 'INT', - 1 => 'VARCHAR' - ), - 'length' => array( - 0 => '1', - 1 => '15' - ), - 'opts' => array( - 0 => 'ZEROFILL', - 1 => 'utf8' - ) - ) - ), - ); - } } ?> |