<commit_before><?php

require_once( 'simpletest/autorun.php' );
require_once( 'simpletest/web_tester.php' );

define( 'PHP_MERCHANT_PATH', realpath( '../' ) );
define( 'PHP_MERCHANT_TEST_PATH', dirname( __FILE__ ) );

class PHP_Merchant_Test_Suite extends TestSuite
{
	function __construct() {
		parent::__construct( 'PHP Merchant Test Suite' );
		$tests = array(
			'common/php-merchant',
			'common/http-curl',
			'gateways/paypal',
			'gateways/paypal-express-checkout',
		);

		if ( ! empty( $_GET['remote'] ) ) {
			$tests[] = 'remote/http-curl';
		}
		
		$dir = dirname( __FILE__ );
		
		foreach ( $tests as $test ) {
			$this->addFile( $dir . '/' . $test . '.php' );
		}
	}
}<commit_msg>web_tester.php is loaded at the right place, otherwise the number of test cases displayed is mucked up<commit_after><?php

if ( ! empty( $_GET['remote'] ) )
	require_once( 'simpletest/web_tester.php' );

require_once( 'simpletest/autorun.php' );

define( 'PHP_MERCHANT_PATH', realpath( '../' ) );
define( 'PHP_MERCHANT_TEST_PATH', dirname( __FILE__ ) );

class PHP_Merchant_Test_Suite extends TestSuite
{
	function __construct() {
		parent::__construct( 'PHP Merchant Test Suite' );
		$tests = array(
			'common/php-merchant',
			'common/http-curl',
			'gateways/paypal',
			'gateways/paypal-express-checkout',
		);

		if ( ! empty( $_GET['remote'] ) ) {
			$tests[] = 'remote/http-curl';
		}

		$dir = dirname( __FILE__ );
		
		foreach ( $tests as $test ) {
			$this->addFile( $dir . '/' . $test . '.php' );
		}
	}
}
{'fraction_non_alphanumeric': 0.17604235605559232, 'fraction_numerical': 0.0, 'mean_word_length': 3.8, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2830769', 'n_tokens_mistral': 605, 'n_tokens_neox': 551, 'n_words': 109}