ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
2026-09-13 17:00:24
Editing: bootstrap-build-tests.php
Cancel
Save Changes
<?php /** * Bootstrap for running PHPUnit against the build artifact. * * Loads two autoloaders: * 1. Source vendor — provides PHPUnit, php-mock, and other dev dependencies. * 2. Build vendor — provides the scoped plugin classes (Cloudflare\APO\*) and * prefixed vendor dependencies (Cloudflare\APO\Vendor\*). * * Load order matters: the build autoloader is loaded second so its optimized * classmap takes priority over the source PSR-4 rules for Cloudflare\APO\* classes. */ $sourceAutoloader = __DIR__ . '/vendor/autoload.php'; $buildAutoloader = __DIR__ . '/build/cloudflare/vendor/autoload.php'; if ( ! file_exists( $sourceAutoloader ) ) { fwrite( STDERR, "Source vendor/autoload.php not found. Run: composer install\n" ); exit( 1 ); } if ( ! file_exists( $buildAutoloader ) ) { fwrite( STDERR, "Build vendor/autoload.php not found. Run: composer build\n" ); exit( 1 ); } // Dev tools: PHPUnit, php-mock, etc. require_once $sourceAutoloader; // Scoped plugin code — classmap overrides source PSR-4 for Cloudflare\APO\* classes. require_once $buildAutoloader; // Stubs for WordPress core classes referenced by the plugin (e.g. WP_Post). require_once __DIR__ . '/src/Test/Fixtures/wp-class-stubs.php';
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete