✨feature: Initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?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';
|
||||
Reference in New Issue
Block a user