Files
wp-strava/tests/bootstrap.php
T

18 lines
457 B
PHP
Raw Normal View History

2018-09-21 10:28:46 -05:00
<?php
2019-03-01 15:21:02 -06:00
if ( ! defined( 'WPSTRAVA_PLUGIN_DIR' ) ) {
define( 'WPSTRAVA_PLUGIN_DIR', dirname( __FILE__ ) . '/../' );
}
2020-01-31 11:51:37 -06:00
require_once dirname( __FILE__ ) . '/../src/autoload.php';
2018-11-09 13:45:37 -06:00
require_once dirname( __FILE__ ) . '/../vendor/autoload.php';
2018-09-21 10:28:46 -05:00
2018-11-09 13:45:37 -06:00
WP_Mock::bootstrap();
// Pseudo mocks for WP functions.
if ( ! function_exists( 'number_format_i18n' ) ) :
function number_format_i18n( $number, $decimals ) {
return number_format( $number, $decimals );
}
endif;