-
Notifications
You must be signed in to change notification settings - Fork 56
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
Showing
13 changed files
with
185 additions
and
78 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,7 @@ | |
/composer.lock | ||
/coverage.xml | ||
/docs/ | ||
/infection.log | ||
/phpunit.xml | ||
/vendor/ | ||
/vendor-bin/**/vendor | ||
|
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,16 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
error_reporting(E_ALL); | ||
ini_set('display_errors', 'stderr'); | ||
|
||
if (is_file($autoload = __DIR__ . '/../vendor/autoload.php')) { | ||
require_once($autoload); | ||
} elseif (is_file($autoload = __DIR__ . '/../../../autoload.php')) { | ||
require_once($autoload); | ||
} else { | ||
fwrite(STDERR, | ||
'You must set up the project dependencies first. Run the following command:'.PHP_EOL. | ||
'composer install'.PHP_EOL | ||
); | ||
exit(1); | ||
foreach ( | ||
[ | ||
__DIR__ . '/../vendor/autoload.php', | ||
__DIR__ . '/../../../autoload.php', | ||
] as $autoload | ||
) { | ||
if (is_file($autoload)) { | ||
return require_once $autoload; | ||
} | ||
} | ||
|
||
fwrite( | ||
STDERR, | ||
'You must set up the project dependencies first. Run the following command:' . PHP_EOL . | ||
'composer install' . PHP_EOL | ||
); | ||
exit(1); |
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 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/infection/infection/0.26.0/resources/schema.json", | ||
"source": { | ||
"directories": [ | ||
"src" | ||
] | ||
}, | ||
"logs": { | ||
"text": "infection.log" | ||
}, | ||
"mutators": { | ||
"@default": true, | ||
"@cast": 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
<config name="php_version" value="70103"/> | ||
|
||
<file>./src</file> | ||
<file>./bin</file> | ||
|
||
<rule ref="PSR12"/> | ||
|
||
|
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
Oops, something went wrong.