This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * tests * Update release-drafter.yml * Update unit-tests.yml * fix * fix * wip * fix * cs * cs * proper db name * Update unit-tests.yml
- Loading branch information
1 parent
88602ba
commit 53d3f8b
Showing
24 changed files
with
565 additions
and
423 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 |
---|---|---|
@@ -1,5 +1,17 @@ | ||
docs/build | ||
/composer.lock | ||
/build | ||
/vendor | ||
/composer.lock | ||
.idea | ||
nbproject | ||
.DS_Store | ||
|
||
local | ||
*.local | ||
*.local.* | ||
cache | ||
*.cache | ||
*.cache.* | ||
|
||
/phpunit.xml | ||
/phpunit-*.xml |
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,63 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in([__DIR__]) | ||
->exclude([ | ||
'cache', | ||
'build', | ||
'vendor', | ||
]); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PhpCsFixer' => true, | ||
'@PhpCsFixer:risky' =>true, | ||
'@PHP71Migration:risky' => true, | ||
|
||
// required by PSR-12 | ||
'concat_space' => [ | ||
'spacing' => 'one', | ||
], | ||
|
||
// disable some too strict rules | ||
'phpdoc_types_order' => [ | ||
'null_adjustment' => 'always_last', | ||
'sort_algorithm' => 'none', | ||
], | ||
'single_line_throw' => false, | ||
'yoda_style' => [ | ||
'equal' => false, | ||
'identical' => false, | ||
], | ||
'native_function_invocation' => false, | ||
'non_printable_character' => [ | ||
'use_escape_sequences_in_strings' => true, | ||
], | ||
'void_return' => false, | ||
'combine_consecutive_issets' => false, | ||
'combine_consecutive_unsets' => false, | ||
'multiline_whitespace_before_semicolons' => false, | ||
'no_superfluous_elseif' => false, | ||
'ordered_class_elements' => false, | ||
'php_unit_internal_class' => false, | ||
'php_unit_test_case_static_method_calls' => [ | ||
'call_type' => 'this', | ||
], | ||
'php_unit_test_class_requires_covers' => false, | ||
'phpdoc_add_missing_param_annotation' => false, | ||
'return_assignment' => false, | ||
'comment_to_phpdoc' => false, | ||
'general_phpdoc_annotation_remove' => [ | ||
'annotations' => ['author', 'copyright', 'throws'], | ||
], | ||
'nullable_type_declaration_for_default_null_value' => [ | ||
'use_nullable_type_declaration' => false, | ||
], | ||
|
||
// @TODO fix later | ||
'strict_comparison' => false, | ||
'php_unit_strict' => false, | ||
]) | ||
->setFinder($finder) | ||
->setCacheFile(__DIR__ . '/.php_cs.cache'); |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
ignore: | ||
- docs | ||
comment: false | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 0.1 | ||
patch: false | ||
changes: 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
<phpunit colors="true" bootstrap="vendor/autoload.php" printerClass="atk4\core\AtkPhpunit\ResultPrinter"> | ||
<php> | ||
<var name="DB_DSN" value="mysql:dbname=atk4_test__report;host=mysql" /> | ||
<var name="DB_USER" value="atk4_test" /> | ||
<var name="DB_PASSWD" value="atk4_pass" /> | ||
<var name="DB_DBNAME" value="atk4_test__report" /> | ||
</php> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src</directory> | ||
</whitelist> | ||
</filter> | ||
<testsuites> | ||
<testsuite name="tests"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging> | ||
<log type="coverage-php" target="build/logs/clover-mysql.cov"/> | ||
</logging> | ||
</phpunit> |
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,21 @@ | ||
<phpunit colors="true" bootstrap="vendor/autoload.php" printerClass="atk4\core\AtkPhpunit\ResultPrinter"> | ||
<php> | ||
<var name="DB_DSN" value="pgsql:dbname=atk4_test__report;host=postgres" /> | ||
<var name="DB_USER" value="atk4_test" /> | ||
<var name="DB_PASSWD" value="atk4_pass" /> | ||
<var name="DB_DBNAME" value="atk4_test__report" /> | ||
</php> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src</directory> | ||
</whitelist> | ||
</filter> | ||
<testsuites> | ||
<testsuite name="tests"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging> | ||
<log type="coverage-php" target="build/logs/clover-pgsql.cov"/> | ||
</logging> | ||
</phpunit> |
Oops, something went wrong.