Skip to content

Commit 5227c73

Browse files
staabmclxmstaab
andauthored
move testsuite into "default" folder (#232)
Co-authored-by: Markus Staab <[email protected]>
1 parent 2227f74 commit 5227c73

38 files changed

+15
-139
lines changed

.phpunit-phpstan-dba.cache

Lines changed: 0 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
},
3030
"autoload-dev": {
3131
"psr-4": {
32-
"staabm\\PHPStanDba\\Tests\\Fixture\\": "tests/Fixture/",
33-
"staabm\\PHPStanDba\\Tests\\": "tests/"
32+
"staabm\\PHPStanDba\\Tests\\Fixture\\": "tests/default/Fixture/",
33+
"staabm\\PHPStanDba\\Tests\\": "tests/default/"
3434
}
3535
},
3636
"scripts": {

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ parameters:
1515
ignoreErrors:
1616
-
1717
message: '#Function Deployer\\runMysqlQuery\(\) should return array<int, array<int, string>>\|null but return statement is missing.#'
18-
path: tests/data/runMysqlQuery.php
18+
path: tests/default/data/runMysqlQuery.php
1919
-
2020
message: '#.*has no return type specified.#'
2121
path: tests/*

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<testsuites>
1616
<testsuite name="PHPStanDba">
17-
<directory suffix="Test.php">tests/</directory>
17+
<directory suffix="Test.php">tests/default/</directory>
1818
</testsuite>
1919
</testsuites>
2020

src/QueryReflection/QuerySimulation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static function simulateParamValueType(Type $paramType, bool $preparedPar
104104
return null;
105105
}
106106

107-
throw new DbaException(sprintf('Unexpected expression type %s', \get_class($paramType)));
107+
throw new DbaException(sprintf('Unexpected expression type %s of class %s', $paramType->describe(VerbosityLevel::precise()), \get_class($paramType)));
108108
}
109109

110110
public static function simulate(string $queryString): ?string

tests/DbaInferenceTest.php renamed to tests/default/DbaInferenceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public function testFileAsserts(
5757
public static function getAdditionalConfigFiles(): array
5858
{
5959
return [
60-
__DIR__.'/../config/stubFiles.neon',
61-
__DIR__.'/../config/extensions.neon',
60+
__DIR__.'/../../config/stubFiles.neon',
61+
__DIR__.'/../../config/extensions.neon',
6262
];
6363
}
6464
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/PdoStatementExecuteMethodRuleTest.php renamed to tests/default/PdoStatementExecuteMethodRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PdoStatementExecuteMethodRuleTest extends AbstractServiceAwareRuleTestCase
1313
{
1414
protected function getRule(): Rule
1515
{
16-
return $this->getRuleFromConfig(PdoStatementExecuteMethodRule::class, __DIR__.'/../config/dba.neon');
16+
return $this->getRuleFromConfig(PdoStatementExecuteMethodRule::class, __DIR__.'/../../config/dba.neon');
1717
}
1818

1919
public function testParameterErrors(): void

0 commit comments

Comments
 (0)