mirror of
https://github.com/10h30/wp-strava.git
synced 2026-06-05 15:10:01 +09:00
18 lines
457 B
PHP
18 lines
457 B
PHP
<?php
|
|
|
|
if ( ! defined( 'WPSTRAVA_PLUGIN_DIR' ) ) {
|
|
define( 'WPSTRAVA_PLUGIN_DIR', dirname( __FILE__ ) . '/../' );
|
|
}
|
|
|
|
require_once dirname( __FILE__ ) . '/../src/autoload.php';
|
|
require_once dirname( __FILE__ ) . '/../vendor/autoload.php';
|
|
|
|
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;
|