-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrey Helldar
committed
Jul 22, 2021
1 parent
90448ed
commit 7e4d8ff
Showing
5 changed files
with
142 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
comment: off |
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,15 @@ | ||
* text=auto | ||
|
||
.github/ export-ignore | ||
.run/ export-ignore | ||
|
||
docs/ export-ignore | ||
tests/ export-ignore | ||
|
||
.codecov.yml export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.styleci.yml export-ignore | ||
|
||
phpunit.php export-ignore | ||
phpunit.yml export-ignore |
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,67 @@ | ||
preset: psr12 | ||
|
||
risky: true | ||
|
||
enabled: | ||
- align_double_arrow | ||
- align_equals | ||
- align_phpdoc | ||
- alpha_ordered_imports | ||
- binary_operator_spaces | ||
- blank_line_before_continue | ||
- blank_line_before_declare | ||
- blank_line_before_return | ||
- blank_line_before_throw | ||
- blank_line_before_try | ||
- cast_spaces | ||
- combine_consecutive_issets | ||
- const_separation | ||
- dir_constant | ||
- fully_qualified_strict_types | ||
- logical_operators | ||
- method_separation | ||
- no_alias_functions | ||
- no_blank_lines_after_phpdoc | ||
- no_blank_lines_between_traits | ||
- no_empty_comment | ||
- no_empty_phpdoc | ||
- no_extra_block_blank_lines | ||
- no_extra_consecutive_blank_lines | ||
- no_short_bool_cast | ||
- no_trailing_comma_in_singleline_array | ||
- no_unneeded_control_parentheses | ||
- no_unused_imports | ||
- ordered_class_elements | ||
- php_unit_construct | ||
- php_unit_fqcn_annotation | ||
- phpdoc_indent | ||
- phpdoc_inline_tag | ||
- phpdoc_link_to_see | ||
- phpdoc_no_access | ||
- phpdoc_no_empty_return | ||
- phpdoc_no_package | ||
- phpdoc_no_useless_inheritdoc | ||
- phpdoc_order | ||
- phpdoc_property | ||
- phpdoc_return_self_reference | ||
- phpdoc_scalar | ||
- phpdoc_separation | ||
- phpdoc_summary | ||
- phpdoc_to_comment | ||
- phpdoc_trim | ||
- phpdoc_type_to_var | ||
- phpdoc_types | ||
- phpdoc_types_order | ||
- phpdoc_var_without_name | ||
- property_separation | ||
- self_accessor | ||
- short_array_syntax | ||
- short_list_syntax | ||
- single_line_class_definition | ||
- single_line_throw | ||
- single_quote | ||
- space_after_semicolon | ||
- standardize_not_equals | ||
- ternary_to_null_coalescing | ||
- trailing_comma_in_multiline_array | ||
- trim_array_spaces |
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,28 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register The Composer Auto Loader | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Composer provides a convenient, automatically generated class loader | ||
| for our application. We just need to utilize it! We'll require it | ||
| into the script here so that we do not have to worry about the | ||
| loading of any our classes "manually". Feels great to relax. | ||
| | ||
*/ | ||
|
||
require __DIR__ . '/vendor/autoload.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Set The Default Timezone | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here we will set the default timezone for PHP. PHP is notoriously mean | ||
| if the timezone is not explicitly set. This will be used by each of | ||
| the PHP date and date-time functions throughout the application. | ||
| | ||
*/ | ||
|
||
date_default_timezone_set('UTC'); |
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,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="phpunit.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnError="false" | ||
stopOnFailure="false" | ||
verbose="true" | ||
> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="build/logs/clover.xml"/> | ||
<html outputDirectory="build/logs/coverage"/> | ||
<text outputFile="build/logs/coverage.txt"/> | ||
</report> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Test Suite"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |