forked from sizuhiko/Spec-PHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec4php.php
executable file
·30 lines (23 loc) · 921 Bytes
/
spec4php.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env php
<?php
// Spec for PHP
// Copyright (C) 2011 Iván -DrSlump- Montes <[email protected]>
//
// This source file is subject to the MIT license that is bundled
// with this package in the file LICENSE.
// It is also available through the world-wide-web at this URL:
// http://creativecommons.org/licenses/MIT/
// Include this file into CodeCoverage's blacklist
require_once __DIR__ .'/vendor/autoload.php';
if (extension_loaded('xdebug')) {
xdebug_disable();
}
// For non pear packaged versions use relative include path
if (strpos('@php_bin@', '@php_bin') === 0) {
set_include_path(__DIR__ . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR . get_include_path());
}
require_once 'DrSlump/Spec/Coverage/Filter.php';
$filter = DrSlump\Spec\Coverage\Filter::getInstance();
$filter->addFileToBlacklist(__FILE__, 'PHPUNIT');
require_once 'DrSlump/Spec.php';
DrSlump\Spec\Cli::run();