* Update sqlparser to fit php8.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\SqlParser\Tests\Misc;
|
||||
|
||||
use PhpMyAdmin\SqlParser\Tests\TestCase;
|
||||
@@ -8,26 +10,40 @@ class BugsTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider bugProvider
|
||||
*
|
||||
* @param mixed $test
|
||||
*/
|
||||
public function testBug($test)
|
||||
public function testBug(string $test): void
|
||||
{
|
||||
$this->runParserTest($test);
|
||||
}
|
||||
|
||||
public function bugProvider()
|
||||
/**
|
||||
* @return string[][]
|
||||
*/
|
||||
public function bugProvider(): array
|
||||
{
|
||||
return array(
|
||||
array('bugs/gh9'),
|
||||
array('bugs/gh14'),
|
||||
array('bugs/gh16'),
|
||||
array('bugs/gh317'),
|
||||
array('bugs/pma11800'),
|
||||
array('bugs/pma11836'),
|
||||
array('bugs/pma11843'),
|
||||
array('bugs/pma11867'),
|
||||
array('bugs/pma11879')
|
||||
);
|
||||
return [
|
||||
['bugs/fuzz1'],
|
||||
['bugs/fuzz2'],
|
||||
['bugs/fuzz3'],
|
||||
['bugs/fuzz4'],
|
||||
['bugs/gh9'],
|
||||
['bugs/gh14'],
|
||||
['bugs/gh16'],
|
||||
['bugs/gh202'],
|
||||
['bugs/gh234'],
|
||||
['bugs/gh317'],
|
||||
['bugs/gh412'],
|
||||
['bugs/gh478'],
|
||||
['bugs/gh492'],
|
||||
['bugs/gh496'],
|
||||
['bugs/gh498'],
|
||||
['bugs/gh499'],
|
||||
['bugs/gh508'],
|
||||
['bugs/gh511'],
|
||||
['bugs/pma11800'],
|
||||
['bugs/pma11836'],
|
||||
['bugs/pma11843'],
|
||||
['bugs/pma11879'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user