Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2757,6 +2757,12 @@ parameters:
count: 1
path: tests/Utils/BufferedQueryTest.php

-
message: '#^Attribute class PHPUnit\\Framework\\Attributes\\AllowMockObjectsWithoutExpectations does not exist\.$#'
identifier: attribute.notFound
count: 1
path: tests/Utils/CLITest.php

-
message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertEquals\(\)\.$#'
identifier: staticMethod.dynamicCall
Expand Down
5 changes: 5 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,11 @@
<code><![CDATA[unserialize]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/Utils/CLITest.php">
<UndefinedAttributeClass>
<code><![CDATA[AllowMockObjectsWithoutExpectations]]></code>
</UndefinedAttributeClass>
</file>
<file src="tests/Utils/QueryTest.php">
<PossiblyNullArgument>
<code><![CDATA[$parser->list]]></code>
Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/CLITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

use PhpMyAdmin\SqlParser\Tests\TestCase;
use PhpMyAdmin\SqlParser\Utils\CLI;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use PHPUnit\Framework\Attributes\DataProvider;

use function dirname;
use function exec;

use const PHP_BINARY;

#[AllowMockObjectsWithoutExpectations]
class CLITest extends TestCase
{
/** @param array<string, bool|string>|false $getopt */
Expand Down
Loading