| Server IP : 178.212.43.201 / Your IP : 10.100.0.33 Web Server : Apache/2.4.37 (Oracle Linux Server) OpenSSL/1.1.1k System : Linux spa0007.srv.paxillus.pl 5.4.17-2136.355.3.1.el8uek.x86_64 #3 SMP Sat May 9 17:11:55 PDT 2026 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/paxillus/wp-content/plugins/cloudflare/ |
Upload File : |
<?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;