Skip to content

Commit

Permalink
Make PHPCS happy.
Browse files Browse the repository at this point in the history
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
  • Loading branch information
Tithugues committed Aug 25, 2015
1 parent b8475ef commit 6ff6738
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions test/libraries/rte/PMA_EVN_getQueryFromRequest_test.php
Expand Up @@ -69,7 +69,8 @@ public function provider()
'item_execute_at' => '2050-01-01 00:00:00',
'item_definition' => 'SET @A=0;'
),
'CREATE EVENT `s o m e e v e n t\` ON SCHEDULE AT \'2050-01-01 00:00:00\' ON COMPLETION NOT PRESERVE DO SET @A=0;',
'CREATE EVENT `s o m e e v e n t\` ON SCHEDULE AT \'2050-01-01 ' .
'00:00:00\' ON COMPLETION NOT PRESERVE DO SET @A=0;',
0
),
array(
Expand All @@ -82,7 +83,8 @@ public function provider()
'item_status' => 'ENABLED',
'item_definition' => 'SET @A=0;'
),
'CREATE DEFINER=`me`@`home` EVENT `evn` ON SCHEDULE AT \'2050-01-01 00:00:00\' ON COMPLETION PRESERVE ENABLE DO SET @A=0;',
'CREATE DEFINER=`me`@`home` EVENT `evn` ON SCHEDULE AT ' .
'\'2050-01-01 00:00:00\' ON COMPLETION PRESERVE ENABLE DO SET @A=0;',
0
),
array(
Expand All @@ -94,7 +96,8 @@ public function provider()
'item_status' => 'DISABLED',
'item_definition' => 'SET @A=0;'
),
'CREATE EVENT `rec_````evn` ON SCHEDULE EVERY 365 DAY ON COMPLETION NOT PRESERVE DISABLE DO SET @A=0;',
'CREATE EVENT `rec_````evn` ON SCHEDULE EVERY 365 DAY ON ' .
'COMPLETION NOT PRESERVE DISABLE DO SET @A=0;',
0
),
array(
Expand All @@ -110,7 +113,9 @@ public function provider()
'item_status' => 'SLAVESIDE_DISABLED',
'item_definition' => 'SET @A=0;'
),
'CREATE DEFINER=`evil````user><\`@`work\` EVENT `rec_evn2` ON SCHEDULE EVERY 365 DAY STARTS \'1900-01-01\' ENDS \'2050-01-01\' ON COMPLETION PRESERVE DISABLE ON SLAVE DO SET @A=0;',
'CREATE DEFINER=`evil````user><\`@`work\` EVENT `rec_evn2` ON ' .
'SCHEDULE EVERY 365 DAY STARTS \'1900-01-01\' ENDS \'2050-01-01\' ' .
'ON COMPLETION PRESERVE DISABLE ON SLAVE DO SET @A=0;',
0
),
// Testing failures
Expand All @@ -128,7 +133,8 @@ public function provider()
'item_execute_at' => '', // no execution time
'item_definition' => 'SET @A=0;'
),
'CREATE EVENT `s o m e e v e n t\` ON SCHEDULE ON COMPLETION NOT PRESERVE DO SET @A=0;',
'CREATE EVENT `s o m e e v e n t\` ON SCHEDULE ON COMPLETION NOT ' .
'PRESERVE DO SET @A=0;',
2
),
array(
Expand All @@ -140,7 +146,8 @@ public function provider()
'item_status' => 'DISABLED',
'item_definition' => 'SET @A=0;'
),
'CREATE EVENT `rec_````evn` ON SCHEDULE ON COMPLETION NOT PRESERVE DISABLE DO SET @A=0;',
'CREATE EVENT `rec_````evn` ON SCHEDULE ON COMPLETION NOT ' .
'PRESERVE DISABLE DO SET @A=0;',
1
),
array(
Expand All @@ -152,7 +159,8 @@ public function provider()
'item_status' => 'DISABLED',
'item_definition' => 'SET @A=0;'
),
'CREATE EVENT `rec_````evn` ON SCHEDULE ON COMPLETION NOT PRESERVE DISABLE DO SET @A=0;',
'CREATE EVENT `rec_````evn` ON SCHEDULE ON COMPLETION NOT ' .
'PRESERVE DISABLE DO SET @A=0;',
1
),
);
Expand Down

0 comments on commit 6ff6738

Please sign in to comment.