Created
March 21, 2012 22:19
-
-
Save elblinkin/2153755 to your computer and use it in GitHub Desktop.
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
<?php | |
require_once 'Mockery/Loader.php'; | |
require_once 'Hamcrest/Hamcrest.php'; | |
$loader = new \Mockery\Loader(); | |
$loader->register(true); | |
require_once 'Loader.php'; | |
$_SERVER['environment'] = 'testing'; | |
ini_set('memory_limit', -1); | |
ini_set('error_log', 'error.log'); | |
ini_set('include_path', '../../phplib:../../phplib/api/v2:'.ini_get('include_path')); | |
$command = new PHPUnit_Extensions_PHPUI_Command(); | |
$suite_builder = new PHPUnit_Extensions_PHPUI_TestSuiteBuilder(__FILE__); | |
$suite_builder | |
->addDirectory('.'); | |
$result = | |
$command | |
->log('json', 'results.json') | |
->excludeGroup('pending') | |
->excludeGroup('dbunit') | |
->excludeGroup('dbunit-slow') | |
->excludeGroup('dataset') | |
->excludeGroup('cache') | |
->excludeGroup('network') | |
->excludeGroup('smoke') | |
->excludeGroup('sprouter') | |
->excludeGroup('manual') | |
->excludeGroup('platform') | |
->excludeGroup('flaky') | |
->excludeGroup('gci') | |
->excludeGroup('replication') | |
->backupGlobals(true) | |
->backupStaticAttributes(true) | |
->addTestSuite($suite_builder->build()) | |
->addTestListener(new Testing_Classification_Logger('classifications.json')) | |
->colors() | |
->run(); | |
echo $result; | |
exit($result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment