Skip to content

Instantly share code, notes, and snippets.

@edgarsandi
Forked from hollodotme/phpunit-bootstrap.php
Created August 15, 2018 17:26
Show Gist options
  • Save edgarsandi/af533630bda50896ed62e6891ec7552d to your computer and use it in GitHub Desktop.
Save edgarsandi/af533630bda50896ed62e6891ec7552d to your computer and use it in GitHub Desktop.
<?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 __DIR__ . '/../vendor/autoload.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment