-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add php-fpm connection data to phpunit.xml * Remove logging from phpunit.xml * Move Xdebug filter to auto_prepend_file * Ignore PHPUnit result cache in VCS
- Loading branch information
1 parent
078d334
commit de239fe
Showing
4 changed files
with
32 additions
and
30 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/.idea/ | ||
/.vagrant/ | ||
/vendor/ | ||
/build/.phpunit.result.cache | ||
/build/logs/ | ||
/composer.lock |
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,14 @@ | ||
<?php declare(strict_types=1); | ||
|
||
if ( !function_exists( 'xdebug_set_filter' ) ) | ||
{ | ||
return; | ||
} | ||
|
||
/** @noinspection PhpUndefinedFunctionInspection */ | ||
/** @noinspection PhpUndefinedConstantInspection */ | ||
xdebug_set_filter( | ||
XDEBUG_FILTER_CODE_COVERAGE, | ||
XDEBUG_PATH_WHITELIST, | ||
[dirname( __DIR__ ) . '/src'] | ||
); |
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,17 +1,3 @@ | ||
<?php declare(strict_types=1); | ||
|
||
if ( | ||
extension_loaded( 'xdebug' ) | ||
&& version_compare( '2.6.0', phpversion( 'xdebug' ), '<=' ) | ||
) | ||
{ | ||
/** @noinspection PhpUndefinedFunctionInspection */ | ||
/** @noinspection PhpUndefinedConstantInspection */ | ||
xdebug_set_filter( | ||
XDEBUG_FILTER_CODE_COVERAGE, | ||
XDEBUG_PATH_WHITELIST, | ||
[dirname( __DIR__ ) . '/src'] | ||
); | ||
} | ||
|
||
require_once __DIR__ . '/../vendor/autoload.php'; |