-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from vierge-noire/cake5
Cake5 compatibility
- Loading branch information
Showing
32 changed files
with
150 additions
and
1,020 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ vendor | |
**/test_suite_light | ||
dummy_database | ||
composer.lock | ||
/.phpunit.result.cache | ||
/.phpunit.cache | ||
/tmp/ | ||
tests/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Cannot access offset 'skipInTestSuiteLight' on mixed\\.$#" | ||
count: 1 | ||
path: src/Fixture/TriggerStrategy.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$haystack of function in_array expects array, mixed given\\.$#" | ||
count: 1 | ||
path: src/Fixture/TriggerStrategy.php | ||
|
||
- | ||
message: "#^Part \\$db \\(mixed\\) of encapsed string cannot be cast to string\\.$#" | ||
count: 1 | ||
path: src/Sniffer/BaseTableSniffer.php | ||
|
||
- | ||
message: "#^Strict comparison using \\=\\=\\= between array and false will always evaluate to false\\.$#" | ||
count: 1 | ||
path: src/Sniffer/BaseTableSniffer.php | ||
|
||
- | ||
message: "#^Cannot access offset 'tableSniffer' on mixed\\.$#" | ||
count: 2 | ||
path: src/Sniffer/SnifferRegistry.php | ||
|
||
- | ||
message: "#^Part \\$driver \\(mixed\\) of encapsed string cannot be cast to string\\.$#" | ||
count: 1 | ||
path: src/Sniffer/SnifferRegistry.php | ||
|
||
- | ||
message: "#^Cannot access offset 'driver' on mixed\\.$#" | ||
count: 1 | ||
path: tests/TestApp/config/Migrations/20200208100000_initial_migration.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: max | ||
checkMissingIterableValueType: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
colors="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
bootstrap="./tests/bootstrap.php" | ||
> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
colors="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
bootstrap="./tests/bootstrap.php" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" | ||
cacheDirectory=".phpunit.cache"> | ||
|
||
<php> | ||
<ini name="memory_limit" value="-1"/> | ||
<ini name="apc.enable_cli" value="1"/> | ||
</php> | ||
|
||
<!-- Add any additional test suites you want to run here --> | ||
<testsuites> | ||
<testsuite name="Default"> | ||
<directory>./tests/TestCase/</directory> | ||
</testsuite> | ||
<testsuite name="Default"> | ||
<directory>./tests/TestCase/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<!-- Setup a listener for fixtures --> | ||
<extensions> | ||
<extension class="\Cake\TestSuite\Fixture\PHPUnitExtension" /> | ||
<bootstrap class="\Cake\TestSuite\Fixture\Extension\PHPUnitExtension"/> | ||
</extensions> | ||
|
||
<!-- Ignore vendor tests in code coverage reports --> | ||
<filter> | ||
<whitelist> | ||
<source> | ||
<include> | ||
<directory suffix=".php">./src/</directory> | ||
</whitelist> | ||
</filter> | ||
</include> | ||
</source> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.