You appear to be a bot. Output may be restricted
Description
Locate oik-batch
Usage
locate_oik_batch();
Parameters
Returns
voidTO DO
remove when determined unnecessary If we're running phpunit from a symlinked directory then there's a good chance that neither the current directory nor the FILE will tell us where to look for oik-batch. In this case the phpunit plugin is actually in C:\apache\htdocs\phpLibraries but we think it's symlinked in C:\apache\htdocs\wordpress\wp-content\plugins\phpunit and we think we're running from C:\apache\htdocs\src\wp-content\plugins\phpunit so we may need a constant such as OIK_BATCH_DIR in the phpunit.xml file We need to separate the phpunit executable from the phpunit plugin! which leads me to think that oik-batch is the right place for the code. What does WP-cli do?Source
File name: oik-batch/tests/bootstrap.phpLines:
1 to 12 of 12
function locate_oik_batch() { echo getcwd() . PHP_EOL; echo __FILE__ . PHP_EOL; $oik_batch = '../oik-batch/oik-wp.php'; if ( !file_exists( $oik_batch ) ) { $oik_batch = null; $included_files = get_included_files(); print_r( $included_files ); } return( $oik_batch ); }View on GitHub