Changeset 62965 for trunk/tests/phpstan/bootstrap.php
- Timestamp:
- 08/02/2026 06:51:36 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpstan/bootstrap.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpstan/bootstrap.php
r62292 r62965 8 8 */ 9 9 10 // wp_initial_constants() 10 /* 11 * A fixed, fictional path rather than the real checkout location. PHPStan resolves 12 * no files through this constant, and deriving it from __DIR__ embeds the developer's 13 * own path in error messages, making output differ between machines. 14 */ 15 define( 'ABSPATH', '/var/www/html/' ); 16 17 /** @see wp_initial_constants() */ 11 18 define( 'KB_IN_BYTES', 1024 ); 12 19 define( 'MB_IN_BYTES', 1024 * KB_IN_BYTES ); … … 17 24 define( 'ZB_IN_BYTES', 1024 * EB_IN_BYTES ); 18 25 define( 'YB_IN_BYTES', 1024 * ZB_IN_BYTES ); 19 define( 'WP_START_TIMESTAMP', microtime( true ) ); 20 define( 'WP_MEMORY_LIMIT', '' ); 21 define( 'WP_MAX_MEMORY_LIMIT', '' ); 26 define( 'WP_START_TIMESTAMP', 1700000000.0 ); // Fixed rather than microtime( true ), whose value would differ on every run. 27 define( 'WP_MEMORY_LIMIT', '40M' ); 28 define( 'WP_MAX_MEMORY_LIMIT', '256M' ); 29 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); 22 30 define( 'WP_DEVELOPMENT_MODE', '' ); 23 31 define( 'WP_DEBUG', false ); … … 36 44 define( 'YEAR_IN_SECONDS', 365 * DAY_IN_SECONDS ); 37 45 38 / / wp_set_lang_dir()39 define( 'WP_LANG_DIR', '' );46 /** @see wp_set_lang_dir() */ 47 define( 'WP_LANG_DIR', WP_CONTENT_DIR . '/languages' ); 40 48 41 49 // wp_plugin_directory_constants() 42 define( 'WP_CONTENT_URL', ' ' );43 define( 'WP_PLUGIN_DIR', '' );44 define( 'WP_PLUGIN_URL', '' );45 define( 'PLUGINDIR', ' ' );46 define( 'WPMU_PLUGIN_DIR', '' );47 define( 'WPMU_PLUGIN_URL', '' );48 define( 'MUPLUGINDIR', ' ' );50 define( 'WP_CONTENT_URL', 'https://example.com/wp-content' ); 51 define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); 52 define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' ); 53 define( 'PLUGINDIR', 'wp-content/plugins' ); 54 define( 'WPMU_PLUGIN_DIR', WP_CONTENT_DIR . '/mu-plugins' ); 55 define( 'WPMU_PLUGIN_URL', WP_CONTENT_URL . '/mu-plugins' ); 56 define( 'MUPLUGINDIR', 'wp-content/mu-plugins' ); 49 57 50 / / ms_cookie_constants()58 /** @see ms_cookie_constants() */ 51 59 define( 'COOKIEPATH', '' ); 52 60 define( 'SITECOOKIEPATH', '' ); … … 54 62 define( 'COOKIE_DOMAIN', '' ); 55 63 56 / / wp_cookie_constants()64 /** @see wp_cookie_constants() */ 57 65 define( 'COOKIEHASH', '' ); 58 66 define( 'USER_COOKIE', '' ); … … 65 73 define( 'RECOVERY_MODE_COOKIE', '' ); 66 74 67 / / wp_ssl_constants()75 /** @see wp_ssl_constants() */ 68 76 define( 'FORCE_SSL_LOGIN', false ); 69 77 define( 'FORCE_SSL_ADMIN', false ); 70 78 71 / / wp_functionality_constants()79 /** @see wp_functionality_constants() */ 72 80 define( 'AUTOSAVE_INTERVAL', MINUTE_IN_SECONDS ); 73 81 define( 'EMPTY_TRASH_DAYS', 1 ); … … 75 83 define( 'WP_CRON_LOCK_TIMEOUT', MINUTE_IN_SECONDS ); 76 84 77 / / wp_templating_constants()78 define( 'TEMPLATEPATH', '' );79 define( 'STYLESHEETPATH', '' );80 define( 'WP_DEFAULT_THEME', ' ' );85 /** @see wp_templating_constants() */ 86 define( 'TEMPLATEPATH', WP_CONTENT_DIR . '/themes/twentytwentyfive' ); 87 define( 'STYLESHEETPATH', WP_CONTENT_DIR . '/themes/twentytwentyfive' ); 88 define( 'WP_DEFAULT_THEME', 'twentytwentyfive' ); 81 89 82 / / ms_file_constants()90 /** @see ms_file_constants() */ 83 91 define( 'WPMU_SENDFILE', false ); 84 92 define( 'WPMU_ACCEL_REDIRECT', false ); 85 93 86 / / ms_load_current_site_and_network()94 /** @see ms_load_current_site_and_network() */ 87 95 define( 'NOBLOGREDIRECT', '' ); 88 96 89 / / ms_upload_constants()90 define( 'UPLOADBLOGSDIR', ' ' );91 define( 'BLOGUPLOADDIR', '' );97 /** @see ms_upload_constants() */ 98 define( 'UPLOADBLOGSDIR', 'wp-content/blogs.dir' ); 99 define( 'BLOGUPLOADDIR', WP_CONTENT_DIR . '/blogs.dir/1/files/' ); 92 100 93 / / Misc constants not part of the default lifecycle.94 define( 'FS_CONNECT_TIMEOUT', 1 );95 define( 'FS_TIMEOUT', 1 );96 define( 'FS_CHMOD_DIR', 1);97 define( 'FS_CHMOD_FILE', 1);101 /** @see WP_Filesystem() */ 102 define( 'FS_CONNECT_TIMEOUT', 30 ); // 30 seconds. 103 define( 'FS_TIMEOUT', 30 ); // 30 seconds. 104 define( 'FS_CHMOD_DIR', 0755 ); 105 define( 'FS_CHMOD_FILE', 0644 );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)