36 lines
799 B
PHP
36 lines
799 B
PHP
<?php
|
|
/**
|
|
* PHPUnit bootstrap.
|
|
*
|
|
* @package RSS2CPT
|
|
*/
|
|
|
|
define( 'ABSPATH', dirname( __DIR__ ) . '/' );
|
|
define( 'MINUTE_IN_SECONDS', 60 );
|
|
|
|
/**
|
|
* Minimal option stub for isolated settings tests.
|
|
*
|
|
* @param string $option Option name.
|
|
* @param mixed $default_value Default value.
|
|
* @return mixed
|
|
*/
|
|
function get_option( $option, $default_value = false ) {
|
|
unset( $option );
|
|
return $default_value;
|
|
}
|
|
|
|
/**
|
|
* Minimal wp_parse_args stub for isolated settings tests.
|
|
*
|
|
* @param array $args Supplied values.
|
|
* @param array $defaults Default values.
|
|
* @return array
|
|
*/
|
|
function wp_parse_args( $args, $defaults = array() ) {
|
|
return array_merge( $defaults, $args );
|
|
}
|
|
|
|
require_once dirname( __DIR__ ) . '/src/Options.php';
|
|
require_once dirname( __DIR__ ) . '/src/Import/Importer.php';
|