/dev/null || true
-cp $PLUGIN_PATH/includes/admin/class-zoho-admin.php $PLUGIN_PATH/backups/zoho-$(date +%Y%m%d%H%M%S)/includes/admin/ 2>/dev/null || true
-cp $PLUGIN_PATH/assets/js/zoho-admin.js $PLUGIN_PATH/backups/zoho-$(date +%Y%m%d%H%M%S)/assets/js/ 2>/dev/null || true
-cp $PLUGIN_PATH/assets/css/zoho-admin.css $PLUGIN_PATH/backups/zoho-$(date +%Y%m%d%H%M%S)/assets/css/ 2>/dev/null || true
-EOSSH
-
-# Upload patched files
-echo -e "${YELLOW}Uploading patched files...${NC}"
-
-# Create the list of files to upload
-FILES_TO_UPLOAD=(
- "$SRC_DIR/includes/zoho/class-zoho-crm-auth.php"
- "$SRC_DIR/includes/zoho/zoho-config.php"
- "$SRC_DIR/includes/zoho/diagnostics.php"
- "$SRC_DIR/includes/zoho/check-permissions.php"
- "$SRC_DIR/includes/admin/class-zoho-admin.php"
- "$SRC_DIR/assets/js/zoho-admin.js"
- "$SRC_DIR/assets/css/zoho-admin.css"
-)
-
-# Upload each file individually to ensure correct paths
-for file in "${FILES_TO_UPLOAD[@]}"; do
- rel_path=${file#$SRC_DIR/}
- target_path="$PLUGIN_PATH/$rel_path"
- target_dir=$(dirname "$target_path")
-
- echo "Uploading $file to $target_path"
-
- # Ensure target directory exists
- sshpass -p "$REMOTE_PASS" ssh -o StrictHostKeyChecking=no "$REMOTE_USER@$REMOTE_HOST" "mkdir -p $target_dir"
-
- # Upload file if it exists
- if [ -f "$file" ]; then
- sshpass -p "$REMOTE_PASS" scp -o StrictHostKeyChecking=no "$file" "$REMOTE_USER@$REMOTE_HOST:$target_path"
-
- if [ $? -ne 0 ]; then
- echo -e "${RED}Error: Failed to upload $file. Continuing...${NC}"
- else
- echo -e "${GREEN}Successfully uploaded $file${NC}"
- fi
- else
- echo -e "${RED}File not found: $file${NC}"
- fi
-done
-
-echo -e "${GREEN}Files uploaded process completed.${NC}"
-
-# Clear cache
-echo -e "${YELLOW}Clearing cache...${NC}"
-sshpass -p "$REMOTE_PASS" ssh -o StrictHostKeyChecking=no "$REMOTE_USER@$REMOTE_HOST" "cd $REMOTE_PATH && wp cache flush" || true
-
-echo -e "${GREEN}=== Zoho CRM integration fixes deployed successfully! ===${NC}"
-echo -e "${YELLOW}You can now test the connection in the WordPress admin panel.${NC}"
-echo -e "${YELLOW}If issues persist, check the logs at: ${PLUGIN_PATH}/includes/logs/zoho-debug.log${NC}"
-echo -e "${YELLOW}Or run the diagnostic tool at: https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/plugins/hvac-community-events/includes/zoho/diagnostics.php?run_diagnostics=true${NC}"
-echo -e "${YELLOW}Or check permissions at: https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/plugins/hvac-community-events/includes/zoho/check-permissions.php?check=true${NC}"
-
-exit 0
\ No newline at end of file
diff --git a/wordpress-dev/bin/direct-generate-certificates.sh b/wordpress-dev/bin/direct-generate-certificates.sh
deleted file mode 100755
index a6fa80bf..00000000
--- a/wordpress-dev/bin/direct-generate-certificates.sh
+++ /dev/null
@@ -1,268 +0,0 @@
-#!/bin/bash
-
-# Generate test certificates directly on the server
-
-echo "=== Generating Test Certificates on Staging Server ==="
-echo "Remote host: 146.190.76.204"
-echo "Remote user: roodev"
-echo "==============================="
-
-# Create the PHP script content
-cat > certificate-generator.php << 'EOL'
-prefix . 'hvac_certificates';
-$table_exists = $wpdb->get_var("SHOW TABLES LIKE '$table_name'") === $table_name;
-
-if (!$table_exists) {
- echo "Certificate table does not exist. Creating it now...\n";
-
- // Try to create the table using the installer
- if (class_exists('HVAC_Certificate_Installer')) {
- $installer = HVAC_Certificate_Installer::instance();
- $installer->create_tables();
-
- // Check if table creation was successful
- $table_exists = $wpdb->get_var("SHOW TABLES LIKE '$table_name'") === $table_name;
- if (!$table_exists) {
- echo "Failed to create certificate table. Exiting.\n";
- exit(1);
- }
-
- echo "Certificate table created successfully.\n";
- } else {
- echo "Error: HVAC_Certificate_Installer class not found. Exiting.\n";
- exit(1);
- }
-}
-
-// Create certificate storage directory if it doesn't exist
-$upload_dir = wp_upload_dir();
-$cert_dir = $upload_dir['basedir'] . '/' . get_option('hvac_certificate_storage_path', 'hvac-certificates');
-
-if (!file_exists($cert_dir)) {
- echo "Certificate directory does not exist. Creating it now...\n";
- $result = wp_mkdir_p($cert_dir);
- if (!$result) {
- echo "Failed to create certificate directory at: {$cert_dir}\n";
- exit(1);
- }
- echo "Certificate directory created at: {$cert_dir}\n";
-}
-
-// Get the events to generate certificates for
-$event_ids = [5484, 5485, 5486]; // HVAC Installation, Commercial HVAC, HVAC Energy Efficiency
-
-// Variables to track generation stats
-$total_certificates = 0;
-$total_revoked = 0;
-$total_emailed = 0;
-$failed_generations = 0;
-
-echo "Generating certificates for " . count($event_ids) . " events...\n\n";
-
-foreach ($event_ids as $event_id) {
- $event = get_post($event_id);
- if (!$event) {
- echo "Event ID {$event_id} does not exist. Skipping.\n";
- continue;
- }
-
- echo "Processing event: {$event->post_title} (ID: {$event_id})\n";
-
- // Get checked-in attendees for this event
- $attendees = get_posts([
- 'post_type' => 'tribe_tpp_attendees',
- 'meta_query' => [
- 'relation' => 'AND',
- [
- 'key' => '_tribe_tpp_event',
- 'value' => $event_id,
- ],
- [
- 'key' => '_tribe_tpp_checkin',
- 'value' => 1,
- ]
- ],
- 'posts_per_page' => -1
- ]);
-
- echo "Found " . count($attendees) . " checked-in attendees for event {$event_id}\n";
-
- // Get a random user ID for the certificate generation (by default the current user)
- $user_query = new WP_User_Query([
- 'role' => 'administrator',
- 'number' => 1
- ]);
-
- $admin_users = $user_query->get_results();
- $generated_by = !empty($admin_users) ? $admin_users[0]->ID : get_current_user_id();
-
- // Find the trainer user if available
- $trainer_user = get_user_by('login', 'test_trainer');
- $trainer_id = $trainer_user ? $trainer_user->ID : $generated_by;
-
- // Generate certificates for each attendee
- $certificates_created = 0;
- $certificates_revoked = 0;
- $certificates_emailed = 0;
-
- foreach ($attendees as $attendee) {
- $attendee_id = $attendee->ID;
- $attendee_name = get_post_meta($attendee_id, '_tribe_tickets_full_name', true);
- $attendee_email = get_post_meta($attendee_id, '_tribe_tickets_email', true);
-
- // Skip if a certificate already exists
- if ($certificate_manager->certificate_exists($event_id, $attendee_id)) {
- echo " - Certificate already exists for attendee {$attendee_name} ({$attendee_id}). Skipping.\n";
- continue;
- }
-
- // Create a sample certificate file path
- $year = date('Y');
- $month = date('m');
- $certificate_filename = "certificate-{$event_id}-{$attendee_id}-" . time() . ".pdf";
- $certificate_relative_path = "hvac-certificates/{$year}/{$month}/{$certificate_filename}";
-
- // Create the certificate record
- $certificate_id = $certificate_manager->create_certificate(
- $event_id,
- $attendee_id,
- 0, // user_id (not associated with a user)
- $certificate_relative_path,
- $trainer_id // generated by (trainer)
- );
-
- if ($certificate_id) {
- $certificates_created++;
-
- // Create year/month directory structure if needed
- $year_month_dir = $cert_dir . "/{$year}/{$month}";
- if (!file_exists($year_month_dir)) {
- wp_mkdir_p($year_month_dir);
- }
-
- // Example - Create a dummy PDF file (in real scenario, you'd generate a real PDF)
- // For testing purposes, we'll create an empty file
- $certificate_full_path = $upload_dir['basedir'] . '/' . $certificate_relative_path;
- file_put_contents($certificate_full_path, "Placeholder for certificate PDF (Generated for testing)");
-
- echo " - Generated certificate for {$attendee_name} ({$attendee_email}) - ID: {$certificate_id}\n";
-
- // For testing, randomly mark some certificates as revoked or emailed
- $random = mt_rand(1, 10);
-
- // Revoke about 10% of certificates
- if ($random == 1) {
- $revoke_result = $certificate_manager->revoke_certificate(
- $certificate_id,
- $generated_by,
- "Test revocation for certificate testing"
- );
-
- if ($revoke_result) {
- $certificates_revoked++;
- echo " - Revoked certificate ID: {$certificate_id}\n";
- }
- }
-
- // Mark about 60% as emailed
- if ($random <= 6) {
- $email_result = $certificate_manager->mark_certificate_emailed($certificate_id);
-
- if ($email_result) {
- $certificates_emailed++;
- echo " - Marked certificate ID: {$certificate_id} as emailed\n";
- }
- }
- } else {
- echo " - Failed to generate certificate for attendee {$attendee_name} ({$attendee_id})\n";
- $failed_generations++;
- }
- }
-
- // Update statistics
- $total_certificates += $certificates_created;
- $total_revoked += $certificates_revoked;
- $total_emailed += $certificates_emailed;
-
- echo "Created {$certificates_created} certificates for event {$event_id}\n";
- echo "Revoked {$certificates_revoked} certificates for event {$event_id}\n";
- echo "Marked {$certificates_emailed} certificates as emailed for event {$event_id}\n";
- echo "----------------------------\n";
-}
-
-echo "\n===== CERTIFICATE GENERATION SUMMARY =====\n";
-echo "Total certificates created: {$total_certificates}\n";
-echo "Total certificates revoked: {$total_revoked}\n";
-echo "Total certificates marked as emailed: {$total_emailed}\n";
-echo "Failed certificate generations: {$failed_generations}\n";
-
-// Fetch some certificate statistics for verification
-if (class_exists('HVAC_Certificate_Manager')) {
- echo "\n===== CERTIFICATE DATABASE VERIFICATION =====\n";
- $stats = $certificate_manager->get_certificate_stats();
-
- echo "Certificate count in database: {$stats['total_certificates']}\n";
- echo "Event count with certificates: {$stats['total_events']}\n";
- echo "Trainee count with certificates: {$stats['total_trainees']}\n";
- echo "Total revoked certificates: {$stats['total_revoked']}\n";
- echo "Total emailed certificates: {$stats['total_emailed']}\n";
-}
-
-// Print instructions on how to view certificates
-echo "\n===== INSTRUCTIONS =====\n";
-echo "1. Certificates have been generated for checked-in attendees\n";
-echo "2. View certificates at: " . home_url('/certificate-reports/') . "\n";
-echo "3. Filter certificates by event, attendee name, or revocation status\n";
-echo "4. Download certificate PDFs from the certificate reports page\n";
-
-echo "\n===== CERTIFICATE GENERATION COMPLETED =====\n";
-EOL
-
-# Copy PHP script to server and execute
-echo "[1;33mCopying script to server...[0m"
-scp certificate-generator.php roodev@146.190.76.204:~/public_html/
-
-echo "[1;33mExecuting certificate generation script on server...[0m"
-ssh roodev@146.190.76.204 "cd ~/public_html/ && php certificate-generator.php"
-
-# Clean up
-rm certificate-generator.php
-ssh roodev@146.190.76.204 "rm ~/public_html/certificate-generator.php"
-
-echo "[0;32mTest certificate generation completed![0m"
-echo "You can view and test certificates at: https://wordpress-974670-5399585.cloudwaysapps.com/certificate-reports/"
-echo ""
-echo "Features to test:"
-echo "1. Certificate listing with pagination"
-echo "2. Filtering by event"
-echo "3. Filtering by attendee name/email (new feature)"
-echo "4. Filtering by revocation status"
-echo "5. Certificate downloading"
-echo "6. Certificate email sending"
\ No newline at end of file
diff --git a/wordpress-dev/bin/direct-server-upload.sh b/wordpress-dev/bin/direct-server-upload.sh
deleted file mode 100755
index 946316c7..00000000
--- a/wordpress-dev/bin/direct-server-upload.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-#
-# Direct Server Upload Script
-# This script connects directly to the server to upload files
-#
-
-cd /Users/ben/dev/upskill-event-manager/wordpress-dev
-
-# Connect to the server
-echo "Connecting to the server..."
-echo "Once connected, run these commands:"
-echo
-echo "1. Create simple-installer.php:"
-echo "-----------------------------------------"
-echo "cat > /home/974670.cloudwaysapps.com/uberrxmprk/public_html/simple-installer.php <<'EOF'"
-cat simple-installer.php
-echo "EOF"
-echo
-echo "2. Create .env file:"
-echo "-----------------------------------------"
-echo "cat > /home/974670.cloudwaysapps.com/uberrxmprk/public_html/.env <<'EOF'"
-echo "ZOHO_CLIENT_ID=1000.Z0HOF1VMMJ9W2QWSU57GVQYEAVUSKS"
-echo "ZOHO_CLIENT_SECRET=36913615664649dbf9198884bfd1096f7573c9ce2b"
-echo "UPSKILL_STAGING_URL=https://upskill-staging.measurequick.com/"
-echo "EOF"
-echo
-echo "3. Set permissions:"
-echo "-----------------------------------------"
-echo "chmod 644 /home/974670.cloudwaysapps.com/uberrxmprk/public_html/simple-installer.php"
-echo "chmod 640 /home/974670.cloudwaysapps.com/uberrxmprk/public_html/.env"
-echo
-echo "4. Access the installer at:"
-echo "-----------------------------------------"
-echo "https://upskill-staging.measurequick.com/simple-installer.php?key=upskill2025"
-echo
-
-# Connect to the server
-ssh roodev@146.190.76.204
\ No newline at end of file
diff --git a/wordpress-dev/bin/disable-breeze-cache-testing.sh b/wordpress-dev/bin/disable-breeze-cache-testing.sh
deleted file mode 100755
index e6ff2aad..00000000
--- a/wordpress-dev/bin/disable-breeze-cache-testing.sh
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/bin/bash
-
-# Script to disable Breeze cache for testing environments
-# This creates an mu-plugin that sets DONOTCACHEPAGE constant
-
-SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
-
-# Source environment variables
-if [ -f "$PROJECT_ROOT/.env" ]; then
- source "$PROJECT_ROOT/.env"
-fi
-
-# Check for required environment variables
-if [ -z "$UPSKILL_STAGING_SSH_USER" ] || [ -z "$UPSKILL_STAGING_PASS" ] || [ -z "$UPSKILL_STAGING_IP" ] || [ -z "$UPSKILL_STAGING_PATH" ]; then
- echo "Error: Missing required environment variables."
- echo "Please ensure the following are set in your .env file:"
- echo " - UPSKILL_STAGING_SSH_USER"
- echo " - UPSKILL_STAGING_PASS"
- echo " - UPSKILL_STAGING_IP"
- echo " - UPSKILL_STAGING_PATH"
- exit 1
-fi
-
-echo "Creating mu-plugin to disable Breeze cache for testing..."
-
-# Create the mu-plugin content
-MU_PLUGIN_CONTENT=' wp-content/mu-plugins/disable-breeze-for-tests.php << 'EOF'
-$MU_PLUGIN_CONTENT
-EOF"
-
-# Verify the file was created
-echo "Verifying mu-plugin creation..."
-FILE_EXISTS=$(sshpass -p "${UPSKILL_STAGING_PASS}" ssh -o StrictHostKeyChecking=no "${UPSKILL_STAGING_SSH_USER}@${UPSKILL_STAGING_IP}" \
-"cd ${UPSKILL_STAGING_PATH} && [ -f wp-content/mu-plugins/disable-breeze-for-tests.php ] && echo 'exists' || echo 'not found'")
-
-if [ "$FILE_EXISTS" = "exists" ]; then
- echo "✅ Successfully created mu-plugin to disable Breeze cache for testing"
- echo "The following conditions will disable cache:"
- echo " - WP_ENV environment variable is set to 'testing'"
- echo " - WP_TESTS_DOMAIN constant is defined"
- echo " - User agent contains 'Playwright'"
- echo " - URL has 'no_cache_test' query parameter"
- echo " - URL contains '/manage-event/'"
-else
- echo "❌ Failed to create mu-plugin"
- exit 1
-fi
-
-# Clear existing cache
-echo "Clearing existing Breeze cache..."
-$SCRIPT_DIR/clear-breeze-cache.sh
-
-echo "✅ Breeze cache setup for testing complete"
\ No newline at end of file
diff --git a/wordpress-dev/bin/emergency-certificate-fix.php b/wordpress-dev/bin/emergency-certificate-fix.php
deleted file mode 100644
index 55fcd947..00000000
--- a/wordpress-dev/bin/emergency-certificate-fix.php
+++ /dev/null
@@ -1,301 +0,0 @@
- $type, 'message' => $message];
-
- // Output if running in browser
- if (php_sapi_name() !== 'cli') {
- $color = '';
- switch ($type) {
- case 'success': $color = 'green'; break;
- case 'error': $color = 'red'; break;
- case 'warning': $color = 'orange'; break;
- default: $color = 'blue';
- }
- echo "" . strtoupper($type) . ": $message
";
- } else {
- // CLI output
- echo "[" . strtoupper($type) . "] $message\n";
- }
-}
-
-// Function to fix certificate database table
-function fix_certificate_table() {
- global $wpdb;
-
- output_message("Checking certificate database table...");
-
- // Check if the table exists
- $table_name = $wpdb->prefix . 'hvac_certificates';
- $table_exists = $wpdb->get_var("SHOW TABLES LIKE '$table_name'") === $table_name;
-
- if (!$table_exists) {
- output_message("Certificate table does not exist. Creating it now...", 'warning');
-
- // Make sure we have dbDelta function
- require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
-
- // Create the certificate table
- $charset_collate = $wpdb->get_charset_collate();
-
- $sql = "CREATE TABLE $table_name (
- certificate_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
- event_id BIGINT(20) UNSIGNED NOT NULL,
- attendee_id BIGINT(20) UNSIGNED NOT NULL,
- user_id BIGINT(20) UNSIGNED DEFAULT NULL,
- certificate_number VARCHAR(50) NOT NULL,
- file_path VARCHAR(255) NOT NULL,
- date_generated DATETIME NOT NULL,
- generated_by BIGINT(20) UNSIGNED NOT NULL,
- revoked TINYINT(1) NOT NULL DEFAULT 0,
- revoked_date DATETIME DEFAULT NULL,
- revoked_by BIGINT(20) UNSIGNED DEFAULT NULL,
- revoked_reason TEXT DEFAULT NULL,
- email_sent TINYINT(1) NOT NULL DEFAULT 0,
- email_sent_date DATETIME DEFAULT NULL,
- PRIMARY KEY (certificate_id),
- UNIQUE KEY event_attendee (event_id, attendee_id),
- KEY event_id (event_id),
- KEY attendee_id (attendee_id),
- KEY user_id (user_id),
- KEY certificate_number (certificate_number),
- KEY revoked (revoked)
- ) $charset_collate;";
-
- dbDelta($sql);
-
- // Check if table was created
- $table_exists = $wpdb->get_var("SHOW TABLES LIKE '$table_name'") === $table_name;
-
- if ($table_exists) {
- output_message("Certificate table created successfully.", 'success');
- update_option('hvac_certificates_db_version', '1.0.0');
- } else {
- output_message("Failed to create certificate table.", 'error');
- return false;
- }
- } else {
- output_message("Certificate table exists.", 'success');
- }
-
- return true;
-}
-
-// Function to fix certificate template
-function fix_certificate_template() {
- output_message("Fixing certificate template...");
-
- // Path to the problematic template
- $plugin_dir = WP_PLUGIN_DIR . '/hvac-community-events';
- $template_dir = $plugin_dir . '/templates/certificates';
- $template_file = $template_dir . '/template-certificate-reports.php';
- $simple_template_file = $template_dir . '/template-certificate-reports-simple.php';
-
- // Check if template directory exists
- if (!file_exists($template_dir)) {
- output_message("Template directory does not exist: $template_dir", 'error');
- return false;
- }
-
- // Check if the template file exists
- if (!file_exists($template_file)) {
- output_message("Original template file does not exist: $template_file", 'warning');
- } else {
- // Create backup of the original file
- $backup_file = $template_file . '.bak.' . date('YmdHis');
- if (copy($template_file, $backup_file)) {
- output_message("Created backup of original template at: $backup_file", 'success');
- } else {
- output_message("Failed to create backup of original template.", 'warning');
- }
- }
-
- // Check if simplified template exists (it should have been uploaded alongside this script)
- if (!file_exists($simple_template_file)) {
- output_message("Simplified template file not found: $simple_template_file", 'error');
- output_message("Please upload the simplified template file alongside this script.", 'error');
- return false;
- }
-
- // Replace the original template with the simplified version
- if (copy($simple_template_file, $template_file)) {
- output_message("Replaced original template with simplified version.", 'success');
- } else {
- output_message("Failed to replace template file.", 'error');
- return false;
- }
-
- return true;
-}
-
-// Function to check certificate directory
-function check_certificate_directory() {
- output_message("Checking certificate storage directory...");
-
- // Get upload directory
- $upload_dir = wp_upload_dir();
- $cert_dir = $upload_dir['basedir'] . '/' . get_option('hvac_certificate_storage_path', 'hvac-certificates');
-
- output_message("Certificate directory path: $cert_dir");
-
- // Check if directory exists
- if (!file_exists($cert_dir)) {
- output_message("Certificate directory does not exist. Creating it...", 'warning');
-
- // Create directory
- if (wp_mkdir_p($cert_dir)) {
- output_message("Certificate directory created successfully.", 'success');
- } else {
- output_message("Failed to create certificate directory.", 'error');
- return false;
- }
- } else {
- output_message("Certificate directory exists.", 'success');
- }
-
- // Check directory permissions
- if (!is_writable($cert_dir)) {
- output_message("Certificate directory is not writable. Fixing permissions...", 'warning');
- chmod($cert_dir, 0755);
-
- if (is_writable($cert_dir)) {
- output_message("Directory permissions fixed.", 'success');
- } else {
- output_message("Failed to fix directory permissions.", 'error');
- return false;
- }
- } else {
- output_message("Certificate directory is writable.", 'success');
- }
-
- return true;
-}
-
-// Function to fix certificate options
-function fix_certificate_options() {
- output_message("Checking certificate options...");
-
- // Check and set certificate counter option
- if (false === get_option('hvac_certificate_counter')) {
- add_option('hvac_certificate_counter', 0);
- output_message("Added hvac_certificate_counter option.", 'success');
- }
-
- // Check and set certificate prefix option
- if (false === get_option('hvac_certificate_prefix')) {
- add_option('hvac_certificate_prefix', 'HVAC-');
- output_message("Added hvac_certificate_prefix option.", 'success');
- }
-
- // Check and set certificate storage path option
- if (false === get_option('hvac_certificate_storage_path')) {
- add_option('hvac_certificate_storage_path', 'hvac-certificates');
- output_message("Added hvac_certificate_storage_path option.", 'success');
- }
-
- // Check and set certificate db version
- if (false === get_option('hvac_certificates_db_version')) {
- add_option('hvac_certificates_db_version', '1.0.0');
- output_message("Added hvac_certificates_db_version option.", 'success');
- }
-
- return true;
-}
-
-// Function to clear cache
-function clear_cache() {
- output_message("Clearing cache...");
-
- // Clear WordPress object cache
- wp_cache_flush();
- output_message("WordPress object cache cleared.", 'success');
-
- // Try to clear Breeze cache if it exists
- if (class_exists('Breeze_Admin')) {
- if (function_exists('breeze_flush_all_cache')) {
- breeze_flush_all_cache();
- output_message("Breeze cache cleared.", 'success');
- } else {
- output_message("Breeze class exists but flush function not found.", 'warning');
- }
- } else {
- output_message("Breeze cache plugin not detected.", 'info');
- }
-
- return true;
-}
-
-// Main execution
-if (php_sapi_name() !== 'cli') {
- echo "Emergency Certificate Fix ";
- echo "";
- echo "Emergency Certificate Fix ";
-}
-
-output_message("Starting emergency certificate fix...");
-
-// Run the fix functions
-$table_fixed = fix_certificate_table();
-$template_fixed = fix_certificate_template();
-$directory_checked = check_certificate_directory();
-$options_fixed = fix_certificate_options();
-$cache_cleared = clear_cache();
-
-// Summary
-if ($table_fixed && $template_fixed && $directory_checked && $options_fixed) {
- output_message("All fixes applied successfully! The certificate reports page should now work properly.", 'success');
- output_message("Please try accessing the certificate reports page now: " . home_url('/certificate-reports/'), 'success');
-} else {
- output_message("Some fixes failed to apply. Please check the logs above for details.", 'error');
-}
-
-// Output HTML footer if running in browser
-if (php_sapi_name() !== 'cli') {
- echo "Fix completed at: " . date('Y-m-d H:i:s') . "
";
- echo "Go to Certificate Reports
";
- echo "";
-}
\ No newline at end of file
diff --git a/wordpress-dev/bin/emergency-dashboard-fix.sh b/wordpress-dev/bin/emergency-dashboard-fix.sh
deleted file mode 100755
index 1063fab7..00000000
--- a/wordpress-dev/bin/emergency-dashboard-fix.sh
+++ /dev/null
@@ -1,243 +0,0 @@
-#!/bin/bash
-
-# Exit on error
-set -e
-
-# Source environment variables
-if [ -f ".env" ]; then
- source .env
-else
- echo "Error: .env file not found. Please create it with the required variables."
- exit 1
-fi
-
-echo "===== Emergency Dashboard Fix ====="
-
-# Create emergency fix script
-echo "Creating emergency fix script..."
-sshpass -p "$UPSKILL_STAGING_PASS" ssh -o StrictHostKeyChecking=no "$UPSKILL_STAGING_SSH_USER@$UPSKILL_STAGING_IP" "cd $UPSKILL_STAGING_PATH && cat > emergency-fix.php << 'EOF'
-user_id = \$user_id;
- }
-
- public function get_total_events_count() {
- global \$wpdb;
- \$count = \$wpdb->get_var( \$wpdb->prepare(
- \"SELECT COUNT(*) FROM {\$wpdb->posts}
- WHERE post_type = %s
- AND post_author = %d
- AND post_status IN (\\\"publish\\\", \\\"future\\\", \\\"draft\\\", \\\"pending\\\", \\\"private\\\")\",
- \"tribe_events\",
- \$this->user_id
- ) );
- return (int) \$count;
- }
-
- public function get_upcoming_events_count() {
- global \$wpdb;
- \$today = date( \"Y-m-d H:i:s\" );
- \$count = \$wpdb->get_var( \$wpdb->prepare(
- \"SELECT COUNT(*) FROM {\$wpdb->posts} p
- LEFT JOIN {\$wpdb->postmeta} pm ON p.ID = pm.post_id AND pm.meta_key = \\\"_EventStartDate\\\"
- WHERE p.post_type = %s
- AND p.post_author = %d
- AND p.post_status IN (\\\"publish\\\", \\\"future\\\")
- AND (pm.meta_value >= %s OR pm.meta_value IS NULL)\",
- \"tribe_events\",
- \$this->user_id,
- \$today
- ) );
- return (int) \$count;
- }
-
- public function get_past_events_count() {
- global \$wpdb;
- \$today = date( \"Y-m-d H:i:s\" );
- \$count = \$wpdb->get_var( \$wpdb->prepare(
- \"SELECT COUNT(*) FROM {\$wpdb->posts} p
- LEFT JOIN {\$wpdb->postmeta} pm ON p.ID = pm.post_id AND pm.meta_key = \\\"_EventEndDate\\\"
- WHERE p.post_type = %s
- AND p.post_author = %d
- AND p.post_status IN (\\\"publish\\\", \\\"private\\\")
- AND pm.meta_value < %s\",
- \"tribe_events\",
- \$this->user_id,
- \$today
- ) );
- return (int) \$count;
- }
-
- public function get_total_tickets_sold() {
- \$total_tickets = 0;
- \$args = array(
- \"post_type\" => \"tribe_events\",
- \"author\" => \$this->user_id,
- \"post_status\" => array( \"publish\", \"future\", \"draft\", \"pending\", \"private\" ),
- \"posts_per_page\" => -1,
- \"fields\" => \"ids\",
- );
- \$event_ids = get_posts( \$args );
- if ( ! empty( \$event_ids ) ) {
- foreach ( \$event_ids as \$event_id ) {
- \$sold = get_post_meta( \$event_id, \"_tribe_tickets_sold\", true );
- if ( is_numeric( \$sold ) ) {
- \$total_tickets += (int) \$sold;
- }
- }
- }
- return \$total_tickets;
- }
-
- public function get_total_revenue() {
- \$total_revenue = 0.0;
- \$args = array(
- \"post_type\" => \"tribe_events\",
- \"author\" => \$this->user_id,
- \"post_status\" => array( \"publish\", \"future\", \"draft\", \"pending\", \"private\" ),
- \"posts_per_page\" => -1,
- \"fields\" => \"ids\",
- );
- \$event_ids = get_posts( \$args );
- if ( ! empty( \$event_ids ) ) {
- foreach ( \$event_ids as \$event_id ) {
- \$revenue = get_post_meta( \$event_id, \"_tribe_revenue_total\", true );
- if ( is_numeric( \$revenue ) ) {
- \$total_revenue += (float) \$revenue;
- }
- }
- }
- return \$total_revenue;
- }
-
- public function get_events_table_data( \$filter_status = \"all\" ) {
- \$events_data = [];
- \$valid_statuses = array( \"publish\", \"future\", \"draft\", \"pending\", \"private\" );
- \$post_status = ( \"all\" === \$filter_status || ! in_array( \$filter_status, \$valid_statuses, true ) )
- ? \$valid_statuses
- : array( \$filter_status );
-
- \$args = array(
- \"post_type\" => \"tribe_events\",
- \"author\" => \$this->user_id,
- \"post_status\" => \$post_status,
- \"posts_per_page\" => -1,
- \"orderby\" => \"meta_value\",
- \"meta_key\" => \"_EventStartDate\",
- \"order\" => \"DESC\",
- );
-
- \$query = new WP_Query( \$args );
- if ( \$query->have_posts() ) {
- while ( \$query->have_posts() ) {
- \$query->the_post();
- \$event_id = get_the_ID();
- \$sold = get_post_meta( \$event_id, \"_tribe_tickets_sold\", true );
- \$revenue = get_post_meta( \$event_id, \"_tribe_revenue_total\", true );
-
- \$events_data[] = array(
- \"id\" => \$event_id,
- \"status\" => get_post_status( \$event_id ),
- \"name\" => get_the_title(),
- \"link\" => get_permalink( \$event_id ),
- \"start_date_ts\" => strtotime( get_post_meta( \$event_id, \"_EventStartDate\", true ) ),
- \"organizer_id\" => (int) get_post_meta( \$event_id, \"_EventOrganizerID\", true ),
- \"capacity\" => \"Unlimited\",
- \"sold\" => is_numeric( \$sold ) ? (int) \$sold : 0,
- \"revenue\" => is_numeric( \$revenue ) ? (float) \$revenue : 0.0,
- );
- }
- wp_reset_postdata();
- }
- return \$events_data;
- }
-}';
-
-// Write the new class
-\$dashboard_file = \"wp-content/plugins/hvac-community-events/includes/class-hvac-dashboard-data.php\";
-if (file_put_contents(\$dashboard_file, \$class_content)) {
- echo \"Successfully created working dashboard class\n\";
-} else {
- echo \"Failed to create dashboard class\n\";
-}
-
-echo \"Emergency fix complete\n\";
-EOF"
-
-echo "Executing emergency fix..."
-sshpass -p "$UPSKILL_STAGING_PASS" ssh -o StrictHostKeyChecking=no "$UPSKILL_STAGING_SSH_USER@$UPSKILL_STAGING_IP" "cd $UPSKILL_STAGING_PATH && php emergency-fix.php"
-
-# Now test with WordPress loaded
-echo "Testing the fixed dashboard..."
-sshpass -p "$UPSKILL_STAGING_PASS" ssh -o StrictHostKeyChecking=no "$UPSKILL_STAGING_SSH_USER@$UPSKILL_STAGING_IP" "cd $UPSKILL_STAGING_PATH && cat > test-emergency-fix.php << 'EOF'
- 'tribe_events',
- 'author' => \$user->ID,
- 'posts_per_page' => 1
-));
-
-if (empty(\$events)) {
- echo \"Creating test event...\n\";
-
- \$event_id = wp_insert_post(array(
- 'post_title' => 'Emergency Test Event',
- 'post_content' => 'Test event created during emergency fix.',
- 'post_status' => 'publish',
- 'post_type' => 'tribe_events',
- 'post_author' => \$user->ID
- ));
-
- if (\$event_id) {
- update_post_meta(\$event_id, '_EventStartDate', date('Y-m-d H:i:s', strtotime('+2 weeks')));
- update_post_meta(\$event_id, '_EventEndDate', date('Y-m-d H:i:s', strtotime('+2 weeks +4 hours')));
- update_post_meta(\$event_id, '_tribe_tickets_sold', 8);
- update_post_meta(\$event_id, '_tribe_revenue_total', 800.00);
- echo \"Created test event with ID: \$event_id\n\";
- }
-}
-
-// Test dashboard
-\$dashboard_data = new HVAC_Dashboard_Data(\$user->ID);
-
-echo \"Dashboard Test Results:\n\";
-echo \"Total Events: \" . \$dashboard_data->get_total_events_count() . \"\n\";
-echo \"Upcoming Events: \" . \$dashboard_data->get_upcoming_events_count() . \"\n\";
-echo \"Past Events: \" . \$dashboard_data->get_past_events_count() . \"\n\";
-echo \"Total Tickets: \" . \$dashboard_data->get_total_tickets_sold() . \"\n\";
-echo \"Total Revenue: $\" . \$dashboard_data->get_total_revenue() . \"\n\";
-
-echo \"Emergency fix test complete!\n\";
-EOF"
-
-sshpass -p "$UPSKILL_STAGING_PASS" ssh -o StrictHostKeyChecking=no "$UPSKILL_STAGING_SSH_USER@$UPSKILL_STAGING_IP" "cd $UPSKILL_STAGING_PATH && php test-emergency-fix.php"
-
-# Clean up
-sshpass -p "$UPSKILL_STAGING_PASS" ssh -o StrictHostKeyChecking=no "$UPSKILL_STAGING_SSH_USER@$UPSKILL_STAGING_IP" "cd $UPSKILL_STAGING_PATH && rm emergency-fix.php test-emergency-fix.php"
-
-echo -e "\n===== Emergency Dashboard Fix Complete ====="
-echo "The dashboard class has been restored to a working state."
-echo "Please refresh the dashboard page - it should now show data correctly."
\ No newline at end of file
diff --git a/wordpress-dev/bin/enable-debug.sh b/wordpress-dev/bin/enable-debug.sh
deleted file mode 100755
index 9f07fec4..00000000
--- a/wordpress-dev/bin/enable-debug.sh
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/bash
-
-# Get absolute path to this script's directory
-SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-
-# Load environment variables
-ENV_FILE="$SCRIPT_DIR/../.env"
-if [ ! -f "$ENV_FILE" ]; then
- echo "Error: .env file not found at: $ENV_FILE"
- exit 1
-fi
-
-source "$ENV_FILE"
-
-# Colors for output
-GREEN='\033[0;32m'
-RED='\033[0;31m'
-YELLOW='\033[1;33m'
-NC='\033[0m'
-
-# Function to check if a command was successful
-check_status() {
- if [ $? -eq 0 ]; then
- echo -e "${GREEN}✓ $1${NC}"
- return 0
- else
- echo -e "${RED}✗ $1${NC}"
- return 1
- fi
-}
-
-echo "=== Enabling Debug Mode on Staging ==="
-echo "Remote host: $UPSKILL_STAGING_IP"
-echo "Remote user: $UPSKILL_STAGING_SSH_USER"
-echo "==============================="
-
-# Create debug configuration
-DEBUG_CONFIG="
-/* Debug Settings */
-define('WP_DEBUG', true);
-define('WP_DEBUG_LOG', true);
-define('WP_DEBUG_DISPLAY', false);
-@ini_set('display_errors', 0);
-
-/* Script Debug */
-define('SCRIPT_DEBUG', true);
-
-/* Error Logging */
-@ini_set('log_errors', 1);
-@ini_set('error_log', dirname(__FILE__) . '/wp-content/debug.log');"
-
-# Add debug configuration to wp-config.php
-echo -e "\n${YELLOW}Adding debug configuration to wp-config.php...${NC}"
-sshpass -p "${UPSKILL_STAGING_PASS}" ssh -o StrictHostKeyChecking=no "${UPSKILL_STAGING_SSH_USER}@${UPSKILL_STAGING_IP}" \
-"cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html && \
-if ! grep -q 'WP_DEBUG' wp-config.php; then \
- sed -i '/* That'\''s all, stop editing! Happy publishing. */i\\$DEBUG_CONFIG\n' wp-config.php && \
- echo 'Debug configuration added.'; \
-else \
- echo 'Debug configuration already exists.'; \
-fi"
-check_status "Debug configuration"
-
-# Create debug.log if it doesn't exist
-echo -e "\n${YELLOW}Creating debug.log file...${NC}"
-sshpass -p "${UPSKILL_STAGING_PASS}" ssh -o StrictHostKeyChecking=no "${UPSKILL_STAGING_SSH_USER}@${UPSKILL_STAGING_IP}" \
-"cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html/wp-content && \
-touch debug.log && \
-chmod 666 debug.log"
-check_status "Debug log file creation"
-
-# Verify debug settings by checking wp-config.php content
-echo -e "\n${YELLOW}Verifying debug settings...${NC}"
-sshpass -p "${UPSKILL_STAGING_PASS}" ssh -o StrictHostKeyChecking=no "${UPSKILL_STAGING_SSH_USER}@${UPSKILL_STAGING_IP}" \
-"cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html && \
-grep -A 5 'WP_DEBUG' wp-config.php"
-check_status "Debug settings verification"
-
-echo -e "\n${GREEN}Debug mode enabled successfully!${NC}"
-echo "Debug log will be written to: wp-content/debug.log"
-
-# Test debug logging
-echo -e "\n${YELLOW}Testing debug logging...${NC}"
-sshpass -p "${UPSKILL_STAGING_PASS}" ssh -o StrictHostKeyChecking=no "${UPSKILL_STAGING_SSH_USER}@${UPSKILL_STAGING_IP}" \
-"cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html && \
-wp eval 'error_log(\"Debug logging test - \" . date(\"Y-m-d H:i:s\"));' --allow-root && \
-echo 'Test log entry written.' && \
-echo 'Recent debug log entries:' && \
-tail -n 5 wp-content/debug.log"
-check_status "Debug log test"
\ No newline at end of file
diff --git a/wordpress-dev/bin/fix-certificate-reports.php b/wordpress-dev/bin/fix-certificate-reports.php
deleted file mode 100644
index 922b01fd..00000000
--- a/wordpress-dev/bin/fix-certificate-reports.php
+++ /dev/null
@@ -1,362 +0,0 @@
- "\033[32m", // Green
- 'error' => "\033[31m", // Red
- 'warning' => "\033[33m", // Yellow
- 'info' => "\033[36m", // Cyan
- 'reset' => "\033[0m", // Reset
- ];
-
- echo $colors[$type] . "[" . strtoupper($type) . "] " . $message . $colors['reset'] . PHP_EOL;
-}
-
-// Function to check and create certificate tables
-function check_and_create_certificate_tables() {
- global $wpdb;
-
- print_status("Checking certificate tables...");
-
- // Define table name
- $table_name = $wpdb->prefix . 'hvac_certificates';
-
- // Check if the table exists
- $table_exists = $wpdb->get_var("SHOW TABLES LIKE '$table_name'") === $table_name;
-
- if (!$table_exists) {
- print_status("Certificate table does not exist. Creating it now...", 'warning');
-
- // Create the table with proper schema
- $charset_collate = $wpdb->get_charset_collate();
-
- $sql = "CREATE TABLE $table_name (
- certificate_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
- event_id BIGINT(20) UNSIGNED NOT NULL,
- attendee_id BIGINT(20) UNSIGNED NOT NULL,
- user_id BIGINT(20) UNSIGNED DEFAULT NULL,
- certificate_number VARCHAR(50) NOT NULL,
- file_path VARCHAR(255) NOT NULL,
- date_generated DATETIME NOT NULL,
- generated_by BIGINT(20) UNSIGNED NOT NULL,
- revoked TINYINT(1) NOT NULL DEFAULT 0,
- revoked_date DATETIME DEFAULT NULL,
- revoked_by BIGINT(20) UNSIGNED DEFAULT NULL,
- revoked_reason TEXT DEFAULT NULL,
- email_sent TINYINT(1) NOT NULL DEFAULT 0,
- email_sent_date DATETIME DEFAULT NULL,
- PRIMARY KEY (certificate_id),
- UNIQUE KEY event_attendee (event_id, attendee_id),
- KEY event_id (event_id),
- KEY attendee_id (attendee_id),
- KEY user_id (user_id),
- KEY certificate_number (certificate_number),
- KEY revoked (revoked)
- ) $charset_collate;";
-
- // Use dbDelta to create or update table
- $result = dbDelta($sql);
-
- // Check if table was created
- $table_exists = $wpdb->get_var("SHOW TABLES LIKE '$table_name'") === $table_name;
-
- if ($table_exists) {
- print_status("Table created successfully!", 'success');
- update_option('hvac_certificates_db_version', '1.0.0');
- } else {
- print_status("Failed to create table. Error: " . $wpdb->last_error, 'error');
- return false;
- }
- } else {
- print_status("Certificate table exists: $table_name", 'success');
-
- // Check if the table has the expected structure
- print_status("Checking table structure...", 'info');
-
- // Get columns
- $columns = $wpdb->get_results("DESCRIBE $table_name");
- $column_names = array_map(function($col) { return $col->Field; }, $columns);
-
- // Expected columns
- $expected_columns = [
- 'certificate_id',
- 'event_id',
- 'attendee_id',
- 'user_id',
- 'certificate_number',
- 'file_path',
- 'date_generated',
- 'generated_by',
- 'revoked',
- 'revoked_date',
- 'revoked_by',
- 'revoked_reason',
- 'email_sent',
- 'email_sent_date'
- ];
-
- // Check for missing columns
- $missing_columns = array_diff($expected_columns, $column_names);
-
- if (!empty($missing_columns)) {
- print_status("Table is missing columns: " . implode(", ", $missing_columns), 'warning');
-
- // Create migration to add missing columns
- print_status("Attempting to fix missing columns...", 'info');
-
- // Use dbDelta to update table structure
- $charset_collate = $wpdb->get_charset_collate();
-
- $sql = "CREATE TABLE $table_name (
- certificate_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
- event_id BIGINT(20) UNSIGNED NOT NULL,
- attendee_id BIGINT(20) UNSIGNED NOT NULL,
- user_id BIGINT(20) UNSIGNED DEFAULT NULL,
- certificate_number VARCHAR(50) NOT NULL,
- file_path VARCHAR(255) NOT NULL,
- date_generated DATETIME NOT NULL,
- generated_by BIGINT(20) UNSIGNED NOT NULL,
- revoked TINYINT(1) NOT NULL DEFAULT 0,
- revoked_date DATETIME DEFAULT NULL,
- revoked_by BIGINT(20) UNSIGNED DEFAULT NULL,
- revoked_reason TEXT DEFAULT NULL,
- email_sent TINYINT(1) NOT NULL DEFAULT 0,
- email_sent_date DATETIME DEFAULT NULL,
- PRIMARY KEY (certificate_id),
- UNIQUE KEY event_attendee (event_id, attendee_id),
- KEY event_id (event_id),
- KEY attendee_id (attendee_id),
- KEY user_id (user_id),
- KEY certificate_number (certificate_number),
- KEY revoked (revoked)
- ) $charset_collate;";
-
- $result = dbDelta($sql);
-
- // Check if fix was successful
- $columns = $wpdb->get_results("DESCRIBE $table_name");
- $column_names = array_map(function($col) { return $col->Field; }, $columns);
- $missing_columns = array_diff($expected_columns, $column_names);
-
- if (empty($missing_columns)) {
- print_status("Table structure fixed successfully!", 'success');
- update_option('hvac_certificates_db_version', '1.0.0');
- } else {
- print_status("Failed to fix all columns. Still missing: " . implode(", ", $missing_columns), 'error');
- return false;
- }
- } else {
- print_status("Table structure is correct.", 'success');
- }
- }
-
- // Check and create certificate directory
- print_status("Checking certificate directory...", 'info');
-
- $upload_dir = wp_upload_dir();
- $cert_dir = $upload_dir['basedir'] . '/' . get_option('hvac_certificate_storage_path', 'hvac-certificates');
-
- if (!file_exists($cert_dir)) {
- print_status("Certificate directory does not exist. Creating it now...", 'warning');
- wp_mkdir_p($cert_dir);
-
- if (file_exists($cert_dir)) {
- print_status("Certificate directory created: $cert_dir", 'success');
- } else {
- print_status("Failed to create certificate directory.", 'error');
- return false;
- }
- } else {
- print_status("Certificate directory exists: $cert_dir", 'success');
- }
-
- // Check and set certificate options
- print_status("Checking certificate options...", 'info');
-
- if (false === get_option('hvac_certificate_counter')) {
- add_option('hvac_certificate_counter', 0);
- print_status("Added hvac_certificate_counter option", 'success');
- }
-
- if (false === get_option('hvac_certificate_prefix')) {
- add_option('hvac_certificate_prefix', 'HVAC-');
- print_status("Added hvac_certificate_prefix option", 'success');
- }
-
- if (false === get_option('hvac_certificate_storage_path')) {
- add_option('hvac_certificate_storage_path', 'hvac-certificates');
- print_status("Added hvac_certificate_storage_path option", 'success');
- }
-
- return true;
-}
-
-// Fix certificate template closing PHP tag issue
-function fix_template_closing_tags() {
- print_status("Checking template-certificate-reports.php for syntax issues...", 'info');
-
- $plugin_dir = WP_CONTENT_DIR . '/plugins/hvac-community-events/';
- $template_file = $plugin_dir . 'templates/certificates/template-certificate-reports.php';
-
- if (file_exists($template_file)) {
- $content = file_get_contents($template_file);
-
- // Find and fix HTML comment tags (
-
- ./tests/integration
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/wordpress-dev/playwright-report/index.html b/wordpress-dev/playwright-report/index.html
deleted file mode 100644
index edd3728c..00000000
--- a/wordpress-dev/playwright-report/index.html
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
-
-
-
-
- Playwright Test Report
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/wordpress-dev/playwright.config.ts b/wordpress-dev/playwright.config.ts
deleted file mode 100644
index 10a7c7af..00000000
--- a/wordpress-dev/playwright.config.ts
+++ /dev/null
@@ -1,80 +0,0 @@
-import { defineConfig, devices } from '@playwright/test';
-import { config as dotenvConfig } from 'dotenv';
-import path from 'path';
-import { VerbosityController, VerbosityLevel, parseVerbosityArgs } from './tests/e2e/utils/VerbosityController';
-import { createCustomReporter } from './tests/e2e/reporters/reporterFactory';
-
-// Load environment variables
-dotenvConfig();
-
-// Set minimal verbosity
-const verbosity = VerbosityController.getInstance();
-verbosity.setLevel(VerbosityLevel.MINIMAL);
-
-// Staging server configuration
-export const STAGING_CONFIG = {
- url: 'upskill-staging.measurequick.com',
- ip: '146.190.76.204',
- sshUser: 'roodev',
- path: '/home/974670.cloudwaysapps.com/uberrxmprk/public_html'
-} as const;
-
-export default defineConfig({
- testDir: './tests/e2e',
- timeout: 30000,
- fullyParallel: true,
- forbidOnly: !!process.env.CI,
- retries: process.env.CI ? 2 : 0,
- workers: process.env.CI ? 1 : undefined,
-
- // Minimal reporting configuration
- reporter: [
- ['dot'], // Most minimal reporter - just shows dots for passes and brief failure messages
- ],
-
- // Global test configuration
- use: {
- baseURL: `https://${STAGING_CONFIG.url}`,
- trace: 'retain-on-failure',
-
- // Screenshot configuration based on verbosity
- screenshot: {
- mode: 'only-on-failure',
- fullPage: true
- },
-
- // Video configuration based on verbosity
- video: {
- mode: 'retain-on-failure',
- size: { width: 1280, height: 720 }
- },
-
- // Minimal logging configuration
- contextOptions: {
- logger: {
- isEnabled: (name, severity) => severity === 'error', // Only enable error logging
- log: (name, severity, message) => {
- if (severity === 'error') {
- console.error(`[${name}] ${message}`);
- }
- }
- }
- }
- },
-
- // Test projects configuration
- // REDUCED: Only run tests on Chromium desktop for faster, focused CI.
- projects: [
- {
- name: 'chromium',
- use: {
- ...devices['Desktop Chrome'],
- viewport: { width: 1920, height: 1080 }
- },
- }
- ],
-
- // Global setup configuration
- globalSetup: require.resolve('./tests/e2e/global-setup'),
- globalTeardown: require.resolve('./tests/e2e/global-teardown'),
-});
diff --git a/wordpress-dev/ssl/nginx-selfsigned.crt b/wordpress-dev/ssl/nginx-selfsigned.crt
deleted file mode 100644
index a8f3a91d..00000000
--- a/wordpress-dev/ssl/nginx-selfsigned.crt
+++ /dev/null
@@ -1,19 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIDCTCCAfGgAwIBAgIUQT5opIu0VzUSOvvGNB64vUUOB4MwDQYJKoZIhvcNAQEL
-BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MB4XDTI1MDMyNTEzMTAzOFoXDTI2MDMy
-NTEzMTAzOFowFDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEF
-AAOCAQ8AMIIBCgKCAQEA2roTpun+uLGCDprLc8QbMvdNsDhlYX0jzTq8niCPZEvS
-A4UMkBqzxRIQ0FXpsohDSZoVIhLaZqEHzVFRH0iXfjaxNwpV4Bd6ry7ouVbxvaJp
-OaSCP2ZEWyAHeP7Lt9A4Eufoq1cA5jXvBvmdxUsVJDUbI7GDZgIwLmVpKN/jma0s
-zMMZnPkYloSnsq2nlt4eoanbGMlxaMzYT0AhaKUpUHhNwy4TMr5Th5Md15+ylY6l
-+jzofD5GXIaZKz+IfhewcKb0aGE455EHKKGGg7b7thOEUE8hCAogiwlvp15gW8eo
-M7HovjGQR/xhNgVCGGLShtkqTwscDZg6owvpOB8r0wIDAQABo1MwUTAdBgNVHQ4E
-FgQUI/juGn74b9deyhOL3isgtl2BWVEwHwYDVR0jBBgwFoAUI/juGn74b9deyhOL
-3isgtl2BWVEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAAM3m
-BF5YFwQRJy2HobJPVL21PMDxBzq1azo+WNJWTBjJ3JkFywnupkEsehZnjVJ6eeVH
-RgAfXbozxC93Xl3NBbVEzEp0kY119xZ84HbHN9YmPCeKVA5y406aOC/ph+2Llvc5
-S2q7nV3HQ1FUY/mW10/j4e2z/5/7qTJFow/OCqFPI7oT5OphhV6fZWcDLSTBYB6S
-HlLH2+U05hLHb1tZ6gq8/veHH91dTT9327OzqXSqSn8XEd08IyY2z3eUzVru2J9Q
-1sD0jkf2o2YCl+MpY/vfNKb3LssJtzVYKs8uvZUSjw1QjysvfTTYrcOo8LdsKUGU
-c2cm7tzBonfbmomTQA==
------END CERTIFICATE-----
diff --git a/wordpress-dev/ssl/nginx-selfsigned.key b/wordpress-dev/ssl/nginx-selfsigned.key
deleted file mode 100644
index 5e087f38..00000000
--- a/wordpress-dev/ssl/nginx-selfsigned.key
+++ /dev/null
@@ -1,28 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDauhOm6f64sYIO
-mstzxBsy902wOGVhfSPNOryeII9kS9IDhQyQGrPFEhDQVemyiENJmhUiEtpmoQfN
-UVEfSJd+NrE3ClXgF3qvLui5VvG9omk5pII/ZkRbIAd4/su30DgS5+irVwDmNe8G
-+Z3FSxUkNRsjsYNmAjAuZWko3+OZrSzMwxmc+RiWhKeyraeW3h6hqdsYyXFozNhP
-QCFopSlQeE3DLhMyvlOHkx3Xn7KVjqX6POh8PkZchpkrP4h+F7BwpvRoYTjnkQco
-oYaDtvu2E4RQTyEICiCLCW+nXmBbx6gzsei+MZBH/GE2BUIYYtKG2SpPCxwNmDqj
-C+k4HyvTAgMBAAECggEAErHxsndkCW7iqiAak69UKjiisBU7iE5x6PDESzlTod1f
-lGPWFw5K0n7tmpQ9TVoB2YcNMPeVKbOwPwePfEtwGp5ohBPWEzlU7lqyeZgwDjPI
-WqzwLqStfKLYM925yK3h0EirxZ/CHx5gN9bOE9CL4trHK93YWISHXO/XqGHtyj/i
-fbTUumeBP6rAebjIJQyokgqIdmysXVMxETYCotk2UyCD9wPWE5KfoUa+/9/HXKNC
-m8YPabOhVI618UyTBOt82ciu02NYty9xoQIi1Sj9sCCJ8nJ94fctBRj2/A/IMDFu
-Yew8ECcgn1lIFy4mB/M1m1NzYqRV6WFwbJB5m1YBwQKBgQD9RpK1XlDcZqC+oph1
-ed5Xfi0o/95hASjjQRfy0OAl5JNglNkD/J50gZQheO/NgKA5ku5mVe1oPGrVn/3i
-nTK8lri/NxD6P0oamkDssJh5AgbvghsKQFv2XQw9Padn+BrCCbNQRvtJzH8uigv1
-S/QFiv8n7ZX19Oume6cwaIjXlQKBgQDdFF5+T6W6bvU72g+zDaS0HPvQQMEcYO77
-Ecg3Zr+MeRv0qS+uR1lrBR6ikOeTWVOooIfWLX0v8Lk6OHDCsYGlJode1RSb6xpt
-vfQ0b8qCbs+AtOt2u0+XX/NI/042LbXikvN//RlImXSFpONq8EdtMBXhyEekQ1V7
-Kg7QZr97xwKBgQCXzGd7moaeQkhPWYZEyoDvMWmBrDEtNJO7+LSQzI27SE7oUO3s
-jMivjUYp9aDMKy5cs2p9HT0H/0YMuTJiUtMo4rDhsfBT/AC/BvqooYMQ650aiYEJ
-WN+FPelq/vvJvZLT/xpgn9pWNeF4FDbsktQzSkZ5ONVrL5rZEj13Lv/tLQKBgQCT
-0uPgF4ecIkctzwACXJQNrvedZz74p8QD8v7qNHTOC8jqjhoIsUKT8adrUfLWLrtm
-nHhXeLElVhO0Xzreo+wpLpsDiPyvyMMyL/pS+ZDyJ//tcoujJ1nvwMOewr9cMLJW
-nqXcpbK7PYiROBCsV5+a3bUz9EQbDL7ijNu884cDzwKBgQDDYHUrDH54/893PTFy
-WZKIjwgpD8GFQq193keT3wkmiBcnBicWStlnWDC4bG4FWzDs5FRnqhSwOSP3cldL
-QCRXauYo3nZl3EVmPw6Zcor8V0Q34Ni77SWWvIh+20K8Gg7u6yRbI3zfeR2BLXh6
-gH6wrPqzKMcnAEV1iKtxjdWK9g==
------END PRIVATE KEY-----
diff --git a/wordpress-dev/staging-deployment/assets/css/hvac-dashboard.css b/wordpress-dev/staging-deployment/assets/css/hvac-dashboard.css
deleted file mode 100644
index 67fc49e5..00000000
--- a/wordpress-dev/staging-deployment/assets/css/hvac-dashboard.css
+++ /dev/null
@@ -1,652 +0,0 @@
-/*
- * HVAC Trainer Dashboard Styles - Enhanced Version
- *
- * Styles specific to the trainer dashboard page.
- */
-
-/* CSS Custom Properties / Variables */
-:root {
- /* Spacing */
- --hvac-spacing-1: 0.25rem;
- --hvac-spacing-2: 0.5rem;
- --hvac-spacing-3: 0.75rem;
- --hvac-spacing-4: 1rem;
- --hvac-spacing-5: 1.5rem;
- --hvac-spacing-6: 2rem;
- --hvac-spacing-8: 3rem;
- --hvac-spacing-sm: 0.5rem;
- --hvac-spacing-md: 1rem;
- --hvac-spacing-lg: 1.5rem;
- --hvac-spacing-xl: 2rem;
-
- /* Border Radius */
- --hvac-radius-sm: 4px;
- --hvac-radius-md: 8px;
- --hvac-radius-lg: 12px;
- --hvac-radius-full: 9999px;
- --hvac-border-radius: 8px;
-
- /* Colors */
- --hvac-theme-primary: #0073aa;
- --hvac-theme-primary-dark: #005a87;
- --hvac-theme-text: #333333;
- --hvac-primary: #0073aa;
- --hvac-secondary: #666666;
- --hvac-text: #333333;
- --hvac-border: #dddddd;
- --hvac-border-light: #eeeeee;
-
- /* Shadows */
- --hvac-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
- --hvac-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
-}
-
-/* Dashboard Container */
-.hvac-dashboard {
- padding: var(--hvac-spacing-lg);
- background-color: #f9f9f9;
- border-radius: var(--hvac-border-radius);
-}
-
-/* Header */
-.hvac-dashboard-header {
- margin-bottom: 2em;
- padding-bottom: 1em;
- border-bottom: 1px solid var(--hvac-border);
- display: flex;
- justify-content: space-between;
- align-items: center;
- flex-wrap: wrap;
-}
-
-.hvac-dashboard-header h1 {
- margin: 0 0 var(--hvac-spacing-sm) 0;
- color: var(--hvac-text);
- font-size: 1.8rem;
- font-weight: 600;
-}
-
-.hvac-dashboard-nav {
- display: flex;
- gap: var(--hvac-spacing-sm);
- flex-wrap: wrap;
-}
-
-.hvac-dashboard-nav a {
- margin: 0;
- min-width: 120px;
- text-align: center;
-}
-
-/* Stats Section */
-.hvac-dashboard-stats {
- margin-bottom: var(--hvac-spacing-xl);
-}
-
-.hvac-dashboard-stats h2 {
- margin-top: 0;
- margin-bottom: var(--hvac-spacing-md);
- font-size: 1.4rem;
- color: var(--hvac-text);
- padding-bottom: var(--hvac-spacing-sm);
- border-bottom: 1px solid var(--hvac-border-light);
-}
-
-/* Row layout for stats */
-.hvac-stats-row {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- margin: -10px;
- justify-content: space-between;
- align-items: stretch;
-}
-
-.hvac-stat-col {
- flex: 1;
- min-width: 160px;
- padding: 10px;
- margin-bottom: var(--hvac-spacing-sm);
-}
-
-.hvac-stat-card {
- border: 1px solid var(--hvac-border);
- border-radius: var(--hvac-border-radius);
- padding: var(--hvac-spacing-lg);
- background: white;
- text-align: center;
- width: 100%;
- flex-grow: 1;
- height: 100%;
- box-shadow: var(--hvac-shadow);
- transition: transform 0.2s, box-shadow 0.2s;
-}
-
-.hvac-stat-card:hover {
- transform: translateY(-2px);
- box-shadow: var(--hvac-shadow-lg);
-}
-
-.hvac-stat-card h3 {
- margin-top: 0;
- margin-bottom: var(--hvac-spacing-sm);
- font-size: 1.1em;
- color: var(--hvac-secondary);
- font-weight: 600;
-}
-
-.hvac-stat-card p {
- font-size: 2.2em;
- margin: 0.2em 0;
- font-weight: 700;
- line-height: 1.2;
- color: var(--hvac-primary);
-}
-
-.hvac-stat-card small {
- display: block;
- margin-top: var(--hvac-spacing-sm);
- font-size: 0.85em;
- color: var(--hvac-text-light);
-}
-
-/* Events Section */
-.hvac-dashboard-events {
- background: white;
- border-radius: var(--hvac-border-radius);
- padding: var(--hvac-spacing-lg);
- box-shadow: var(--hvac-shadow);
- margin-bottom: var(--hvac-spacing-xl);
-}
-
-.hvac-dashboard-events h2 {
- margin-top: 0;
- margin-bottom: var(--hvac-spacing-md);
- font-size: 1.4rem;
- color: var(--hvac-text);
- padding-bottom: var(--hvac-spacing-sm);
- border-bottom: 1px solid var(--hvac-border-light);
-}
-
-/* Event Filters */
-.hvac-event-filters {
- margin-bottom: var(--hvac-spacing-lg);
- padding: var(--hvac-spacing-md);
- background-color: var(--hvac-secondary-light);
- border-radius: var(--hvac-border-radius);
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: var(--hvac-spacing-sm);
-}
-
-.hvac-event-filters span {
- margin-right: var(--hvac-spacing-md);
- font-weight: 600;
- color: var(--hvac-secondary-dark);
-}
-
-.hvac-filter {
- padding: 0.5rem 1rem !important;
- margin: 0 !important;
-}
-
-.hvac-filter-active {
- background-color: var(--hvac-primary) !important;
- color: white !important;
-}
-
-/* Events Table */
-.hvac-events-table-wrapper {
- overflow-x: auto;
- position: relative;
- min-height: 100px;
- border: 1px solid var(--hvac-border);
- border-radius: var(--hvac-border-radius);
-}
-
-.events-table {
- width: 100%;
- border-collapse: collapse;
-}
-
-.events-table th {
- background-color: #f8f9fa;
- color: var(--hvac-secondary-dark);
- padding: var(--hvac-spacing-md);
- font-weight: 600;
- text-align: left;
- border-bottom: 2px solid var(--hvac-border);
-}
-
-.events-table td {
- padding: var(--hvac-spacing-md);
- border-bottom: 1px solid var(--hvac-border-light);
- vertical-align: middle;
-}
-
-.events-table tbody tr:hover {
- background-color: var(--hvac-primary-light);
-}
-
-.events-table .column-actions {
- white-space: nowrap;
-}
-
-.events-table .column-actions a {
- margin-right: var(--hvac-spacing-sm);
- color: var(--hvac-primary);
- text-decoration: none;
- font-weight: 500;
-}
-
-.events-table .column-actions a:hover {
- text-decoration: underline;
-}
-
-/* Status indicators */
-.status-indicator {
- display: inline-block;
- padding: 0.25rem 0.5rem;
- border-radius: 12px;
- font-size: 0.85em;
- font-weight: 500;
- text-align: center;
-}
-
-.status-published {
- background-color: #e8f5e9;
- color: #2e7d32;
-}
-
-.status-draft {
- background-color: #eceff1;
- color: #546e7a;
-}
-
-.status-pending {
- background-color: #fff3e0;
- color: #ef6c00;
-}
-
-/* Loading indicator */
-.hvac-loading {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(255, 255, 255, 0.8);
- display: flex;
- justify-content: center;
- align-items: center;
- font-weight: bold;
- padding: 20px;
- z-index: 10;
- animation: fadeIn 0.3s ease-in-out;
-}
-
-@keyframes fadeIn {
- from { opacity: 0; }
- to { opacity: 1; }
-}
-
-/* Error message */
-.hvac-error {
- color: var(--hvac-error);
- padding: var(--hvac-spacing-md);
- border: 1px solid #ffb8bb;
- background-color: var(--hvac-error-light);
- margin: var(--hvac-spacing-md) 0;
- border-radius: var(--hvac-border-radius);
-}
-
-/* Responsive adjustments */
-@media (max-width: 768px) {
- .hvac-dashboard-header {
- flex-direction: column;
- align-items: flex-start;
- }
-
- .hvac-dashboard-nav {
- margin-top: var(--hvac-spacing-md);
- width: 100%;
- }
-
- .hvac-dashboard-nav a {
- flex: 1;
- min-width: unset;
- }
-
- .hvac-stat-col {
- min-width: 140px;
- flex-basis: calc(50% - 20px);
- }
-
- .hvac-event-filters {
- flex-direction: column;
- align-items: flex-start;
- }
-
- .hvac-event-filters span {
- margin-bottom: var(--hvac-spacing-sm);
- }
-
- .hvac-filter {
- width: 100%;
- text-align: center;
- }
-}
-
-@media (max-width: 480px) {
- .hvac-stat-col {
- flex-basis: 100%;
- }
-}
-
-/* ===================================
- Master Dashboard Specific Styles
- =================================== */
-
-/* Dashboard Sections */
-.dashboard-section {
- background: #fff;
- border-radius: var(--hvac-radius-md);
- padding: var(--hvac-spacing-6);
- margin-bottom: var(--hvac-spacing-6);
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
-}
-
-.section-title {
- font-size: 1.5rem;
- font-weight: 600;
- color: var(--hvac-theme-text);
- margin-bottom: var(--hvac-spacing-4);
- padding-bottom: var(--hvac-spacing-3);
- border-bottom: 2px solid #e5e7eb;
-}
-
-/* Events Filters */
-.events-filters {
- display: flex;
- flex-wrap: wrap;
- gap: var(--hvac-spacing-3);
- align-items: flex-end;
- margin-bottom: var(--hvac-spacing-4);
- padding: var(--hvac-spacing-4);
- background: #f9fafb;
- border-radius: var(--hvac-radius-md);
-}
-
-.filter-group {
- display: flex;
- flex-direction: column;
- gap: var(--hvac-spacing-1);
-}
-
-.filter-group label {
- font-size: 0.875rem;
- font-weight: 500;
- color: var(--hvac-theme-text);
-}
-
-.filter-group input,
-.filter-group select {
- padding: var(--hvac-spacing-2) var(--hvac-spacing-3);
- border: 1px solid #d1d5db;
- border-radius: var(--hvac-radius-sm);
- font-size: 0.875rem;
- min-width: 150px;
-}
-
-.filter-group input:focus,
-.filter-group select:focus {
- outline: none;
- border-color: var(--hvac-theme-primary);
- box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
-}
-
-/* Trainers Table */
-.trainers-table-container {
- overflow-x: auto;
- margin-top: var(--hvac-spacing-4);
-}
-
-.trainers-table {
- width: 100%;
- border-collapse: separate;
- border-spacing: 0;
- background: #fff;
-}
-
-.trainers-table thead {
- background: #f9fafb;
-}
-
-.trainers-table th {
- padding: var(--hvac-spacing-3) var(--hvac-spacing-4);
- text-align: left;
- font-weight: 600;
- color: var(--hvac-theme-text);
- border-bottom: 2px solid #e5e7eb;
- white-space: nowrap;
-}
-
-.trainers-table td {
- padding: var(--hvac-spacing-3) var(--hvac-spacing-4);
- border-bottom: 1px solid #f3f4f6;
-}
-
-.trainers-table tbody tr:hover {
- background: #f9fafb;
-}
-
-.trainers-table .trainer-name {
- font-weight: 500;
-}
-
-.trainers-table .number {
- text-align: center;
-}
-
-.trainers-table .revenue {
- text-align: right;
- font-weight: 500;
- color: #059669;
-}
-
-/* Events Table Container */
-.events-table-container {
- margin-top: var(--hvac-spacing-4);
-}
-
-/* Status Badge */
-.status-badge {
- display: inline-block;
- padding: var(--hvac-spacing-1) var(--hvac-spacing-2);
- border-radius: var(--hvac-radius-full);
- font-size: 0.75rem;
- font-weight: 500;
- text-transform: uppercase;
-}
-
-.status-badge.status-publish {
- background: #dcfce7;
- color: #166534;
-}
-
-.status-badge.status-future {
- background: #dbeafe;
- color: #1e40af;
-}
-
-.status-badge.status-draft {
- background: #f3f4f6;
- color: #6b7280;
-}
-
-.status-badge.status-pending {
- background: #fef3c7;
- color: #92400e;
-}
-
-.status-badge.status-private {
- background: #fce7f3;
- color: #9f1239;
-}
-
-/* Pagination */
-.pagination-container {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: var(--hvac-spacing-6);
- padding-top: var(--hvac-spacing-4);
- border-top: 1px solid #e5e7eb;
-}
-
-.pagination-info {
- color: var(--hvac-theme-text);
- font-size: 0.875rem;
-}
-
-.pagination-controls {
- display: flex;
- gap: var(--hvac-spacing-2);
-}
-
-.pagination-btn {
- padding: var(--hvac-spacing-2) var(--hvac-spacing-3);
- border: 1px solid #d1d5db;
- background: #fff;
- color: var(--hvac-theme-text);
- border-radius: var(--hvac-radius-sm);
- font-size: 0.875rem;
- cursor: pointer;
- transition: all 0.2s;
-}
-
-.pagination-btn:hover {
- background: #f9fafb;
- border-color: var(--hvac-theme-primary);
-}
-
-.pagination-btn.active {
- background: var(--hvac-theme-primary);
- color: #fff;
- border-color: var(--hvac-theme-primary);
-}
-
-.pagination-btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
-}
-
-/* Loading States */
-.loading-placeholder {
- text-align: center;
- padding: var(--hvac-spacing-8);
- color: #6b7280;
- font-size: 1rem;
-}
-
-.loading-placeholder::before {
- content: '';
- display: inline-block;
- width: 20px;
- height: 20px;
- margin-right: var(--hvac-spacing-2);
- border: 2px solid #e5e7eb;
- border-top-color: var(--hvac-theme-primary);
- border-radius: 50%;
- animation: hvac-spin 1s linear infinite;
-}
-
-/* Button Styles */
-.btn {
- display: inline-block;
- padding: var(--hvac-spacing-2) var(--hvac-spacing-4);
- border-radius: var(--hvac-radius-sm);
- font-size: 0.875rem;
- font-weight: 500;
- text-decoration: none;
- transition: all 0.2s;
- cursor: pointer;
- border: none;
-}
-
-.btn-primary {
- background: var(--hvac-theme-primary);
- color: #fff;
-}
-
-.btn-primary:hover {
- background: var(--hvac-theme-primary-dark);
-}
-
-.btn-secondary {
- background: #6b7280;
- color: #fff;
-}
-
-.btn-secondary:hover {
- background: #4b5563;
-}
-
-.btn-small {
- padding: var(--hvac-spacing-1) var(--hvac-spacing-2);
- font-size: 0.75rem;
-}
-
-/* No Data Message */
-.no-data-message {
- text-align: center;
- padding: var(--hvac-spacing-8);
- color: #6b7280;
-}
-
-.no-data-message p {
- margin: 0;
- font-size: 1rem;
-}
-
-/* Error Message */
-.error-message {
- background: #fee;
- border: 1px solid #fcc;
- color: #c33;
- padding: var(--hvac-spacing-4);
- border-radius: var(--hvac-radius-sm);
- text-align: center;
-}
-
-/* Responsive Design for Master Dashboard */
-@media (max-width: 768px) {
- .events-filters {
- flex-direction: column;
- }
-
- .filter-group {
- width: 100%;
- }
-
- .filter-group input,
- .filter-group select {
- width: 100%;
- }
-
- .pagination-container {
- flex-direction: column;
- gap: var(--hvac-spacing-3);
- text-align: center;
- }
-
- .trainers-table {
- font-size: 0.875rem;
- }
-
- .trainers-table th,
- .trainers-table td {
- padding: var(--hvac-spacing-2);
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/staging-deployment/hvac-community-events.php b/wordpress-dev/staging-deployment/hvac-community-events.php
deleted file mode 100644
index fb08037f..00000000
--- a/wordpress-dev/staging-deployment/hvac-community-events.php
+++ /dev/null
@@ -1,858 +0,0 @@
-init_secure_download();
- HVAC_Logger::info('Certificate security initialized during activation', 'Activation');
- }
-
- // Define hierarchical page structure
- $parent_pages = [
- 'trainer' => [
- 'title' => 'Trainer',
- 'content' => '',
- 'children' => [
- 'dashboard' => [
- 'title' => 'Trainer Dashboard',
- 'content' => '[hvac_dashboard]',
- ],
- 'registration' => [
- 'title' => 'Trainer Registration',
- 'content' => '[hvac_trainer_registration]',
- ],
- 'my-profile' => [
- 'title' => 'Trainer Profile',
- 'content' => '[hvac_trainer_profile]',
- ],
- 'email-attendees' => [
- 'title' => 'Email Attendees',
- 'content' => '[hvac_email_attendees]',
- ],
- 'certificate-reports' => [
- 'title' => 'Certificate Reports',
- 'content' => '[hvac_certificate_reports]',
- ],
- 'generate-certificates' => [
- 'title' => 'Generate Certificates',
- 'content' => '[hvac_generate_certificates]',
- ],
- 'documentation' => [
- 'title' => 'Trainer Documentation',
- 'content' => '[hvac_documentation]',
- ],
- 'attendee-profile' => [
- 'title' => 'Attendee Profile',
- 'content' => '[hvac_attendee_profile]',
- ],
- 'communication-templates' => [
- 'title' => 'Communication Templates',
- 'content' => '[hvac_communication_templates]',
- ],
- 'communication-schedules' => [
- 'title' => 'Communication Schedules',
- 'content' => '[hvac_communication_schedules]',
- ],
- 'event' => [
- 'title' => 'Event',
- 'content' => '',
- 'children' => [
- 'manage' => [
- 'title' => 'Manage Event',
- 'content' => '[tribe_community_events view="submission_form"]',
- ],
- 'summary' => [
- 'title' => 'Event Summary',
- 'content' => '[hvac_event_summary]',
- ],
- ]
- ]
- ]
- ],
- 'master-trainer' => [
- 'title' => 'Master Trainer',
- 'content' => '',
- 'children' => [
- 'dashboard' => [
- 'title' => 'Master Dashboard',
- 'content' => '[hvac_master_dashboard]',
- ],
- 'certificate-fix' => [
- 'title' => 'Certificate System Diagnostics',
- 'content' => '[hvac_certificate_fix]',
- ],
- 'google-sheets' => [
- 'title' => 'Google Sheets Integration',
- 'content' => '[hvac_google_sheets]',
- ],
- ]
- ]
- ];
-
- // Define root pages (flat structure)
- $root_pages = [
- 'training-login' => [
- 'title' => 'Trainer Login',
- 'content' => '[hvac_community_login]',
- 'template' => 'page-community-login.php',
- ],
- ];
-
- $created_pages = [];
-
- // Create root pages first
- HVAC_Logger::info('Creating root pages...', 'Activation');
- foreach ($root_pages as $slug => $page_data) {
- $existing = get_page_by_path($slug);
- if (!$existing) {
- $page_args = [
- 'post_title' => $page_data['title'],
- 'post_name' => $slug,
- 'post_content' => $page_data['content'],
- 'post_status' => 'publish',
- 'post_type' => 'page',
- 'comment_status' => 'closed',
- 'ping_status' => 'closed',
- ];
-
- if (!empty($page_data['template'])) {
- $page_args['page_template'] = $page_data['template'];
- }
-
- $page_id = wp_insert_post($page_args);
- if (!is_wp_error($page_id)) {
- $created_pages[$slug] = $page_id;
- HVAC_Logger::info("Created root page: {$page_data['title']} (/{$slug}/)", 'Activation');
- } else {
- HVAC_Logger::error("Failed to create root page: {$slug} - " . $page_id->get_error_message(), 'Activation');
- }
- } else {
- HVAC_Logger::info("Root page exists: {$page_data['title']} (/{$slug}/)", 'Activation');
- }
- }
-
- // Create hierarchical pages
- HVAC_Logger::info('Creating hierarchical pages...', 'Activation');
- foreach ($parent_pages as $parent_slug => $parent_data) {
- // Create parent page
- $existing_parent = get_page_by_path($parent_slug);
- $parent_id = null;
-
- if (!$existing_parent) {
- $parent_args = [
- 'post_title' => $parent_data['title'],
- 'post_name' => $parent_slug,
- 'post_content' => $parent_data['content'],
- 'post_status' => 'publish',
- 'post_type' => 'page',
- 'comment_status' => 'closed',
- 'ping_status' => 'closed',
- ];
-
- $parent_id = wp_insert_post($parent_args);
- if (!is_wp_error($parent_id)) {
- $created_pages[$parent_slug] = $parent_id;
- HVAC_Logger::info("Created parent page: {$parent_data['title']} (/{$parent_slug}/)", 'Activation');
- } else {
- HVAC_Logger::error("Failed to create parent page: {$parent_slug} - " . $parent_id->get_error_message(), 'Activation');
- continue;
- }
- } else {
- $parent_id = $existing_parent->ID;
- HVAC_Logger::info("Parent page exists: {$parent_data['title']} (/{$parent_slug}/)", 'Activation');
- }
-
- // Create child pages
- if ($parent_id && isset($parent_data['children'])) {
- foreach ($parent_data['children'] as $child_slug => $child_data) {
- $full_path = $parent_slug . '/' . $child_slug;
- $existing_child = get_page_by_path($full_path);
-
- if (!$existing_child) {
- $child_args = [
- 'post_title' => $child_data['title'],
- 'post_name' => $child_slug,
- 'post_content' => $child_data['content'],
- 'post_status' => 'publish',
- 'post_type' => 'page',
- 'post_parent' => $parent_id,
- 'comment_status' => 'closed',
- 'ping_status' => 'closed',
- ];
-
- $child_id = wp_insert_post($child_args);
- if (!is_wp_error($child_id)) {
- $created_pages[$full_path] = $child_id;
- HVAC_Logger::info("Created child page: {$child_data['title']} (/{$full_path}/)", 'Activation');
-
- // Handle grandchildren (like event/manage, event/summary)
- if (isset($child_data['children'])) {
- foreach ($child_data['children'] as $grandchild_slug => $grandchild_data) {
- $grandchild_path = $parent_slug . '/' . $child_slug . '/' . $grandchild_slug;
- $existing_grandchild = get_page_by_path($grandchild_path);
-
- if (!$existing_grandchild) {
- $grandchild_args = [
- 'post_title' => $grandchild_data['title'],
- 'post_name' => $grandchild_slug,
- 'post_content' => $grandchild_data['content'],
- 'post_status' => 'publish',
- 'post_type' => 'page',
- 'post_parent' => $child_id,
- 'comment_status' => 'closed',
- 'ping_status' => 'closed',
- ];
-
- $grandchild_id = wp_insert_post($grandchild_args);
- if (!is_wp_error($grandchild_id)) {
- $created_pages[$grandchild_path] = $grandchild_id;
- HVAC_Logger::info("Created grandchild page: {$grandchild_data['title']} (/{$grandchild_path}/)", 'Activation');
- } else {
- HVAC_Logger::error("Failed to create grandchild page: {$grandchild_path} - " . $grandchild_id->get_error_message(), 'Activation');
- }
- } else {
- HVAC_Logger::info("Grandchild page exists: {$grandchild_data['title']} (/{$grandchild_path}/)", 'Activation');
- }
- }
- }
- } else {
- HVAC_Logger::error("Failed to create child page: {$full_path} - " . $child_id->get_error_message(), 'Activation');
- }
- } else {
- HVAC_Logger::info("Child page exists: {$child_data['title']} (/{$full_path}/)", 'Activation');
- }
- }
- }
- }
-
- // Store created pages in WordPress option
- update_option('hvac_ce_created_pages', $created_pages);
- HVAC_Logger::info('Page creation completed. Created ' . count($created_pages) . ' pages', 'Activation');
-
- // Create the custom roles
- $roles_manager = new HVAC_Roles();
-
- // Create trainer role
- $result = $roles_manager->create_trainer_role();
- if ($result) {
- HVAC_Logger::info('Successfully created hvac_trainer role.', 'Activation');
- } else {
- HVAC_Logger::error('Failed to create hvac_trainer role.', 'Activation');
- }
-
- // Create master trainer role
- $master_result = $roles_manager->create_master_trainer_role();
- if ($master_result) {
- HVAC_Logger::info('Successfully created hvac_master_trainer role.', 'Activation');
- } else {
- HVAC_Logger::error('Failed to create hvac_master_trainer role.', 'Activation');
- }
-
- // Grant administrators access to dashboard to prevent redirect loops
- $admin_access = $roles_manager->grant_admin_dashboard_access();
- if ($admin_access) {
- HVAC_Logger::info('Successfully granted admin dashboard access.', 'Activation');
- } else {
- HVAC_Logger::error('Failed to grant admin dashboard access.', 'Activation');
- }
-
- // Flush rewrite rules to ensure new URLs work
- flush_rewrite_rules();
- HVAC_Logger::info('Rewrite rules flushed', 'Activation');
-
- HVAC_Logger::info('Completed hierarchical page creation and role setup process', 'Activation');
-
-} // End hvac_ce_create_required_pages
-register_activation_hook(__FILE__, 'hvac_ce_create_required_pages');
-
-/**
- * Handle backward compatibility redirects for old URLs.
- *
- * This function redirects old page URLs to their new hierarchical structure
- * to maintain compatibility for existing bookmarks and external links.
- */
-function hvac_ce_handle_legacy_redirects() {
- // Legacy URL to new URL mapping
- $legacy_redirects = [
- 'community-login' => 'training-login',
- 'hvac-dashboard' => 'trainer/dashboard',
- 'master-dashboard' => 'master-trainer/dashboard',
- 'manage-event' => 'trainer/event/manage',
- 'trainer-profile' => 'trainer/my-profile',
- 'event-summary' => 'trainer/event/summary',
- 'email-attendees' => 'trainer/email-attendees',
- 'certificate-reports' => 'trainer/certificate-reports',
- 'generate-certificates' => 'trainer/generate-certificates',
- 'certificate-fix' => 'master-trainer/certificate-fix',
- 'hvac-documentation' => 'trainer/documentation',
- 'attendee-profile' => 'trainer/attendee-profile',
- 'google-sheets' => 'master-trainer/google-sheets',
- 'communication-templates' => 'trainer/communication-templates',
- 'communication-schedules' => 'trainer/communication-schedules',
- 'trainer-registration' => 'trainer/registration',
- ];
-
- // Get current page slug
- global $post;
- if (!is_page() || !$post) {
- return;
- }
-
- $current_slug = $post->post_name;
-
- // Check if current page is a legacy URL that needs redirecting
- if (isset($legacy_redirects[$current_slug])) {
- // Get current URL path to prevent redirect loops
- $current_path = trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/');
- $target_path = $legacy_redirects[$current_slug];
-
- // Skip redirect if we are already on the target path
- if ($current_path === $target_path) {
- return;
- }
-
- $new_url = home_url('/' . $legacy_redirects[$current_slug] . '/');
-
- // Preserve query parameters
- if (!empty($_SERVER['QUERY_STRING'])) {
- $new_url .= '?' . $_SERVER['QUERY_STRING'];
- }
-
- // Perform 301 redirect
- wp_redirect($new_url, 301);
- exit;
- }
-}
-add_action('template_redirect', 'hvac_ce_handle_legacy_redirects');
-
-/**
- * Remove custom roles upon plugin deactivation.
- */
-function hvac_ce_remove_roles() {
- require_once HVAC_CE_PLUGIN_DIR . 'includes/class-hvac-roles.php';
- $roles_manager = new HVAC_Roles();
- $roles_manager->remove_trainer_role();
- $roles_manager->remove_master_trainer_role();
- $roles_manager->revoke_admin_dashboard_access();
-
- // Flush rewrite rules to clean up certificate download URLs
- flush_rewrite_rules();
-
- HVAC_Logger::info('Deactivation hook fired, removed hvac_trainer role and admin dashboard access, flushed rewrite rules.', 'Deactivation');
-}
-register_deactivation_hook(__FILE__, 'hvac_ce_remove_roles');
-
-
-
-/**
- * Enqueue common styles and scripts for HVAC Community Events pages
- */
-function hvac_ce_enqueue_common_assets() {
- // Add debug logging to see if function is being called
- error_log('HVAC CSS Debug: enqueue_common_assets called on URL: ' . (isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : 'unknown'));
-
- // Early return if not on HVAC pages to prevent loading on home page
- if (is_front_page() || is_home()) {
- error_log('HVAC CSS Debug: Skipping - is front page or home');
- return;
- }
-
- // Check if we're on an HVAC plugin page - include both hierarchical and flat page names
- $hvac_pages = [
- // Hierarchical page paths
- 'trainer/dashboard', 'trainer/registration', 'trainer/my-profile',
- 'trainer/event/manage', 'trainer/event/summary', 'trainer/email-attendees', 'trainer/certificate-reports',
- 'trainer/generate-certificates', 'master-trainer/certificate-fix', 'trainer/documentation', 'trainer/attendee-profile',
- 'master-trainer/dashboard', 'master-trainer/google-sheets', 'trainer/communication-templates', 'trainer/communication-schedules',
- // Flat page names (legacy and backup)
- 'training-login', 'trainer-dashboard', 'trainer-registration', 'trainer-my-profile',
- 'trainer-event-manage', 'trainer-event-summary', 'trainer-email-attendees', 'trainer-certificate-reports',
- 'trainer-generate-certificates', 'master-trainer-certificate-fix', 'trainer-documentation', 'trainer-attendee-profile',
- 'master-trainer-dashboard', 'master-trainer-google-sheets', 'trainer-communication-templates', 'trainer-communication-schedules',
- // Child page names only
- 'dashboard', 'registration', 'my-profile', 'manage', 'summary', 'email-attendees', 'certificate-reports',
- 'generate-certificates', 'certificate-fix', 'documentation', 'attendee-profile', 'google-sheets', 'communication-templates', 'communication-schedules'
- ];
-
- // Check if we're on an HVAC page using multiple methods
- $is_hvac_page = false;
-
- // Method 1: Check by page slug/path
- if (is_page($hvac_pages)) {
- $is_hvac_page = true;
- error_log('HVAC CSS Debug: Page detected via is_page() check');
- }
-
- // Method 2: Check by post content containing HVAC shortcodes
- global $post;
- if ($post && !$is_hvac_page) {
- $content = $post->post_content;
- $hvac_shortcodes = ['hvac_dashboard', 'hvac_master_dashboard', 'hvac_community_login', 'hvac_google_sheets', 'hvac_certificate_reports', 'hvac_generate_certificates'];
- foreach ($hvac_shortcodes as $shortcode) {
- if (strpos($content, $shortcode) !== false) {
- $is_hvac_page = true;
- error_log('HVAC CSS Debug: Page detected via shortcode: ' . $shortcode);
- break;
- }
- }
- }
-
- // Method 3: Force enable for testing - check if URL contains known HVAC paths
- if (!$is_hvac_page && isset($_SERVER['REQUEST_URI'])) {
- $uri = $_SERVER['REQUEST_URI'];
- if (strpos($uri, '/trainer/') !== false || strpos($uri, '/master-trainer/') !== false || strpos($uri, '/training-login/') !== false) {
- $is_hvac_page = true;
- error_log('HVAC CSS Debug: Page detected via URL path check: ' . $uri);
- }
- }
-
- // Method 4: For debugging - force enable if admin is logged in and URL suggests HVAC content
- if (!$is_hvac_page && current_user_can('administrator')) {
- if (isset($_SERVER['REQUEST_URI'])) {
- $uri = $_SERVER['REQUEST_URI'];
- if (strpos($uri, 'hvac') !== false ||
- strpos($uri, 'certificate') !== false ||
- strpos($uri, 'dashboard') !== false ||
- strpos($uri, 'google-sheets') !== false) {
- $is_hvac_page = true;
- error_log('HVAC CSS Debug: Page forced for admin on HVAC-related URL: ' . $uri);
- }
- }
- }
-
- // Method 5: Temporary fix - always load on pages with specific names
- if ($post && !$is_hvac_page) {
- $post_name = $post->post_name;
- $debug_keywords = ['dashboard', 'google-sheets', 'certificate', 'trainer'];
- foreach ($debug_keywords as $keyword) {
- if (strpos($post_name, $keyword) !== false) {
- $is_hvac_page = true;
- error_log('HVAC CSS Debug: Page forced via post name keyword: ' . $keyword . ' in ' . $post_name);
- break;
- }
- }
- }
-
- error_log('HVAC CSS Debug: Final is_hvac_page status: ' . ($is_hvac_page ? 'true' : 'false'));
- error_log('HVAC CSS Debug: Current post: ' . ($post ? $post->post_name : 'no post'));
-
- // For now, let's be more permissive to debug the issue
- if (!$is_hvac_page) {
- // Temporary: Always load CSS if we're on any non-home page for debugging
- if (!is_front_page() && !is_home()) {
- error_log('HVAC CSS Debug: Temporarily forcing CSS load for debugging purposes');
- $is_hvac_page = true;
- }
- }
-
- // Only proceed if we're on an HVAC page
- if (!$is_hvac_page) {
- error_log('HVAC CSS Debug: Skipping CSS enqueue - not an HVAC page');
- return;
- }
-
- error_log('HVAC CSS Debug: Proceeding to enqueue CSS files');
- error_log('HVAC CSS Debug: Plugin URL: ' . HVAC_CE_PLUGIN_URL);
- error_log('HVAC CSS Debug: Plugin Version: ' . HVAC_CE_VERSION);
-
- // Enqueue the harmonized framework first - this provides the base styling
- wp_enqueue_style(
- 'hvac-harmonized-framework',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-harmonized.css',
- [], // No dependencies - this is the foundation
- HVAC_CE_VERSION . '-v3.0.0'
- );
- error_log('HVAC CSS Debug: Enqueued hvac-harmonized-framework');
-
- // Enqueue the legacy common CSS file for backward compatibility
- wp_enqueue_style(
- 'hvac-common-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-common.css',
- ['hvac-harmonized-framework'], // Depends on harmonized framework
- HVAC_CE_VERSION
- );
- error_log('HVAC CSS Debug: Enqueued hvac-common-style');
-
- // Enqueue animations CSS file (ONLY on HVAC pages)
- wp_enqueue_style(
- 'hvac-animations',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-animations.css',
- ['hvac-harmonized-framework'], // Depends on harmonized framework
- HVAC_CE_VERSION
- );
-
- // Enqueue mobile navigation CSS file (ONLY on HVAC pages)
- wp_enqueue_style(
- 'hvac-mobile-nav',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-mobile-nav.css',
- ['hvac-harmonized-framework'], // Depends on harmonized framework
- HVAC_CE_VERSION
- );
-
- // Enqueue print stylesheet
- wp_enqueue_style(
- 'hvac-print-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-print.css',
- ['hvac-harmonized-framework'], // Depends on harmonized framework
- HVAC_CE_VERSION,
- 'print' // Print media only
- );
-
- // Enqueue the accessibility helper JS (ONLY on HVAC pages)
- wp_enqueue_script(
- 'hvac-accessibility-js',
- HVAC_CE_PLUGIN_URL . 'assets/js/hvac-accessibility.js',
- [], // No dependencies
- HVAC_CE_VERSION,
- true // Load in footer
- );
-
- // Enqueue animations JS (ONLY on HVAC pages)
- wp_enqueue_script(
- 'hvac-animations-js',
- HVAC_CE_PLUGIN_URL . 'assets/js/hvac-animations.js',
- [], // No dependencies
- HVAC_CE_VERSION,
- true // Load in footer
- );
-
- // Enqueue mobile navigation JS (ONLY on HVAC pages)
- wp_enqueue_script(
- 'hvac-mobile-nav-js',
- HVAC_CE_PLUGIN_URL . 'assets/js/hvac-mobile-nav.js',
- [], // No dependencies
- HVAC_CE_VERSION,
- true // Load in footer
- );
-
- // Enqueue page-specific enhanced styles based on current page
- if (is_page('trainer/dashboard')) {
- wp_enqueue_style(
- 'hvac-dashboard-enhanced',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-dashboard-enhanced.css',
- ['hvac-harmonized-framework'], // Depends on harmonized framework
- HVAC_CE_VERSION . '-v3.0.0'
- );
- // Keep legacy for compatibility
- wp_enqueue_style(
- 'hvac-dashboard-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-dashboard.css',
- ['hvac-dashboard-enhanced'], // Load after enhanced
- HVAC_CE_VERSION
- );
- }
-
- if (is_page('master-trainer/dashboard')) {
- // Master dashboard uses same styling as regular dashboard
- wp_enqueue_style(
- 'hvac-dashboard-enhanced',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-dashboard-enhanced.css',
- ['hvac-harmonized-framework'], // Depends on harmonized framework
- HVAC_CE_VERSION . '-v3.0.0'
- );
- wp_enqueue_style(
- 'hvac-dashboard-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-dashboard.css',
- ['hvac-dashboard-enhanced'], // Load after enhanced
- HVAC_CE_VERSION
- );
- }
-
- if (is_page('training-login')) {
- wp_enqueue_style(
- 'hvac-community-login-enhanced',
- HVAC_CE_PLUGIN_URL . 'assets/css/community-login-enhanced.css',
- ['hvac-harmonized-framework'], // Depends on harmonized framework
- HVAC_CE_VERSION . '-v3.0.0'
- );
- // Keep legacy for compatibility
- wp_enqueue_style(
- 'hvac-community-login-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/community-login.css',
- ['hvac-community-login-enhanced'], // Load after enhanced
- HVAC_CE_VERSION
- );
- }
-
- if (is_page('trainer/registration')) {
- wp_enqueue_style(
- 'hvac-registration-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-registration.css',
- ['hvac-common-style'], // Depends on common styles
- HVAC_CE_VERSION
- );
- }
-
- if (is_page('trainer/email-attendees')) {
- wp_enqueue_style(
- 'hvac-email-attendees-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-email-attendees.css',
- ['hvac-harmonized-framework'], // Depends on harmonized framework
- HVAC_CE_VERSION
- );
- }
-
- if (is_singular(Tribe__Events__Main::POSTTYPE) || is_page('trainer/event/summary')) {
- wp_enqueue_style(
- 'hvac-event-summary-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-event-summary.css',
- ['hvac-common-style'], // Depends on common styles
- HVAC_CE_VERSION
- );
-
- // Enqueue event summary JS for certificate actions
- wp_enqueue_script(
- 'hvac-event-summary-js',
- HVAC_CE_PLUGIN_URL . 'assets/js/hvac-event-summary.js',
- ['jquery'], // jQuery dependency
- HVAC_CE_VERSION,
- true // Load in footer
- );
-
- // Localize script with AJAX data
- wp_localize_script('hvac-event-summary-js', 'hvacEventSummary', [
- 'ajaxUrl' => admin_url('admin-ajax.php'),
- 'certificateNonce' => wp_create_nonce('hvac_certificate_actions')
- ]);
- }
-
- // Enqueue certificate-related styles
- if (is_page('trainer/certificate-reports') || is_page('trainer/generate-certificates') || is_page('master-trainer/certificate-fix')) {
- wp_enqueue_style(
- 'hvac-certificates-enhanced',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-certificates-enhanced.css',
- ['hvac-harmonized-framework'], // Depends on harmonized framework
- HVAC_CE_VERSION . '-v3.0.0'
- );
- // Keep legacy for compatibility
- wp_enqueue_style(
- 'hvac-certificates-admin-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/hvac-certificates-admin.css',
- ['hvac-certificates-enhanced'], // Load after enhanced
- HVAC_CE_VERSION
- );
-
- // Enqueue certificate JS
- wp_enqueue_script(
- 'hvac-certificate-admin-js',
- HVAC_CE_PLUGIN_URL . 'assets/js/hvac-certificate-admin.js',
- ['jquery', 'wp-color-picker'], // jQuery dependency
- HVAC_CE_VERSION,
- true // Load in footer
- );
-
- // Add WordPress color picker if needed
- wp_enqueue_style('wp-color-picker');
- wp_enqueue_script('wp-color-picker');
-
- // Localize script with AJAX data
- wp_localize_script('hvac-certificate-admin-js', 'hvacCertificateData', [
- 'ajaxUrl' => admin_url('admin-ajax.php'),
- 'previewNonce' => wp_create_nonce('hvac_certificate_preview')
- ]);
- }
-}
-add_action('wp_enqueue_scripts', 'hvac_ce_enqueue_common_assets');
-
-/**
- * Enqueue styles and scripts for admin dashboard
- */
-function hvac_ce_enqueue_admin_assets($hook) {
- // Only load on our dashboard page
- if ($hook !== 'hvac-community-events_page_hvac-ce-dashboard') {
- return;
- }
-
- // Enqueue dashboard CSS
- wp_enqueue_style(
- 'hvac-admin-dashboard-style',
- HVAC_CE_PLUGIN_URL . 'assets/css/admin-dashboard.css',
- array('wp-admin'),
- HVAC_CE_VERSION
- );
-
- // Enqueue dashboard JS
- wp_enqueue_script(
- 'hvac-admin-dashboard-script',
- HVAC_CE_PLUGIN_URL . 'assets/js/admin-dashboard.js',
- array('jquery', 'wp-util'),
- HVAC_CE_VERSION,
- true
- );
-
- // Localize script with AJAX data
- wp_localize_script('hvac-admin-dashboard-script', 'hvac_admin_dashboard', array(
- 'ajax_url' => admin_url('admin-ajax.php'),
- 'nonce' => wp_create_nonce('hvac_admin_nonce')
- ));
-}
-
-
-
-// Include the main plugin class
-require_once HVAC_CE_PLUGIN_DIR . 'includes/class-hvac-community-events.php';
-
-// Include the help system
-require_once HVAC_CE_PLUGIN_DIR . 'includes/class-hvac-help-system.php';
-
-// Initialize the plugin
-function hvac_community_events_init() {
- HVAC_Logger::info('Initializing HVAC Community Events plugin', 'Core');
- return HVAC_Community_Events::instance();
-}
-add_action('plugins_loaded', 'hvac_community_events_init');
-
-// Initialize certificate URL handler very early to catch URLs before 404
-function hvac_init_certificate_url_handler() {
- // Load the certificate URL handler class if not already loaded
- if (!class_exists('HVAC_Certificate_URL_Handler')) {
- $handler_file = HVAC_CE_PLUGIN_DIR . 'includes/certificates/class-certificate-url-handler.php';
- if (file_exists($handler_file)) {
- require_once $handler_file;
- }
- }
-
- // Initialize the handler if class exists
- if (class_exists('HVAC_Certificate_URL_Handler')) {
- HVAC_Certificate_URL_Handler::instance();
- }
-}
-// Hook very early - before WordPress decides it's a 404
-add_action('muplugins_loaded', 'hvac_init_certificate_url_handler', 1);
-add_action('plugins_loaded', 'hvac_init_certificate_url_handler', 1);
-
-
-/**
- * Include custom template for single event summary page.
- *
- * @param string $template The path of the template to include.
- * @return string The path of the template file.
- */
-function hvac_ce_include_event_summary_template( $template ) {
- // Check if it's a single event post type view
- if ( is_singular( Tribe__Events__Main::POSTTYPE ) ) {
- // Check if the custom template exists in the plugin's template directory
- $custom_template = HVAC_CE_PLUGIN_DIR . 'templates/single-hvac-event-summary.php';
- if ( file_exists( $custom_template ) ) {
- // Return the path to the custom template
- return $custom_template;
- }
- }
- // Return the original template if not a single event or custom template doesn't exist
- return $template;
-}
-
-/**
- * Template routing for Order Summary Page.
- */
-function hvac_ce_include_order_summary_template( $template ) {
- if ( is_page( 'order-summary' ) && isset( $_GET['order_id'] ) && absint( $_GET['order_id'] ) > 0 ) {
- $custom_template = HVAC_CE_PLUGIN_DIR . 'templates/single-hvac-order-summary.php';
- if ( file_exists( $custom_template ) ) {
- return $custom_template;
- }
- }
- return $template;
-}
-// Removed - template handling is now in the main class
-// add_filter( 'template_include', 'hvac_ce_include_event_summary_template', 99 );
-
-/**
- * Initialize attendee profile handler
- */
-function hvac_init_attendee_profile() {
- // Load the attendee profile class if not already loaded
- if (!class_exists('HVAC_Attendee_Profile')) {
- $profile_file = HVAC_CE_PLUGIN_DIR . 'includes/class-attendee-profile.php';
- if (file_exists($profile_file)) {
- require_once $profile_file;
- }
- }
-
- // Initialize the handler if class exists
- if (class_exists('HVAC_Attendee_Profile')) {
- HVAC_Attendee_Profile::instance();
- }
-}
-// Initialize on plugins_loaded
-add_action('plugins_loaded', 'hvac_init_attendee_profile', 10);
-
-// Include attendee profile helper functions
-require_once HVAC_CE_PLUGIN_DIR . 'includes/helpers/attendee-profile-link.php';
-
-/**
- * Handle AJAX request for master dashboard events table
- */
-function hvac_ajax_master_dashboard_events() {
- // Verify nonce
- if (!isset($_POST['nonce']) || !wp_verify_nonce($_POST['nonce'], 'hvac_master_dashboard_nonce')) {
- wp_die('Security check failed');
- }
-
- // Check permissions
- if (!current_user_can('view_master_dashboard') && !current_user_can('view_all_trainer_data') && !current_user_can('manage_options')) {
- wp_send_json_error('Insufficient permissions');
- }
-
- // Load master dashboard data class if needed
- if (!class_exists('HVAC_Master_Dashboard_Data')) {
- require_once HVAC_CE_PLUGIN_DIR . 'includes/class-hvac-master-dashboard-data.php';
- }
-
- // Initialize data handler
- $master_data = new HVAC_Master_Dashboard_Data();
-
- // Get table data with filters
- $args = array(
- 'status' => sanitize_text_field($_POST['status'] ?? 'all'),
- 'search' => sanitize_text_field($_POST['search'] ?? ''),
- 'orderby' => sanitize_text_field($_POST['orderby'] ?? 'date'),
- 'order' => sanitize_text_field($_POST['order'] ?? 'DESC'),
- 'page' => absint($_POST['page'] ?? 1),
- 'per_page' => absint($_POST['per_page'] ?? 10),
- 'date_from' => sanitize_text_field($_POST['date_from'] ?? ''),
- 'date_to' => sanitize_text_field($_POST['date_to'] ?? ''),
- 'trainer_id' => absint($_POST['trainer_id'] ?? 0),
- );
-
- $table_data = $master_data->get_events_table_data($args);
- wp_send_json_success($table_data);
-}
-add_action('wp_ajax_hvac_master_dashboard_events', 'hvac_ajax_master_dashboard_events');
-add_action('wp_ajax_nopriv_hvac_master_dashboard_events', 'hvac_ajax_master_dashboard_events');
diff --git a/wordpress-dev/staging-deployment/templates/template-hvac-master-dashboard.php b/wordpress-dev/staging-deployment/templates/template-hvac-master-dashboard.php
deleted file mode 100644
index bd6f9ad3..00000000
--- a/wordpress-dev/staging-deployment/templates/template-hvac-master-dashboard.php
+++ /dev/null
@@ -1,470 +0,0 @@
-
-
-
-
-
-
-
-
-
You do not have permission to view the Master Dashboard.
-
This dashboard is only available to Master Trainers and Administrators.
-
Go to Your Dashboard
-
Return to Home
-
-
-
-
-
-
- ID;
-
-// Load master dashboard data class
-if ( ! class_exists( 'HVAC_Master_Dashboard_Data' ) ) {
- require_once HVAC_CE_PLUGIN_DIR . 'includes/class-hvac-master-dashboard-data.php';
-}
-
-// Initialize master dashboard data handler (no user ID needed - shows all data)
-$master_data = new HVAC_Master_Dashboard_Data();
-
-// Get statistics
-$total_events = $master_data->get_total_events_count();
-$upcoming_events = $master_data->get_upcoming_events_count();
-$past_events = $master_data->get_past_events_count();
-$total_tickets_sold = $master_data->get_total_tickets_sold();
-$total_revenue = $master_data->get_total_revenue();
-$trainer_stats = $master_data->get_trainer_statistics();
-
-// Get events table data (default view)
-$default_args = array(
- 'status' => 'all',
- 'orderby' => 'date',
- 'order' => 'DESC',
- 'page' => 1,
- 'per_page' => 10
-);
-$events_table_data = $master_data->get_events_table_data( $default_args );
-
-// Get list of all trainers for filter dropdown
-$all_trainers = get_users(array(
- 'role__in' => array('hvac_trainer', 'hvac_master_trainer'),
- 'fields' => array('ID', 'display_name')
-));
-
-// Error handling for access denied
-$error_message = '';
-if ( isset( $_GET['error'] ) && $_GET['error'] === 'access_denied' ) {
- $error_message = 'You were redirected here because you do not have permission to access the Master Dashboard.';
-}
-
-// Get WordPress header - CRITICAL for CSS loading
-get_header();
-
-?>
-
-
-
-
-
-
-
-
-
-
-
-
-
- System Overview
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Trainer Performance Analytics
-
-
-
-
-
-
- Trainer Name
- Email
- Total Events
- Upcoming
- Completed
- Attendees
- Revenue
-
-
-
-
-
-
- display_name ); ?>
-
- user_email ); ?>
- total_events ); ?>
- upcoming_events ); ?>
- past_events ); ?>
- total_attendees ); ?>
- $total_revenue, 2 ); ?>
-
-
-
-
-
-
-
-
No trainer data available.
-
-
-
-
-
-
- All Events Management
-
-
-
-
- Status:
-
- All Events
- Published
- Upcoming
- Draft
- Pending
- Private
-
-
-
-
- Trainer:
-
- All Trainers
-
-
- display_name ); ?>
-
-
-
-
-
-
- Search:
-
-
-
-
- From:
-
-
-
-
- To:
-
-
-
-
Apply Filters
-
Reset
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/wordpress-dev/test-event-summary-data.php.staging b/wordpress-dev/test-event-summary-data.php.staging
deleted file mode 100644
index d1fac40d..00000000
--- a/wordpress-dev/test-event-summary-data.php.staging
+++ /dev/null
@@ -1,277 +0,0 @@
-markTestSkipped('The Events Calendar post type does not exist.');
- }
-
- $start_date = '2025-05-10 09:00:00';
- $end_date = '2025-05-10 17:00:00';
- $cost = '50.00';
- $event_id = self::factory()->post->create( [
- 'post_type' => Tribe__Events__Main::POSTTYPE,
- 'post_title' => 'Test Event Summary',
- 'post_content' => 'This is the event description.',
- 'post_excerpt' => 'Short description.',
- 'post_status' => 'publish',
- ] );
-
- // Set TEC meta data
- update_post_meta( $event_id, '_EventStartDate', $start_date );
- update_post_meta( $event_id, '_EventEndDate', $end_date );
- update_post_meta( $event_id, '_EventCost', $cost );
- update_post_meta( $event_id, '_EventCurrencySymbol', '$' ); // Assuming USD
- update_post_meta( $event_id, '_EventAllDay', 'no' );
- update_post_meta( $event_id, '_EventShowMapLink', 'true' );
- update_post_meta( $event_id, '_EventShowMap', 'true' );
- // Add other meta as needed for tribe_ functions to work
-
- $summary_data = new HVAC_Event_Summary_Data( $event_id );
- $details = $summary_data->get_event_details();
-
- $this->assertIsArray( $details );
- $this->assertEquals( $event_id, $details['id'] );
- $this->assertEquals( 'Test Event Summary', $details['title'] );
- $this->assertEquals( 'This is the event description.
', trim( $details['description'] ) ); // WP adds tags via filter
- $this->assertEquals( 'Short description.', $details['excerpt'] );
- $this->assertEquals( get_permalink( $event_id ), $details['permalink'] );
-
- // Check TEC function results (if functions exist)
- if ( function_exists( 'tribe_get_start_date' ) ) {
- $this->assertEquals( $start_date, $details['start_date'] );
- }
- if ( function_exists( 'tribe_get_end_date' ) ) {
- $this->assertEquals( $end_date, $details['end_date'] );
- }
- if ( function_exists( 'tribe_get_cost' ) ) {
- // tribe_get_cost() returns formatted cost with currency symbol
- $formatted_cost = tribe_get_cost( $event_id, true );
- $this->assertEquals( $formatted_cost, $details['cost'] );
- }
- if ( function_exists( 'tribe_event_is_all_day' ) ) {
- $this->assertFalse( $details['is_all_day'] );
- }
- if ( function_exists( 'tribe_is_recurring_event' ) ) {
- $this->assertFalse( $details['is_recurring'] ); // Assuming not recurring by default
- }
- if ( function_exists( 'tribe_get_timezone' ) ) {
- $this->assertNotEmpty( $details['timezone'] ); // Should default to WP timezone
- }
- }
-
- /**
- * Test fetching event venue details.
- * @test
- */
- public function test_get_event_venue_details() {
- // Ensure TEC post types exist
- if ( ! post_type_exists( Tribe__Events__Main::POSTTYPE ) || ! post_type_exists( Tribe__Events__Main::VENUE_POST_TYPE ) ) {
- $this->markTestSkipped('The Events Calendar post types (event/venue) do not exist.');
- }
- // Ensure TEC functions exist for checking later
- if ( ! function_exists( 'tribe_get_venue_id' ) || ! function_exists( 'tribe_get_venue' ) ) {
- $this->markTestSkipped('Required TEC venue functions do not exist.');
- }
-
- // 1. Create Venue
- $venue_data = [
- 'Venue' => 'Test Venue Name',
- 'Address' => '123 Test St',
- 'City' => 'Testville',
- 'State' => 'TS', // Use State for US, Province otherwise
- 'Province' => '',
- 'Zip' => '12345',
- 'Country' => 'United States',
- 'Phone' => '555-1234',
- 'URL' => 'http://example.com/venue'
- ];
- $venue_id = self::factory()->post->create( [
- 'post_type' => Tribe__Events__Main::VENUE_POST_TYPE,
- 'post_title' => $venue_data['Venue'],
- 'post_status' => 'publish',
- ] );
- // Explicitly set known meta keys used by tribe_get_* functions
- update_post_meta( $venue_id, '_VenueAddress', $venue_data['Address'] );
- update_post_meta( $venue_id, '_VenueCity', $venue_data['City'] );
- update_post_meta( $venue_id, '_VenueStateProvince', $venue_data['State'] ); // This is the key tribe_get_stateprovince uses
- update_post_meta( $venue_id, '_VenueState', $venue_data['State'] ); // Also set _VenueState just in case
- update_post_meta( $venue_id, '_VenueProvince', $venue_data['Province'] );
- update_post_meta( $venue_id, '_VenueZip', $venue_data['Zip'] );
- update_post_meta( $venue_id, '_VenueCountry', $venue_data['Country'] );
- update_post_meta( $venue_id, '_VenuePhone', $venue_data['Phone'] );
- update_post_meta( $venue_id, '_VenueURL', $venue_data['URL'] );
-
- // 2. Create Event linked to Venue
- $event_id_with_venue = self::factory()->post->create( [
- 'post_type' => Tribe__Events__Main::POSTTYPE,
- 'post_title' => 'Event With Venue',
- 'post_status' => 'publish',
- ] );
- update_post_meta( $event_id_with_venue, '_EventVenueID', $venue_id );
-
- // 3. Test retrieval for event with venue
- $summary_data_with_venue = new HVAC_Event_Summary_Data( $event_id_with_venue );
- $details_with_venue = $summary_data_with_venue->get_event_venue_details();
-
- $this->assertIsArray( $details_with_venue );
- $this->assertEquals( $venue_id, $details_with_venue['id'] );
- $this->assertEquals( $venue_data['Venue'], $details_with_venue['name'] );
- $this->assertStringContainsString( $venue_data['Address'], $details_with_venue['address'] ); // tribe_get_full_address combines fields
- $this->assertEquals( $venue_data['Address'], $details_with_venue['street'] );
- $this->assertEquals( $venue_data['City'], $details_with_venue['city'] );
- $this->assertEquals( $venue_data['State'], $details_with_venue['stateprovince'] );
- $this->assertEquals( $venue_data['State'], $details_with_venue['state'] );
- $this->assertEquals( $venue_data['Zip'], $details_with_venue['zip'] );
- $this->assertEquals( $venue_data['Country'], $details_with_venue['country'] );
- $this->assertEquals( $venue_data['Phone'], $details_with_venue['phone'] );
- // tribe_get_venue_website_link() returns the full HTML link
- $expected_venue_website_html = tribe_get_venue_website_link( $venue_id );
- $this->assertEquals( $expected_venue_website_html, $details_with_venue['website'] );
- $this->assertNotNull( $details_with_venue['map_link'] ); // Check if link is generated
-
- // 4. Create Event without Venue
- $event_id_no_venue = self::factory()->post->create( [
- 'post_type' => Tribe__Events__Main::POSTTYPE,
- 'post_title' => 'Event Without Venue',
- 'post_status' => 'publish',
- ] );
- update_post_meta( $event_id_no_venue, '_EventVenueID', 0 ); // Explicitly set to 0 or non-existent ID
-
- // 5. Test retrieval for event without venue
- $summary_data_no_venue = new HVAC_Event_Summary_Data( $event_id_no_venue );
- $details_no_venue = $summary_data_no_venue->get_event_venue_details();
-
- $this->assertNull( $details_no_venue );
- }
-
- /**
- * Test fetching event organizer details.
- * @test
- */
- public function test_get_event_organizer_details() {
- // Ensure TEC post types exist
- if ( ! post_type_exists( Tribe__Events__Main::POSTTYPE ) || ! post_type_exists( Tribe__Events__Main::ORGANIZER_POST_TYPE ) ) {
- $this->markTestSkipped('The Events Calendar post types (event/organizer) do not exist.');
- }
- // Ensure TEC functions exist for checking later
- if ( ! function_exists( 'tribe_get_organizer_ids' ) || ! function_exists( 'tribe_get_organizer' ) ) {
- $this->markTestSkipped('Required TEC organizer functions do not exist.');
- }
-
- // 1. Create Organizer
- $organizer_data = [
- 'Organizer' => 'Test Organizer Inc.',
- 'Phone' => '555-5678',
- 'Website' => 'http://example.com/organizer',
- 'Email' => 'organizer@example.com',
- ];
- $organizer_id = self::factory()->post->create( [
- 'post_type' => Tribe__Events__Main::ORGANIZER_POST_TYPE,
- 'post_title' => $organizer_data['Organizer'],
- 'post_status' => 'publish',
- ] );
- foreach ( $organizer_data as $key => $value ) {
- update_post_meta( $organizer_id, '_Organizer' . $key, $value );
- }
-
- // 2. Create Event linked to Organizer
- $event_id_with_organizer = self::factory()->post->create( [
- 'post_type' => Tribe__Events__Main::POSTTYPE,
- 'post_title' => 'Event With Organizer',
- 'post_status' => 'publish',
- ] );
- // Link using the meta key TEC uses
- update_post_meta( $event_id_with_organizer, '_EventOrganizerID', $organizer_id );
-
- // 3. Test retrieval for event with organizer
- $summary_data_with_organizer = new HVAC_Event_Summary_Data( $event_id_with_organizer );
- $details_with_organizer = $summary_data_with_organizer->get_event_organizer_details();
-
- $this->assertIsArray( $details_with_organizer );
- $this->assertEquals( $organizer_id, $details_with_organizer['id'] );
- $this->assertEquals( $organizer_data['Organizer'], $details_with_organizer['name'] );
- $this->assertEquals( $organizer_data['Phone'], $details_with_organizer['phone'] );
- // tribe_get_organizer_website_link() returns the full HTML link
- $expected_website_html = tribe_get_organizer_website_link( $organizer_id );
- $this->assertEquals( $expected_website_html, $details_with_organizer['website'] );
- // tribe_get_organizer_email() might encode entities
- $this->assertEquals( $organizer_data['Email'], html_entity_decode( $details_with_organizer['email'] ) );
- // get_permalink() in test environment might add encoded slash
- $expected_permalink = get_permalink( $organizer_id );
- // Handle potential trailing slash inconsistency
- $this->assertEquals( rtrim($expected_permalink, '/'), rtrim(str_replace('%2F', '/', $details_with_organizer['permalink']), '/') );
-
-
- // 4. Create Event without Organizer
- $event_id_no_organizer = self::factory()->post->create( [
- 'post_type' => Tribe__Events__Main::POSTTYPE,
- 'post_title' => 'Event Without Organizer',
- 'post_status' => 'publish',
- ] );
- // Ensure no organizer ID is set, or set to 0
- delete_post_meta( $event_id_no_organizer, '_EventOrganizerID' );
-
- // 5. Test retrieval for event without organizer
- $summary_data_no_organizer = new HVAC_Event_Summary_Data( $event_id_no_organizer );
- $details_no_organizer = $summary_data_no_organizer->get_event_organizer_details();
-
- $this->assertNull( $details_no_organizer );
- }
-
- /**
- * Test fetching data for an event that does not exist.
- * @test
- */
- public function test_get_data_for_nonexistent_event() {
- $invalid_event_id = 999999; // An ID that is unlikely to exist
-
- $summary_data = new HVAC_Event_Summary_Data( $invalid_event_id );
-
- // Check constructor handled it
- $this->assertFalse( $summary_data->is_valid_event() );
-
- // Check data retrieval methods
- $this->assertNull( $summary_data->get_event_details(), 'Details should be null for invalid event' );
- $this->assertNull( $summary_data->get_event_venue_details(), 'Venue details should be null for invalid event' );
- $this->assertNull( $summary_data->get_event_organizer_details(), 'Organizer details should be null for invalid event' );
- $this->assertIsArray( $summary_data->get_event_transactions(), 'Transactions should be an empty array for invalid event' );
- $this->assertEmpty( $summary_data->get_event_transactions(), 'Transactions should be an empty array for invalid event' );
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/HVAC_Event_Management_Test.php b/wordpress-dev/tests/HVAC_Event_Management_Test.php
deleted file mode 100644
index f338fc99..00000000
--- a/wordpress-dev/tests/HVAC_Event_Management_Test.php
+++ /dev/null
@@ -1,79 +0,0 @@
- 'Test HVAC Training Event',
- 'description' => 'Test event description',
- 'start_date' => '',
- 'end_date' => '',
- 'capacity' => 20,
- 'price' => 199.00
- ];
-
- public function setUp(): void {
- parent::setUp();
-
- // Create a test trainer with HVAC role
- $this->test_trainer = $this->factory->user->create_and_get([
- 'role' => 'hvac_trainer'
- ]);
-
- // Set dates for test events
- $this->test_event_data['start_date'] = date('Y-m-d H:i:s', strtotime('+1 week'));
- $this->test_event_data['end_date'] = date('Y-m-d H:i:s', strtotime('+1 week 2 hours'));
-
- wp_set_current_user($this->test_trainer->ID);
- }
-
- public function test_event_creation_with_valid_data() {
- $event_id = $this->create_test_event();
- $this->assertGreaterThan(0, $event_id);
-
- $event = tribe_get_event($event_id);
- $this->assertEquals($this->test_event_data['title'], $event->post_title);
- }
-
- public function test_event_creation_requires_hvac_role() {
- // Switch to non-trainer user
- $regular_user = $this->factory->user->create_and_get(['role' => 'subscriber']);
- wp_set_current_user($regular_user->ID);
-
- $this->expectException(Exception::class);
- $this->create_test_event();
- }
-
- public function test_event_modification() {
- $event_id = $this->create_test_event();
- $new_title = 'Modified Test Event';
-
- $updated = tribe_update_event($event_id, [
- 'post_title' => $new_title,
- 'post_content' => 'Updated description'
- ]);
-
- $this->assertNotFalse($updated);
- $event = tribe_get_event($event_id);
- $this->assertEquals($new_title, $event->post_title);
- }
-
- public function test_event_deletion() {
- $event_id = $this->create_test_event();
- $deleted = tribe_delete_event($event_id);
- $this->assertNotFalse($deleted);
- $this->assertNull(tribe_get_event($event_id));
- }
-
- protected function create_test_event() {
- return tribe_create_event($this->test_event_data);
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/HVAC_Role_Manager.php b/wordpress-dev/tests/HVAC_Role_Manager.php
deleted file mode 100644
index dbdacde8..00000000
--- a/wordpress-dev/tests/HVAC_Role_Manager.php
+++ /dev/null
@@ -1,82 +0,0 @@
-role_exists($role)) {
- return false;
- }
-
- $default_caps = [
- 'read' => true,
- 'edit_posts' => true
- ];
-
- $capabilities = array_merge($default_caps, $capabilities);
- add_role($role, $display_name, $capabilities);
- $this->created_roles[] = $role;
- return true;
- }
-
- /**
- * Check if a role exists
- */
- public function role_exists($role) {
- return wp_roles()->is_role($role);
- }
-
- /**
- * Delete a role
- */
- public function delete_role($role) {
- if (!$this->role_exists($role)) {
- return false;
- }
-
- remove_role($role);
- $this->created_roles = array_diff($this->created_roles, [$role]);
- return true;
- }
-
- /**
- * Add capability to role
- */
- public function add_capability($role, $cap, $grant = true) {
- $wp_roles = wp_roles();
- $wp_roles->add_cap($role, $cap, $grant);
- }
-
- /**
- * Remove capability from role
- */
- public function remove_capability($role, $cap) {
- $wp_roles = wp_roles();
- $wp_roles->remove_cap($role, $cap);
- }
-
- /**
- * Clean up all created roles
- */
- public function cleanup() {
- foreach ($this->created_roles as $role) {
- $this->delete_role($role);
- }
- $this->created_roles = [];
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/HVAC_Role_Manager_Test.php b/wordpress-dev/tests/HVAC_Role_Manager_Test.php
deleted file mode 100644
index 96975801..00000000
--- a/wordpress-dev/tests/HVAC_Role_Manager_Test.php
+++ /dev/null
@@ -1,224 +0,0 @@
-role_manager = new HVAC_Role_Manager();
- }
-
- /**
- * Clean up after each test
- */
- public function tearDown(): void {
- $this->role_manager->cleanup_transaction_roles();
- parent::tearDown();
- }
-
- /**
- * @testdox Basic role operations create and verify roles correctly
- */
- public function test_basic_role_operations(): void {
- // Create a basic role
- $result = $this->role_manager->create_role(
- 'test_editor',
- 'Test Editor',
- ['edit_posts' => true]
- );
-
- $this->assertTrue($result);
- $this->assertTrue($this->role_manager->role_exists('test_editor'));
-
- // Verify capabilities
- $caps = $this->role_manager->get_role_capabilities('test_editor');
- $this->assertArrayHasKey('edit_posts', $caps);
- }
-
- /**
- * @testdox Role creation validates input parameters
- * @dataProvider provide_invalid_role_data
- */
- public function test_role_creation_validation(
- string $role_name,
- string $display_name,
- array $capabilities,
- string $expected_exception
- ): void {
- $this->expectException(InvalidArgumentException::class);
- $this->expectExceptionMessage($expected_exception);
-
- $this->role_manager->create_role($role_name, $display_name, $capabilities);
- }
-
- /**
- * Data provider for role creation validation tests
- */
- public function provide_invalid_role_data(): array {
- return [
- 'empty_role_name' => [
- '',
- 'Display Name',
- ['edit_posts' => true],
- 'Role name and display name are required'
- ],
- 'empty_display_name' => [
- 'role_name',
- '',
- ['edit_posts' => true],
- 'Role name and display name are required'
- ],
- 'duplicate_role' => [
- 'administrator',
- 'Admin',
- ['edit_posts' => true],
- "Role 'administrator' already exists"
- ]
- ];
- }
-
- /**
- * @testdox Permission inheritance works correctly
- */
- public function test_role_inheritance(): void {
- // Create parent role
- $this->role_manager->create_role(
- 'parent_role',
- 'Parent Role',
- ['parent_cap' => true]
- );
-
- // Create child role inheriting from parent
- $result = $this->role_manager->create_role(
- 'child_role',
- 'Child Role',
- ['child_cap' => true],
- ['parent_role']
- );
-
- $this->assertTrue($result);
-
- // Verify inherited capabilities
- $caps = $this->role_manager->get_role_capabilities('child_role');
- $this->assertArrayHasKey('parent_cap', $caps);
- $this->assertArrayHasKey('child_cap', $caps);
- }
-
- /**
- * @testdox Core WordPress roles cannot be deleted
- */
- public function test_core_role_deletion_prevention(): void {
- $core_roles = ['administrator', 'editor', 'author', 'contributor', 'subscriber'];
-
- foreach ($core_roles as $role) {
- try {
- $this->role_manager->delete_role($role);
- $this->fail("Expected exception when deleting core role: {$role}");
- } catch (InvalidArgumentException $e) {
- $this->assertStringContainsString("Cannot delete core WordPress role", $e->getMessage());
- }
- }
- }
-
- /**
- * @testdox Capability management functions work correctly
- */
- public function test_capability_management(): void {
- // Create test role
- $this->role_manager->create_role(
- 'cap_test_role',
- 'Capability Test Role',
- ['initial_cap' => true]
- );
-
- // Add capabilities
- $new_caps = ['new_cap_1', 'new_cap_2'];
- $result = $this->role_manager->add_capabilities('cap_test_role', $new_caps);
- $this->assertTrue($result);
-
- // Verify added capabilities
- $caps = $this->role_manager->get_role_capabilities('cap_test_role');
- foreach ($new_caps as $cap) {
- $this->assertArrayHasKey($cap, $caps);
- }
-
- // Remove capabilities
- $result = $this->role_manager->remove_capabilities('cap_test_role', ['new_cap_1']);
- $this->assertTrue($result);
-
- // Verify removal
- $caps = $this->role_manager->get_role_capabilities('cap_test_role');
- $this->assertArrayNotHasKey('new_cap_1', $caps);
- $this->assertArrayHasKey('new_cap_2', $caps);
- }
-
- /**
- * @testdox Role conflict detection works correctly
- */
- public function test_role_conflict_detection(): void {
- // Create roles with conflicting capabilities
- $this->role_manager->create_role(
- 'role_1',
- 'Role 1',
- ['publish_posts' => true]
- );
-
- $this->role_manager->create_role(
- 'role_2',
- 'Role 2',
- ['read_only_posts' => true]
- );
-
- // Check for conflicts
- $conflicts = $this->role_manager->detect_role_conflicts(['role_1', 'role_2']);
-
- $this->assertNotEmpty($conflicts);
- $this->assertCount(1, $conflicts);
- $this->assertEquals(['publish_posts', 'read_only_posts'], $conflicts[0]['conflicts'][0]);
- }
-
- /**
- * @testdox TEC capabilities are properly assigned to core roles
- */
- public function test_tec_capability_assignment(): void {
- // Check administrator capabilities
- $admin_caps = $this->role_manager->get_role_capabilities('administrator');
- $this->assertArrayHasKey('publish_tribe_events', $admin_caps);
- $this->assertArrayHasKey('manage_tribe_event_settings', $admin_caps);
-
- // Check editor capabilities
- $editor_caps = $this->role_manager->get_role_capabilities('editor');
- $this->assertArrayHasKey('publish_tribe_events', $editor_caps);
- $this->assertArrayNotHasKey('manage_tribe_event_settings', $editor_caps);
- }
-
- /**
- * @testdox Transaction roles are properly cleaned up
- */
- public function test_transaction_role_cleanup(): void {
- // Create multiple test roles
- $test_roles = ['test_role_1', 'test_role_2', 'test_role_3'];
-
- foreach ($test_roles as $role) {
- $this->role_manager->create_role($role, "Test Role", ['test_cap' => true]);
- $this->assertTrue($this->role_manager->role_exists($role));
- }
-
- // Clean up transaction roles
- $this->role_manager->cleanup_transaction_roles();
-
- // Verify roles are removed
- foreach ($test_roles as $role) {
- $this->assertFalse($this->role_manager->role_exists($role));
- }
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/HVAC_Test_Data_Generator.php b/wordpress-dev/tests/HVAC_Test_Data_Generator.php
deleted file mode 100644
index 47b73899..00000000
--- a/wordpress-dev/tests/HVAC_Test_Data_Generator.php
+++ /dev/null
@@ -1,63 +0,0 @@
- 'Test Event ' . uniqid(),
- 'description' => 'Automatically generated test event',
- 'start_date' => date('Y-m-d H:i:s', strtotime('+1 day')),
- 'end_date' => date('Y-m-d H:i:s', strtotime('+1 day +2 hours')),
- 'capacity' => 20,
- 'price' => 99.99,
- 'location' => 'Virtual',
- 'trainer_id' => 0, // Will be set during test
- 'status' => 'publish'
- ];
-
- return array_merge($defaults, $overrides);
- }
-
- /**
- * Generate test user data
- * @param string $role User role (default: hvac_trainer)
- * @param array $overrides Optional field overrides
- * @return array Complete user data structure
- */
- public static function generate_user_data(string $role = 'hvac_trainer', array $overrides = []): array {
- $username = 'testuser_' . uniqid();
- $defaults = [
- 'user_login' => $username,
- 'user_pass' => wp_generate_password(),
- 'user_email' => $username . '@example.com',
- 'first_name' => 'Test',
- 'last_name' => 'User',
- 'role' => $role
- ];
-
- return array_merge($defaults, $overrides);
- }
-
- /**
- * Generate multiple test events
- * @param int $count Number of events to generate
- * @param array $base_overrides Base overrides for all events
- * @return array Array of event data
- */
- public static function generate_multiple_events(int $count, array $base_overrides = []): array {
- $events = [];
- for ($i = 0; $i < $count; $i++) {
- $events[] = self::generate_event_data($base_overrides);
- }
- return $events;
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/HVAC_Test_Data_Generator_Test.php b/wordpress-dev/tests/HVAC_Test_Data_Generator_Test.php
deleted file mode 100644
index 3e8472c1..00000000
--- a/wordpress-dev/tests/HVAC_Test_Data_Generator_Test.php
+++ /dev/null
@@ -1,41 +0,0 @@
-assertArrayHasKey('title', $event);
- $this->assertStringStartsWith('Test Event', $event['title']);
- $this->assertArrayHasKey('start_date', $event);
- $this->assertNotEmpty($event['start_date']);
- }
-
- public function test_generate_user_data() {
- $user = HVAC_Test_Data_Generator::generate_user_data();
-
- $this->assertArrayHasKey('user_login', $user);
- $this->assertStringStartsWith('testuser_', $user['user_login']);
- $this->assertEquals('hvac_trainer', $user['role']);
- }
-
- public function test_generate_multiple_events() {
- $events = HVAC_Test_Data_Generator::generate_multiple_events(3);
-
- $this->assertCount(3, $events);
- $this->assertNotEquals($events[0]['title'], $events[1]['title']);
- }
-
- public function test_data_overrides() {
- $custom_title = 'Custom Event Title';
- $event = HVAC_Test_Data_Generator::generate_event_data([
- 'title' => $custom_title
- ]);
-
- $this->assertEquals($custom_title, $event['title']);
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/HVAC_Test_User_Factory.php b/wordpress-dev/tests/HVAC_Test_User_Factory.php
deleted file mode 100644
index e631b625..00000000
--- a/wordpress-dev/tests/HVAC_Test_User_Factory.php
+++ /dev/null
@@ -1,114 +0,0 @@
-role_manager = HVAC_Role_Manager::get_instance();
- }
-
- public static function get_instance() {
- if (!isset(self::$instance)) {
- self::$instance = new self();
- }
- return self::$instance;
- }
-
- /**
- * Create a test user with specified role
- */
- public function create_user($username, $role = 'subscriber', $persona = 'basic') {
- $user_id = wp_create_user($username, 'password', $username . '@example.com');
-
- if (is_wp_error($user_id)) {
- return false;
- }
-
- $user = new WP_User($user_id);
- $user->set_role($role);
-
- $this->created_users[] = [
- 'id' => $user_id,
- 'username' => $username,
- 'role' => $role,
- 'persona' => $persona
- ];
-
- return $user_id;
- }
-
- /**
- * Create a user with a custom role and capabilities
- */
- public function create_user_with_custom_role($username, $role, $display_name, $capabilities = []) {
- $this->role_manager->create_role($role, $display_name, $capabilities);
- return $this->create_user($username, $role);
- }
-
- /**
- * Create a user with a predefined persona
- */
- public function create_user_with_persona($username, $persona) {
- $personas = $this->get_personas();
-
- if (!isset($personas[$persona])) {
- return false;
- }
-
- $persona_data = $personas[$persona];
- return $this->create_user_with_custom_role(
- $username,
- $persona_data['role'],
- $persona_data['display_name'],
- $persona_data['capabilities']
- );
- }
-
- /**
- * Get predefined user personas
- */
- public function get_personas() {
- return [
- 'basic_trainer' => [
- 'role' => 'hvac_trainer_basic',
- 'display_name' => 'Basic HVAC Trainer',
- 'capabilities' => [
- 'edit_events' => true,
- 'publish_events' => false
- ]
- ],
- 'advanced_trainer' => [
- 'role' => 'hvac_trainer_advanced',
- 'display_name' => 'Advanced HVAC Trainer',
- 'capabilities' => [
- 'edit_events' => true,
- 'publish_events' => true,
- 'manage_attendees' => true
- ]
- ],
- 'admin' => [
- 'role' => 'hvac_admin',
- 'display_name' => 'HVAC Administrator',
- 'capabilities' => [
- 'manage_options' => true,
- 'edit_users' => true
- ]
- ]
- ];
- }
-
- /**
- * Clean up all created users and roles
- */
- public function cleanup() {
- foreach ($this->created_users as $user) {
- wp_delete_user($user['id']);
- }
- $this->created_users = [];
- $this->role_manager->cleanup();
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/HVAC_Test_User_Factory_Test.php b/wordpress-dev/tests/HVAC_Test_User_Factory_Test.php
deleted file mode 100644
index 7f8980a9..00000000
--- a/wordpress-dev/tests/HVAC_Test_User_Factory_Test.php
+++ /dev/null
@@ -1,76 +0,0 @@
- 'testuser_' . uniqid(),
- 'roles' => [$role]
- ]);
-
- $this->assertInstanceOf('WP_User', $user);
- $this->assertTrue(in_array($role, $user->roles));
- }
-
- public function test_user_creation_with_multiple_roles() {
- $roles = [
- 'test_role1_' . uniqid(),
- 'test_role2_' . uniqid()
- ];
-
- foreach ($roles as $role) {
- HVAC_Role_Manager::create_role($role);
- }
-
- $user = HVAC_Test_User_Factory::create_user([
- 'username' => 'testuser_' . uniqid(),
- 'roles' => $roles
- ]);
-
- $this->assertInstanceOf('WP_User', $user);
- foreach ($roles as $role) {
- $this->assertTrue(in_array($role, $user->roles));
- }
- }
-
- public function test_persona_management() {
- $persona = 'test_persona_' . uniqid();
- $roles = ['test_role1_' . uniqid(), 'test_role2_' . uniqid()];
-
- HVAC_Test_User_Factory::define_persona($persona, [
- 'roles' => $roles,
- 'meta' => [
- 'test_meta' => 'value'
- ]
- ]);
-
- $user = HVAC_Test_User_Factory::create_user([
- 'username' => 'testuser_' . uniqid(),
- 'persona' => $persona
- ]);
-
- $this->assertInstanceOf('WP_User', $user);
- foreach ($roles as $role) {
- $this->assertTrue(in_array($role, $user->roles));
- }
- $this->assertEquals('value', get_user_meta($user->ID, 'test_meta', true));
- }
-
- public function test_account_cleanup() {
- $role = 'test_cleanup_role_' . uniqid();
- HVAC_Role_Manager::create_role($role);
-
- $user = HVAC_Test_User_Factory::create_user([
- 'username' => 'testuser_' . uniqid(),
- 'roles' => [$role]
- ]);
-
- HVAC_Test_User_Factory::cleanup_user($user->ID);
-
- $this->assertFalse(HVAC_Role_Manager::role_exists($role));
- $this->assertFalse(get_user_by('id', $user->ID));
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/EventErrorTest.php b/wordpress-dev/tests/basic/EventErrorTest.php
deleted file mode 100644
index e13b976f..00000000
--- a/wordpress-dev/tests/basic/EventErrorTest.php
+++ /dev/null
@@ -1,135 +0,0 @@
- 'Test description',
- 'EventStartDate' => date('Y-m-d', strtotime('+1 week')),
- 'EventEndDate' => date('Y-m-d', strtotime('+1 week'))
- ];
-
- $result = $this->validate_event_data($event_data);
- $this->assertFalse($result['valid'], 'Event should not be valid without title');
- $this->assertContains('Title is required', $result['errors']);
- }
-
- /**
- * Test date validation
- */
- public function test_date_validation() {
- // Test invalid date format
- $event_data = [
- 'post_title' => 'Test Event',
- 'post_content' => 'Description',
- 'EventStartDate' => 'invalid-date',
- 'EventEndDate' => '2025/13/45'
- ];
-
- $result = $this->validate_event_data($event_data);
- $this->assertFalse($result['valid'], 'Event should not be valid with invalid dates');
- $this->assertContains('Invalid date format', $result['errors']);
-
- // Test past dates
- $event_data = [
- 'post_title' => 'Past Event',
- 'post_content' => 'Description',
- 'EventStartDate' => date('Y-m-d', strtotime('-1 week')),
- 'EventEndDate' => date('Y-m-d', strtotime('-1 week'))
- ];
-
- $result = $this->validate_event_data($event_data);
- $this->assertFalse($result['valid'], 'Event should not be valid with past dates');
- $this->assertContains('Event dates must be in the future', $result['errors']);
- }
-
- /**
- * Test boundary conditions
- */
- public function test_boundary_conditions() {
- // Test extremely long title
- $event_data = [
- 'post_title' => str_repeat('a', 200),
- 'post_content' => 'Description',
- 'EventStartDate' => date('Y-m-d', strtotime('+1 week')),
- 'EventEndDate' => date('Y-m-d', strtotime('+1 week'))
- ];
-
- $result = $this->validate_event_data($event_data);
- $this->assertTrue($result['valid'], 'Event should be valid with long title');
- $this->assertLessThanOrEqual(190, strlen($result['data']['post_title']), 'Title should be truncated');
- }
-
- /**
- * Test valid event data
- */
- public function test_valid_event_data() {
- $event_data = [
- 'post_title' => 'Valid Test Event',
- 'post_content' => 'Description',
- 'EventStartDate' => date('Y-m-d', strtotime('+1 week')),
- 'EventEndDate' => date('Y-m-d', strtotime('+1 week'))
- ];
-
- $result = $this->validate_event_data($event_data);
- $this->assertTrue($result['valid'], 'Event should be valid with all required fields');
- $this->assertEmpty($result['errors'], 'No errors should be present');
- }
-
- /**
- * Helper function to validate event data
- */
- private function validate_event_data($event_data) {
- $errors = [];
- $data = $event_data;
-
- // Check required fields
- if (empty($data['post_title'])) {
- $errors[] = 'Title is required';
- return ['valid' => false, 'errors' => $errors, 'data' => $data];
- }
-
- // Validate dates
- if (!empty($data['EventStartDate'])) {
- try {
- $start_date = new DateTime($data['EventStartDate']);
- if ($start_date < new DateTime()) {
- $errors[] = 'Event dates must be in the future';
- }
- } catch (Exception $e) {
- $errors[] = 'Invalid date format';
- }
- }
-
- if (!empty($data['EventEndDate'])) {
- try {
- new DateTime($data['EventEndDate']);
- } catch (Exception $e) {
- $errors[] = 'Invalid date format';
- }
- }
-
- // Truncate title if needed
- if (strlen($data['post_title']) > 190) {
- $data['post_title'] = substr($data['post_title'], 0, 190);
- }
-
- return [
- 'valid' => empty($errors),
- 'errors' => $errors,
- 'data' => $data
- ];
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/bootstrap.php b/wordpress-dev/tests/basic/bootstrap.php
deleted file mode 100644
index 752c9111..00000000
--- a/wordpress-dev/tests/basic/bootstrap.php
+++ /dev/null
@@ -1,28 +0,0 @@
-addTestFile(__DIR__ . '/test-basic-functionality.php');
-
-// Create test runner
-$runner = new PHPUnit\TextUI\TestRunner();
-
-// Run tests and get result
-try {
- $result = $runner->run($suite);
-
- // Output results
- echo "\nTest Results:\n";
- echo "Tests: " . $result->count() . "\n";
- echo "Failures: " . $result->failureCount() . "\n";
- echo "Errors: " . $result->errorCount() . "\n";
-
- // Set exit code based on result
- exit($result->wasSuccessful() ? 0 : 1);
-
-} catch (Exception $e) {
- echo "Error running tests: " . $e->getMessage() . "\n";
- exit(1);
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/run-tests.php b/wordpress-dev/tests/basic/run-tests.php
deleted file mode 100644
index e9e4f79d..00000000
--- a/wordpress-dev/tests/basic/run-tests.php
+++ /dev/null
@@ -1,41 +0,0 @@
-addTestFile(__DIR__ . '/test-basic-functionality.php');
-
-// Create test runner
-$runner = new PHPUnit\TextUI\TestRunner();
-
-// Run tests and get result
-try {
- $result = $runner->run($suite);
-
- // Output results
- echo "\nTest Results:\n";
- echo "Tests: " . $result->count() . "\n";
- echo "Failures: " . $result->failureCount() . "\n";
- echo "Errors: " . $result->errorCount() . "\n";
-
- // Set exit code based on result
- exit($result->wasSuccessful() ? 0 : 1);
-
-} catch (Exception $e) {
- echo "Error running tests: " . $e->getMessage() . "\n";
- exit(1);
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/smoke-test-detailed.php b/wordpress-dev/tests/basic/smoke-test-detailed.php
deleted file mode 100644
index 9551a971..00000000
--- a/wordpress-dev/tests/basic/smoke-test-detailed.php
+++ /dev/null
@@ -1,61 +0,0 @@
-getMessage() . "\n", FILE_APPEND);
- exit(1);
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/smoke-test-logging.php b/wordpress-dev/tests/basic/smoke-test-logging.php
deleted file mode 100644
index db32a57f..00000000
--- a/wordpress-dev/tests/basic/smoke-test-logging.php
+++ /dev/null
@@ -1,36 +0,0 @@
-getMessage() . "\n", FILE_APPEND);
- exit(1);
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/smoke-test.php b/wordpress-dev/tests/basic/smoke-test.php
deleted file mode 100644
index 1c9ffe56..00000000
--- a/wordpress-dev/tests/basic/smoke-test.php
+++ /dev/null
@@ -1,67 +0,0 @@
-plugin = HVAC_Community_Events::get_instance();
- }
-
- public function tearDown(): void {
- parent::tearDown();
- }
-
- public function test_plugin_loaded() {
- $this->assertTrue(
- class_exists('HVAC_Community_Events'),
- 'Plugin main class should be loaded'
- );
- }
-
- public function test_plugin_version() {
- $this->assertTrue(
- defined('HVAC_CE_VERSION'),
- 'Plugin version constant should be defined'
- );
- $this->assertNotEmpty(
- HVAC_CE_VERSION,
- 'Plugin version should not be empty'
- );
- }
-
- public function test_dependencies_available() {
- $this->assertTrue(
- class_exists('Tribe__Events__Main'),
- 'The Events Calendar classes should be available'
- );
- $this->assertTrue(
- class_exists('Tribe__Events__Community__Main'),
- 'Community Events classes should be available'
- );
- }
-
- public function test_basic_event_creation() {
- $event_id = create_test_event();
- $this->assertNotEmpty($event_id, 'Should be able to create a test event');
-
- $event = get_post($event_id);
- $this->assertEquals(
- Tribe__Events__Main::POSTTYPE,
- $event->post_type,
- 'Event should have correct post type'
- );
- }
-
- public function test_event_meta_functions() {
- $event_id = create_test_event();
-
- // Test start date
- $start_date = tribe_get_start_date($event_id);
- $this->assertNotFalse(
- $start_date,
- 'Should be able to get event start date'
- );
-
- // Test end date
- $end_date = tribe_get_end_date($event_id);
- $this->assertNotFalse(
- $end_date,
- 'Should be able to get event end date'
- );
- }
-
- public function test_event_query() {
- create_test_event();
- create_test_event();
-
- $events = tribe_events_get_events();
- $this->assertNotEmpty(
- $events,
- 'Should be able to query events'
- );
- $this->assertGreaterThanOrEqual(
- 2,
- count($events),
- 'Should find at least two events'
- );
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/test-db.php b/wordpress-dev/tests/basic/test-db.php
deleted file mode 100644
index b8911e92..00000000
--- a/wordpress-dev/tests/basic/test-db.php
+++ /dev/null
@@ -1,209 +0,0 @@
-test_post_id = create_test_event([
- 'post_title' => 'Database Test Event',
- 'post_content' => 'Test content for database operations'
- ]);
- }
-
- protected function tearDown(): void {
- // Clean up test post
- if ($this->test_post_id) {
- wp_delete_post($this->test_post_id, true);
- }
- parent::tearDown();
- }
-
- public function test_event_post_creation() {
- $post = get_post($this->test_post_id);
-
- $this->assertNotNull(
- $post,
- 'Should be able to retrieve created event post'
- );
-
- $this->assertEquals(
- 'Database Test Event',
- $post->post_title,
- 'Event title should match created value'
- );
-
- $this->assertEquals(
- Tribe__Events__Main::POSTTYPE,
- $post->post_type,
- 'Post type should be tribe_events'
- );
- }
-
- public function test_event_meta_operations() {
- // Test adding meta
- $result = add_post_meta(
- $this->test_post_id,
- '_EventStartDate',
- '2025-04-10 10:00:00'
- );
-
- $this->assertTrue(
- $result !== false,
- 'Should successfully add event start date meta'
- );
-
- // Test getting meta
- $start_date = get_post_meta(
- $this->test_post_id,
- '_EventStartDate',
- true
- );
-
- $this->assertEquals(
- '2025-04-10 10:00:00',
- $start_date,
- 'Should retrieve correct event start date'
- );
-
- // Test updating meta
- $result = update_post_meta(
- $this->test_post_id,
- '_EventStartDate',
- '2025-04-10 11:00:00'
- );
-
- $this->assertTrue(
- $result !== false,
- 'Should successfully update event start date'
- );
-
- // Verify update
- $updated_date = get_post_meta(
- $this->test_post_id,
- '_EventStartDate',
- true
- );
-
- $this->assertEquals(
- '2025-04-10 11:00:00',
- $updated_date,
- 'Should retrieve updated event start date'
- );
- }
-
- public function test_event_query() {
- // Create additional test events
- $event_ids = [];
- for ($i = 1; $i <= 3; $i++) {
- $event_ids[] = create_test_event([
- 'post_title' => "Query Test Event $i"
- ]);
- }
-
- // Test WP_Query with event post type
- $query = new WP_Query([
- 'post_type' => Tribe__Events__Main::POSTTYPE,
- 'posts_per_page' => -1
- ]);
-
- $this->assertGreaterThanOrEqual(
- 4, // Including the one from setUp
- $query->found_posts,
- 'Should find all created test events'
- );
-
- // Clean up additional events
- foreach ($event_ids as $event_id) {
- wp_delete_post($event_id, true);
- }
- }
-
- public function test_venue_organizer_relationships() {
- // Create test venue
- $venue_id = wp_insert_post([
- 'post_type' => Tribe__Events__Main::VENUE_POST_TYPE,
- 'post_title' => 'Test Venue',
- 'post_status' => 'publish'
- ]);
-
- // Create test organizer
- $organizer_id = wp_insert_post([
- 'post_type' => Tribe__Events__Main::ORGANIZER_POST_TYPE,
- 'post_title' => 'Test Organizer',
- 'post_status' => 'publish'
- ]);
-
- // Link venue and organizer to event
- update_post_meta($this->test_post_id, '_EventVenueID', $venue_id);
- update_post_meta($this->test_post_id, '_EventOrganizerID', $organizer_id);
-
- // Test relationships
- $this->assertEquals(
- $venue_id,
- get_post_meta($this->test_post_id, '_EventVenueID', true),
- 'Event should be linked to correct venue'
- );
-
- $this->assertEquals(
- $organizer_id,
- get_post_meta($this->test_post_id, '_EventOrganizerID', true),
- 'Event should be linked to correct organizer'
- );
-
- // Clean up
- wp_delete_post($venue_id, true);
- wp_delete_post($organizer_id, true);
- }
-}
-
-// Add required function if not exists
-if (!function_exists('wp_insert_post')) {
- function wp_insert_post($args, $wp_error = false) {
- static $post_id = 1000;
- error_log("[HVAC TEST] Mock wp_insert_post called with args: " . print_r($args, true));
- return $post_id++;
- }
-}
-
-if (!function_exists('wp_delete_post')) {
- function wp_delete_post($post_id, $force_delete = false) {
- error_log("[HVAC TEST] Mock wp_delete_post called for ID: $post_id");
- return true;
- }
-}
-
-if (!function_exists('get_post')) {
- function get_post($post_id) {
- error_log("[HVAC TEST] Mock get_post called for ID: $post_id");
- $post = new stdClass();
- $post->ID = $post_id;
- $post->post_type = Tribe__Events__Main::POSTTYPE;
- $post->post_title = 'Database Test Event';
- return $post;
- }
-}
-
-if (!class_exists('WP_Query')) {
- class WP_Query {
- public $found_posts = 4;
- public function __construct($args = []) {
- error_log("[HVAC TEST] Mock WP_Query constructed with args: " . print_r($args, true));
- }
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/test-doubles.php b/wordpress-dev/tests/basic/test-doubles.php
deleted file mode 100644
index 351d8296..00000000
--- a/wordpress-dev/tests/basic/test-doubles.php
+++ /dev/null
@@ -1,96 +0,0 @@
- Tribe__Events__Main::POSTTYPE,
- 'posts_per_page' => -1
- );
- return get_posts(array_merge($default_args, $args));
- }
-}
-
-// Mock essential WordPress functions if needed for testing
-if (!function_exists('wp_verify_nonce')) {
- function wp_verify_nonce($nonce, $action = -1) {
- return true; // Always verify in test environment
- }
-}
-
-if (!function_exists('wp_create_nonce')) {
- function wp_create_nonce($action = -1) {
- return 'test_nonce';
- }
-}
-
-// Add test helper functions
-function create_test_event($args = array()) {
- $default_args = array(
- 'post_type' => Tribe__Events__Main::POSTTYPE,
- 'post_title' => 'Test Event',
- 'post_status' => 'publish'
- );
- return wp_insert_post(array_merge($default_args, $args));
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/test-event-errors.php b/wordpress-dev/tests/basic/test-event-errors.php
deleted file mode 100644
index a2258870..00000000
--- a/wordpress-dev/tests/basic/test-event-errors.php
+++ /dev/null
@@ -1,113 +0,0 @@
- 'Test description',
- 'EventStartDate' => date('Y-m-d', strtotime('+1 week')),
- 'EventEndDate' => date('Y-m-d', strtotime('+1 week'))
- ];
-
- $this->assertFalse($this->validate_event_data($event_data), 'Event should not be valid without title');
- }
-
- /**
- * Test date validation
- */
- public function test_date_validation() {
- // Test invalid date format
- $event_data = [
- 'post_title' => 'Test Event',
- 'post_content' => 'Description',
- 'EventStartDate' => 'invalid-date',
- 'EventEndDate' => '2025/13/45'
- ];
-
- $this->assertFalse($this->validate_event_data($event_data), 'Event should not be valid with invalid dates');
-
- // Test past dates
- $event_data = [
- 'post_title' => 'Past Event',
- 'post_content' => 'Description',
- 'EventStartDate' => date('Y-m-d', strtotime('-1 week')),
- 'EventEndDate' => date('Y-m-d', strtotime('-1 week'))
- ];
-
- $this->assertFalse($this->validate_event_data($event_data), 'Event should not be valid with past dates');
- }
-
- /**
- * Test boundary conditions
- */
- public function test_boundary_conditions() {
- // Test extremely long title
- $event_data = [
- 'post_title' => str_repeat('a', 200),
- 'post_content' => 'Description',
- 'EventStartDate' => date('Y-m-d', strtotime('+1 week')),
- 'EventEndDate' => date('Y-m-d', strtotime('+1 week'))
- ];
-
- $this->assertTrue($this->validate_event_data($event_data), 'Event should be valid with long title');
- $this->assertLessThanOrEqual(190, strlen($event_data['post_title']), 'Title should be truncated');
- }
-
- /**
- * Test valid event data
- */
- public function test_valid_event_data() {
- $event_data = [
- 'post_title' => 'Valid Test Event',
- 'post_content' => 'Description',
- 'EventStartDate' => date('Y-m-d', strtotime('+1 week')),
- 'EventEndDate' => date('Y-m-d', strtotime('+1 week'))
- ];
-
- $this->assertTrue($this->validate_event_data($event_data), 'Event should be valid with all required fields');
- }
-
- /**
- * Helper function to validate event data
- */
- private function validate_event_data($event_data) {
- // Check required fields
- if (empty($event_data['post_title'])) {
- return false;
- }
-
- // Validate dates
- if (!empty($event_data['EventStartDate'])) {
- try {
- $start_date = new DateTime($event_data['EventStartDate']);
- if ($start_date < new DateTime()) {
- return false;
- }
- } catch (Exception $e) {
- return false;
- }
- }
-
- if (!empty($event_data['EventEndDate'])) {
- try {
- new DateTime($event_data['EventEndDate']);
- } catch (Exception $e) {
- return false;
- }
- }
-
- // Truncate title if needed
- if (strlen($event_data['post_title']) > 190) {
- $event_data['post_title'] = substr($event_data['post_title'], 0, 190);
- }
-
- return true;
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/test-hooks.php b/wordpress-dev/tests/basic/test-hooks.php
deleted file mode 100644
index 18e86d71..00000000
--- a/wordpress-dev/tests/basic/test-hooks.php
+++ /dev/null
@@ -1,146 +0,0 @@
-hook_calls = [];
- $this->filter_values = [];
- }
-
- public function test_plugin_activation_hooks() {
- // Test activation hook registration
- $result = register_activation_hook(
- HVAC_PLUGIN_DIR . '/hvac-community-events.php',
- function() {}
- );
-
- $this->assertTrue(
- $result,
- 'Activation hook should be registered successfully'
- );
-
- // Test deactivation hook registration
- $result = register_deactivation_hook(
- HVAC_PLUGIN_DIR . '/hvac-community-events.php',
- function() {}
- );
-
- $this->assertTrue(
- $result,
- 'Deactivation hook should be registered successfully'
- );
- }
-
- public function test_event_hooks() {
- // Track hook execution
- add_action('hvac_before_event_creation', function($event_data) {
- $this->hook_calls[] = [
- 'hook' => 'hvac_before_event_creation',
- 'data' => $event_data
- ];
- });
-
- // Simulate event creation
- do_action('hvac_before_event_creation', [
- 'title' => 'Test Event',
- 'date' => '2025-04-10'
- ]);
-
- $this->assertCount(
- 1,
- $this->hook_calls,
- 'Event creation hook should be called once'
- );
-
- $this->assertEquals(
- 'Test Event',
- $this->hook_calls[0]['data']['title'],
- 'Event data should be passed to hook correctly'
- );
- }
-
- public function test_content_filters() {
- // Add test filter
- add_filter('hvac_event_content', function($content) {
- $this->filter_values[] = $content;
- return 'Filtered: ' . $content;
- });
-
- // Test content filtering
- $original_content = 'Original event content';
- $filtered_content = apply_filters('hvac_event_content', $original_content);
-
- $this->assertStringContainsString(
- 'Filtered:',
- $filtered_content,
- 'Content should be modified by filter'
- );
-
- $this->assertCount(
- 1,
- $this->filter_values,
- 'Filter should be called once'
- );
-
- $this->assertEquals(
- $original_content,
- $this->filter_values[0],
- 'Original content should be passed to filter'
- );
- }
-
- public function test_conditional_hooks() {
- // Test is_page mock
- $this->assertFalse(
- is_page('events'),
- 'is_page mock should return false by default'
- );
-
- // Test is_singular mock
- $this->assertFalse(
- is_singular('tribe_events'),
- 'is_singular mock should return false by default'
- );
- }
-
- public function test_url_functions() {
- $this->assertEquals(
- 'http://example.com/events',
- home_url('/events'),
- 'home_url should return correct test URL'
- );
- }
-}
-
-// Add required function if not exists
-if (!function_exists('do_action')) {
- function do_action($hook, ...$args) {
- error_log("[HVAC TEST] Mock do_action called for hook: $hook");
- return true;
- }
-}
-
-if (!function_exists('apply_filters')) {
- function apply_filters($hook, $value, ...$args) {
- error_log("[HVAC TEST] Mock apply_filters called for hook: $hook");
- return 'Filtered: ' . $value;
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/basic/test-utils.php b/wordpress-dev/tests/basic/test-utils.php
deleted file mode 100644
index 5279c9c0..00000000
--- a/wordpress-dev/tests/basic/test-utils.php
+++ /dev/null
@@ -1,99 +0,0 @@
-assertEquals(
- HVAC_PLUGIN_DIR . '/',
- plugin_dir_path($plugin_file),
- 'Plugin directory path should match expected value'
- );
-
- // Test plugin_dir_url mock
- $this->assertEquals(
- 'http://example.com/wp-content/plugins/hvac-community-events/',
- plugin_dir_url($plugin_file),
- 'Plugin directory URL should match expected value'
- );
- }
-
- public function test_wordpress_hooks() {
- // Test action registration
- $this->assertTrue(
- add_action('test_hook', function() {}),
- 'Should be able to register an action'
- );
-
- // Test filter registration
- $this->assertTrue(
- add_filter('test_filter', function($value) { return $value; }),
- 'Should be able to register a filter'
- );
- }
-
- public function test_event_creation_helper() {
- $event_id = create_test_event([
- 'post_title' => 'Test Event Title'
- ]);
-
- $this->assertIsInt(
- $event_id,
- 'Event creation should return a valid post ID'
- );
- }
-
- public function test_nonce_functions() {
- // Test nonce creation
- $nonce = wp_create_nonce('test-action');
- $this->assertEquals(
- 'test_nonce',
- $nonce,
- 'Should create a test nonce'
- );
-
- // Test nonce verification
- $this->assertTrue(
- wp_verify_nonce($nonce, 'test-action'),
- 'Should verify test nonce'
- );
- }
-
- public function test_tec_integration_functions() {
- $event_id = create_test_event();
-
- // Test TEC function mocks
- $this->assertNotEmpty(
- tribe_get_events(),
- 'Should be able to retrieve events'
- );
-
- $this->assertNotFalse(
- tribe_get_start_date($event_id),
- 'Should be able to get event start date'
- );
-
- $this->assertNotFalse(
- tribe_get_end_date($event_id),
- 'Should be able to get event end date'
- );
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/tests/bootstrap-staging.php b/wordpress-dev/tests/bootstrap-staging.php
deleted file mode 100644
index ce81c149..00000000
--- a/wordpress-dev/tests/bootstrap-staging.php
+++ /dev/null
@@ -1,44 +0,0 @@
-role_names as $role => $name) {
- if (!in_array($role, ['administrator'])) {
- remove_role($role);
- }
- }
-});
\ No newline at end of file
diff --git a/wordpress-dev/tests/bootstrap.php b/wordpress-dev/tests/bootstrap.php
deleted file mode 100644
index a0da9441..00000000
--- a/wordpress-dev/tests/bootstrap.php
+++ /dev/null
@@ -1,33 +0,0 @@
- {
- // Setup test data
- console.log('Setting up test data for certificate tests...');
-
- // Create a new browser context for data setup
- const context = await browser.newContext();
- const setupPage = await context.newPage();
-
- // Set up the test data
- const testData = new CertificateTestData(setupPage);
- await testData.loginAsTrainer();
-
- // Create a test event with attendees (some checked-in, some not)
- const eventName = await testData.setupCertificateTestEvent();
- expect(eventName).not.toBeNull();
-
- console.log(`Test event created: ${eventName}`);
-
- // Close the setup context
- await context.close();
-
- console.log('Step 1: Logging in...');
- await page.goto(`${STAGING_URL}/community-login/`);
- await page.fill('#user_login', 'test_trainer');
- await page.fill('#user_pass', 'Test123!');
- await page.click('#wp-submit');
- await page.waitForLoadState('networkidle');
- await expect(page).toHaveURL(/hvac-dashboard/);
-
- console.log('Step 2: Navigate to dashboard...');
- const dashboardPage = new DashboardPage(page);
- await dashboardPage.navigate();
-
- console.log('Step 3: Verify certificate links are visible...');
- await dashboardPage.clickGenerateCertificates();
-
- console.log('Step 4: Generate certificates for checked-in attendees only...');
- const certificatePage = new CertificatePage(page);
-
- // Verify we're on the generate certificates page
- const pageVisible = await certificatePage.isGenerateCertificatesPageVisible();
- expect(pageVisible).toBeTruthy();
-
- // Select the test event
- await certificatePage.selectEvent(eventName as string);
-
- // Get attendee counts
- const totalAttendees = await certificatePage.getAttendeeCount();
- const checkedInAttendees = await certificatePage.getCheckedInAttendeeCount();
-
- console.log(`Found ${totalAttendees} total attendees, ${checkedInAttendees} checked-in`);
- expect(totalAttendees).toBeGreaterThan(0);
- expect(checkedInAttendees).toBeGreaterThan(0);
-
- // Select only checked-in attendees
- await certificatePage.selectCheckedInAttendees();
-
- // Generate certificates
- await certificatePage.generateCertificates();
-
- // Verify success message
- const success = await certificatePage.isSuccessMessageVisible();
- expect(success).toBeTruthy();
-
- const successMessage = await certificatePage.getSuccessMessage();
- console.log(`Success message: ${successMessage}`);
- expect(successMessage).toContain("success");
-
- console.log('Step 5: Verify certificates in Certificate Reports...');
-
- // Navigate to certificate reports
- await dashboardPage.navigate();
- await dashboardPage.clickCertificateReports();
-
- // Verify we're on the certificate reports page
- const reportsPageVisible = await certificatePage.isCertificateReportsPageVisible();
- expect(reportsPageVisible).toBeTruthy();
-
- // Filter certificates for the test event
- await certificatePage.searchCertificates(eventName as string);
-
- // Check certificate count
- const certificateCount = await certificatePage.getCertificateCount();
- console.log(`Found ${certificateCount} certificates for event`);
-
- // We should have certificates equal to the number of checked-in attendees
- // Note: This assumes that the test data setup created at least one checked-in attendee
- expect(certificateCount).toBeGreaterThan(0);
-
- // View a certificate
- if (certificateCount > 0) {
- await certificatePage.viewCertificate(0);
-
- // Close the preview
- await certificatePage.closePreview();
- }
-
- console.log('Certificate generation test for checked-in attendees completed successfully');
-});
\ No newline at end of file
diff --git a/wordpress-dev/tests/e2e/archived/certificate-generation.test.ts b/wordpress-dev/tests/e2e/archived/certificate-generation.test.ts
deleted file mode 100644
index 81391bad..00000000
--- a/wordpress-dev/tests/e2e/archived/certificate-generation.test.ts
+++ /dev/null
@@ -1,127 +0,0 @@
-import { test, expect } from '@playwright/test';
-
-/**
- * Certificate Generation End-to-End Test
- *
- * This test verifies the certificate generation functionality:
- * - Login as a trainer
- * - Navigate to an event summary page
- * - Generate certificates for attendees
- * - View certificate
- * - Email certificate to a test email
- * - Revoke certificate
- */
-
-test.describe('Certificate Generation Tests', () => {
- const stagingUrl = 'https://wordpress-974670-5399585.cloudwaysapps.com/';
- const loginUrl = `${stagingUrl}community-login/`;
- const dashboardUrl = `${stagingUrl}hvac-dashboard/`;
- const testEmail = 'ben@tealmaker.com';
-
- test.beforeEach(async ({ page }) => {
- // Login as trainer
- await page.goto(loginUrl);
- await page.fill('input[name="log"]', 'test_trainer');
- await page.fill('input[name="pwd"]', 'Test123!');
- await page.click('input[type="submit"]');
-
- // Verify login was successful by checking for dashboard
- await expect(page).toHaveURL(dashboardUrl);
- });
-
- test('Generate and manage certificates for an event', async ({ page }) => {
- // Navigate to the dashboard to find an event
- await page.goto(dashboardUrl);
-
- // Click on the first event summary link
- await page.click('.hvac-event-title a');
-
- // Wait for the event summary page to load
- await expect(page.locator('h1')).toContainText('Summary');
-
- // Check if we have attendees
- const hasAttendees = await page.locator('.hvac-transactions-table').isVisible();
-
- if (hasAttendees) {
- // Check if any attendee doesn't have a certificate yet
- const generateButtonExists = await page.locator('.hvac-cert-action:text("Generate")').isVisible();
-
- if (generateButtonExists) {
- // Generate a certificate for an attendee
- await page.click('.hvac-cert-action:text("Generate")');
-
- // Navigate to the generate certificates page
- await expect(page.locator('h1')).toContainText('Generate Certificates');
-
- // Check the 'checked_in_only' checkbox
- await page.check('#checked-in-only-checkbox');
-
- // Generate certificates
- await page.click('button[type="submit"]');
-
- // Wait for success message
- await expect(page.locator('.hvac-success-message')).toBeVisible();
-
- // Go back to the event summary
- await page.click('a:text("Back to Event Summary")');
- }
-
- // Check if there are any generated certificates
- const viewButtonExists = await page.locator('.hvac-cert-action:text("View")').isVisible();
-
- if (viewButtonExists) {
- // View a certificate
- await page.click('.hvac-cert-action:text("View")', { force: true });
-
- // Wait for the certificate modal to appear
- await expect(page.locator('#hvac-certificate-modal')).toBeVisible();
-
- // Wait for the certificate iframe to load
- await page.waitForSelector('#hvac-certificate-preview[src^="http"]');
-
- // Close the modal
- await page.click('.hvac-modal-close');
-
- // Email a certificate
- await page.click('.hvac-cert-action:text("Email")', { force: true });
-
- // Confirm the email dialog
- await page.once('dialog', dialog => dialog.accept());
-
- // Wait for success message
- await page.waitForTimeout(2000); // Wait for alert to appear and dismiss
-
- // Revoke a certificate
- await page.click('.hvac-cert-action:text("Revoke")', { force: true });
-
- // Enter reason in the prompt
- await page.once('dialog', dialog => dialog.accept('Revocation test'));
-
- // Wait for status to update to Revoked
- await expect(page.locator('td:has-text("Revoked")')).toBeVisible();
- } else {
- console.log('No generated certificates available to test with');
- }
- } else {
- console.log('No attendees found for the event');
- }
- });
-
- test('Navigate to Certificate Reports page', async ({ page }) => {
- // Navigate to certificate reports page
- await page.goto(`${stagingUrl}certificate-reports/`);
-
- // Verify the page loaded successfully
- await expect(page.locator('h1')).toContainText('Certificate Reports');
-
- // Try filtering certificates
- await page.selectOption('select[name="filter_status"]', 'all');
- await page.click('button[type="submit"]');
-
- // Check for certificate data or empty message
- const hasReports = await page.locator('.hvac-certificate-table').isVisible();
- if (!hasReports) {
- await expect(page.locator('.hvac-no-certificates')).toBeVisible();
- }
- });
-});
\ No newline at end of file
diff --git a/wordpress-dev/tests/e2e/archived/certificates.test.ts b/wordpress-dev/tests/e2e/archived/certificates.test.ts
deleted file mode 100644
index 006cc70d..00000000
--- a/wordpress-dev/tests/e2e/archived/certificates.test.ts
+++ /dev/null
@@ -1,204 +0,0 @@
-import { test as baseTest, expect } from '@playwright/test';
-
-// Create a fixture that contains a page, browser context, and browser
-const test = baseTest.extend({
- // Define your custom fixtures here if needed
-});
-
-// Define constants
-const STAGING_URL = 'https://wordpress-974670-5399585.cloudwaysapps.com';
-const LOGIN_URL = `${STAGING_URL}/community-login/`;
-const DASHBOARD_URL = `${STAGING_URL}/hvac-dashboard/`;
-const USER = 'test_trainer';
-const PASSWORD = 'Test123!';
-
-// Test for generating certificates for checked-in attendees
-test('Generate certificates for checked-in attendees', async ({ page }) => {
- // Login
- await page.goto(LOGIN_URL);
- await page.fill('#user_login', USER);
- await page.fill('#user_pass', PASSWORD);
- await page.click('#wp-submit');
- await page.waitForLoadState('networkidle');
-
- // Go to dashboard
- await page.goto(DASHBOARD_URL);
- await page.waitForLoadState('networkidle');
-
- // Navigate to "Generate Certificates" page
- const generateCertificatesLink = page.locator('a:has-text("Generate Certificates")');
- await generateCertificatesLink.click();
- await page.waitForLoadState('networkidle');
-
- // Verify page title is visible
- const pageTitle = page.locator('h1:has-text("Generate Certificates")');
- await expect(pageTitle).toBeVisible();
-
- // Select an event from the dropdown
- // Note: We'll need to select an event that already exists with attendees
- // In a real test, we'd likely create a test event with attendees first
- const eventDropdown = page.locator('select[name="event_id"]');
-
- // Verify dropdown is visible
- await expect(eventDropdown).toBeVisible();
-
- // Check if any events exist in the dropdown
- const optionCount = await page.locator('select[name="event_id"] option').count();
- if (optionCount <= 1) {
- // Skip the rest of the test if no events are available
- console.log('No events available for certificate generation. Skipping test.');
- return;
- }
-
- // Select the first event that's not the empty/default option
- await eventDropdown.selectOption({ index: 1 });
- await page.waitForTimeout(1000); // Wait for attendee list to load
-
- // Check for attendees
- const attendeeList = page.locator('.hvac-attendee-list');
-
- // If there's no attendee list or it's empty, skip the test
- const attendeeItems = page.locator('.hvac-attendee-item');
- const attendeeCount = await attendeeItems.count();
- if (attendeeCount === 0) {
- console.log('No attendees available for certificate generation. Skipping test.');
- return;
- }
-
- // Select all attendees
- const selectAllCheckbox = page.locator('#select_all_attendees');
- if (await selectAllCheckbox.isVisible()) {
- await selectAllCheckbox.check();
- } else {
- // If no "select all" checkbox, select the first attendee manually
- const firstAttendeeCheckbox = attendeeItems.first().locator('input[type="checkbox"]');
- await firstAttendeeCheckbox.check();
- }
-
- // Generate certificates
- const generateButton = page.locator('button:has-text("Generate Certificates")');
- await generateButton.click();
- await page.waitForTimeout(2000); // Wait for processing
-
- // Check for success message
- const successMessage = page.locator('.hvac-success-message');
- const errorMessage = page.locator('.hvac-error-message');
-
- if (await successMessage.isVisible()) {
- console.log('Certificate generation succeeded');
- // Success path - verify certificates were created
-
- // Go back to dashboard
- await page.goto(DASHBOARD_URL);
- await page.waitForLoadState('networkidle');
-
- // Navigate to Certificate Reports
- const certificateReportsLink = page.locator('a:has-text("Certificate Reports")');
- await certificateReportsLink.click();
- await page.waitForLoadState('networkidle');
-
- // Verify certificates exist
- const certificateTable = page.locator('.hvac-certificate-table');
- await expect(certificateTable).toBeVisible();
-
- // Check for at least one certificate row
- const certificateRows = page.locator('.hvac-certificate-table tbody tr');
- const certificateCount = await certificateRows.count();
- expect(certificateCount).toBeGreaterThan(0);
- } else if (await errorMessage.isVisible()) {
- // Certificate generation failed with an error
- const errorText = await errorMessage.textContent();
- console.log(`Certificate generation failed with error: ${errorText}`);
-
- // This might be expected behavior for some tests (e.g., non-checked-in attendees)
- // We'll allow the test to pass, but log the error
- } else {
- // No clear success or error message
- throw new Error('No success or error message was displayed after certificate generation');
- }
-});
-
-// Test for certificate management features
-test('Certificate management functionality', async ({ page }) => {
- // Login
- await page.goto(LOGIN_URL);
- await page.fill('#user_login', USER);
- await page.fill('#user_pass', PASSWORD);
- await page.click('#wp-submit');
- await page.waitForLoadState('networkidle');
-
- // Go to dashboard
- await page.goto(DASHBOARD_URL);
- await page.waitForLoadState('networkidle');
-
- // Navigate to Certificate Reports
- const certificateReportsLink = page.locator('a:has-text("Certificate Reports")');
- await certificateReportsLink.click();
- await page.waitForLoadState('networkidle');
-
- // Verify page title is visible
- const pageTitle = page.locator('h1:has-text("Certificate Reports")');
- await expect(pageTitle).toBeVisible();
-
- // Check if certificates exist
- const certificateTable = page.locator('.hvac-certificate-table');
-
- // If no certificate table or it's empty, skip the test
- if (!await certificateTable.isVisible()) {
- console.log('No certificate table available. Skipping test.');
- return;
- }
-
- const certificateRows = page.locator('.hvac-certificate-table tbody tr');
- const certificateCount = await certificateRows.count();
-
- if (certificateCount === 0) {
- console.log('No certificates available for management. Skipping test.');
- return;
- }
-
- // Test viewing a certificate
- const viewButton = page.locator('.hvac-certificate-download, button:has-text("View")').first();
- if (await viewButton.isVisible()) {
- await viewButton.click();
- await page.waitForTimeout(1000);
-
- // Close the preview if there's a close button
- const closeButton = page.locator('.hvac-modal-close, button:has-text("Close")');
- if (await closeButton.isVisible()) {
- await closeButton.click();
- await page.waitForTimeout(500);
- }
- }
-
- // Test filtering if a filter input exists
- const filterInput = page.locator('#certificate_filter, input[placeholder*="filter"], input[placeholder*="search"]');
- if (await filterInput.isVisible()) {
- await filterInput.fill('test');
-
- // Look for a filter button
- const filterButton = page.locator('button.hvac-filter-button, button:has-text("Filter"), button:has-text("Search")');
- if (await filterButton.isVisible()) {
- await filterButton.click();
- } else {
- // If no button, press Enter in the input
- await filterInput.press('Enter');
- }
-
- await page.waitForTimeout(1000);
- }
-
- // Test pagination if it exists
- const paginationNext = page.locator('.hvac-pagination-next, a:has-text("Next")');
- if (await paginationNext.isVisible() && await paginationNext.isEnabled()) {
- await paginationNext.click();
- await page.waitForTimeout(1000);
-
- // Go back
- const paginationPrev = page.locator('.hvac-pagination-prev, a:has-text("Previous")');
- if (await paginationPrev.isVisible() && await paginationPrev.isEnabled()) {
- await paginationPrev.click();
- await page.waitForTimeout(1000);
- }
- }
-});
\ No newline at end of file
diff --git a/wordpress-dev/tests/e2e/button-click-test.test.ts b/wordpress-dev/tests/e2e/button-click-test.test.ts
deleted file mode 100644
index ffcdfc9f..00000000
--- a/wordpress-dev/tests/e2e/button-click-test.test.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { test, expect } from './fixtures/auth';
-import { CommonActions } from './utils/common-actions';
-
-test('Test button click functionality', async ({ authenticatedPage: page }) => {
- test.setTimeout(30000);
- const actions = new CommonActions(page);
-
- // Capture console messages
- const consoleMessages: string[] = [];
- page.on('console', (msg) => {
- consoleMessages.push(`[${msg.type()}] ${msg.text()}`);
- });
-
- // Navigate to templates page
- await actions.navigateAndWait('/communication-templates/');
-
- // Wait for scripts and override
- await page.waitForFunction(() => typeof HVACTemplates !== 'undefined');
- await page.waitForTimeout(2000); // Give the override time to load
-
- // Click the Create New Template button
- const createButton = page.locator('button:has-text("Create New Template")');
- await expect(createButton).toBeVisible();
-
- console.log('Clicking Create New Template button...');
- await createButton.click();
-
- // Wait for modal to appear
- await page.waitForTimeout(1000);
-
- // Check if modal is visible
- const modalVisible = await page.locator('#template-form-overlay').isVisible();
- console.log('Modal visible after button click:', modalVisible);
-
- // If modal is visible, interact with it
- if (modalVisible) {
- await expect(page.locator('#hvac_template_title')).toBeVisible();
- await page.fill('#hvac_template_title', 'Button Click Test Template');
- await page.fill('#hvac_template_content', 'This template was created by clicking the button!');
- await page.selectOption('#hvac_template_category', 'general');
-
- await actions.screenshot('button-click-modal-filled');
- console.log('Successfully filled modal form via button click');
- } else {
- await actions.screenshot('button-click-no-modal');
- console.log('Modal did not appear after button click');
- }
-
- // Log console messages
- console.log('Console messages:', consoleMessages.slice(-10)); // Last 10 messages
-});
\ No newline at end of file
diff --git a/wordpress-dev/tests/e2e/capture-ui-screenshots.test.ts b/wordpress-dev/tests/e2e/capture-ui-screenshots.test.ts
deleted file mode 100644
index e903ee2a..00000000
--- a/wordpress-dev/tests/e2e/capture-ui-screenshots.test.ts
+++ /dev/null
@@ -1,88 +0,0 @@
-import { test } from '@playwright/test';
-
-/**
- * UI Screenshots Test
- *
- * This test navigates through all key pages of the application
- * and captures full-page screenshots for UI evaluation.
- */
-test.describe('UI Screenshots', () => {
- // Login credentials for test_trainer user
- const username = 'test_trainer';
- const password = 'Test123!';
-
- // Base URL from environment or default to staging
- const baseUrl = process.env.UPSKILL_STAGING_URL || 'https://wordpress-974670-5399585.cloudwaysapps.com/';
-
- // Screenshot directory
- const screenshotDir = 'test-results/ui-screenshots';
-
- test('Capture screenshots of all pages', async ({ page }) => {
- // Create timestamp for unique screenshot filenames
- const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
-
- // Visit login page
- console.log('Visiting login page...');
- await page.goto(`${baseUrl}community-login/`);
- await page.screenshot({ path: `${screenshotDir}/01-login-page-${timestamp}.png`, fullPage: true });
-
- // Login
- console.log('Logging in...');
- await page.fill('input[name="log"]', username);
- await page.fill('input[name="pwd"]', password);
- await page.click('input[name="wp-submit"]');
-
- // Wait for redirect to dashboard
- await page.waitForURL(`${baseUrl}hvac-dashboard/`);
-
- // Capture dashboard
- console.log('Capturing dashboard...');
- await page.screenshot({ path: `${screenshotDir}/02-dashboard-${timestamp}.png`, fullPage: true });
-
- // Visit trainer profile page
- console.log('Visiting trainer profile...');
- await page.goto(`${baseUrl}trainer-profile/`);
- await page.screenshot({ path: `${screenshotDir}/03-trainer-profile-${timestamp}.png`, fullPage: true });
-
- // Visit my events page
- console.log('Visiting my events...');
- await page.goto(`${baseUrl}my-events/`);
- await page.screenshot({ path: `${screenshotDir}/04-my-events-${timestamp}.png`, fullPage: true });
-
- // Visit create event page
- console.log('Visiting create event page...');
- await page.goto(`${baseUrl}manage-event/`);
- await page.screenshot({ path: `${screenshotDir}/05-create-event-${timestamp}.png`, fullPage: true });
-
- // Try to visit event summary page if there are events
- console.log('Checking for existing events...');
- await page.goto(`${baseUrl}my-events/`);
- const eventLinks = await page.$$('a[href*="event_id="]');
-
- if (eventLinks.length > 0) {
- // Get href attribute of first event
- const eventHref = await eventLinks[0].getAttribute('href');
- if (eventHref) {
- // Extract event ID
- const eventIdMatch = eventHref.match(/event_id=(\d+)/);
- if (eventIdMatch && eventIdMatch[1]) {
- const eventId = eventIdMatch[1];
-
- // Visit event summary page
- console.log(`Visiting event summary for event ID: ${eventId}...`);
- await page.goto(`${baseUrl}event-summary/?event_id=${eventId}`);
- await page.screenshot({ path: `${screenshotDir}/06-event-summary-${timestamp}.png`, fullPage: true });
-
- // Visit email attendees page
- console.log(`Visiting email attendees for event ID: ${eventId}...`);
- await page.goto(`${baseUrl}email-attendees/?event_id=${eventId}`);
- await page.screenshot({ path: `${screenshotDir}/07-email-attendees-${timestamp}.png`, fullPage: true });
- }
- }
- } else {
- console.log('No events found to capture event-specific pages');
- }
-
- console.log('All screenshots captured successfully');
- });
-});
\ No newline at end of file
diff --git a/wordpress-dev/tests/e2e/certificate-basic.spec.ts b/wordpress-dev/tests/e2e/certificate-basic.spec.ts
deleted file mode 100644
index 831ce89c..00000000
--- a/wordpress-dev/tests/e2e/certificate-basic.spec.ts
+++ /dev/null
@@ -1,120 +0,0 @@
-import { STAGING_URL, PATHS, TIMEOUTS } from './config/staging-config';
-import { test, expect } from '@playwright/test';
-
-// Constants
-// STAGING_URL is now imported from config
-const LOGIN_URL = PATHS.login;
-const DASHBOARD_URL = PATHS.dashboard;
-const USERNAME = 'test_trainer';
-const PASSWORD = 'Test123!';
-
-// Test: Login and navigate to Generate Certificates page
-test('Should navigate to Generate Certificates page', async ({ page }) => {
- // Login
- await page.goto(LOGIN_URL);
- await page.fill('#user_login', USERNAME);
- await page.fill('#user_pass', PASSWORD);
- await page.click('#wp-submit');
- await page.waitForLoadState('networkidle');
-
- // Verify login was successful
- await expect(page).toHaveURL(/hvac-dashboard/);
-
- // Navigate to dashboard first
- await page.goto(DASHBOARD_URL);
- await page.waitForLoadState('networkidle');
-
- // Look for Generate Certificates link
- const generateLink = page.locator('a:has-text("Generate Certificates")');
- await expect(generateLink).toBeVisible();
-
- // Click the link
- await generateLink.click();
- await page.waitForLoadState('networkidle');
-
- // Check page title
- const title = await page.title();
- expect(title).toContain('Generate Certificates');
-
- // Check for event dropdown
- const eventDropdown = page.locator('#event_id');
- await expect(eventDropdown).toBeVisible();
-
- // Count options to verify dropdown is populated
- const optionCount = await page.locator('#event_id option').count();
- expect(optionCount).toBeGreaterThan(1);
-});
-
-// Test: Login and navigate to Certificate Reports page
-test('Should navigate to Certificate Reports page', async ({ page }) => {
- // Login
- await page.goto(LOGIN_URL);
- await page.fill('#user_login', USERNAME);
- await page.fill('#user_pass', PASSWORD);
- await page.click('#wp-submit');
- await page.waitForLoadState('networkidle');
-
- // Verify login was successful
- await expect(page).toHaveURL(/hvac-dashboard/);
-
- // Navigate to dashboard first
- await page.goto(DASHBOARD_URL);
- await page.waitForLoadState('networkidle');
-
- // Look for Certificate Reports link
- const reportsLink = page.locator('a:has-text("Certificate Reports")');
- await expect(reportsLink).toBeVisible();
-
- // Click the link
- await reportsLink.click();
- await page.waitForLoadState('networkidle');
-
- // Check page title
- const title = await page.title();
- expect(title).toContain('Certificate Reports');
-
- // Check for filter form
- const filterForm = page.locator('form.hvac-certificate-filters');
- await expect(filterForm).toBeVisible();
-});
-
-// Test: Filter certificates by event
-test('Should filter certificates by event', async ({ page }) => {
- // Login
- await page.goto(LOGIN_URL);
- await page.fill('#user_login', USERNAME);
- await page.fill('#user_pass', PASSWORD);
- await page.click('#wp-submit');
- await page.waitForLoadState('networkidle');
-
- // Navigate to Certificate Reports page
- await page.goto(`${STAGING_URL}/certificate-reports/`);
- await page.waitForLoadState('networkidle');
-
- // Check for filter form
- const filterForm = page.locator('form.hvac-certificate-filters');
- await expect(filterForm).toBeVisible();
-
- // Check if event filter exists
- const eventFilter = page.locator('#filter_event');
- await expect(eventFilter).toBeVisible();
-
- // Get options count
- const optionCount = await page.locator('#filter_event option').count();
-
- // Test different filter options
- if (optionCount > 1) {
- // Select the first non-empty option
- await eventFilter.selectOption({ index: 1 });
-
- // Apply filter
- const filterButton = page.locator('button[type="submit"]');
- await filterButton.click();
- await page.waitForLoadState('networkidle');
-
- // Log the filter results (can't guarantee there will be certificates)
- const certificateItems = page.locator('.hvac-certificate-item');
- const certificateCount = await certificateItems.count();
- console.log(`Found ${certificateCount} certificates after filtering by event`);
- }
-});
\ No newline at end of file
diff --git a/wordpress-dev/tests/e2e/certificate-basic.test.ts b/wordpress-dev/tests/e2e/certificate-basic.test.ts
deleted file mode 100644
index 7f0753cd..00000000
--- a/wordpress-dev/tests/e2e/certificate-basic.test.ts
+++ /dev/null
@@ -1,142 +0,0 @@
-import { test, expect } from './fixtures/auth';
-import { CommonActions } from './utils/common-actions';
-
-/**
- * Basic certificate functionality tests
- * Simplified and robust approach for certificate testing
- * @tag @certificates @basic
- */
-
-test.describe('Certificate Basic Functionality', () => {
- test('Certificate Reports page loads and displays statistics', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- // Navigate to Certificate Reports
- await actions.navigateAndWait('/certificate-reports/');
- await actions.screenshot('certificate-reports-loaded');
-
- // Verify page loaded correctly
- await expect(page.locator('h1, h2').filter({ hasText: /certificate/i }).first()).toBeVisible();
-
- // Verify navigation is present
- await actions.verifyNavigation();
-
- // Check for statistics (flexible approach)
- const statElements = page.locator('.stat-value, .stat-number, .dashboard-stat');
- const statCount = await statElements.count();
-
- if (statCount > 0) {
- console.log(`Found ${statCount} certificate statistics`);
-
- // Verify at least some statistics are numbers
- for (let i = 0; i < Math.min(statCount, 3); i++) {
- const statText = await statElements.nth(i).textContent();
- const hasNumber = /\d/.test(statText || '');
- expect(hasNumber).toBeTruthy();
- }
- } else {
- console.log('No statistics found - this may be expected');
- }
-
- await actions.screenshot('certificate-reports-verified');
- });
-
- test('Generate Certificates page loads and shows event selection', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- // Navigate to Generate Certificates page
- await actions.navigateAndWait('/generate-certificates/');
- await actions.screenshot('generate-certificates-loaded');
-
- // Verify page loaded correctly
- await expect(page.locator('h1, h2').filter({ hasText: /generate.*certificate/i }).first()).toBeVisible();
-
- // Verify navigation is present
- await actions.verifyNavigation();
-
- // Check for event selection
- const eventSelect = page.locator('select[name="event_id"], select[id*="event"]');
- await expect(eventSelect.first()).toBeVisible();
-
- // Check event options
- const eventOptions = await eventSelect.first().locator('option').count();
- expect(eventOptions).toBeGreaterThan(0);
-
- console.log(`Found ${eventOptions} event options (including default)`);
-
- // If there are events, test AJAX loading (but don't submit)
- if (eventOptions > 1) {
- await eventSelect.first().selectOption({ index: 1 });
- await actions.waitForAjax();
-
- // Give time for AJAX to complete
- await page.waitForTimeout(2000);
-
- // Look for any form elements that might have loaded
- const formElements = await page.locator('input[type="checkbox"], input[type="submit"], button[type="submit"]').count();
- console.log(`Found ${formElements} form elements after event selection`);
-
- await actions.screenshot('event-selected');
- }
- });
-
- test('Certificate navigation between pages works', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- // Test navigation flow: Reports -> Generate -> Reports
- await actions.navigateAndWait('/certificate-reports/');
- await expect(page.locator('h1, h2').filter({ hasText: /certificate.*report/i })).toBeVisible();
-
- // Click to Generate Certificates
- await page.click('text=Generate Certificates');
- await actions.waitForAjax();
- await expect(page.locator('h1, h2').filter({ hasText: /generate.*certificate/i })).toBeVisible();
-
- // Return to reports via navigation
- await page.click('text=Certificate Reports');
- await actions.waitForAjax();
- await expect(page.locator('h1, h2').filter({ hasText: /certificate.*report/i })).toBeVisible();
-
- // Return to dashboard
- await page.click('a[href*="hvac-dashboard"]');
- await actions.waitForAjax();
- await expect(page).toHaveURL(/hvac-dashboard/);
-
- await actions.screenshot('certificate-navigation-complete');
- });
-
- test('Certificate pages have no PHP errors', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
- const phpErrors = [];
-
- // Monitor for PHP errors
- page.on('console', (msg) => {
- if (msg.type() === 'error' && msg.text().includes('PHP')) {
- phpErrors.push(msg.text());
- }
- });
-
- // Test certificate pages for PHP errors
- const certificatePages = [
- '/certificate-reports/',
- '/generate-certificates/'
- ];
-
- for (const certPage of certificatePages) {
- await actions.navigateAndWait(certPage);
-
- // Verify page loaded without errors
- const hasContent = await page.locator('h1, h2, .content, main').count() > 0;
- expect(hasContent).toBeTruthy();
-
- // Wait a moment for any delayed errors
- await page.waitForTimeout(1000);
- }
-
- // Verify no PHP errors occurred
- expect(phpErrors.length).toBe(0);
- console.log('Certificate pages tested - no PHP errors found');
-
- await actions.screenshot('certificate-pages-error-free');
- });
-});
\ No newline at end of file
diff --git a/wordpress-dev/tests/e2e/certificate-core.test.ts b/wordpress-dev/tests/e2e/certificate-core.test.ts
deleted file mode 100644
index a6b66322..00000000
--- a/wordpress-dev/tests/e2e/certificate-core.test.ts
+++ /dev/null
@@ -1,152 +0,0 @@
-import { test, expect } from './fixtures/auth';
-import { CommonActions } from './utils/common-actions';
-import { STAGING_URL } from './config/staging-config';
-
-/**
- * Core certificate functionality tests
- * Tests: generation, viewing, and basic functionality
- * @tag @certificates @core
- */
-
-test.describe('Certificate Core Functionality', () => {
- test('Certificate generation and viewing flow', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- // Navigate to Generate Certificates page
- await actions.navigateAndWait('/generate-certificates/');
- await actions.screenshot('certificate-generation-page');
-
- // Verify page loaded correctly
- await expect(page.locator('h1, h2').filter({ hasText: /generate certificates/i })).toBeVisible();
-
- // Test AJAX functionality - get events
- const eventSelect = page.locator('select[name="event_id"]');
- await expect(eventSelect).toBeVisible();
-
- // Check if events are available
- const eventOptions = await eventSelect.locator('option').count();
- if (eventOptions > 1) {
- // Select first available event
- await eventSelect.selectOption({ index: 1 });
- await actions.waitForComplexAjax();
-
- // Check for attendee elements more flexibly
- const attendeeSelectors = [
- 'input[name="attendee_ids[]"]',
- 'input[name*="attendee"]',
- 'input[type="checkbox"][name*="attendee"]',
- '.attendee-list input[type="checkbox"]',
- '.certificate-attendees input',
- 'input[type="checkbox"]:visible:not([name="select_all"]):not([name="event_id"]):not([name*="checked_in"])'
- ];
-
- let attendeeCheckboxes = null;
- let foundAttendees = false;
-
- for (const selector of attendeeSelectors) {
- const checkboxes = page.locator(selector);
- const count = await checkboxes.count();
- if (count > 0) {
- attendeeCheckboxes = checkboxes;
- foundAttendees = true;
- console.log(`Found ${count} attendees using selector: ${selector}`);
- break;
- }
- }
-
- if (!foundAttendees) {
- console.log('No attendees found for this event - testing event selection only');
- await actions.screenshot('no-attendees-found');
-
- // Verify event selection worked even if no attendees
- const currentSelection = await eventSelect.inputValue();
- expect(currentSelection).not.toBe('');
- return; // Skip attendee-specific tests
- }
-
- // Now test with the found attendees
- const attendeeCount = await attendeeCheckboxes.count();
-
- if (attendeeCount > 0) {
- console.log(`Found ${attendeeCount} attendees for certificate generation`);
-
- // Just verify attendees are available - don't try to interact with them
- await actions.screenshot('attendees-available');
-
- // Test submit button presence
- const submitButton = page.locator('button[type="submit"], input[type="submit"]');
- const submitCount = await submitButton.count();
-
- if (submitCount > 0) {
- console.log('Certificate generation form is complete and ready');
- await expect(submitButton.first()).toBeVisible();
- await actions.screenshot('certificate-form-ready');
- } else {
- console.log('No submit button found - form may need additional configuration');
- }
- } else {
- console.log('Certificate generation form loaded but no attendees found');
- }
- }
- });
-
- test('Certificate Reports page functionality', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- // Navigate to Certificate Reports
- await actions.navigateAndWait('/certificate-reports/');
- await actions.screenshot('certificate-reports-page');
-
- // Verify page loaded
- await expect(page.locator('h1, h2').filter({ hasText: /certificate reports/i })).toBeVisible();
-
- // Verify navigation
- await actions.verifyNavigation();
-
- // Check for statistics
- const statElements = page.locator('.stat-value, .stat-number, .dashboard-stat');
- const statCount = await statElements.count();
-
- if (statCount > 0) {
- console.log(`Found ${statCount} certificate statistics`);
-
- // Verify statistics are numbers
- for (let i = 0; i < Math.min(statCount, 4); i++) {
- const statText = await statElements.nth(i).textContent();
- const statNumber = parseInt(statText?.replace(/[^\d]/g, '') || '0');
- expect(statNumber).toBeGreaterThanOrEqual(0);
- }
- }
-
- await actions.screenshot('certificate-reports-verified');
- });
-
- test('Certificate system navigation and integration', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- // Test navigation between certificate pages
- const certificatePages = [
- { path: '/certificate-reports/', name: 'Certificate Reports' },
- { path: '/generate-certificates/', name: 'Generate Certificates' }
- ];
-
- for (const certPage of certificatePages) {
- await actions.navigateAndWait(certPage.path);
-
- // Verify page loaded
- await expect(page.locator('h1, h2').filter({
- hasText: new RegExp(certPage.name, 'i')
- })).toBeVisible();
-
- // Verify navigation buttons work
- await actions.verifyNavigation();
-
- await actions.screenshot(`${certPage.name.toLowerCase().replace(/\s+/g, '-')}-navigation`);
- }
-
- // Test return to dashboard
- await page.click('text=Dashboard');
- await actions.waitForAjax();
- await expect(page).toHaveURL(/hvac-dashboard/);
- });
-});
\ No newline at end of file
diff --git a/wordpress-dev/tests/e2e/certificate-edge-cases.test.ts b/wordpress-dev/tests/e2e/certificate-edge-cases.test.ts
deleted file mode 100644
index 2e7d88d3..00000000
--- a/wordpress-dev/tests/e2e/certificate-edge-cases.test.ts
+++ /dev/null
@@ -1,241 +0,0 @@
-import { test, expect } from './fixtures/auth';
-import { CommonActions } from './utils/common-actions';
-
-/**
- * Certificate edge cases and error handling tests
- * Tests: validation, error scenarios, boundary conditions
- * @tag @certificates @edge-cases
- */
-
-test.describe('Certificate Edge Cases', () => {
- test('Error handling for invalid certificate generation', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- // Navigate to Generate Certificates page
- await actions.navigateAndWait('/generate-certificates/');
-
- // Test submitting without selecting an event
- const submitButton = page.locator('button[type="submit"], input[type="submit"]');
- if (await submitButton.count() > 0) {
- await submitButton.click();
- await actions.waitForAjax();
-
- // Look for error messages
- const errorSelectors = [
- '.error',
- '.notice-error',
- 'div:has-text(/error/i)',
- 'span:has-text(/required/i)',
- 'p:has-text(/select/i)'
- ];
-
- let foundError = false;
- for (const selector of errorSelectors) {
- if (await page.locator(selector).count() > 0) {
- foundError = true;
- console.log('Found appropriate error message for invalid submission');
- break;
- }
- }
-
- // Either error message shown or no action taken (both are valid)
- await actions.screenshot('invalid-submission-handled');
- }
- });
-
- test('Certificate generation with no attendees', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- await actions.navigateAndWait('/generate-certificates/');
-
- const eventSelect = page.locator('select[name="event_id"]');
- const eventOptions = await eventSelect.locator('option').count();
-
- if (eventOptions > 1) {
- // Try to find an event with no attendees by testing each option
- for (let i = 1; i < Math.min(eventOptions, 5); i++) {
- await eventSelect.selectOption({ index: i });
- await actions.waitForAjax();
-
- // Wait a moment for AJAX to complete
- await page.waitForTimeout(2000);
-
- const attendeeCheckboxes = page.locator('input[name="attendee_ids[]"]');
- const attendeeCount = await attendeeCheckboxes.count();
-
- if (attendeeCount === 0) {
- console.log(`Found event with no attendees at index ${i}`);
-
- // Try to submit with no attendees
- const submitButton = page.locator('button[type="submit"], input[type="submit"]');
- if (await submitButton.count() > 0) {
- await submitButton.click();
- await actions.waitForAjax();
-
- // Should show appropriate message
- const noAttendeesMessages = [
- page.locator('text=No attendees'),
- page.locator('text=No participants'),
- page.locator('div:has-text(/no.*attendees/i)'),
- page.locator('p:has-text(/select.*attendees/i)')
- ];
-
- let foundMessage = false;
- for (const msg of noAttendeesMessages) {
- if (await msg.count() > 0) {
- foundMessage = true;
- console.log('Found appropriate no-attendees message');
- break;
- }
- }
-
- await actions.screenshot('no-attendees-handled');
- }
- break;
- }
- }
- }
- });
-
- test('Certificate page accessibility and performance', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- // Test page load performance
- const startTime = Date.now();
- await actions.navigateAndWait('/generate-certificates/');
- const loadTime = Date.now() - startTime;
-
- console.log(`Certificate generation page loaded in ${loadTime}ms`);
- expect(loadTime).toBeLessThan(10000); // Should load within 10 seconds
-
- // Test basic accessibility
- const accessibilityChecks = [
- { selector: 'h1, h2', name: 'Page has heading' },
- { selector: 'label', name: 'Form has labels' },
- { selector: 'button, input[type="submit"]', name: 'Page has interactive elements' }
- ];
-
- for (const check of accessibilityChecks) {
- const elements = page.locator(check.selector);
- const count = await elements.count();
- expect(count).toBeGreaterThan(0);
- console.log(`✓ ${check.name}: Found ${count} elements`);
- }
-
- await actions.screenshot('accessibility-verified');
- });
-
- test('Certificate system under load simulation', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- // Simulate rapid navigation between certificate pages
- const pages = [
- '/certificate-reports/',
- '/generate-certificates/',
- '/certificate-reports/',
- '/generate-certificates/'
- ];
-
- for (let i = 0; i < pages.length; i++) {
- const startTime = Date.now();
- await actions.navigateAndWait(pages[i]);
- const loadTime = Date.now() - startTime;
-
- console.log(`Page ${i + 1} loaded in ${loadTime}ms`);
-
- // Verify page loaded correctly
- const hasContent = await page.locator('h1, h2, .content, main').count() > 0;
- expect(hasContent).toBeTruthy();
-
- // Short pause to simulate user behavior
- await page.waitForTimeout(500);
- }
-
- await actions.screenshot('load-simulation-completed');
- });
-
- test('Certificate data validation and sanitization', async ({ authenticatedPage: page }) => {
- const actions = new CommonActions(page);
-
- await actions.navigateAndWait('/generate-certificates/');
-
- // Test XSS prevention in any input fields
- const inputFields = page.locator('input[type="text"], input[type="search"], textarea');
- const inputCount = await inputFields.count();
-
- if (inputCount > 0) {
- const testInput = '';
- await inputFields.first().fill(testInput);
-
- // Verify the input is sanitized or escaped
- const value = await inputFields.first().inputValue();
- expect(value).not.toContain('") [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+17ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m fill("") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+35ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+40ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+9ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m=> locator.textContent started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('.login-error') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+500ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+56s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+50ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m locator resolved to
… [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= locator.textContent failed [38;5;45m+14ms[0m
- [38;5;45;1mpw:api [0m=> selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+109ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+11ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+45ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php", waiting until "load" [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+139ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+67ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+12ms[0m
- [38;5;45;1mpw:api [0m fill("") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+44ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m fill("") [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+37ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+23ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m=> locator.textContent started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('.login-error') [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+381ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+58s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+81ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+544ms[0m
- [38;5;45;1mpw:api [0m locator resolved to … [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= locator.textContent failed [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0m=> video.saveAs started [38;5;45m+7ms[0m
- [38;5;45;1mpw:api [0m<= video.saveAs succeeded [38;5;45m+4ms[0m
-]]>
-
-
-
-
- 48 | return error.textContent();
- | ^
- 49 | }
- 50 |
- 51 | async isLoggedIn() {
- at LoginPage.getErrorMessage (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/login-page.ts:48:22)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/login.spec.ts:83:30
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/login-Community-Login-Page-e016e-er-multiple-failed-attempts-chromium/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
-
- Test timeout of 60000ms exceeded.
-
- Error: locator.textContent: Test timeout of 60000ms exceeded.
- Call log:
- - waiting for locator('.login-error')
-
-
- at ../page-objects/login-page.ts:48
-
- 46 | async getErrorMessage() {
- 47 | const error = await this.page.locator(this.errorMessage);
- > 48 | return error.textContent();
- | ^
- 49 | }
- 50 |
- 51 | async isLoggedIn() {
- at LoginPage.getErrorMessage (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/login-page.ts:48:22)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/login.spec.ts:83:30
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/login-Community-Login-Page-e016e-er-multiple-failed-attempts-chromium-retry1/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
- test-results/login-Community-Login-Page-e016e-er-multiple-failed-attempts-chromium-retry1/video.webm
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
- test-results/login-Community-Login-Page-e016e-er-multiple-failed-attempts-chromium-retry1/trace.zip
- Usage:
-
- npx playwright show-trace test-results/login-Community-Login-Page-e016e-er-multiple-failed-attempts-chromium-retry1/trace.zip
-
- ────────────────────────────────────────────────────────────────────────────────────────────────
-]]>
-
-
-
-
-
- selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+142ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+67ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php", waiting until "load" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+186ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+14ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+17ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword0") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+38ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+29ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+48ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+9ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+14ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword1") [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+28ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+15ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword2") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+26ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+15ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword3") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+26ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+18ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword4") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+28ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> locator.textContent started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('.login-error') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+9ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+500ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+47s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+87ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m locator resolved to … [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m<= locator.textContent failed [38;5;45m+15ms[0m
- [38;5;45;1mpw:api [0m=> selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+108ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+15ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+60ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php", waiting until "load" [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+216ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+40ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+15ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+52ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword0") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+69ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+24ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+35ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+11ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+7ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+17ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+9ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword1") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+31ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+11ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+11ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+23ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword2") [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+32ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+21ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+12ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+12ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword3") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+32ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+7ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+12ms[0m
- [38;5;45;1mpw:api [0m fill("testuser") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_pass') [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m fill("wrongpassword4") [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting fill action [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and editable [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.fill succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#wp-submit') [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m locator resolved to [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mattempting click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m waiting for element to be visible, enabled and stable [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m element is visible, enabled and stable [38;5;45m+27ms[0m
- [38;5;45;1mpw:api [0m scrolling into view if needed [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m done scrolling [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m performing click action [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m click action done [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m waiting for scheduled navigations to finish [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/wp-login.php" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m navigations have finished [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0m<= page.click succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m=> locator.textContent started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('.login-error') [38;5;45m+20ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+480ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+49s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+48ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+323ms[0m
- [38;5;45;1mpw:api [0m locator resolved to … [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= locator.textContent failed [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0m=> video.saveAs started [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0m<= video.saveAs succeeded [38;5;45m+4ms[0m
-]]>
-
-
-
-
-
-
- 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:16:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-bcc90-egistration-with-all-fields-chromium/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
-
- Test timeout of 60000ms exceeded.
-
- Error: page.fill: Test timeout of 60000ms exceeded.
- Call log:
- - waiting for locator('#user_login')
-
-
- at ../page-objects/registration-page.ts:55
-
- 53 | profileImagePath?: string;
- 54 | }) {
- > 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:16:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-bcc90-egistration-with-all-fields-chromium-retry1/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-bcc90-egistration-with-all-fields-chromium-retry1/video.webm
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-bcc90-egistration-with-all-fields-chromium-retry1/trace.zip
- Usage:
-
- npx playwright show-trace test-results/registration-Community-Reg-bcc90-egistration-with-all-fields-chromium-retry1/trace.zip
-
- ────────────────────────────────────────────────────────────────────────────────────────────────
-]]>
-
-
-
-
-
- selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+137ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+23ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+7ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+81ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/register", waiting until "load" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+4s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/register" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+244ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+442ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+55s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+61ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m locator resolved to page.fill started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+14ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+318ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+7ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+74ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+195ms[0m
- [38;5;45;1mpw:api [0m locator resolved to
-
- 82 | await this.page.click(this.submitButton);
- | ^
- 83 | }
- 84 |
- 85 | async getErrorMessages() {
- at RegistrationPage.submit (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:82:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:36:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-3fbce-e-validates-required-fields-chromium/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
-
- Test timeout of 60000ms exceeded.
-
- Error: page.click: Test timeout of 60000ms exceeded.
- Call log:
- - waiting for locator('button[type="submit"]')
-
-
- at ../page-objects/registration-page.ts:82
-
- 80 |
- 81 | async submit() {
- > 82 | await this.page.click(this.submitButton);
- | ^
- 83 | }
- 84 |
- 85 | async getErrorMessages() {
- at RegistrationPage.submit (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:82:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:36:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-3fbce-e-validates-required-fields-chromium-retry1/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-3fbce-e-validates-required-fields-chromium-retry1/video.webm
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-3fbce-e-validates-required-fields-chromium-retry1/trace.zip
- Usage:
-
- npx playwright show-trace test-results/registration-Community-Reg-3fbce-e-validates-required-fields-chromium-retry1/trace.zip
-
- ────────────────────────────────────────────────────────────────────────────────────────────────
-]]>
-
-
-
-
-
- selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+166ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+69ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/register", waiting until "load" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/register" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+215ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> page.click started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('button[type="submit"]') [38;5;45m+13ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+479ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+67ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m locator resolved to page.click started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('button[type="submit"]') [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+474ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+7ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+63ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+195ms[0m
- [38;5;45;1mpw:api [0m locator resolved to
-
- 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:47:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-97ffd-ord-complexity-requirements-chromium/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
-
- Test timeout of 60000ms exceeded.
-
- Error: page.fill: Test timeout of 60000ms exceeded.
- Call log:
- - waiting for locator('#user_login')
-
-
- at ../page-objects/registration-page.ts:55
-
- 53 | profileImagePath?: string;
- 54 | }) {
- > 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:47:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-97ffd-ord-complexity-requirements-chromium-retry1/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-97ffd-ord-complexity-requirements-chromium-retry1/video.webm
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-97ffd-ord-complexity-requirements-chromium-retry1/trace.zip
- Usage:
-
- npx playwright show-trace test-results/registration-Community-Reg-97ffd-ord-complexity-requirements-chromium-retry1/trace.zip
-
- ────────────────────────────────────────────────────────────────────────────────────────────────
-]]>
-
-
-
-
-
- selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+244ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+64ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/register", waiting until "load" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/register" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+156ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+484ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+64ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+13ms[0m
- [38;5;45;1mpw:api [0m locator resolved to page.fill started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+476ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+70ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+178ms[0m
- [38;5;45;1mpw:api [0m locator resolved to
-
- 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:62:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-9e7a2-password-confirmation-match-chromium/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
-
- Test timeout of 60000ms exceeded.
-
- Error: page.fill: Test timeout of 60000ms exceeded.
- Call log:
- - waiting for locator('#user_login')
-
-
- at ../page-objects/registration-page.ts:55
-
- 53 | profileImagePath?: string;
- 54 | }) {
- > 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:62:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-9e7a2-password-confirmation-match-chromium-retry1/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-9e7a2-password-confirmation-match-chromium-retry1/video.webm
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-9e7a2-password-confirmation-match-chromium-retry1/trace.zip
- Usage:
-
- npx playwright show-trace test-results/registration-Community-Reg-9e7a2-password-confirmation-match-chromium-retry1/trace.zip
-
- ────────────────────────────────────────────────────────────────────────────────────────────────
-]]>
-
-
-
-
-
- selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+282ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+54ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/register", waiting until "load" [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/register" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+140ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+492ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+56ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m locator resolved to page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+451ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+61ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+256ms[0m
- [38;5;45;1mpw:api [0m locator resolved to
-
- 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:77:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-94396-Page-validates-email-format-chromium/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
-
- Test timeout of 60000ms exceeded.
-
- Error: page.fill: Test timeout of 60000ms exceeded.
- Call log:
- - waiting for locator('#user_login')
-
-
- at ../page-objects/registration-page.ts:55
-
- 53 | profileImagePath?: string;
- 54 | }) {
- > 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:77:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-94396-Page-validates-email-format-chromium-retry1/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-94396-Page-validates-email-format-chromium-retry1/video.webm
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-94396-Page-validates-email-format-chromium-retry1/trace.zip
- Usage:
-
- npx playwright show-trace test-results/registration-Community-Reg-94396-Page-validates-email-format-chromium-retry1/trace.zip
-
- ────────────────────────────────────────────────────────────────────────────────────────────────
-]]>
-
-
-
-
-
- selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+226ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+47ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/register", waiting until "load" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/register" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+165ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+9ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+489ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+68ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m locator resolved to page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+482ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+75ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+139ms[0m
- [38;5;45;1mpw:api [0m locator resolved to
-
- 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:92:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-aca25--state-field-appears-for-US-chromium/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
-
- Test timeout of 60000ms exceeded.
-
- Error: page.fill: Test timeout of 60000ms exceeded.
- Call log:
- - waiting for locator('#user_login')
-
-
- at ../page-objects/registration-page.ts:55
-
- 53 | profileImagePath?: string;
- 54 | }) {
- > 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:92:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-aca25--state-field-appears-for-US-chromium-retry1/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-aca25--state-field-appears-for-US-chromium-retry1/video.webm
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-aca25--state-field-appears-for-US-chromium-retry1/trace.zip
- Usage:
-
- npx playwright show-trace test-results/registration-Community-Reg-aca25--state-field-appears-for-US-chromium-retry1/trace.zip
-
- ────────────────────────────────────────────────────────────────────────────────────────────────
-]]>
-
-
-
-
-
- selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+191ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+45ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/register", waiting until "load" [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/register" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+156ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+51ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+432ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+64ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m locator resolved to page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+487ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+83ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+185ms[0m
- [38;5;45;1mpw:api [0m locator resolved to
-
- 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:112:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-6ba62-Page-file-upload-validation-chromium/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
-
- Test timeout of 60000ms exceeded.
-
- Error: page.fill: Test timeout of 60000ms exceeded.
- Call log:
- - waiting for locator('#user_login')
-
-
- at ../page-objects/registration-page.ts:55
-
- 53 | profileImagePath?: string;
- 54 | }) {
- > 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:112:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-6ba62-Page-file-upload-validation-chromium-retry1/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-6ba62-Page-file-upload-validation-chromium-retry1/video.webm
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-6ba62-Page-file-upload-validation-chromium-retry1/trace.zip
- Usage:
-
- npx playwright show-trace test-results/registration-Community-Reg-6ba62-Page-file-upload-validation-chromium-retry1/trace.zip
-
- ────────────────────────────────────────────────────────────────────────────────────────────────
-]]>
-
-
-
-
-
- selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+161ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+30ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+6ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+55ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/register", waiting until "load" [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/register" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+144ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+473ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+58s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+70ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0m locator resolved to page.fill started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+12ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+359ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+66ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+155ms[0m
- [38;5;45;1mpw:api [0m locator resolved to
-
- 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:130:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-39b94--XSS-in-registration-fields-chromium/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
-
- Test timeout of 60000ms exceeded.
-
- Error: page.fill: Test timeout of 60000ms exceeded.
- Call log:
- - waiting for locator('#user_login')
-
-
- at ../page-objects/registration-page.ts:55
-
- 53 | profileImagePath?: string;
- 54 | }) {
- > 55 | await this.page.fill(this.usernameInput, username);
- | ^
- 56 | await this.page.fill(this.emailInput, email);
- 57 | await this.page.fill(this.passwordInput, password);
- 58 | await this.page.fill(this.confirmPasswordInput, confirmPassword);
- at RegistrationPage.fillRegistrationForm (/Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/page-objects/registration-page.ts:55:25)
- at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/registration.spec.ts:130:32
-
- attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-39b94--XSS-in-registration-fields-chromium-retry1/test-failed-1.png
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-39b94--XSS-in-registration-fields-chromium-retry1/video.webm
- ────────────────────────────────────────────────────────────────────────────────────────────────
-
- attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
- test-results/registration-Community-Reg-39b94--XSS-in-registration-fields-chromium-retry1/trace.zip
- Usage:
-
- npx playwright show-trace test-results/registration-Community-Reg-39b94--XSS-in-registration-fields-chromium-retry1/trace.zip
-
- ────────────────────────────────────────────────────────────────────────────────────────────────
-]]>
-
-
-
-
-
- selectors.setTestIdAttribute started [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m=> browserType.launch started [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= selectors.setTestIdAttribute succeeded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= browserType.launch succeeded [38;5;45m+105ms[0m
- [38;5;45;1mpw:api [0m=> browser.newContext started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0m<= browser.newContext succeeded [38;5;45m+8ms[0m
- [38;5;45;1mpw:api [0m=> browserContext.newPage started [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m<= browserContext.newPage succeeded [38;5;45m+174ms[0m
- [38;5;45;1mpw:api [0m=> page.goto started [38;5;45m+71ms[0m
- [38;5;45;1mpw:api [0mnavigating to "https://wordpress-974670-5399585.cloudwaysapps.com/register", waiting until "load" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "commit" event fired [38;5;45m+2s[0m
- [38;5;45;1mpw:api [0m navigated to "https://wordpress-974670-5399585.cloudwaysapps.com/register" [38;5;45m+0ms[0m
- [38;5;45;1mpw:api [0m "domcontentloaded" event fired [38;5;45m+144ms[0m
- [38;5;45;1mpw:api [0m "load" event fired [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.goto succeeded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m=> page.fill started [38;5;45m+7ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+15ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+461ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+1ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+61ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+5ms[0m
- [38;5;45;1mpw:api [0m locator resolved to page.fill started [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('#user_login') [38;5;45m+4ms[0m
- [38;5;45;1mpw:api [0m "networkidle" event fired [38;5;45m+468ms[0m
- [38;5;45;1mpw:api [0m=> page.screenshot started [38;5;45m+57s[0m
- [38;5;45;1mpw:api [0mtaking page screenshot [38;5;45m+10ms[0m
- [38;5;45;1mpw:api [0mwaiting for fonts to load... [38;5;45m+3ms[0m
- [38;5;45;1mpw:api [0mfonts loaded [38;5;45m+2ms[0m
- [38;5;45;1mpw:api [0m<= page.screenshot succeeded [38;5;45m+97ms[0m
- [38;5;45;1mpw:api [0mwaiting for locator('body') [38;5;45m+248ms[0m
- [38;5;45;1mpw:api [0m locator resolved to
- * @copyright 2010-2023 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork;
-
-if (function_exists('Patchwork\replace')) {
- return;
-}
-
-require_once __DIR__ . '/src/Exceptions.php';
-require_once __DIR__ . '/src/CallRerouting.php';
-require_once __DIR__ . '/src/CodeManipulation.php';
-require_once __DIR__ . '/src/Utils.php';
-require_once __DIR__ . '/src/Stack.php';
-require_once __DIR__ . '/src/Config.php';
-
-function redefine($subject, callable $content)
-{
- $handle = null;
- foreach (array_slice(func_get_args(), 1) as $content) {
- $handle = CallRerouting\connect($subject, $content, $handle);
- }
- $handle->silence();
- return $handle;
-}
-
-function relay(?array $args = null)
-{
- return CallRerouting\relay($args);
-}
-
-function fallBack()
-{
- throw new Exceptions\NoResult;
-}
-
-function restore(CallRerouting\Handle $handle)
-{
- $handle->expire();
-}
-
-function restoreAll()
-{
- CallRerouting\disconnectAll();
-}
-
-function silence(CallRerouting\Handle $handle)
-{
- $handle->silence();
-}
-
-function assertEventuallyDefined(CallRerouting\Handle $handle)
-{
- $handle->unsilence();
-}
-
-function getClass()
-{
- return Stack\top('class');
-}
-
-function getCalledClass()
-{
- return Stack\topCalledClass();
-}
-
-function getFunction()
-{
- return Stack\top('function');
-}
-
-function getMethod()
-{
- return getClass() . '::' . getFunction();
-}
-
-function configure()
-{
- Config\locate();
-}
-
-function hasMissed($callable)
-{
- return Utils\callableWasMissed($callable);
-}
-
-function always($value)
-{
- return function() use ($value) {
- return $value;
- };
-}
-
-Utils\alias('Patchwork', [
- 'redefine' => ['replace', 'replaceLater'],
- 'relay' => 'callOriginal',
- 'fallBack' => 'pass',
- 'restore' => 'undo',
- 'restoreAll' => 'undoAll',
-]);
-
-configure();
-
-Utils\markMissedCallables();
-
-CodeManipulation\Stream::discoverOtherWrapper();
-CodeManipulation\Stream::wrap();
-
-CodeManipulation\register([
- CodeManipulation\Actions\CodeManipulation\propagateThroughEval(),
- CodeManipulation\Actions\CallRerouting\injectCallInterceptionCode(),
- CodeManipulation\Actions\RedefinitionOfInternals\spliceNamedFunctionCalls(),
- CodeManipulation\Actions\RedefinitionOfInternals\spliceDynamicCalls(),
- CodeManipulation\Actions\RedefinitionOfNew\spliceAllInstantiations,
- CodeManipulation\Actions\RedefinitionOfNew\publicizeConstructors,
- CodeManipulation\Actions\ConflictPrevention\preventImportingOtherCopiesOfPatchwork(),
-]);
-
-CodeManipulation\onImport([
- CodeManipulation\Actions\CallRerouting\markPreprocessedFiles(),
-]);
-
-Utils\clearOpcodeCaches();
-
-register_shutdown_function('Patchwork\Utils\clearOpcodeCaches');
-
-CallRerouting\createStubsForInternals();
-CallRerouting\connectDefaultInternals();
-
-require __DIR__ . '/src/Redefinitions/LanguageConstructs.php';
-
-CodeManipulation\register([
- CodeManipulation\Actions\RedefinitionOfLanguageConstructs\spliceAllConfiguredLanguageConstructs(),
- CodeManipulation\Actions\CallRerouting\injectQueueDeploymentCode(),
- CodeManipulation\Actions\CodeManipulation\injectStreamWrapperReinstatementCode(),
-]);
-
-if (Utils\wasRunAsConsoleApp()) {
- require __DIR__ . '/src/Console.php';
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/README.md b/wordpress-dev/vendor/antecedent/patchwork/README.md
deleted file mode 100644
index 8352b855..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/README.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# Patchwork
-
-Patchwork implements the redefinition ([monkey-patching](https://en.wikipedia.org/wiki/Monkey_patch)) of functions and methods in PHP. This includes both user-defined and internal callables, which can be functions, class methods, or instance methods. In addition, [many](https://github.com/antecedent/patchwork/blob/master/src/Redefinitions/LanguageConstructs.php) function-like constructs, such as `exit` or `include`, are supported in an analogous way.
-
-Internally, Patchwork uses a [stream wrapper](http://php.net/manual/en/class.streamwrapper.php) on `file://`. In the case of user-defined functions and methods, it is used to inject a simple interceptor snippet to the beginning of every such callable. For the remaining types of callables, various other strategies are applied.
-
-## Example: a DIY profiler
-
-```php
-use function Patchwork\{redefine, relay, getMethod};
-
-$profiling = fopen('profiling.csv', 'w');
-
-redefine('App\*', function(...$args) use ($profiling) {
- $begin = microtime(true);
- relay(); # calls the original definition
- $end = microtime(true);
- fputcsv($profiling, [getMethod(), $end - $begin]);
-});
-```
-
-## Notes
-
-* *Method redefinition* is the internally preferred metaphor for Patchwork's behavior.
-* `restoreAll()` and `restore($handle)` end the lifetime of, respectively, all redefinitions, or only one of them, where `$handle = redefine(...)`.
-* Closure `$this` is automatically re-bound to the enclosing class of the method being redefined.
-* The behavior of `__CLASS__`, `static::class` etc. inside redefinitions disregards the metaphor. `getClass()`, `getCalledClass()`, `getMethod()` and `getFunction()` from the `Patchwork` namespace should be used instead.
-
-## Testing-related uses
-
-Patchwork can be used to stub static methods, which, however, is a controversial practice.
-
-It should be applied prudently, that is, only after making oneself familiar with its pitfalls and temptations in other programming languages. For instance, in Javascript, Ruby, Python and some others, the native support for monkey-patching has made its testing-related uses more commonplace than in PHP.
-
-Tests that use monkey-patching are often no longer *unit* tests, because they become sensitive to details of implementation, not only those of interface: for example, such a test might no longer pass after switching from `time()` to `DateTime`.
-
-That being said, they still have their place where the only economically viable alternative is having no tests at all.
-
-## Other use cases
-
-Patchwork is not suggested for [AOP](https://en.wikipedia.org/wiki/Aspect-oriented_programming) and other kinds of production usage. Its impact on the application's performance is highly likely to be prohibitively large. Additionally, while no _particular_ Patchwork-related security risks are either known or anticipated, please keep in mind that Patchwork was never developed with production environments in mind.
diff --git a/wordpress-dev/vendor/antecedent/patchwork/box.json b/wordpress-dev/vendor/antecedent/patchwork/box.json
deleted file mode 100644
index 9dc3317b..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/box.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "base-path": null,
- "output": "patchwork.phar",
- "check-requirements": false,
- "compactors": [
- "KevinGH\\Box\\Compactor\\Php"
- ],
- "main": "Patchwork.php",
- "directories": [
- "src"
- ],
- "files": [
- "Patchwork.php",
- "LICENSE"
- ],
- "dump-autoload": false
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/composer.json b/wordpress-dev/vendor/antecedent/patchwork/composer.json
deleted file mode 100644
index 5d54aa85..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/composer.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "antecedent/patchwork",
- "homepage": "https://antecedent.github.io/patchwork/",
- "description": "Method redefinition (monkey-patching) functionality for PHP.",
- "keywords": ["testing", "redefinition", "runkit", "monkeypatching", "interception", "aop", "aspect"],
- "license": "MIT",
- "authors": [
- {
- "name": "Ignas Rudaitis",
- "email": "ignas.rudaitis@gmail.com"
- }
- ],
- "minimum-stability": "stable",
- "require": {
- "php": ">=7.1.0"
- },
- "require-dev": {
- "phpunit/phpunit": ">=4"
- }
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CallRerouting.php b/wordpress-dev/vendor/antecedent/patchwork/src/CallRerouting.php
deleted file mode 100644
index ae8a8827..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CallRerouting.php
+++ /dev/null
@@ -1,604 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CallRerouting;
-
-require __DIR__ . '/CallRerouting/Handle.php';
-require __DIR__ . '/CallRerouting/Decorator.php';
-
-use Patchwork\Utils;
-use Patchwork\Stack;
-use Patchwork\Config;
-use Patchwork\Exceptions;
-use Patchwork\CodeManipulation;
-use Patchwork\CodeManipulation\Actions\RedefinitionOfLanguageConstructs;
-use Patchwork\CodeManipulation\Actions\RedefinitionOfNew;
-
-const INTERNAL_REDEFINITION_NAMESPACE = 'Patchwork\Redefinitions';
-const EVALUATED_CODE_FILE_NAME_SUFFIX = '/\(\d+\) : eval\(\)\'d code$/';
-const INSTANTIATOR_NAMESPACE = 'Patchwork\Instantiators';
-const INSTANTIATOR_DEFAULT_ARGUMENT = 'Patchwork\CallRerouting\INSTANTIATOR_DEFAULT_ARGUMENT';
-
-const INTERNAL_STUB_CODE = '
- namespace @ns_for_redefinitions;
- function @name(@signature) {
- $__pwArgs = \array_slice(\debug_backtrace()[0]["args"], 1);
- if (!empty($__pwNamespace) && \function_exists($__pwNamespace . "\\\\@name")) {
- return \call_user_func_array($__pwNamespace . "\\\\@name", $__pwArgs);
- }
- @interceptor;
- return \call_user_func_array("@name", $__pwArgs);
- }
-';
-
-const INSTANTIATOR_CODE = '
- namespace @namespace;
- class @instantiator {
- function instantiate(@parameters) {
- $__pwArgs = \debug_backtrace()[0]["args"];
- foreach ($__pwArgs as $__pwOffset => $__pwValue) {
- if ($__pwValue === \Patchwork\CallRerouting\INSTANTIATOR_DEFAULT_ARGUMENT) {
- unset($__pwArgs[$__pwOffset]);
- }
- }
- switch (count($__pwArgs)) {
- case 0:
- return new \@class;
- case 1:
- return new \@class($__pwArgs[0]);
- case 2:
- return new \@class($__pwArgs[0], $__pwArgs[1]);
- case 3:
- return new \@class($__pwArgs[0], $__pwArgs[1], $__pwArgs[2]);
- case 4:
- return new \@class($__pwArgs[0], $__pwArgs[1], $__pwArgs[2], $__pwArgs[3]);
- case 5:
- return new \@class($__pwArgs[0], $__pwArgs[1], $__pwArgs[2], $__pwArgs[3], $__pwArgs[4]);
- default:
- $__pwReflector = new \ReflectionClass(\'@class\');
- return $__pwReflector->newInstanceArgs($__pwArgs);
- }
- }
- }
-';
-
-function connect($source, callable $target, ?Handle $handle = null, $partOfWildcard = false)
-{
- $source = translateIfLanguageConstruct($source);
- $handle = $handle ?: new Handle;
- list($class, $method) = Utils\interpretCallable($source);
- if (constitutesWildcard($source)) {
- return applyWildcard($source, $target, $handle);
- }
- if (Utils\isOwnName($class) || Utils\isOwnName($method)) {
- return $handle;
- }
- validate($source, $partOfWildcard);
- if (empty($class)) {
- if (Utils\callableDefined($source) && (new \ReflectionFunction($method))->isInternal()) {
- $stub = INTERNAL_REDEFINITION_NAMESPACE . '\\' . $source;
- return connect($stub, $target, $handle, $partOfWildcard);
- }
- $handle = connectFunction($method, $target, $handle);
- } else {
- if (Utils\callableDefined($source)) {
- if ($method === 'new') {
- $handle = connectInstantiation($class, $target, $handle);
- } elseif ((new \ReflectionMethod($class, $method))->isUserDefined()) {
- $handle = connectMethod($source, $target, $handle);
- } else {
- throw new InternalMethodsNotSupported($source);
- }
- } else {
- $handle = queueConnection($source, $target, $handle);
- }
- }
- attachExistenceAssertion($handle, $source);
- return $handle;
-}
-
-function constitutesWildcard($source)
-{
- $source = Utils\interpretCallable($source);
- $source = Utils\callableToString($source);
- return strcspn($source, '*{,}') != strlen($source);
-}
-
-function applyWildcard($wildcard, callable $target, ?Handle $handle = null)
-{
- $handle = $handle ?: new Handle;
- list($class, $method, $instance) = Utils\interpretCallable($wildcard);
- if (!empty($instance)) {
- foreach (Utils\matchWildcard($method, get_class_methods($instance)) as $item) {
- if (!$handle->hasTag($item)) {
- connect([$instance, $item], $target, $handle);
- $handle->tag($item);
- }
- }
- return $handle;
- }
-
- $callables = Utils\matchWildcard($wildcard, Utils\getRedefinableCallables());
- foreach ($callables as $callable) {
- if (!inPreprocessedFile($callable) || $handle->hasTag($callable)) {
- continue;
- }
- if (function_exists($callable)) {
- # Restore lower/upper case distinction
- $callable = (new \ReflectionFunction($callable))->getName();
- }
- connect($callable, $target, $handle, true);
- $handle->tag($callable);
- }
- if (!isset($class) || !class_exists($class, false)) {
- queueConnection($wildcard, $target, $handle);
- }
- return $handle;
-}
-
-function attachExistenceAssertion(Handle $handle, $function)
-{
- $handle->addExpirationHandler(function() use ($function) {
- if (!Utils\callableDefined($function)) {
- # Not using exceptions because this might happen during PHP shutdown
- $message = '%s() was never defined during the lifetime of its redefinition';
- trigger_error(sprintf($message, Utils\callableToString($function)), E_USER_WARNING);
- }
- });
-}
-
-function validate($function, $partOfWildcard = false)
-{
- list($class, $method) = Utils\interpretCallable($function);
- if (!Utils\callableDefined($function) || $method === 'new') {
- return;
- }
- $reflection = Utils\reflectCallable($function);
- $name = Utils\callableToString($function);
- if ($reflection->isInternal() && !in_array($name, Config\getRedefinableInternals())) {
- throw new Exceptions\NotUserDefined($function);
- }
- if (!$reflection->isInternal() && !inPreprocessedFile($function) && !$partOfWildcard) {
- throw new Exceptions\DefinedTooEarly($function);
- }
-}
-
-function inPreprocessedFile($callable)
-{
- if (Utils\isOwnName(Utils\callableToString($callable))) {
- return false;
- }
- $file = Utils\reflectCallable($callable)->getFileName();
- $evaluated = preg_match(EVALUATED_CODE_FILE_NAME_SUFFIX, $file);
- return $evaluated || !empty(State::$preprocessedFiles[$file]);
-}
-
-function connectFunction($function, callable $target, ?Handle $handle = null)
-{
- $handle = $handle ?: new Handle;
- $routes = &State::$routes[null][$function];
- $offset = Utils\append($routes, [$target, $handle]);
- $handle->addReference($routes[$offset]);
- return $handle;
-}
-
-function queueConnection($source, callable $target, ?Handle $handle = null)
-{
- $handle = $handle ?: new Handle;
- $offset = Utils\append(State::$queue, [$source, $target, $handle]);
- $handle->addReference(State::$queue[$offset]);
- return $handle;
-}
-
-function deployQueue()
-{
- foreach (State::$queue as $offset => $item) {
- if (empty($item)) {
- unset(State::$queue[$offset]);
- continue;
- }
- list($source, $target, $handle) = $item;
- if (Utils\callableDefined($source) || constitutesWildcard($source)) {
- connect($source, $target, $handle);
- unset(State::$queue[$offset]);
- }
- }
-}
-
-function connectMethod($function, callable $target, ?Handle $handle = null)
-{
- $handle = $handle ?: new Handle;
- list($class, $method, $instance) = Utils\interpretCallable($function);
- $target = new Decorator($target);
- $target->superclass = $class;
- $target->method = $method;
- $target->instance = $instance;
- $reflection = Utils\reflectCallable($function);
- $declaringClass = $reflection->getDeclaringClass();
- $class = $declaringClass->getName();
- $aliases = $declaringClass->getTraitAliases();
- if (isset($aliases[$method])) {
- list($trait, $method) = explode('::', $aliases[$method]);
- }
- $routes = &State::$routes[$class][$method];
- $offset = Utils\append($routes, [$target, $handle]);
- $handle->addReference($routes[$offset]);
- return $handle;
-}
-
-function connectInstantiation($class, callable $target, ?Handle $handle = null)
-{
- if (!Config\isNewKeywordRedefinable()) {
- throw new Exceptions\NewKeywordNotRedefinable;
- }
- $handle = $handle ?: new Handle;
- $class = strtr($class, ['\\' => '__']);
- $routes = &State::$routes["Patchwork\\Instantiators\\$class"]['instantiate'];
- $offset = Utils\append($routes, [$target, $handle]);
- $handle->addReference($routes[$offset]);
- return $handle;
-}
-
-function disconnectAll()
-{
- foreach (State::$routes as $class => $routesByClass) {
- foreach ($routesByClass as $method => $routes) {
- foreach ($routes as $route) {
- list($callback, $handle) = $route;
- if ($handle !== null) {
- $handle->expire();
- }
- }
- }
- }
- State::$routes = [];
- connectDefaultInternals();
-}
-
-function dispatchTo(callable $target)
-{
- return call_user_func_array($target, Stack\top('args'));
-}
-
-function dispatch($class, $calledClass, $method, $frame, &$result, ?array $args = null)
-{
- $trace = debug_backtrace();
- $isInternalStub = strpos($method, INTERNAL_REDEFINITION_NAMESPACE) === 0;
- $isLanguageConstructStub = strpos($method, RedefinitionOfLanguageConstructs\LANGUAGE_CONSTRUCT_PREFIX) === 0;
- $isInstantiator = strpos($method, INSTANTIATOR_NAMESPACE) === 0;
- if ($isInternalStub && !$isLanguageConstructStub && $args === null) {
- # Mind the namespace-of-origin argument
- $args = array_reverse($trace)[$frame - 1]['args'];
- array_shift($args);
- }
- if ($isInstantiator) {
- $args = $args ?: array_reverse($trace)[$frame - 1]['args'];
- foreach ($args as $offset => $value) {
- if ($value === INSTANTIATOR_DEFAULT_ARGUMENT) {
- unset($args[$offset]);
- }
- }
- }
- $success = false;
- Stack\pushFor($frame, $calledClass, function() use ($class, $method, &$result, &$success) {
- foreach (getRoutesFor($class, $method) as $offset => $route) {
- if (empty($route)) {
- unset(State::$routes[$class][$method][$offset]);
- continue;
- }
- State::$routeStack[] = [$class, $method, $offset];
- try {
- $result = dispatchTo(reset($route));
- $success = true;
- } catch (Exceptions\NoResult $e) {
- array_pop(State::$routeStack);
- continue;
- }
- array_pop(State::$routeStack);
- if ($success) {
- break;
- }
- }
- }, $args);
- return $success;
-}
-
-function relay(?array $args = null)
-{
- list($class, $method, $offset) = end(State::$routeStack);
- $route = &State::$routes[$class][$method][$offset];
- $backup = $route;
- $route = ['Patchwork\fallBack', new Handle];
- $top = Stack\top();
- if ($args === null) {
- $args = $top['args'];
- }
- $isInternalStub = strpos($method, INTERNAL_REDEFINITION_NAMESPACE) === 0;
- $isLanguageConstructStub = strpos($method, RedefinitionOfLanguageConstructs\LANGUAGE_CONSTRUCT_PREFIX) === 0;
- if ($isInternalStub && !$isLanguageConstructStub) {
- array_unshift($args, '');
- }
- try {
- if (isset($top['class'])) {
- $reflection = new \ReflectionMethod(Stack\topCalledClass(), $top['function']);
- $reflection->setAccessible(true);
- $result = $reflection->invokeArgs(Stack\top('object'), $args);
- } else {
- $result = call_user_func_array($top['function'], $args);
- }
- } catch (\Exception $e) {
- $exception = $e;
- }
- $route = $backup;
- if (isset($exception)) {
- throw $exception;
- }
- return $result;
-}
-
-/**
- * @deprecated 2.2.0
- */
-function connectOnHHVM($function, Handle $handle)
-{
- fb_intercept($function, function($name, $obj, $args, $data, &$done) {
- deployQueue();
- list($class, $method) = Utils\interpretCallable($name);
- $calledClass = null;
- if (is_string($obj)) {
- $calledClass = $obj;
- } elseif (is_object($obj)) {
- $calledClass = get_class($obj);
- }
- $frame = count(debug_backtrace(0)) - 1;
- $result = null;
- $done = dispatch($class, $calledClass, $method, $frame, $result, $args);
- return $result;
- });
- $handle->addExpirationHandler(getHHVMExpirationHandler($function));
-}
-
-/**
- * @deprecated 2.2.0
- */
-function getHHVMExpirationHandler($function)
-{
- return function() use ($function) {
- list($class, $method) = Utils\interpretCallable($function);
- $empty = true;
- foreach (getRoutesFor($class, $method) as $offset => $route) {
- if (!empty($route)) {
- $empty = false;
- break;
- } else {
- unset(State::$routes[$class][$method][$offset]);
- }
- }
- if ($empty) {
- fb_intercept($function, null);
- }
- };
-}
-
-function getRoutesFor($class, $method)
-{
- if (!isset(State::$routes[$class][$method])) {
- return [];
- }
- return array_reverse(State::$routes[$class][$method], true);
-}
-
-function dispatchDynamic($callable, array $arguments)
-{
- list($class, $method) = Utils\interpretCallable($callable);
- $translation = INTERNAL_REDEFINITION_NAMESPACE . '\\' . $method;
- if ($class === null && function_exists($translation)) {
- $callable = $translation;
- # Mind the namespace-of-origin argument
- array_unshift($arguments, '');
- }
- return call_user_func_array($callable, $arguments);
-}
-
-function createStubsForInternals()
-{
- $namespace = INTERNAL_REDEFINITION_NAMESPACE;
- foreach (Config\getRedefinableInternals() as $name) {
- if (function_exists($namespace . '\\' . $name)) {
- continue;
- }
- $signature = ['$__pwNamespace'];
- foreach ((new \ReflectionFunction($name))->getParameters() as $offset => $argument) {
- $formal = '';
- if ($argument->isPassedByReference()) {
- $formal .= '&';
- }
- $formal .= '$' . $argument->getName();
- $isVariadic = is_callable([$argument, 'isVariadic']) ? $argument->isVariadic() : false;
- if ($argument->isOptional() || $isVariadic || ($name === 'define' && $offset === 2)) {
- continue;
- }
- $signature[] = $formal;
- }
- $refs = sprintf('[%s]', join(', ', $signature));
- $interceptor = sprintf(
- str_replace(
- '$__pwRefOffset = 0;',
- '$__pwRefOffset = 1;',
- \Patchwork\CodeManipulation\Actions\CallRerouting\CALL_INTERCEPTION_CODE
- ),
- $refs
- );
- eval(strtr(INTERNAL_STUB_CODE, [
- '@name' => $name,
- '@signature' => join(', ', $signature),
- '@interceptor' => $interceptor,
- '@ns_for_redefinitions' => INTERNAL_REDEFINITION_NAMESPACE,
- ]));
- }
-}
-
-/**
- * This is needed, for instance, to intercept the time() call in call_user_func('time').
- *
- * For that to happen, we require that if at least one internal function is redefinable, then
- * call_user_func, preg_replace_callback and other callback-taking internal functions also be
- * redefinable: see Patchwork\Config.
- *
- * Here, we go through the callback-taking internals and add argument-inspecting patches
- * (redefinitions) to them.
- *
- * The patches are then expected to find the "nested" internal calls, such as the 'time' argument
- * in call_user_func('time'), and invoke their respective redefinitions, if any.
- */
-function connectDefaultInternals()
-{
- # call_user_func() etc. are not a problem if no other internal functions are redefined
- if (Config\getRedefinableInternals() === []) {
- return;
- }
- foreach (Config\getDefaultRedefinableInternals() as $function) {
- # Which arguments are callbacks? Store their offsets in the following array.
- $offsets = [];
- foreach ((new \ReflectionFunction($function))->getParameters() as $offset => $argument) {
- $name = $argument->getName();
- if (strpos($name, 'call') !== false || strpos($name, 'func') !== false) {
- $offsets[] = $offset;
- }
- }
- connect($function, function() use ($function, $offsets) {
- # This is the argument-inspecting patch.
- $args = Stack\top('args');
- $caller = Stack\all()[1];
- foreach ($offsets as $offset) {
- # Callback absent
- if (!isset($args[$offset])) {
- continue;
- }
- $callable = $args[$offset];
- # Callback is a closure => definitely not internal
- if ($callable instanceof \Closure) {
- continue;
- }
- list($class, $method, $instance) = Utils\interpretCallable($callable);
- if (empty($class)) {
- # Callback is global function, which might be internal too.
- $args[$offset] = function() use ($callable) {
- return dispatchDynamic($callable, func_get_args());
- };
- }
- # Callback involves a class => not internal either, since the only internals that
- # Patchwork can handle as of 2.0 are global functions.
- # However, we must handle all kinds of opaque access here too, such as self:: and
- # private methods, because we're actually patching a stub (see INTERNAL_STUB_CODE)
- # and not directly call_user_func itself (or usort, or any other of those).
- # We must compensate for scope that is lost, and that callback-taking functions
- # can make use of.
- if (!empty($class)) {
- if ($class === 'self' || $class === 'static' || $class === 'parent') {
- # We do not discriminate between early and late static binding here: FIXME.
- $actualClass = $caller['class'];
- if ($class === 'parent') {
- $actualClass = get_parent_class($actualClass);
- }
- $class = $actualClass;
- }
-
- # When calling a parent constructor, the reference to the object being
- # constructed needs to be extracted from the stack info.
- # Also turned out to be necessary to solve this, without any parent
- # constructors involved: https://github.com/antecedent/patchwork/issues/99
- if (is_null($instance) && isset($caller['object'])) {
- $instance = $caller['object'];
- }
- try {
- $reflection = new \ReflectionMethod($class, $method);
- $reflection->setAccessible(true);
- $args[$offset] = function() use ($reflection, $instance) {
- return $reflection->invokeArgs($instance, func_get_args());
- };
- } catch (\ReflectionException $e) {
- # If it's an invalid callable, then just prevent the unexpected propagation
- # of ReflectionExceptions.
- }
- }
- }
- # Give the inspected arguments back to the *original* definition of the
- # callback-taking function, e.g. \array_map(). This works given that the
- # present patch is the innermost.
- return call_user_func_array($function, $args);
- });
- }
-}
-
-/**
- * @since 2.0.5
- *
- * As of version 2.0.5, this is used to accommodate language constructs
- * (echo, eval, exit and others) within the concept of callable.
- */
-function translateIfLanguageConstruct($callable)
-{
- if (!is_string($callable)) {
- return $callable;
- }
- if (in_array($callable, Config\getRedefinableLanguageConstructs())) {
- return RedefinitionOfLanguageConstructs\LANGUAGE_CONSTRUCT_PREFIX . $callable;
- } elseif (in_array($callable, Config\getSupportedLanguageConstructs())) {
- throw new Exceptions\NotUserDefined($callable);
- } else {
- return $callable;
- }
-}
-
-function resolveClassToInstantiate($class, $calledClass)
-{
- $pieces = explode('\\', $class);
- $last = array_pop($pieces);
- if (in_array($last, ['self', 'static', 'parent'])) {
- $frame = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3)[2];
- if ($last == 'self') {
- $class = $frame['class'];
- } elseif ($last == 'parent') {
- $class = get_parent_class($frame['class']);
- } elseif ($last == 'static') {
- $class = $calledClass;
- }
- }
- return ltrim($class, '\\');
-}
-
-function getInstantiator($class, $calledClass)
-{
- $namespace = INSTANTIATOR_NAMESPACE;
- $class = resolveClassToInstantiate($class, $calledClass);
- $adaptedName = strtr($class, ['\\' => '__']);
- if (!class_exists("$namespace\\$adaptedName")) {
- $constructor = (new \ReflectionClass($class))->getConstructor();
- list($parameters, $arguments) = Utils\getParameterAndArgumentLists($constructor);
- $code = strtr(INSTANTIATOR_CODE, [
- '@namespace' => INSTANTIATOR_NAMESPACE,
- '@instantiator' => $adaptedName,
- '@class' => $class,
- '@parameters' => $parameters,
- ]);
- RedefinitionOfNew\suspendFor(function() use ($code) {
- eval(CodeManipulation\transformForEval($code));
- });
- }
- $instantiator = "$namespace\\$adaptedName";
- return new $instantiator;
-}
-
-class State
-{
- static $routes = [];
- static $queue = [];
- static $preprocessedFiles = [];
- static $routeStack = [];
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CallRerouting/Decorator.php b/wordpress-dev/vendor/antecedent/patchwork/src/CallRerouting/Decorator.php
deleted file mode 100644
index 1a641df0..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CallRerouting/Decorator.php
+++ /dev/null
@@ -1,62 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CallRerouting;
-
-use Patchwork;
-use Patchwork\Stack;
-
-class Decorator
-{
- public $superclass;
- public $instance;
- public $method;
-
- private $patch;
-
- public function __construct($patch)
- {
- $this->patch = $patch;
- }
-
- public function __invoke()
- {
- $top = Stack\top();
- $superclassMatches = $this->superclassMatches();
- $instanceMatches = $this->instanceMatches($top);
- $methodMatches = $this->methodMatches($top);
- if ($superclassMatches && $instanceMatches && $methodMatches) {
- $patch = $this->patch;
- if (isset($top["object"]) && $patch instanceof \Closure) {
- $patch = $patch->bindTo($top["object"], $this->superclass);
- }
- return dispatchTo($patch);
- }
- Patchwork\fallBack();
- }
-
- private function superclassMatches()
- {
- return $this->superclass === null ||
- Stack\topCalledClass() === $this->superclass ||
- is_subclass_of(Stack\topCalledClass(), $this->superclass);
- }
-
- private function instanceMatches(array $top)
- {
- return $this->instance === null ||
- (isset($top["object"]) && $top["object"] === $this->instance);
- }
-
- private function methodMatches(array $top)
- {
- return $this->method === null ||
- $this->method === 'new' ||
- $top["function"] === $this->method;
- }
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CallRerouting/Handle.php b/wordpress-dev/vendor/antecedent/patchwork/src/CallRerouting/Handle.php
deleted file mode 100644
index 2c0d96d3..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CallRerouting/Handle.php
+++ /dev/null
@@ -1,65 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CallRerouting;
-
-class Handle
-{
- private $references = [];
- private $expirationHandlers = [];
- private $silenced = false;
- private $tags = [];
-
- public function __destruct()
- {
- $this->expire();
- }
-
- public function tag($tag)
- {
- $this->tags[] = $tag;
- }
-
- public function hasTag($tag)
- {
- return in_array($tag, $this->tags);
- }
-
- public function addReference(&$reference)
- {
- $this->references[] = &$reference;
- }
-
- public function expire()
- {
- foreach ($this->references as &$reference) {
- $reference = null;
- }
- if (!$this->silenced) {
- foreach ($this->expirationHandlers as $expirationHandler) {
- $expirationHandler();
- }
- }
- $this->expirationHandlers = [];
- }
-
- public function addExpirationHandler(callable $expirationHandler)
- {
- $this->expirationHandlers[] = $expirationHandler;
- }
-
- public function silence()
- {
- $this->silenced = true;
- }
-
- public function unsilence()
- {
- $this->silenced = false;
- }
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation.php
deleted file mode 100644
index 96d9b3ea..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation.php
+++ /dev/null
@@ -1,187 +0,0 @@
-
- * @copyright 2010-2023 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation;
-
-require __DIR__ . '/CodeManipulation/Source.php';
-require __DIR__ . '/CodeManipulation/Stream.php';
-require __DIR__ . '/CodeManipulation/Actions/Generic.php';
-require __DIR__ . '/CodeManipulation/Actions/CallRerouting.php';
-require __DIR__ . '/CodeManipulation/Actions/CodeManipulation.php';
-require __DIR__ . '/CodeManipulation/Actions/Namespaces.php';
-require __DIR__ . '/CodeManipulation/Actions/RedefinitionOfInternals.php';
-require __DIR__ . '/CodeManipulation/Actions/RedefinitionOfLanguageConstructs.php';
-require __DIR__ . '/CodeManipulation/Actions/ConflictPrevention.php';
-require __DIR__ . '/CodeManipulation/Actions/RedefinitionOfNew.php';
-require __DIR__ . '/CodeManipulation/Actions/Arguments.php';
-
-use Patchwork\Exceptions;
-use Patchwork\Config;
-
-const OUTPUT_DESTINATION = 'php://memory';
-const OUTPUT_ACCESS_MODE = 'rb+';
-
-function transform(Source $s)
-{
- foreach (State::$actions as $action) {
- $action($s);
- }
-}
-
-function transformString($code)
-{
- $source = new Source($code);
- transform($source);
- return (string) $source;
-}
-
-function transformForEval($code)
-{
- $prefix = "file), 'w', false);
- Stream::fwrite($handle, $source);
- Stream::fclose($handle);
-}
-
-function availableCached($file)
-{
- if (!cacheEnabled()) {
- return false;
- }
- $cached = getCachedPath($file);
- return file_exists($cached) &&
- filemtime($file) <= filemtime($cached) &&
- Config\getTimestamp() <= filemtime($cached);
-}
-
-function internalToCache($file)
-{
- if (!cacheEnabled()) {
- return false;
- }
- return strpos($file, Config\getCachePath() . '/') === 0
- || strpos($file, Config\getCachePath() . DIRECTORY_SEPARATOR) === 0;
-}
-
-
-function getContents($file)
-{
- $handle = Stream::fopen($file, 'r', true);
- if ($handle === false) {
- return false;
- }
- $contents = '';
- while (!Stream::feof($handle)) {
- $contents .= Stream::fread($handle, 8192);
- }
- Stream::fclose($handle);
- return $contents;
-}
-
-function transformAndOpen($file)
-{
- foreach (State::$importListeners as $listener) {
- $listener($file);
- }
- if (!internalToCache($file) && availableCached($file)) {
- return Stream::fopen(getCachedPath($file), 'r', false);
- }
- $code = getContents($file);
- if ($code === false) {
- return false;
- }
- $source = new Source($code);
- $source->file = $file;
- transform($source);
- if (!internalToCache($file) && cacheEnabled()) {
- storeInCache($source);
- return transformAndOpen($file);
- }
- $resource = fopen(OUTPUT_DESTINATION, OUTPUT_ACCESS_MODE);
- if ($resource) {
- fwrite($resource, $source);
- rewind($resource);
- }
- return $resource;
-}
-
-function prime($file)
-{
- Stream::fclose(transformAndOpen($file));
-}
-
-function shouldTransform($file)
-{
- return !Config\isBlacklisted($file) || Config\isWhitelisted($file);
-}
-
-function register($actions)
-{
- State::$actions = array_merge(State::$actions, (array) $actions);
-}
-
-function onImport($listeners)
-{
- State::$importListeners = array_merge(State::$importListeners, (array) $listeners);
-}
-
-class State
-{
- static $actions = [];
- static $importListeners = [];
- static $cacheIndex = [];
- static $cacheIndexFile;
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/Arguments.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/Arguments.php
deleted file mode 100644
index d0c9e77e..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/Arguments.php
+++ /dev/null
@@ -1,49 +0,0 @@
-
- * @copyright 2010-2021 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation\Actions\Arguments;
-
-use Patchwork\CodeManipulation\Source;
-use Patchwork\CodeManipulation\Actions\Generic;
-
-/**
- * @since 2.1.13
- */
-function readNames(Source $s, $pos)
-{
- $result = [];
- $pos++;
- while (!$s->is(Generic\RIGHT_ROUND, $pos)) {
- if ($s->is([Generic\LEFT_ROUND, Generic\LEFT_SQUARE, Generic\LEFT_CURLY], $pos)) {
- $pos = $s->match($pos);
- } else {
- if ($s->is(T_VARIABLE, $pos)) {
- $result[] = $s->read($pos);
- } elseif ($s->is(Generic\ELLIPSIS, $pos)) {
- $pos = $s->skip(Source::junk(), $pos);
- $result[] = '...' . $s->read($pos);
- }
- $pos++;
- }
- }
- return $result;
-}
-
-/**
- * @since 2.1.13
- */
-function constructReferenceArray(array $names)
-{
- $names = array_map(function($name) {
- if ($name[0] === '.') {
- return '], ' . substr($name, 3) . ', [';
- }
- return '&' . $name;
- }, $names);
- return 'array_merge([' . join(', ', $names) . '])';
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/CallRerouting.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/CallRerouting.php
deleted file mode 100644
index e5059c34..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/CallRerouting.php
+++ /dev/null
@@ -1,88 +0,0 @@
-
- * @link http://patchwork2.org/
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation\Actions\CallRerouting;
-
-use Patchwork\CodeManipulation\Actions\Generic;
-use Patchwork\CallRerouting;
-use Patchwork\Utils;
-
-const CALL_INTERCEPTION_CODE = '
- $__pwClosureName = __NAMESPACE__ ? __NAMESPACE__ . "\\\\{closure}" : "\\\\{closure}";
- $__pwClass = (__CLASS__ && __FUNCTION__ !== $__pwClosureName) ? __CLASS__ : null;
- if (!empty(\Patchwork\CallRerouting\State::$routes[$__pwClass][__FUNCTION__])) {
- $__pwCalledClass = $__pwClass ? \get_called_class() : null;
- $__pwFrame = \count(\debug_backtrace(0));
- $__pwRefs = %s;
- $__pwRefOffset = 0;
- if (\Patchwork\CallRerouting\dispatch($__pwClass, $__pwCalledClass, __FUNCTION__, $__pwFrame, $__pwResult, \array_merge(\array_slice($__pwRefs, $__pwRefOffset, \func_num_args()), \array_slice(\func_get_args(), \count($__pwRefs))))) {
- return $__pwResult;
- }
- }
- unset($__pwClass, $__pwCalledClass, $__pwResult, $__pwClosureName, $__pwFrame, $__pwRefs, $__pwRefOffset);
-';
-
-const CALL_INTERCEPTION_CODE_VOID_TYPED = '
- $__pwClosureName = __NAMESPACE__ ? __NAMESPACE__ . "\\\\{closure}" : "\\\\{closure}";
- $__pwClass = (__CLASS__ && __FUNCTION__ !== $__pwClosureName) ? __CLASS__ : null;
- if (!empty(\Patchwork\CallRerouting\State::$routes[$__pwClass][__FUNCTION__])) {
- $__pwCalledClass = $__pwClass ? \get_called_class() : null;
- $__pwFrame = \count(\debug_backtrace(0));
- $__pwRefs = %s;
- $__pwRefOffset = 0;
- if (\Patchwork\CallRerouting\dispatch($__pwClass, $__pwCalledClass, __FUNCTION__, $__pwFrame, $__pwResult, \array_merge(\array_slice($__pwRefs, $__pwRefOffset, \func_num_args()), \array_slice(\func_get_args(), \count($__pwRefs))))) {
- if ($__pwResult !== null) {
- throw new \Patchwork\Exceptions\NonNullToVoid;
- }
- return;
- }
- }
- unset($__pwClass, $__pwCalledClass, $__pwResult, $__pwClosureName, $__pwFrame, $__pwRefOffset);
-';
-
-const CALL_INTERCEPTION_CODE_NEVER_TYPED = '
- $__pwClosureName = __NAMESPACE__ ? __NAMESPACE__ . "\\\\{closure}" : "\\\\{closure}";
- $__pwClass = (__CLASS__ && __FUNCTION__ !== $__pwClosureName) ? __CLASS__ : null;
- if (!empty(\Patchwork\CallRerouting\State::$routes[$__pwClass][__FUNCTION__])) {
- $__pwCalledClass = $__pwClass ? \get_called_class() : null;
- $__pwFrame = \count(\debug_backtrace(0));
- $__pwRefs = %s;
- $__pwRefOffset = 0;
- if (\Patchwork\CallRerouting\dispatch($__pwClass, $__pwCalledClass, __FUNCTION__, $__pwFrame, $__pwResult, \array_merge(\array_slice($__pwRefs, $__pwRefOffset, \func_num_args()), \array_slice(\func_get_args(), \count($__pwRefs))))) {
- throw new \Patchwork\Exceptions\ReturnFromNever;
- }
- }
- unset($__pwClass, $__pwCalledClass, $__pwResult, $__pwClosureName, $__pwFrame, $__pwRefOffset);
-';
-
-const QUEUE_DEPLOYMENT_CODE = '\Patchwork\CallRerouting\deployQueue()';
-
-function markPreprocessedFiles()
-{
- return Generic\markPreprocessedFiles(CallRerouting\State::$preprocessedFiles);
-}
-
-function injectCallInterceptionCode()
-{
- return Generic\prependCodeToFunctions(
- Utils\condense(CALL_INTERCEPTION_CODE),
- array(
- 'void' => Utils\condense(CALL_INTERCEPTION_CODE_VOID_TYPED),
- 'never' => Utils\condense(CALL_INTERCEPTION_CODE_NEVER_TYPED),
- ),
- true
- );
-}
-
-function injectQueueDeploymentCode()
-{
- return Generic\chain(array(
- Generic\injectFalseExpressionAtBeginnings(QUEUE_DEPLOYMENT_CODE),
- Generic\injectCodeAfterClassDefinitions(QUEUE_DEPLOYMENT_CODE . ';'),
- ));
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/CodeManipulation.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/CodeManipulation.php
deleted file mode 100644
index cccd5c5d..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/CodeManipulation.php
+++ /dev/null
@@ -1,33 +0,0 @@
-
- * @copyright 2010-2023 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation\Actions\CodeManipulation;
-
-use Patchwork\CodeManipulation\Actions\Generic;
-use Patchwork\CodeManipulation\Source;
-
-const EVAL_ARGUMENT_WRAPPER = '\Patchwork\CodeManipulation\transformForEval';
-
-const STREAM_WRAPPER_REINSTATEMENT_CODE = '\Patchwork\CodeManipulation\Stream::reinstateWrapper();';
-
-function propagateThroughEval()
-{
- return Generic\wrapUnaryConstructArguments(T_EVAL, EVAL_ARGUMENT_WRAPPER);
-}
-
-function injectStreamWrapperReinstatementCode()
-{
- return Generic\injectCodeAtEnd(STREAM_WRAPPER_REINSTATEMENT_CODE);
-}
-
-function flush()
-{
- return function(Source $s) {
- $s->flush();
- };
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/ConflictPrevention.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/ConflictPrevention.php
deleted file mode 100644
index 634296b7..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/ConflictPrevention.php
+++ /dev/null
@@ -1,33 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation\Actions\ConflictPrevention;
-
-use Patchwork\CodeManipulation\Source;
-
-/**
- * @since 2.0.1
- *
- * Serves to avoid "Cannot redeclare Patchwork\redefine()" errors.
- */
-function preventImportingOtherCopiesOfPatchwork()
-{
- return function(Source $s) {
- $namespaceKeyword = $s->next(T_NAMESPACE, -1);
- if ($namespaceKeyword === INF || $namespaceKeyword < 2) {
- return;
- }
- if ($s->read($namespaceKeyword, 4) == 'namespace Patchwork;') {
- $pattern = '/@copyright\s+2010(-\d+)? Ignas Rudaitis/';
- if (preg_match($pattern, $s->read($namespaceKeyword - 2))) {
- # Clear the file completely (in memory)
- $s->splice('', 0, count($s->tokens));
- }
- }
- };
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/Generic.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/Generic.php
deleted file mode 100644
index b2de56ec..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/Generic.php
+++ /dev/null
@@ -1,190 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation\Actions\Generic;
-
-use Patchwork\CodeManipulation\Actions\Arguments;
-use Patchwork\CodeManipulation\Source;
-use Patchwork\Utils;
-
-const LEFT_ROUND = '(';
-const RIGHT_ROUND = ')';
-const LEFT_CURLY = '{';
-const RIGHT_CURLY = '}';
-const LEFT_SQUARE = '[';
-const RIGHT_SQUARE = ']';
-const SEMICOLON = ';';
-
-foreach (['NAME_FULLY_QUALIFIED', 'NAME_QUALIFIED', 'NAME_RELATIVE', 'ELLIPSIS', 'ATTRIBUTE', 'READONLY'] as $constant) {
- if (defined('T_' . $constant)) {
- define(__NAMESPACE__ . '\\' . $constant, constant('T_' . $constant));
- } else {
- define(__NAMESPACE__ . '\\' . $constant, -1);
- }
-}
-
-function markPreprocessedFiles(&$target)
-{
- return function($file) use (&$target) {
- $target[$file] = true;
- };
-}
-
-function prependCodeToFunctions($code, $typedVariants = array(), $fillArgRefs = false)
-{
- if (!is_array($typedVariants)) {
- $typedVariants = array(
- 'void' => $typedVariants,
- );
- }
- return function(Source $s) use ($code, $typedVariants, $fillArgRefs) {
- foreach ($s->all(T_FUNCTION) as $function) {
- # Skip "use function"
- $previous = $s->skipBack(Source::junk(), $function);
- if ($s->is(T_USE, $previous)) {
- continue;
- }
- $returnType = getDeclaredReturnType($s, $function);
- $argRefs = null;
- if ($fillArgRefs) {
- $parenthesis = $s->next(LEFT_ROUND, $function);
- $args = Arguments\readNames($s, $parenthesis);
- $argRefs = Arguments\constructReferenceArray($args);
- }
- $bracket = $s->next(LEFT_CURLY, $function);
- # Skip generators
- $yield = $s->next(T_YIELD, $bracket);
- if ($yield < $s->match($bracket)) {
- continue;
- }
- $semicolon = $s->next(SEMICOLON, $function);
- if ($bracket < $semicolon) {
- $variant = $returnType && isset($typedVariants[$returnType]) ? $typedVariants[$returnType] : $code;
- if ($fillArgRefs) {
- $variant = sprintf($variant, $argRefs);
- }
- $s->splice($variant, $bracket + 1);
- }
- }
- };
-}
-
-function getDeclaredReturnType(Source $s, $function)
-{
- $parenthesis = $s->next(LEFT_ROUND, $function);
- $next = $s->skip(Source::junk(), $s->match($parenthesis));
- if ($s->is(T_USE, $next)) {
- $next = $s->skip(Source::junk(), $s->match($s->next(LEFT_ROUND, $next)));
- }
- if ($s->is(':', $next)) {
- return $s->read($s->skip(Source::junk(), $next), 1);
- }
- return false;
-}
-
-function wrapUnaryConstructArguments($construct, $wrapper)
-{
- return function(Source $s) use ($construct, $wrapper) {
- foreach ($s->all($construct) as $match) {
- $pos = $s->next(LEFT_ROUND, $match);
- $s->splice($wrapper . LEFT_ROUND, $pos + 1);
- $s->splice(RIGHT_ROUND, $s->match($pos));
- }
- };
-}
-
-function injectFalseExpressionAtBeginnings($expression)
-{
- return function(Source $s) use ($expression) {
- $openingTags = $s->all(T_OPEN_TAG);
- $openingTagsWithEcho = $s->all(T_OPEN_TAG_WITH_ECHO);
- if (empty($openingTags) && empty($openingTagsWithEcho)) {
- return;
- }
- if (!empty($openingTags) &&
- (empty($openingTagsWithEcho) || reset($openingTags) < reset($openingTagsWithEcho))) {
- $pos = reset($openingTags);
- # Skip initial declare() statements
- while ($s->read($s->skip(Source::junk(), $pos)) === 'declare') {
- $pos = $s->next(SEMICOLON, $pos);
- }
- # Enter first namespace
- $namespaceKeyword = $s->next(T_NAMESPACE, $pos);
- if ($namespaceKeyword !== INF) {
- $semicolon = $s->next(SEMICOLON, $namespaceKeyword);
- $leftBracket = $s->next(LEFT_CURLY, $namespaceKeyword);
- $pos = min($semicolon, $leftBracket);
- }
- $s->splice(' ' . $expression . ';', $pos + 1);
- } else {
- $openingTag = reset($openingTagsWithEcho);
- $closingTag = $s->next(T_CLOSE_TAG, $openingTag);
- $semicolon = $s->next(SEMICOLON, $openingTag);
- $s->splice(' (' . $expression . ') ?: (', $openingTag + 1);
- $s->splice(') ', min($closingTag, $semicolon));
- }
- };
-}
-
-function injectCodeAfterClassDefinitions($code)
-{
- return function(Source $s) use ($code) {
- foreach ($s->all(T_CLASS) as $match) {
- if ($s->is([LEFT_ROUND, LEFT_CURLY, T_EXTENDS, T_IMPLEMENTS], $s->skip(Source::junk(), $match))) {
- # Not a proper class definition: anonymous class (with or without attribute)
- continue;
- }
- if ($s->is(T_DOUBLE_COLON, $s->skipBack(Source::junk(), $match))) {
- # Not a proper class definition: ::class syntax
- continue;
- }
- $leftBracket = $s->next(LEFT_CURLY, $match);
- if ($leftBracket === INF) {
- continue;
- }
- $rightBracket = $s->match($leftBracket);
- if ($rightBracket === INF) {
- continue;
- }
- $s->splice($code, $rightBracket + 1);
- }
- };
-}
-
-function injectCodeAtEnd($code)
-{
- return function(Source $s) use ($code) {
- $openTags = $s->all(T_OPEN_TAG);
- $lastOpenTag = end($openTags);
- $closeTag = $s->next(T_CLOSE_TAG, $lastOpenTag);
- $namespaceKeyword = $s->next(T_NAMESPACE, 0);
- $extraSemicolon = ';';
- if ($namespaceKeyword !== INF) {
- $semicolon = $s->next(SEMICOLON, $namespaceKeyword);
- $leftBracket = $s->next(LEFT_CURLY, $namespaceKeyword);
- if ($leftBracket < $semicolon) {
- $code = "namespace { $code }";
- $extraSemicolon = '';
- }
- }
- if ($closeTag !== INF) {
- $s->splice("tokens) - 1, 0, Source::APPEND);
- } else {
- $s->splice($extraSemicolon . $code, count($s->tokens) - 1, 0, Source::APPEND);
- }
- };
-}
-
-function chain(array $callbacks)
-{
- return function(Source $s) use ($callbacks) {
- foreach ($callbacks as $callback) {
- $callback($s);
- }
- };
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/Namespaces.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/Namespaces.php
deleted file mode 100644
index f2545336..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/Namespaces.php
+++ /dev/null
@@ -1,185 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation\Actions\Namespaces;
-
-use Patchwork\CodeManipulation\Source;
-use Patchwork\CodeManipulation\Actions\Generic;
-
-/**
- * @since 2.1.0
- */
-function resolveName(Source $s, $pos, $type = 'class')
-{
- $name = scanQualifiedName($s, $pos);
- $pieces = explode('\\', $name);
- if ($pieces[0] === '') {
- return $name;
- }
- $uses = collectUseDeclarations($s, $pos);
- if (isset($uses[$type][$name])) {
- return '\\' . ltrim($uses[$type][$name], ' \\');
- }
- if (isset($uses['class'][$pieces[0]])) {
- $name = '\\' . ltrim($uses['class'][$pieces[0]] . '\\' . join('\\', array_slice($pieces, 1)), '\\');
- } else {
- $name = '\\' . ltrim(getNamespaceAt($s, $pos) . '\\' . $name, '\\');
- }
- return $name;
-}
-
-/**
- * @since 2.1.0
- */
-function getNamespaceAt(Source $s, $pos)
-{
- foreach (collectNamespaceBoundaries($s) as $namespace => $boundaryPairs) {
- foreach ($boundaryPairs as $boundaries) {
- list($begin, $end) = $boundaries;
- if ($begin <= $pos && $pos <= $end) {
- return $namespace;
- }
- }
- }
- return '';
-}
-
-function collectNamespaceBoundaries(Source $s)
-{
- return $s->cache([], function() {
- if (!$this->has(T_NAMESPACE)) {
- return ['' => [[0, INF]]];
- }
- $result = [];
- foreach ($this->all(T_NAMESPACE) as $keyword) {
- if ($this->next(';', $keyword) < $this->next(Generic\LEFT_CURLY, $keyword)) {
- return [scanQualifiedName($this, $keyword + 1) => [[0, INF]]];
- }
- $begin = $this->next(Generic\LEFT_CURLY, $keyword) + 1;
- $end = $this->match($begin - 1) - 1;
- $name = scanQualifiedName($this, $keyword + 1);
- if (!isset($result[$name])) {
- $result[$name] = [];
- }
- $result[$name][] = [$begin, $end];
- }
- return $result;
- });
-}
-
-function collectUseDeclarations(Source $s, $begin)
-{
- foreach (collectNamespaceBoundaries($s) as $boundaryPairs) {
- foreach ($boundaryPairs as $boundaries) {
- list($leftBoundary, $rightBoundary) = $boundaries;
- if ($leftBoundary <= $begin && $begin <= $rightBoundary) {
- $begin = $leftBoundary;
- break;
- }
- }
- }
- return $s->cache([$begin], function($begin) {
- $result = ['class' => [], 'function' => [], 'const' => []];
- # only tokens that are siblings bracket-wise are considered,
- # so trait-use instances are not an issue
- foreach ($this->siblings(T_USE, $begin) as $keyword) {
- # skip if closure-use
- $next = $this->skip(Source::junk(), $keyword);
- if ($this->is(Generic\LEFT_ROUND, $next)) {
- continue;
- }
- parseUseDeclaration($this, $next, $result);
- }
- return $result;
- });
-}
-
-function parseUseDeclaration(Source $s, $pos, array &$aliases, $prefix = '', $type = 'class')
-{
- $lastPart = null;
- $whole = $prefix;
- while (true) {
- switch ($s->tokens[$pos][Source::TYPE_OFFSET]) {
- case T_FUNCTION:
- $type = 'function';
- break;
- case T_CONST:
- $type = 'const';
- break;
- case T_NS_SEPARATOR:
- if (!empty($whole)) {
- $whole .= '\\';
- }
- break;
- case T_STRING:
- case Generic\NAME_FULLY_QUALIFIED:
- case Generic\NAME_QUALIFIED:
- case Generic\NAME_RELATIVE:
- $update = $s->tokens[$pos][Source::STRING_OFFSET];
- $parts = explode('\\', $update);
- $whole .= $update;
- $lastPart = end($parts);
- break;
- case T_AS:
- $pos = $s->skip(Source::junk(), $pos);
- $aliases[$type][$s->tokens[$pos][Source::STRING_OFFSET]] = $whole;
- $lastPart = null;
- $whole = $prefix;
- break;
- case ',':
- if ($lastPart !== null) {
- $aliases[$type][$lastPart] = $whole;
- }
- $lastPart = null;
- $whole = $prefix;
- $type = 'class';
- break;
- case Generic\LEFT_CURLY:
- parseUseDeclaration($s, $pos + 1, $aliases, $prefix . '\\', $type);
- break;
- case T_WHITESPACE:
- case T_COMMENT:
- case T_DOC_COMMENT:
- break;
- default:
- if ($lastPart !== null) {
- $aliases[$type][$lastPart] = $whole;
- }
- return;
- }
- $pos++;
- }
-}
-
-function scanQualifiedName(Source $s, $begin)
-{
- $result = '';
- while (true) {
- switch ($s->tokens[$begin][Source::TYPE_OFFSET]) {
- case T_NS_SEPARATOR:
- if (!empty($result)) {
- $result .= '\\';
- }
- # fall through
- case T_STRING:
- case Generic\NAME_FULLY_QUALIFIED:
- case Generic\NAME_QUALIFIED:
- case Generic\NAME_RELATIVE:
- case T_STATIC:
- $result .= $s->tokens[$begin][Source::STRING_OFFSET];
- break;
- case T_WHITESPACE:
- case T_COMMENT:
- case T_DOC_COMMENT:
- break;
- default:
- return str_replace('\\\\', '\\', $result);
- }
- $begin++;
- }
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/RedefinitionOfInternals.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/RedefinitionOfInternals.php
deleted file mode 100644
index 3a4f834d..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/RedefinitionOfInternals.php
+++ /dev/null
@@ -1,142 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation\Actions\RedefinitionOfInternals;
-
-use Patchwork\Config;
-use Patchwork\CallRerouting;
-use Patchwork\CodeManipulation\Source;
-use Patchwork\CodeManipulation\Actions\Generic;
-use Patchwork\CodeManipulation\Actions\Namespaces;
-
-const DYNAMIC_CALL_REPLACEMENT = '\Patchwork\CallRerouting\dispatchDynamic(%s, \Patchwork\Utils\args(%s))';
-
-function spliceNamedFunctionCalls()
-{
- if (Config\getRedefinableInternals() === []) {
- return function() {};
- }
- $names = [];
- foreach (Config\getRedefinableInternals() as $name) {
- $names[strtolower($name)] = true;
- }
- return function(Source $s) use ($names) {
- foreach (Namespaces\collectNamespaceBoundaries($s) as $namespace => $boundaryList) {
- foreach ($boundaryList as $boundaries) {
- list($begin, $end) = $boundaries;
- $aliases = Namespaces\collectUseDeclarations($s, $begin)['function'];
- # Receive all aliases, leave only those for redefinable internals
- foreach ($aliases as $alias => $qualified) {
- if (!isset($names[$qualified])) {
- unset($aliases[$alias]);
- } else {
- $aliases[strtolower($alias)] = strtolower($qualified);
- }
- }
- spliceNamedCallsWithin($s, $begin, $end, $names, $aliases);
- }
- }
- };
-}
-
-function spliceNamedCallsWithin(Source $s, $begin, $end, array $names, array $aliases)
-{
- foreach ($s->within([T_STRING, Generic\NAME_FULLY_QUALIFIED, Generic\NAME_QUALIFIED, Generic\NAME_RELATIVE], $begin, $end) as $string) {
- $original = strtolower($s->read($string));
- if ($original[0] == '\\') {
- $original = substr($original, 1);
- }
- if (isset($names[$original]) || isset($aliases[$original])) {
- $previous = $s->skipBack(Source::junk(), $string);
- $hadBackslash = false;
- if ($s->is(T_NS_SEPARATOR, $previous) || $s->is(Generic\NAME_FULLY_QUALIFIED, $string)) {
- if (!isset($names[$original])) {
- # use-aliased name cannot have a leading backslash
- continue;
- }
- if ($s->is(T_NS_SEPARATOR, $previous)) {
- $s->splice('', $previous, 1);
- $previous = $s->skipBack(Source::junk(), $previous);
- }
- $hadBackslash = true;
- }
- if ($s->is([T_FUNCTION, T_OBJECT_OPERATOR, T_DOUBLE_COLON, T_STRING, T_NEW, Generic\NAME_FULLY_QUALIFIED, Generic\NAME_QUALIFIED, Generic\NAME_RELATIVE], $previous)) {
- continue;
- }
- $next = $s->skip(Source::junk(), $string);
- if (!$s->is(Generic\LEFT_ROUND, $next)) {
- continue;
- }
- if (isset($aliases[$original])) {
- $original = $aliases[$original];
- }
- $secondNext = $s->skip(Source::junk(), $next);
- $splice = '\\' . CallRerouting\INTERNAL_REDEFINITION_NAMESPACE . '\\';
- $splice .= $original . Generic\LEFT_ROUND;
- # prepend a namespace-of-origin argument to handle cases like Acme\time() vs time()
- $splice .= !$hadBackslash ? '__NAMESPACE__' : '""';
- if (!$s->is(Generic\RIGHT_ROUND, $secondNext)) {
- # right parenthesis doesn't follow immediately => there are arguments
- $splice .= ', ';
- }
- $s->splice($splice, $string, $secondNext - $string);
- }
- }
-}
-
-function spliceDynamicCalls()
-{
- if (Config\getRedefinableInternals() === []) {
- return function() {};
- }
- return function(Source $s) {
- spliceDynamicCallsWithin($s, 0, count($s->tokens) - 1);
- };
-}
-
-function spliceDynamicCallsWithin(Source $s, $first, $last)
-{
- $pos = $first;
- $anchor = INF;
- $suppress = false;
- while ($pos <= $last) {
- switch ($s->tokens[$pos][Source::TYPE_OFFSET]) {
- case '$':
- case T_VARIABLE:
- $anchor = min($pos, $anchor);
- break;
- case Generic\LEFT_ROUND:
- if ($anchor !== INF && !$suppress) {
- $callable = $s->read($anchor, $pos - $anchor);
- $arguments = $s->read($pos + 1, $s->match($pos) - $pos - 1);
- $pos = $s->match($pos);
- $replacement = sprintf(DYNAMIC_CALL_REPLACEMENT, $callable, $arguments);
- $s->splice($replacement, $anchor, $pos - $anchor + 1);
- }
- break;
- case Generic\LEFT_SQUARE:
- case Generic\LEFT_CURLY:
- spliceDynamicCallsWithin($s, $pos + 1, $s->match($pos) - 1);
- $pos = $s->match($pos);
- break;
- case T_WHITESPACE:
- case T_COMMENT:
- case T_DOC_COMMENT:
- break;
- case T_OBJECT_OPERATOR:
- case T_DOUBLE_COLON:
- case T_NEW:
- $suppress = true;
- break;
- default:
- $suppress = false;
- $anchor = INF;
- }
- $pos++;
- }
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/RedefinitionOfLanguageConstructs.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/RedefinitionOfLanguageConstructs.php
deleted file mode 100644
index 9ba55955..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/RedefinitionOfLanguageConstructs.php
+++ /dev/null
@@ -1,131 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation\Actions\RedefinitionOfLanguageConstructs;
-
-use Patchwork\CodeManipulation\Source;
-use Patchwork\CodeManipulation\Actions\Generic;
-use Patchwork\Exceptions;
-use Patchwork\Config;
-
-const LANGUAGE_CONSTRUCT_PREFIX = 'Patchwork\Redefinitions\LanguageConstructs\_';
-
-/**
- * @since 2.0.5
- */
-function spliceAllConfiguredLanguageConstructs()
-{
- $mapping = getMappingOfConstructs();
- $used = [];
- $actions = [];
- foreach (Config\getRedefinableLanguageConstructs() as $construct) {
- if (isset($used[$mapping[$construct]])) {
- continue;
- }
- $used[$mapping[$construct]] = true;
- $actions[] = spliceLanguageConstruct($mapping[$construct]);
- }
- return Generic\chain($actions);
-}
-
-function getMappingOfConstructs()
-{
- return [
- 'echo' => T_ECHO,
- 'print' => T_PRINT,
- 'eval' => T_EVAL,
- 'die' => T_EXIT,
- 'exit' => T_EXIT,
- 'isset' => T_ISSET,
- 'unset' => T_UNSET,
- 'empty' => T_EMPTY,
- 'require' => T_REQUIRE,
- 'require_once' => T_REQUIRE_ONCE,
- 'include' => T_INCLUDE,
- 'include_once' => T_INCLUDE_ONCE,
- 'clone' => T_CLONE,
- ];
-}
-
-function getInnerTokens()
-{
- return [
- '$',
- ',',
- '"',
- T_START_HEREDOC,
- T_END_HEREDOC,
- T_OBJECT_OPERATOR,
- T_DOUBLE_COLON,
- T_NS_SEPARATOR,
- T_STRING,
- T_LNUMBER,
- T_DNUMBER,
- T_WHITESPACE,
- T_CONSTANT_ENCAPSED_STRING,
- T_COMMENT,
- T_DOC_COMMENT,
- T_VARIABLE,
- T_ENCAPSED_AND_WHITESPACE,
- Generic\NAME_FULLY_QUALIFIED,
- Generic\NAME_QUALIFIED,
- Generic\NAME_RELATIVE,
- ];
-}
-
-function getBracketTokens()
-{
- return [
- Generic\LEFT_ROUND,
- Generic\LEFT_SQUARE,
- Generic\LEFT_CURLY,
- T_CURLY_OPEN,
- T_DOLLAR_OPEN_CURLY_BRACES,
- Generic\ATTRIBUTE,
- ];
-}
-
-function spliceLanguageConstruct($token)
-{
- return function(Source $s) use ($token) {
- foreach ($s->all($token) as $pos) {
- $s->splice('\\' . LANGUAGE_CONSTRUCT_PREFIX, $pos, 0, Source::PREPEND);
- if (lacksParentheses($s, $pos)) {
- addParentheses($s, $pos);
- }
- }
- };
-}
-
-function lacksParentheses(Source $s, $pos)
-{
- if ($s->is(T_ECHO, $pos)) {
- return true;
- }
- $next = $s->skip(Source::junk(), $pos);
- return !$s->is(Generic\LEFT_ROUND, $next);
-}
-
-function addParentheses(Source $s, $pos)
-{
- $pos = $s->skip(Source::junk(), $pos);
- $s->splice(Generic\LEFT_ROUND, $pos, 0, Source::PREPEND);
- while ($pos < count($s->tokens)) {
- if ($s->is(getInnerTokens(), $pos)) {
- $pos++;
- } elseif ($s->is(getBracketTokens(), $pos)) {
- $pos = $s->match($pos) + 1;
- } else {
- break;
- }
- }
- if ($s->is(Source::junk(), $pos)) {
- $pos = $s->skipBack(Source::junk(), $pos);
- }
- $s->splice(Generic\RIGHT_ROUND, $pos, 0, Source::APPEND);
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/RedefinitionOfNew.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/RedefinitionOfNew.php
deleted file mode 100644
index 03c7e50c..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Actions/RedefinitionOfNew.php
+++ /dev/null
@@ -1,201 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation\Actions\RedefinitionOfNew;
-
-use Patchwork\CodeManipulation\Source;
-use Patchwork\CodeManipulation\Actions\Generic;
-use Patchwork\CodeManipulation\Actions\Namespaces;
-use Patchwork\Config;
-
-const STATIC_INSTANTIATION_REPLACEMENT = '\Patchwork\CallRerouting\getInstantiator(\'%s\', %s)->instantiate(%s)';
-const DYNAMIC_INSTANTIATION_REPLACEMENT = '\Patchwork\CallRerouting\getInstantiator(%s, %s)->instantiate(%s)';
-const CALLED_CLASS = '((__CLASS__ && __FUNCTION__ !== (__NAMESPACE__ ? __NAMESPACE__ . "\\\\{closure}" : "\\\\{closure}")) ? \get_called_class() : null)';
-
-const spliceAllInstantiations = 'Patchwork\CodeManipulation\Actions\RedefinitionOfNew\spliceAllInstantiations';
-const publicizeConstructors = 'Patchwork\CodeManipulation\Actions\RedefinitionOfNew\publicizeConstructors';
-
-/**
- * @since 2.1.0
- */
-function spliceAllInstantiations(Source $s)
-{
- if (!State::$enabled || !Config\isNewKeywordRedefinable()) {
- return;
- }
- foreach ($s->all(T_NEW) as $new) {
- $begin = $s->skip(Source::junk(), $new);
- if ($s->is([T_CLASS, Generic\READONLY, Generic\ATTRIBUTE], $begin)) {
- # Anonymous class
- continue;
- }
- $end = scanInnerTokens($s, $begin, $dynamic);
- $afterEnd = $s->skip(Source::junk(), $end);
- list($argsOpen, $argsClose) = [null, null];
- if ($s->is(Generic\LEFT_ROUND, $afterEnd)) {
- list($argsOpen, $argsClose) = [$afterEnd, $s->match($afterEnd)];
- }
- spliceInstantiation($s, $new, $begin, $end, $argsOpen, $argsClose, $dynamic);
- if (hasExtraParentheses($s, $new)) {
- removeExtraParentheses($s, $new);
- }
- }
-}
-
-function publicizeConstructors(Source $s)
-{
- if (!Config\isNewKeywordRedefinable()) {
- return;
- }
- foreach ($s->all([T_PRIVATE, T_PROTECTED]) as $first) {
- $second = $s->skip(Source::junk(), $first);
- $third = $s->skip(Source::junk(), $second);
- if ($s->is(T_FUNCTION, $second) && $s->read($third, 1) === '__construct') {
- $s->splice('public', $first, 1);
- }
- }
-}
-
-function spliceInstantiation(Source $s, $new, $begin, $end, $argsOpen, $argsClose, $dynamic)
-{
- $class = $s->read($begin, $end - $begin + 1);
- $args = '';
- $length = $end - $new + 1;
- if ($argsOpen !== null) {
- $args = $s->read($argsOpen + 1, $argsClose - $argsOpen - 1);
- $length = $argsClose - $new + 1;
- }
- $replacement = DYNAMIC_INSTANTIATION_REPLACEMENT;
- if (!$dynamic) {
- $class = Namespaces\resolveName($s, $begin);
- $replacement = STATIC_INSTANTIATION_REPLACEMENT;
- }
- $s->splice(sprintf($replacement, $class, CALLED_CLASS, $args), $new, $length);
-}
-
-function getInnerTokens()
-{
- return [
- '$',
- T_OBJECT_OPERATOR,
- T_DOUBLE_COLON,
- T_NS_SEPARATOR,
- T_STRING,
- T_LNUMBER,
- T_DNUMBER,
- T_WHITESPACE,
- T_CONSTANT_ENCAPSED_STRING,
- T_COMMENT,
- T_DOC_COMMENT,
- T_VARIABLE,
- T_ENCAPSED_AND_WHITESPACE,
- T_STATIC,
- Generic\NAME_FULLY_QUALIFIED,
- Generic\NAME_QUALIFIED,
- Generic\NAME_RELATIVE,
- ];
-}
-
-function getBracketTokens()
-{
- return [
- Generic\LEFT_SQUARE,
- Generic\LEFT_CURLY,
- T_CURLY_OPEN,
- T_DOLLAR_OPEN_CURLY_BRACES,
- Generic\ATTRIBUTE,
- ];
-}
-
-function getDynamicTokens()
-{
- return [
- '$',
- T_OBJECT_OPERATOR,
- T_DOUBLE_COLON,
- T_LNUMBER,
- T_DNUMBER,
- T_CONSTANT_ENCAPSED_STRING,
- T_VARIABLE,
- T_ENCAPSED_AND_WHITESPACE,
- ];
-}
-
-function scanInnerTokens(Source $s, $begin, &$dynamic = null)
-{
- $dynamic = false;
- $pos = $begin;
- while ($s->is(getInnerTokens(), $pos) || $s->is(getBracketTokens(), $pos)) {
- if ($s->is(getBracketTokens(), $pos)) {
- $dynamic = true;
- $pos = $s->match($pos) + 1;
- } else {
- if ($s->is(getDynamicTokens(), $pos)) {
- $dynamic = true;
- }
- $pos++;
- }
- }
- return $pos - 1;
-}
-
-function hasExtraParentheses(Source $s, $new)
-{
- $doNotRemoveAfter = [
- T_STRING,
- T_STATIC,
- T_VARIABLE,
- T_FOREACH,
- T_FOR,
- T_IF,
- T_ELSEIF,
- T_WHILE,
- T_ARRAY,
- T_PRINT,
- T_ECHO,
- T_CLASS,
- Generic\NAME_FULLY_QUALIFIED,
- Generic\NAME_QUALIFIED,
- Generic\NAME_RELATIVE,
- Generic\RIGHT_ROUND,
- Generic\RIGHT_SQUARE,
- ];
- $left = $s->skipBack(Source::junk(), $new);
- if (!$s->is(Generic\LEFT_ROUND, $left)) {
- return false;
- }
- $beforeLeft = $s->skipBack(Source::junk(), $left);
- return !$s->is($doNotRemoveAfter, $beforeLeft);
-}
-
-function removeExtraParentheses(Source $s, $new)
-{
- $left = $s->skipBack(Source::junk(), $new);
- $s->splice('', $left, 1);
- $s->splice('', $s->match($left), 1);
-}
-
-function suspendFor(callable $function)
-{
- State::$enabled = false;
- $exception = null;
- try {
- $function();
- } catch (\Exception $e) {
- $exception = $e;
- }
- State::$enabled = true;
- if ($exception) {
- throw $exception;
- }
-}
-
-class State
-{
- static $enabled = true;
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Source.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Source.php
deleted file mode 100644
index f16bc120..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Source.php
+++ /dev/null
@@ -1,318 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation;
-
-use Patchwork\CodeManipulation\Actions\Generic;
-use Patchwork\Utils;
-
-class Source
-{
- const TYPE_OFFSET = 0;
- const STRING_OFFSET = 1;
-
- const PREPEND = 'PREPEND';
- const APPEND = 'APPEND';
- const OVERWRITE = 'OVERWRITE';
-
- const ANY = null;
-
- public $tokens;
- public $tokensByType;
- public $splices;
- public $spliceLengths;
- public $code;
- public $file;
- public $matchingBrackets;
- public $levels;
- public $levelBeginnings;
- public $levelEndings;
- public $tokensByLevel;
- public $tokensByLevelAndType;
- public $cache;
-
- function __construct($string)
- {
- $this->code = $string;
- $this->initialize();
- }
-
- function initialize()
- {
- $this->tokens = Utils\tokenize($this->code);
- $this->tokens[] = [T_WHITESPACE, ""];
- $this->indexTokensByType();
- $this->collectBracketMatchings();
- $this->collectLevelInfo();
- $this->splices = [];
- $this->spliceLengths = [];
- $this->cache = [];
- }
-
- function indexTokensByType()
- {
- $this->tokensByType = [];
- foreach ($this->tokens as $offset => $token) {
- $this->tokensByType[$token[self::TYPE_OFFSET]][] = $offset;
- }
- }
-
- function collectBracketMatchings()
- {
- $this->matchingBrackets = [];
- $stack = [];
- foreach ($this->tokens as $offset => $token) {
- $type = $token[self::TYPE_OFFSET];
- switch ($type) {
- case '(':
- case '[':
- case '{':
- case T_CURLY_OPEN:
- case T_DOLLAR_OPEN_CURLY_BRACES:
- case Generic\ATTRIBUTE:
- $stack[] = $offset;
- break;
- case ')':
- case ']':
- case '}':
- $top = array_pop($stack);
- $this->matchingBrackets[$top] = $offset;
- $this->matchingBrackets[$offset] = $top;
- break;
- }
- }
- }
-
- function collectLevelInfo()
- {
- $level = 0;
- $this->levels = [];
- $this->tokensByLevel = [];
- $this->levelBeginnings = [];
- $this->levelEndings = [];
- $this->tokensByLevelAndType = [];
- foreach ($this->tokens as $offset => $token) {
- $type = $token[self::TYPE_OFFSET];
- switch ($type) {
- case '(':
- case '[':
- case '{':
- case T_CURLY_OPEN:
- case T_DOLLAR_OPEN_CURLY_BRACES:
- case Generic\ATTRIBUTE:
- $level++;
- Utils\appendUnder($this->levelBeginnings, $level, $offset);
- break;
- case ')':
- case ']':
- case '}':
- Utils\appendUnder($this->levelEndings, $level, $offset);
- $level--;
- }
- $this->levels[$offset] = $level;
- Utils\appendUnder($this->tokensByLevel, $level, $offset);
- Utils\appendUnder($this->tokensByLevelAndType, [$level, $type], $offset);
- }
- Utils\appendUnder($this->levelBeginnings, 0, 0);
- Utils\appendUnder($this->levelEndings, 0, count($this->tokens) - 1);
- }
-
- function has($types)
- {
- foreach ((array) $types as $type) {
- if ($this->all($type) !== []) {
- return true;
- }
- }
- return false;
- }
-
- function is($types, $offset)
- {
- foreach ((array) $types as $type) {
- if ($this->tokens[$offset][self::TYPE_OFFSET] === $type) {
- return true;
- }
- }
- return false;
- }
-
- function skip($types, $offset, $direction = 1)
- {
- $offset += $direction;
- $types = (array) $types;
- while ($offset < count($this->tokens) && $offset >= 0) {
- if (!in_array($this->tokens[$offset][self::TYPE_OFFSET], $types)) {
- return $offset;
- }
- $offset += $direction;
- }
- return ($direction > 0) ? INF : -1;
- }
-
- function skipBack($types, $offset)
- {
- return $this->skip($types, $offset, -1);
- }
-
- function within($types, $low, $high)
- {
- $result = [];
- foreach ((array) $types as $type) {
- $candidates = isset($this->tokensByType[$type]) ? $this->tokensByType[$type] : [];
- $result = array_merge(Utils\allWithinRange($candidates, $low, $high), $result);
- }
- return $result;
- }
-
- function read($offset, $count = 1)
- {
- $result = '';
- $pos = $offset;
- while ($pos < $offset + $count) {
- if (isset($this->tokens[$pos][self::STRING_OFFSET])) {
- $result .= $this->tokens[$pos][self::STRING_OFFSET];
- } else {
- $result .= $this->tokens[$pos];
- }
- $pos++;
- }
- return $result;
- }
-
- function siblings($types, $offset)
- {
- $level = $this->levels[$offset];
- $begin = Utils\lastNotGreaterThan(Utils\access($this->levelBeginnings, $level, []), $offset);
- $end = Utils\firstGreaterThan(Utils\access($this->levelEndings, $level, []), $offset);
- if ($types === self::ANY) {
- return Utils\allWithinRange($this->tokensByLevel[$level], $begin, $end);
- } else {
- $result = [];
- foreach ((array) $types as $type) {
- $candidates = Utils\access($this->tokensByLevelAndType, [$level, $type], []);
- $result = array_merge(Utils\allWithinRange($candidates, $begin, $end), $result);
- }
- return $result;
- }
- }
-
- function next($types, $offset)
- {
- if (!is_array($types)) {
- $candidates = Utils\access($this->tokensByType, $types, []);
- return Utils\firstGreaterThan($candidates, $offset);
- }
- $result = INF;
- foreach ($types as $type) {
- $result = min($this->next($type, $offset), $result);
- }
- return $result;
- }
-
- function all($types)
- {
- if (!is_array($types)) {
- return Utils\access($this->tokensByType, $types, []);
- }
- $result = [];
- foreach ($types as $type) {
- $result = array_merge($result, $this->all($type));
- }
- sort($result);
- return $result;
- }
-
- function match($offset)
- {
- $offset = (string) $offset;
- return isset($this->matchingBrackets[$offset]) ? $this->matchingBrackets[$offset] : INF;
- }
-
- function splice($splice, $offset, $length = 0, $policy = self::OVERWRITE)
- {
- if ($policy === self::OVERWRITE) {
- $this->splices[$offset] = $splice;
- } elseif ($policy === self::PREPEND || $policy === self::APPEND) {
- if (!isset($this->splices[$offset])) {
- $this->splices[$offset] = '';
- }
- if ($policy === self::PREPEND) {
- $this->splices[$offset] = $splice . $this->splices[$offset];
- } elseif ($policy === self::APPEND) {
- $this->splices[$offset] .= $splice;
- }
- }
- if (!isset($this->spliceLengths[$offset])) {
- $this->spliceLengths[$offset] = 0;
- }
- $this->spliceLengths[$offset] = max($length, $this->spliceLengths[$offset]);
- $this->code = null;
- }
-
- function createCodeFromTokens()
- {
- $splices = $this->splices;
- $code = "";
- $count = count($this->tokens);
- for ($offset = 0; $offset < $count; $offset++) {
- if (isset($splices[$offset])) {
- $code .= $splices[$offset];
- unset($splices[$offset]);
- $offset += $this->spliceLengths[$offset] - 1;
- } else {
- $t = $this->tokens[$offset];
- $code .= isset($t[self::STRING_OFFSET]) ? $t[self::STRING_OFFSET] : $t;
- }
- }
- $this->code = $code;
- }
-
- static function junk()
- {
- return [T_WHITESPACE, T_COMMENT, T_DOC_COMMENT];
- }
-
- function __toString()
- {
- if ($this->code === null) {
- $this->createCodeFromTokens();
- }
- return (string) $this->code;
- }
-
- function flush()
- {
- $this->initialize(Utils\tokenize($this));
- }
-
- /**
- * @since 2.1.0
- */
- function cache(array $args, \Closure $function)
- {
- $found = true;
- $trace = debug_backtrace()[1];
- $location = $trace['file'] . ':' . $trace['line'];
- $result = &$this->cache;
- foreach (array_merge([$location], $args) as $step) {
- if (!is_scalar($step)) {
- throw new \LogicException;
- }
- if (!isset($result[$step])) {
- $result[$step] = [];
- $found = false;
- }
- $result = &$result[$step];
- }
- if (!$found) {
- $result = call_user_func_array($function->bindTo($this), $args);
- }
- return $result;
- }
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Stream.php b/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Stream.php
deleted file mode 100644
index 9167b992..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/CodeManipulation/Stream.php
+++ /dev/null
@@ -1,362 +0,0 @@
-
- * @copyright 2010-2023 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\CodeManipulation;
-
-use Patchwork\Utils;
-
-class Stream
-{
- const STREAM_OPEN_FOR_INCLUDE = 128;
- const STAT_MTIME_NUMERIC_OFFSET = 9;
- const STAT_MTIME_ASSOC_OFFSET = 'mtime';
-
- protected static $protocols = ['file', 'phar'];
- protected static $otherWrapperClass;
-
- public $context;
- public $resource;
-
- public static function discoverOtherWrapper()
- {
- $handle = fopen(__FILE__, 'r');
- $meta = stream_get_meta_data($handle);
- if ($meta && isset($meta['wrapper_data']) && is_object($meta['wrapper_data']) && !($meta['wrapper_data'] instanceof self)) {
- static::$otherWrapperClass = get_class($meta['wrapper_data']);
- }
- }
-
- public static function wrap()
- {
- foreach (static::$protocols as $protocol) {
- stream_wrapper_unregister($protocol);
- stream_wrapper_register($protocol, get_called_class());
- }
- }
-
- public static function unwrap()
- {
- foreach (static::$protocols as $protocol) {
- set_error_handler(function() {});
- stream_wrapper_restore($protocol);
- restore_error_handler();
- }
- }
-
- public static function reinstateWrapper()
- {
- static::discoverOtherWrapper();
- static::unwrap();
- static::wrap();
- }
-
- public function stream_open($path, $mode, $options, &$openedPath)
- {
- $including = (bool) ($options & self::STREAM_OPEN_FOR_INCLUDE);
-
- // `parse_ini_file()` also sets STREAM_OPEN_FOR_INCLUDE.
- if ($including) {
- $frame = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1];
- if (empty($frame['class']) && $frame['function'] === 'parse_ini_file') {
- $including = false;
- }
- }
-
- if ($including && shouldTransform($path)) {
- $this->resource = transformAndOpen($path);
- return $this->resource !== false;
- }
-
- $this->resource = static::fopen($path, $mode, $options, $this->context);
- return $this->resource !== false;
- }
-
- public static function getOtherWrapper($context)
- {
- if (isset(static::$otherWrapperClass)) {
- $class = static::$otherWrapperClass;
- $otherWrapper = new $class;
- if ($context !== null) {
- $otherWrapper->context = $context;
- }
- return $otherWrapper;
- }
- }
-
- public static function alternate(callable $internal, $resource, $wrapped, array $args = [], array $extraArgs = [], $context = null, $shouldReturnResource = false)
- {
- $shouldAddResourceArg = true;
- if ($resource === null) {
- $resource = static::getOtherWrapper($context);
- $shouldAddResourceArg = false;
- }
- if (is_object($resource)) {
- $args = array_merge($args, $extraArgs);
- $ladder = function() use ($resource, $wrapped, $args) {
- switch (count($args)) {
- case 0:
- return $resource->$wrapped();
- case 1:
- return $resource->$wrapped($args[0]);
- case 2:
- return $resource->$wrapped($args[0], $args[1]);
- default:
- return call_user_func_array([$resource, $wrapped], $args);
- }
- };
- $result = $ladder();
- static::unwrap();
- static::wrap();
- } else {
- if ($shouldAddResourceArg) {
- array_unshift($args, $resource);
- }
- if ($context !== null) {
- $args[] = $context;
- }
- $result = static::bypass(function() use ($internal, $args) {
- switch (count($args)) {
- case 0:
- return $internal();
- case 1:
- return $internal($args[0]);
- case 2:
- return $internal($args[0], $args[1]);
- default:
- return call_user_func_array($internal, $args);
- }
- });
- }
- if ($shouldReturnResource) {
- return ($result !== false) ? $resource : false;
- }
- return $result;
- }
-
- public static function fopen($path, $mode, $options, $context = null)
- {
- $otherWrapper = static::getOtherWrapper($context);
- if ($otherWrapper !== null) {
- $openedPath = null;
- $result = $otherWrapper->stream_open($path, $mode, $options, $openedPath);
- return $result !== false ? $otherWrapper : false;
- }
- return static::bypass(function() use ($path, $mode, $options, $context) {
- if ($context === null) {
- return fopen($path, $mode, $options);
- }
- return fopen($path, $mode, $options, $context);
- });
- }
-
- public function stream_close()
- {
- return static::fclose($this->resource);
- }
-
- public static function fclose($resource)
- {
- return static::alternate('fclose', $resource, 'stream_close');
- }
-
- public static function fread($resource, $count)
- {
- return static::alternate('fread', $resource, 'stream_read', [$count]);
- }
-
- public static function feof($resource)
- {
- return static::alternate('feof', $resource, 'stream_eof');
- }
-
- public function stream_eof()
- {
- return static::feof($this->resource);
- }
-
- public function stream_flush()
- {
- return static::alternate('fflush', $this->resource, 'stream_flush');
- }
-
- public function stream_read($count)
- {
- return static::fread($this->resource, $count);
- }
-
- public function stream_seek($offset, $whence = SEEK_SET)
- {
- if (is_object($this->resource)) {
- return $this->resource->stream_seek($offset, $whence);
- }
- return fseek($this->resource, $offset, $whence) === 0;
- }
-
- public function stream_stat()
- {
- if (is_object($this->resource)) {
- return $this->resource->stream_stat();
- }
- $result = fstat($this->resource);
- if ($result) {
- $result[self::STAT_MTIME_ASSOC_OFFSET]++;
- $result[self::STAT_MTIME_NUMERIC_OFFSET]++;
- }
- return $result;
- }
-
- public function stream_tell()
- {
- return static::alternate('ftell', $this->resource, 'stream_tell');
- }
-
- public static function bypass(callable $action)
- {
- static::unwrap();
- $result = $action();
- static::wrap();
- return $result;
- }
-
- public function url_stat($path, $flags)
- {
- $internal = function($path, $flags) {
- $func = ($flags & STREAM_URL_STAT_LINK) ? 'lstat' : 'stat';
- clearstatcache();
- if ($flags & STREAM_URL_STAT_QUIET) {
- set_error_handler(function() {});
- try {
- $result = call_user_func($func, $path);
- } catch (\Exception $e) {
- $result = null;
- }
- restore_error_handler();
- } else {
- $result = call_user_func($func, $path);
- }
- clearstatcache();
- if ($result) {
- $result[self::STAT_MTIME_ASSOC_OFFSET]++;
- $result[self::STAT_MTIME_NUMERIC_OFFSET]++;
- }
- return $result;
- };
- return static::alternate($internal, null, __FUNCTION__, [$path, $flags], [], $this->context);
- }
-
- public function dir_closedir()
- {
- return static::alternate('closedir', $this->resource, 'dir_closedir') ?: true;
- }
-
- public function dir_opendir($path, $options)
- {
- $this->resource = static::alternate('opendir', null, __FUNCTION__, [$path], [$options], $this->context);
- return $this->resource !== false;
- }
-
- public function dir_readdir()
- {
- return static::alternate('readdir', $this->resource, __FUNCTION__);
- }
-
- public function dir_rewinddir()
- {
- return static::alternate('rewinddir', $this->resource, __FUNCTION__);
- }
-
- public function mkdir($path, $mode, $options)
- {
- return static::alternate('mkdir', null, __FUNCTION__, [$path, $mode, $options], [], $this->context);
- }
-
- public function rename($pathFrom, $pathTo)
- {
- return static::alternate('rename', null, __FUNCTION__, [$pathFrom, $pathTo], [], $this->context);
- }
-
- public function rmdir($path, $options)
- {
- return static::alternate('rmdir', null, __FUNCTION__, [$path], [$options], $this->context);
- }
-
- public function stream_cast($castAs)
- {
- return static::alternate(function() {
- return $this->resource;
- }, null, __FUNCTION__, [$castAs]);
- }
-
- public function stream_lock($operation)
- {
- if ($operation === '0' || $operation === 0) {
- $operation = LOCK_EX;
- }
- return static::alternate('flock', $this->resource, __FUNCTION__, [$operation]);
- }
-
- public function stream_set_option($option, $arg1, $arg2)
- {
- $internal = function($option, $arg1, $arg2) {
- switch ($option) {
- case STREAM_OPTION_BLOCKING:
- return stream_set_blocking($this->resource, $arg1);
- case STREAM_OPTION_READ_TIMEOUT:
- return stream_set_timeout($this->resource, $arg1, $arg2);
- case STREAM_OPTION_WRITE_BUFFER:
- return stream_set_write_buffer($this->resource, $arg1);
- case STREAM_OPTION_READ_BUFFER:
- return stream_set_read_buffer($this->resource, $arg1);
- }
- };
- return static::alternate($internal, $this->resource, __FUNCTION__, [$option, $arg1, $arg2]);
- }
-
- public function stream_write($data)
- {
- return static::fwrite($this->resource, $data);
- }
-
- public static function fwrite($resource, $data)
- {
- return static::alternate('fwrite', $resource, 'stream_write', [$data]);
- }
-
- public function unlink($path)
- {
- return static::alternate('unlink', $this->resource, __FUNCTION__, [$path], [], $this->context);
- }
-
- public function stream_metadata($path, $option, $value)
- {
- $internal = function($path, $option, $value) {
- switch ($option) {
- case STREAM_META_TOUCH:
- if (empty($value)) {
- return touch($path);
- } else {
- return touch($path, $value[0], $value[1]);
- }
- case STREAM_META_OWNER_NAME:
- case STREAM_META_OWNER:
- return chown($path, $value);
- case STREAM_META_GROUP_NAME:
- case STREAM_META_GROUP:
- return chgrp($path, $value);
- case STREAM_META_ACCESS:
- return chmod($path, $value);
- }
- };
- return static::alternate($internal, null, __FUNCTION__, [$path, $option, $value]);
- }
-
- public function stream_truncate($newSize)
- {
- return static::alternate('ftruncate', $this->resource, __FUNCTION__, [$newSize]);
- }
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/Config.php b/wordpress-dev/vendor/antecedent/patchwork/src/Config.php
deleted file mode 100644
index 9da67a86..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/Config.php
+++ /dev/null
@@ -1,233 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\Config;
-
-use Patchwork\Utils;
-use Patchwork\Exceptions;
-use Patchwork\CodeManipulation\Actions\RedefinitionOfLanguageConstructs;
-
-const FILE_NAME = 'patchwork.json';
-
-function locate()
-{
- $alreadyRead = [];
- $paths = array_map('dirname', get_included_files());
- $paths[] = dirname($_SERVER['PHP_SELF']);
- $paths[] = getcwd();
- foreach ($paths as $path) {
- while (dirname($path) !== $path) {
- $file = $path . DIRECTORY_SEPARATOR . FILE_NAME;
- if (is_file($file) && !isset($alreadyRead[$file])) {
- read($file);
- State::$timestamp = max(filemtime($file), State::$timestamp);
- $alreadyRead[$file] = true;
- }
- $path = dirname($path);
- }
- }
-}
-
-function read($file)
-{
- $data = json_decode(file_get_contents($file), true);
- if (json_last_error() !== JSON_ERROR_NONE) {
- $message = json_last_error_msg();
- throw new Exceptions\ConfigMalformed($file, $message);
- }
- set($data, $file);
-}
-
-function set(array $data, $file)
-{
- $keys = array_keys($data);
- $list = ['blacklist', 'whitelist', 'cache-path', 'redefinable-internals', 'new-keyword-redefinable'];
- $unknown = array_diff($keys, $list);
- if ($unknown != []) {
- throw new Exceptions\ConfigKeyNotRecognized(reset($unknown), $list, $file);
- }
- $root = dirname($file);
- setBlacklist(get($data, 'blacklist'), $root);
- setWhitelist(get($data, 'whitelist'), $root);
- setCachePath(get($data, 'cache-path'), $root);
- setRedefinableInternals(get($data, 'redefinable-internals'), $root);
- setNewKeywordRedefinability(get($data, 'new-keyword-redefinable'), $root);
-}
-
-function get(array $data, $key)
-{
- return isset($data[$key]) ? $data[$key] : null;
-}
-
-function setBlacklist($data, $root)
-{
- merge(State::$blacklist, resolvePaths($data, $root));
-}
-
-function isListed($path, array $list)
-{
- $path = rtrim($path, '\\/');
- foreach ($list as $item) {
- if (!is_string($item)) {
- $item = chr($item);
- }
- if (strpos($path, $item) === 0) {
- return true;
- }
- }
- return false;
-}
-
-function isBlacklisted($path)
-{
- return isListed($path, State::$blacklist);
-}
-
-function setWhitelist($data, $root)
-{
- merge(State::$whitelist, resolvePaths($data, $root));
-}
-
-function isWhitelisted($path)
-{
- return isListed($path, State::$whitelist);
-}
-
-function setCachePath($data, $root)
-{
- if ($data === null) {
- return;
- }
- $path = resolvePath($data, $root);
- if (State::$cachePath !== null && State::$cachePath !== $path) {
- throw new Exceptions\CachePathConflict(State::$cachePath, $path);
- }
- State::$cachePath = $path;
-}
-
-function getDefaultRedefinableInternals()
-{
- return [
- 'preg_replace_callback',
- 'spl_autoload_register',
- 'iterator_apply',
- 'header_register_callback',
- 'call_user_func',
- 'call_user_func_array',
- 'forward_static_call',
- 'forward_static_call_array',
- 'register_shutdown_function',
- 'register_tick_function',
- 'unregister_tick_function',
- 'ob_start',
- 'usort',
- 'uasort',
- 'uksort',
- 'array_reduce',
- 'array_intersect_ukey',
- 'array_uintersect',
- 'array_uintersect_assoc',
- 'array_intersect_uassoc',
- 'array_uintersect_uassoc',
- 'array_uintersect_uassoc',
- 'array_diff_ukey',
- 'array_udiff',
- 'array_udiff_assoc',
- 'array_diff_uassoc',
- 'array_udiff_uassoc',
- 'array_udiff_uassoc',
- 'array_filter',
- 'array_map',
- 'libxml_set_external_entity_loader',
- ];
-}
-
-function getRedefinableInternals()
-{
- if (!empty(State::$redefinableInternals)) {
- return array_merge(State::$redefinableInternals, getDefaultRedefinableInternals());
- }
- return [];
-}
-
-function setRedefinableInternals($names)
-{
- merge(State::$redefinableInternals, $names);
- $constructs = array_intersect(State::$redefinableInternals, getSupportedLanguageConstructs());
- State::$redefinableLanguageConstructs = array_merge(State::$redefinableLanguageConstructs, $constructs);
- State::$redefinableInternals = array_diff(State::$redefinableInternals, $constructs);
-}
-
-function setNewKeywordRedefinability($value)
-{
- State::$newKeywordRedefinable = State::$newKeywordRedefinable || $value;
-}
-
-function getRedefinableLanguageConstructs()
-{
- return State::$redefinableLanguageConstructs;
-}
-
-function getSupportedLanguageConstructs()
-{
- return array_keys(RedefinitionOfLanguageConstructs\getMappingOfConstructs());
-}
-
-function isNewKeywordRedefinable()
-{
- return State::$newKeywordRedefinable;
-}
-
-function getCachePath()
-{
- return State::$cachePath;
-}
-
-function resolvePath($path, $root)
-{
- if ($path === null) {
- return null;
- }
- if (file_exists($path) && realpath($path) === $path) {
- return $path;
- }
- return realpath($root . '/' . $path);
-}
-
-function resolvePaths($paths, $root)
-{
- if ($paths === null) {
- return [];
- }
- $result = [];
- foreach ((array) $paths as $path) {
- $result[] = resolvePath($path, $root);
- }
- return $result;
-}
-
-function merge(array &$target, $source)
-{
- $target = array_merge($target, (array) $source);
-}
-
-function getTimestamp()
-{
- return State::$timestamp;
-}
-
-class State
-{
- static $blacklist = [];
- static $whitelist = [];
- static $cachePath;
- static $redefinableInternals = [];
- static $redefinableLanguageConstructs = [];
- static $newKeywordRedefinable = false;
- static $timestamp = 0;
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/Console.php b/wordpress-dev/vendor/antecedent/patchwork/src/Console.php
deleted file mode 100644
index a419503c..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/Console.php
+++ /dev/null
@@ -1,57 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\Console;
-
-use Patchwork\CodeManipulation as CM;
-
-error_reporting(E_ALL);
-
-$argc > 2 && $argv[1] == 'prime'
- or exit("\nUsage: php patchwork.phar prime DIR1 DIR2 ... DIRn\n" .
- " (to recursively prime all PHP files under given directories)\n\n");
-
-try {
- CM\cacheEnabled()
- or exit("\nError: no cache location set.\n\n");
-} catch (Patchwork\Exceptions\CachePathUnavailable $e) {
- exit("\nError: " . $e->getMessage() . "\n\n");
-}
-
-echo "\nCounting files...\n";
-
-$files = [];
-
-foreach (array_slice($argv, 2) as $path) {
- $path = realpath($path);
- foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path)) as $file) {
- if (substr($file, -4) == '.php' && !CM\internalToCache($file) && !CM\availableCached($file)) {
- $files[] = $file;
- }
- }
-}
-
-$count = count($files);
-
-$count > 0 or exit("\nNothing to do.\n\n");
-
-echo "\nPriming ($count files total):\n";
-
-const CONSOLE_WIDTH = 80;
-
-$progress = 0;
-
-for ($i = 0; $i < $count; $i++) {
- CM\prime($files[$i]->getRealPath());
- while ((int) (($i + 1) / $count * CONSOLE_WIDTH) > $progress) {
- echo '.';
- $progress++;
- }
-}
-
-echo "\n\n";
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/Exceptions.php b/wordpress-dev/vendor/antecedent/patchwork/src/Exceptions.php
deleted file mode 100644
index 5792867f..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/Exceptions.php
+++ /dev/null
@@ -1,129 +0,0 @@
-
- * @copyright 2010-2023 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\Exceptions;
-
-use Patchwork\Utils;
-
-abstract class Exception extends \Exception
-{
-}
-
-class NoResult extends Exception
-{
-}
-
-class StackEmpty extends Exception
-{
- protected $message = "There are no calls in the dispatch stack";
-}
-
-abstract class CallbackException extends Exception
-{
- function __construct($callback)
- {
- parent::__construct(sprintf($this->message, Utils\callableToString($callback)));
- }
-}
-
-class NotUserDefined extends CallbackException
-{
- protected $message = 'Please include {"redefinable-internals": ["%s"]} in your patchwork.json.';
-}
-
-class DefinedTooEarly extends CallbackException
-{
-
- function __construct($callback)
- {
- $this->message = "The file that defines %s() was included earlier than Patchwork. " .
- "Please reverse this order to be able to redefine the function in question.";
- parent::__construct($callback);
- }
-}
-
-class InternalMethodsNotSupported extends CallbackException
-{
- protected $message = "Methods of internal classes (such as %s) are not yet redefinable in Patchwork 2.1.";
-}
-
-/**
- * @deprecated 2.2.0
- */
-class InternalsNotSupportedOnHHVM extends CallbackException
-{
- protected $message = "As of version 2.1, Patchwork cannot redefine internal functions and methods (such as %s) on HHVM.";
-}
-
-class CachePathUnavailable extends Exception
-{
- function __construct($location)
- {
- parent::__construct(sprintf(
- "The specified cache path is nonexistent or read-only: %s",
- $location
- ));
- }
-}
-
-class ConfigException extends Exception
-{
-}
-
-class ConfigMalformed extends ConfigException
-{
- function __construct($file, $message)
- {
- parent::__construct(sprintf(
- 'The configuration file %s is malformed: %s',
- $file,
- $message
- ));
- }
-}
-
-class ConfigKeyNotRecognized extends ConfigException
-{
- function __construct($key, $list, $file)
- {
- parent::__construct(sprintf(
- "The key '%s' in the configuration file %s was not recognized. " .
- "You might have meant one of these: %s",
- $key,
- $file,
- join(', ', $list)
- ));
- }
-}
-
-class CachePathConflict extends ConfigException
-{
- function __construct($first, $second)
- {
- parent::__construct(sprintf(
- "Detected configuration files provide conflicting cache paths: %s and %s",
- $first,
- $second
- ));
- }
-}
-
-class NewKeywordNotRedefinable extends ConfigException
-{
- protected $message = 'Please set {"new-keyword-redefinable": true} to redefine instantiations';
-}
-
-class NonNullToVoid extends Exception
-{
- protected $message = 'A redefinition of a void-typed callable attempted to return a non-null result';
-}
-
-class ReturnFromNever extends Exception
-{
- protected $message = 'A redefinition of a never-typed callable attempted to return';
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/Redefinitions/LanguageConstructs.php b/wordpress-dev/vendor/antecedent/patchwork/src/Redefinitions/LanguageConstructs.php
deleted file mode 100644
index 66172661..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/Redefinitions/LanguageConstructs.php
+++ /dev/null
@@ -1,76 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\Redefinitions\LanguageConstructs;
-
-function _echo($string)
-{
- foreach (func_get_args() as $argument) {
- echo $argument;
- }
-}
-
-function _print($string)
-{
- return print($string);
-}
-
-function _eval($code)
-{
- return eval($code);
-}
-
-function _die($message = null)
-{
- die($message);
-}
-
-function _exit($message = null)
-{
- exit($message);
-}
-
-function _isset(&$lvalue)
-{
- return isset($lvalue);
-}
-
-function _unset(&$lvalue)
-{
- unset($lvalue);
-}
-
-function _empty(&$lvalue)
-{
- return empty($lvalue);
-}
-
-function _require($path)
-{
- return require($path);
-}
-
-function _require_once($path)
-{
- return require_once($path);
-}
-
-function _include($path)
-{
- return include($path);
-}
-
-function _include_once($path)
-{
- return include_once($path);
-}
-
-function _clone($object)
-{
- return clone $object;
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/Stack.php b/wordpress-dev/vendor/antecedent/patchwork/src/Stack.php
deleted file mode 100644
index a49d3810..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/Stack.php
+++ /dev/null
@@ -1,95 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\Stack;
-
-use Patchwork\Exceptions;
-
-function push($offset, $calledClass, ?array $argsOverride = null)
-{
- State::$items[] = [$offset, $calledClass, $argsOverride];
-}
-
-function pop()
-{
- array_pop(State::$items);
-}
-
-function pushFor($offset, $calledClass, $callback, ?array $argsOverride = null)
-{
- push($offset, $calledClass, $argsOverride);
- try {
- $callback();
- } catch (\Exception $e) {
- $exception = $e;
- }
- pop();
- if (isset($exception)) {
- throw $exception;
- }
-}
-
-function top($property = null)
-{
- $all = all();
- $frame = reset($all);
- $argsOverride = topArgsOverride();
- if ($argsOverride !== null) {
- $frame["args"] = $argsOverride;
- }
- if ($property) {
- return isset($frame[$property]) ? $frame[$property] : null;
- }
- return $frame;
-}
-
-function topOffset()
-{
- if (empty(State::$items)) {
- throw new Exceptions\StackEmpty;
- }
- list($offset, $calledClass) = end(State::$items);
- return $offset;
-}
-
-function topCalledClass()
-{
- if (empty(State::$items)) {
- throw new Exceptions\StackEmpty;
- }
- list($offset, $calledClass) = end(State::$items);
- return $calledClass;
-}
-
-function topArgsOverride()
-{
- if (empty(State::$items)) {
- throw new Exceptions\StackEmpty;
- }
- list($offset, $calledClass, $argsOverride) = end(State::$items);
- return $argsOverride;
-}
-
-function all()
-{
- $backtrace = debug_backtrace();
- return array_slice($backtrace, count($backtrace) - topOffset());
-}
-
-function allCalledClasses()
-{
- return array_map(function($item) {
- list($offset, $calledClass) = $item;
- return $calledClass;
- }, State::$items);
-}
-
-class State
-{
- static $items = [];
-}
diff --git a/wordpress-dev/vendor/antecedent/patchwork/src/Utils.php b/wordpress-dev/vendor/antecedent/patchwork/src/Utils.php
deleted file mode 100644
index 1d92dfb3..00000000
--- a/wordpress-dev/vendor/antecedent/patchwork/src/Utils.php
+++ /dev/null
@@ -1,388 +0,0 @@
-
- * @copyright 2010-2018 Ignas Rudaitis
- * @license http://www.opensource.org/licenses/mit-license.html
- */
-namespace Patchwork\Utils;
-
-use Patchwork\Config;
-use Patchwork\CallRerouting;
-use Patchwork\CodeManipulation;
-
-const ALIASING_CODE = '
- namespace %s;
- function %s() {
- return call_user_func_array("%s", func_get_args());
- }
-';
-
-function clearOpcodeCaches()
-{
- if (function_exists('opcache_reset')) {
- opcache_reset();
- }
- if (ini_get('wincache.ocenabled')) {
- wincache_refresh_if_changed();
- }
- if (ini_get('apc.enabled') && function_exists('apc_clear_cache')) {
- apc_clear_cache();
- }
-}
-
-/**
- * @deprecated 2.2.0
- */
-function generatorsSupported()
-{
- return version_compare(PHP_VERSION, "5.5", ">=");
-}
-
-/**
- * @deprecated 2.2.0
- */
-function runningOnHHVM()
-{
- return defined("HHVM_VERSION");
-}
-
-function condense($string)
-{
- return preg_replace('/\s+/', ' ', $string);
-}
-
-function indexOfFirstGreaterThan(array $array, $value)
-{
- $low = 0;
- $high = count($array) - 1;
- if (empty($array) || $array[$high] <= $value) {
- return -1;
- }
- while ($low < $high) {
- $mid = (int)(($low + $high) / 2);
- if ($array[$mid] <= $value) {
- $low = $mid + 1;
- } else {
- $high = $mid;
- }
- }
- return $low;
-}
-
-function indexOfLastNotGreaterThan(array $array, $value)
-{
- if (empty($array)) {
- return -1;
- }
- $result = indexOfFirstGreaterThan($array, $value);
- if ($result === -1) {
- $result = count($array) - 1;
- }
- while ($array[$result] > $value) {
- $result--;
- }
- return $result;
-}
-
-function firstGreaterThan(array $array, $value, $default = INF)
-{
- $index = indexOfFirstGreaterThan($array, $value);
- return ($index !== -1) ? $array[$index] : $default;
-}
-
-function lastNotGreaterThan(array $array, $value, $default = INF)
-{
- $index = indexOfLastNotGreaterThan($array, $value);
- return ($index !== -1) ? $array[$index] : $default;
-}
-
-function allWithinRange(array $array, $low, $high)
-{
- $low--;
- $high++;
- $index = indexOfFirstGreaterThan($array, $low);
- if ($index === -1) {
- return [];
- }
- $result = [];
- while ($index < count($array) && $array[$index] < $high) {
- $result[] = $array[$index];
- $index++;
- }
- return $result;
-}
-
-function interpretCallable($callback)
-{
- if (is_object($callback)) {
- return interpretCallable([$callback, "__invoke"]);
- }
- if (is_array($callback)) {
- list($class, $method) = $callback;
- $instance = null;
- if (is_object($class)) {
- $instance = $class;
- $class = get_class($class);
- }
- $class = isset($class) ? ltrim($class, "\\") : '';
- return [$class, $method, $instance];
- }
- if (substr($callback, 0, 4) === 'new ') {
- return [ltrim(substr($callback, 4)), 'new', null];
- }
- $callback = ltrim($callback, "\\");
- if (strpos($callback, "::")) {
- list($class, $method) = explode("::", $callback);
- return [$class, $method, null];
- }
- return [null, $callback, null];
-}
-
-function callableDefined($callable, $shouldAutoload = false)
-{
- list($class, $method, $instance) = interpretCallable($callable);
- if ($instance !== null) {
- return true;
- }
- if (isset($class)) {
- return classOrTraitExists($class, $shouldAutoload) &&
- (method_exists($class, $method) || $method === 'new');
- }
- return function_exists($method);
-}
-
-function classOrTraitExists($classOrTrait, $shouldAutoload = true)
-{
- return class_exists($classOrTrait, $shouldAutoload)
- || trait_exists($classOrTrait, $shouldAutoload);
-}
-
-function append(&$array, $value)
-{
- $array[] = $value;
- end($array);
- return key($array);
-}
-
-function appendUnder(&$array, $path, $value)
-{
- foreach ((array) $path as $key) {
- if (!isset($array[$key])) {
- $array[$key] = [];
- }
- $array = &$array[$key];
- }
- return append($array, $value);
-}
-
-function access($array, $path, $default = null)
-{
- foreach ((array) $path as $key) {
- if (!isset($array[$key])) {
- return $default;
- }
- $array = $array[$key];
- }
- return $array;
-}
-
-function normalizePath($path)
-{
- return rtrim(strtr($path, "\\", "/"), "/");
-}
-
-function reflectCallable($callback)
-{
- if ($callback instanceof \Closure) {
- return new \ReflectionFunction($callback);
- }
- list($class, $method) = interpretCallable($callback);
- if (isset($class)) {
- return new \ReflectionMethod($class, $method);
- }
- return new \ReflectionFunction($method);
-}
-
-function callableToString($callback)
-{
- list($class, $method) = interpretCallable($callback);
- if (isset($class)) {
- return $class . "::" . $method;
- }
- return $method;
-}
-
-function alias($namespace, array $mapping)
-{
- foreach ($mapping as $original => $aliases) {
- $original = ltrim(str_replace('\\', '\\\\', $namespace) . '\\\\' . $original, '\\');
- foreach ((array) $aliases as $alias) {
- eval(sprintf(ALIASING_CODE, $namespace, $alias, $original));
- }
- }
-}
-
-function getUserDefinedCallables()
-{
- return array_merge(get_defined_functions()['user'], getUserDefinedMethods());
-}
-
-function getRedefinableCallables()
-{
- return array_merge(getUserDefinedCallables(), Config\getRedefinableInternals());
-}
-
-function getUserDefinedMethods()
-{
- static $result = [];
- static $classCount = 0;
- static $traitCount = 0;
- $classes = getUserDefinedClasses();
- $traits = getUserDefinedTraits();
- $newClasses = array_slice($classes, $classCount);
- $newTraits = array_slice($traits, $traitCount);
- foreach (array_merge($newClasses, $newTraits) as $newClass) {
- foreach (get_class_methods($newClass) as $method) {
- $result[] = $newClass . '::' . $method;
- }
- }
- $classCount = count($classes);
- $traitCount = count($traits);
- return $result;
-}
-
-function getUserDefinedClasses()
-{
- static $classCutoff;
- $classes = get_declared_classes();
- if (!isset($classCutoff)) {
- $classCutoff = count($classes);
- for ($i = 0; $i < count($classes); $i++) {
- if ((new \ReflectionClass($classes[$i]))->isUserDefined()) {
- $classCutoff = $i;
- break;
- }
- }
- }
- return array_slice($classes, $classCutoff);
-}
-
-function getUserDefinedTraits()
-{
- static $traitCutoff;
- $traits = get_declared_traits();
- if (!isset($traitCutoff)) {
- $traitCutoff = count($traits);
- for ($i = 0; $i < count($traits); $i++) {
- $methods = get_class_methods($traits[$i]);
- if (empty($methods)) {
- continue;
- }
- list($first) = $methods;
- if ((new \ReflectionMethod($traits[$i], $first))->isUserDefined()) {
- $traitCutoff = $i;
- break;
- }
- }
- }
- return array_slice($traits, $traitCutoff);
-}
-
-function matchWildcard($wildcard, array $subjects)
-{
- $table = ['*' => '.*', '{' => '(', '}' => ')', ' ' => '', '\\' => '\\\\'];
- $pattern = '/' . strtr($wildcard, $table) . '/i';
- return preg_grep($pattern, $subjects);
-}
-
-function wildcardMatches($wildcard, $subject)
-{
- return matchWildcard($wildcard, [$subject]) == [$subject];
-}
-
-function isOwnName($name)
-{
- return stripos((string) $name, 'Patchwork\\') === 0
- && stripos((string) $name, CallRerouting\INTERNAL_REDEFINITION_NAMESPACE . '\\') !== 0;
-}
-
-function isForeignName($name)
-{
- return !isOwnName($name);
-}
-
-function markMissedCallables()
-{
- State::$missedCallables = array_map('strtolower', getUserDefinedCallables());
-}
-
-function getMissedCallables()
-{
- return State::$missedCallables;
-}
-
-function callableWasMissed($name)
-{
- return in_array(strtolower($name), getMissedCallables());
-}
-
-function endsWith($haystack, $needle)
-{
- if (strlen($haystack) === strlen($needle)) {
- return $haystack === $needle;
- }
- if (strlen($haystack) < strlen($needle)) {
- return false;
- }
- return substr($haystack, -strlen($needle)) === $needle;
-}
-
-function wasRunAsConsoleApp()
-{
- global $argv;
- return isset($argv) && (
- endsWith($argv[0], 'patchwork.phar') || endsWith($argv[0], 'Patchwork.php')
- );
-}
-
-function getParameterAndArgumentLists(?\ReflectionMethod $reflection = null)
-{
- $parameters = [];
- $arguments = [];
- if ($reflection) {
- foreach ($reflection->getParameters() as $p) {
- $parameter = '$' . $p->name;
- if ($p->isOptional()) {
- try {
- $value = var_export($p->getDefaultValue(), true);
- } catch (\ReflectionException $e) {
- $value = var_export(CallRerouting\INSTANTIATOR_DEFAULT_ARGUMENT, true);
- }
- $parameter .= ' = ' . $value;
- }
- $parameters[] = $parameter;
- $arguments[] = '$' . $p->name;
- }
- }
- return [join(', ' , $parameters), join(', ', $arguments)];
-}
-
-function args()
-{
- return func_get_args();
-}
-
-function tokenize($string)
-{
- if (defined('TOKEN_PARSE')) {
- return token_get_all($string, TOKEN_PARSE);
- }
- return token_get_all($string);
-}
-
-class State
-{
- static $missedCallables = [];
-}
diff --git a/wordpress-dev/vendor/autoload.php b/wordpress-dev/vendor/autoload.php
deleted file mode 100644
index 6de00a68..00000000
--- a/wordpress-dev/vendor/autoload.php
+++ /dev/null
@@ -1,25 +0,0 @@
-realpath = realpath($opened_path) ?: $opened_path;
- $opened_path = $this->realpath;
- $this->handle = fopen($this->realpath, $mode);
- $this->position = 0;
-
- return (bool) $this->handle;
- }
-
- public function stream_read($count)
- {
- $data = fread($this->handle, $count);
-
- if ($this->position === 0) {
- $data = preg_replace('{^#!.*\r?\n}', '', $data);
- }
-
- $this->position += strlen($data);
-
- return $data;
- }
-
- public function stream_cast($castAs)
- {
- return $this->handle;
- }
-
- public function stream_close()
- {
- fclose($this->handle);
- }
-
- public function stream_lock($operation)
- {
- return $operation ? flock($this->handle, $operation) : true;
- }
-
- public function stream_seek($offset, $whence)
- {
- if (0 === fseek($this->handle, $offset, $whence)) {
- $this->position = ftell($this->handle);
- return true;
- }
-
- return false;
- }
-
- public function stream_tell()
- {
- return $this->position;
- }
-
- public function stream_eof()
- {
- return feof($this->handle);
- }
-
- public function stream_stat()
- {
- return array();
- }
-
- public function stream_set_option($option, $arg1, $arg2)
- {
- return true;
- }
-
- public function url_stat($path, $flags)
- {
- $path = substr($path, 17);
- if (file_exists($path)) {
- return stat($path);
- }
-
- return false;
- }
- }
- }
-
- if (
- (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
- || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
- ) {
- return include("phpvfscomposer://" . __DIR__ . '/..'.'/nikic/php-parser/bin/php-parse');
- }
-}
-
-return include __DIR__ . '/..'.'/nikic/php-parser/bin/php-parse';
diff --git a/wordpress-dev/vendor/bin/phpunit b/wordpress-dev/vendor/bin/phpunit
deleted file mode 100755
index b5b530a8..00000000
--- a/wordpress-dev/vendor/bin/phpunit
+++ /dev/null
@@ -1,122 +0,0 @@
-#!/usr/bin/env php
-realpath = realpath($opened_path) ?: $opened_path;
- $opened_path = 'phpvfscomposer://'.$this->realpath;
- $this->handle = fopen($this->realpath, $mode);
- $this->position = 0;
-
- return (bool) $this->handle;
- }
-
- public function stream_read($count)
- {
- $data = fread($this->handle, $count);
-
- if ($this->position === 0) {
- $data = preg_replace('{^#!.*\r?\n}', '', $data);
- }
- $data = str_replace('__DIR__', var_export(dirname($this->realpath), true), $data);
- $data = str_replace('__FILE__', var_export($this->realpath, true), $data);
-
- $this->position += strlen($data);
-
- return $data;
- }
-
- public function stream_cast($castAs)
- {
- return $this->handle;
- }
-
- public function stream_close()
- {
- fclose($this->handle);
- }
-
- public function stream_lock($operation)
- {
- return $operation ? flock($this->handle, $operation) : true;
- }
-
- public function stream_seek($offset, $whence)
- {
- if (0 === fseek($this->handle, $offset, $whence)) {
- $this->position = ftell($this->handle);
- return true;
- }
-
- return false;
- }
-
- public function stream_tell()
- {
- return $this->position;
- }
-
- public function stream_eof()
- {
- return feof($this->handle);
- }
-
- public function stream_stat()
- {
- return array();
- }
-
- public function stream_set_option($option, $arg1, $arg2)
- {
- return true;
- }
-
- public function url_stat($path, $flags)
- {
- $path = substr($path, 17);
- if (file_exists($path)) {
- return stat($path);
- }
-
- return false;
- }
- }
- }
-
- if (
- (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
- || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
- ) {
- return include("phpvfscomposer://" . __DIR__ . '/..'.'/phpunit/phpunit/phpunit');
- }
-}
-
-return include __DIR__ . '/..'.'/phpunit/phpunit/phpunit';
diff --git a/wordpress-dev/vendor/brain/monkey/.gitattributes b/wordpress-dev/vendor/brain/monkey/.gitattributes
deleted file mode 100644
index 07eb7762..00000000
--- a/wordpress-dev/vendor/brain/monkey/.gitattributes
+++ /dev/null
@@ -1,5 +0,0 @@
-# Auto detect text files and perform LF normalization
-text eol=lf
-
-tests/ export-ignore
-.travis.yml export-ignore
diff --git a/wordpress-dev/vendor/brain/monkey/.gitbook.yaml b/wordpress-dev/vendor/brain/monkey/.gitbook.yaml
deleted file mode 100644
index a9155da1..00000000
--- a/wordpress-dev/vendor/brain/monkey/.gitbook.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-root: ./docs/
-
-structure:
- readme: what-and-why.md
- summary: summary.md
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/.github/dependabot.yml b/wordpress-dev/vendor/brain/monkey/.github/dependabot.yml
deleted file mode 100644
index d727b17c..00000000
--- a/wordpress-dev/vendor/brain/monkey/.github/dependabot.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-# Dependabot configuration.
-#
-# Please see the documentation for all configuration options:
-# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
-
-version: 2
-updates:
- - package-ecosystem: "github-actions"
- directory: "/"
- schedule:
- interval: "weekly"
- open-pull-requests-limit: 5
- commit-message:
- prefix: "GH Actions:"
diff --git a/wordpress-dev/vendor/brain/monkey/.github/workflows/php-qa.yml b/wordpress-dev/vendor/brain/monkey/.github/workflows/php-qa.yml
deleted file mode 100644
index f559f70d..00000000
--- a/wordpress-dev/vendor/brain/monkey/.github/workflows/php-qa.yml
+++ /dev/null
@@ -1,84 +0,0 @@
-name: PHP Quality Assurance
-on:
- push:
- # Allow manually triggering the workflow.
- workflow_dispatch:
-
-# Cancels all previous workflow runs for the same branch that have not yet completed.
-concurrency:
- # The concurrency group contains the workflow name and the branch name.
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
-
-jobs:
- qa:
- runs-on: ubuntu-latest
- if: "!contains(github.event.head_commit.message, 'ci skip')"
- strategy:
- fail-fast: true
- matrix:
- php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
- dependency-versions: ['lowest', 'highest']
-
- include:
- - php-versions: '8.4'
- dependency-versions: 'highest'
-
- continue-on-error: ${{ matrix.php-versions == '8.4' }}
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup PHP
- uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ matrix.php-versions }}
- ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
- coverage: ${{ ( matrix.php-versions == '7.4' && 'xdebug' ) || 'none' }}
- tools: parallel-lint
- env:
- fail-fast: true
-
- - name: Check syntax error in sources
- if: ${{ matrix.dependency-versions == 'highest' }}
- run: parallel-lint ./src/ ./tests/
-
- - name: Install dependencies - normal
- if: ${{ matrix.php-versions != '8.4' }}
- uses: "ramsey/composer-install@v3"
- with:
- dependency-versions: ${{ matrix.dependency-versions }}
- # Bust the cache at least once a month - output format: YYYY-MM.
- custom-cache-suffix: $(date -u "+%Y-%m")
-
- - name: Install dependencies - ignore-platform-reqs
- if: ${{ matrix.php-versions == '8.4' }}
- uses: "ramsey/composer-install@v3"
- with:
- dependency-versions: ${{ matrix.dependency-versions }}
- composer-options: "--ignore-platform-reqs"
- custom-cache-suffix: $(date -u "+%Y-%m")
-
- - name: Check cross-version PHP compatibility
- if: ${{ matrix.php-versions == '7.4' && matrix.dependency-versions == 'highest' }} # results is same across versions, do it once
- run: composer phpcompat
-
- - name: Migrate test configuration (>= 7.3)
- if: ${{ matrix.php-versions >= 7.3 && matrix.dependency-versions == 'highest' }}
- run: ./vendor/bin/phpunit --migrate-configuration
-
- - name: Run unit tests (without code coverage)
- if: ${{ matrix.php-versions != '7.4' || matrix.dependency-versions != 'highest' }}
- run: ./vendor/bin/phpunit
-
- - name: Run unit tests with code coverage
- if: ${{ matrix.php-versions == '7.4' && matrix.dependency-versions == 'highest' }}
- run: ./vendor/bin/phpunit --coverage-clover=coverage.xml
-
- - name: Update codecov.io
- uses: codecov/codecov-action@v4
- if: ${{ matrix.php-versions == '7.4' && matrix.dependency-versions == 'highest' }} # upload coverage once is enough
- env:
- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- with:
- file: ./coverage.xml
diff --git a/wordpress-dev/vendor/brain/monkey/.gitignore b/wordpress-dev/vendor/brain/monkey/.gitignore
deleted file mode 100644
index 1ad0c2b7..00000000
--- a/wordpress-dev/vendor/brain/monkey/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-vendor/
-/composer.lock
-/phpunit.xml
-website/
-couscous-theme/
-couscous.*
-/.phpunit.result.cache
diff --git a/wordpress-dev/vendor/brain/monkey/LICENSE b/wordpress-dev/vendor/brain/monkey/LICENSE
deleted file mode 100644
index 48ba0d9d..00000000
--- a/wordpress-dev/vendor/brain/monkey/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2017 Giuseppe Mazzapica
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/README.md b/wordpress-dev/vendor/brain/monkey/README.md
deleted file mode 100644
index d64cfed3..00000000
--- a/wordpress-dev/vendor/brain/monkey/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# README
-
-## Brain Monkey
-
-[](https://github.com/Brain-WP/BrainMonkey/actions?query=workflow%3A%22PHP+Quality+Assurance%22)
-[](https://codecov.io/gh/Brain-WP/BrainMonkey)
-
-Brain Monkey is a tests utility for PHP.
-
-It provides **two set of helpers**:
-
-* the first are framework-agnostic tools that allow to mock \(or _monkey patch_\) and to test behavior of any **PHP function**
-* the second are **specific to WordPress** and make unit testing of WordPress extensions a no-brainer.
-
-## Requirements
-
-* PHP 5.6+
-* [Composer](https://getcomposer.org/) to install
-
-Via Composer following packages are required:
-
-* [mockery/mockery](https://packagist.org/packages/mockery/mockery) version 1 \(BSD-3-Clause\)
-* [antecedent/patchwork](https://packagist.org/packages/antecedent/patchwork) version 2 \(MIT\)
-
-When installed for development, following packages are also required:
-
-* [phpunit/phpunit](https://packagist.org/packages/phpunit/phpunit) version 5.7 \(BSD-3-Clause\)
-
-## License
-
-Brain Monkey is open source and released under MIT license. See LICENSE file for more info.
-
-## Question? Issues?
-
-Brain Monkey is hosted on GitHub. Feel free to open issues there for suggestions, questions and real issues.
-
-## Who's Behind
-
-I'm Giuseppe, I deal with PHP since 2005. For questions, rants or chat ping me on Twitter \([@gmazzap](https://twitter.com/gmazzap)\) or on ["The Loop"](https://chat.stackexchange.com/rooms/6/the-loop) \(Stack Exchange\) chat.
-
-Well, it's possible I'll ignore rants.
-
diff --git a/wordpress-dev/vendor/brain/monkey/composer.json b/wordpress-dev/vendor/brain/monkey/composer.json
deleted file mode 100644
index 90c3f6b2..00000000
--- a/wordpress-dev/vendor/brain/monkey/composer.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "name": "brain/monkey",
- "description": "Mocking utility for PHP functions and WordPress plugin API",
- "keywords": [
- "testing",
- "test",
- "mockery",
- "patchwork",
- "mock",
- "mock functions",
- "runkit",
- "redefinition",
- "monkey patching",
- "interception"
- ],
- "authors": [
- {
- "name": "Giuseppe Mazzapica",
- "email": "giuseppe.mazzapica@gmail.com",
- "homepage": "https://gmazzap.me",
- "role": "Developer"
- }
- ],
- "support": {
- "issues": "https://github.com/Brain-WP/BrainMonkey/issues",
- "source": "https://github.com/Brain-WP/BrainMonkey"
- },
- "license": "MIT",
- "require": {
- "php": ">=5.6.0",
- "mockery/mockery": "^1.3.5 || ^1.4.4",
- "antecedent/patchwork": "^2.1.17"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7.26 || ^6.0 || ^7.0 || >=8.0 <8.5.12 || ^8.5.14 || ^9.0",
- "phpcompatibility/php-compatibility": "^9.3.0",
- "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1"
- },
- "autoload": {
- "psr-4": {
- "Brain\\Monkey\\": "src/"
- },
- "files": [
- "inc/api.php"
- ]
- },
- "autoload-dev": {
- "files": [
- "vendor/antecedent/patchwork/Patchwork.php"
- ],
- "psr-4": {
- "Brain\\Monkey\\Tests\\": "tests/src/",
- "Brain\\Monkey\\Tests\\Unit\\": "tests/cases/unit/",
- "Brain\\Monkey\\Tests\\Functional\\": "tests/cases/functional/"
- }
- },
- "minimum-stability": "dev",
- "prefer-stable": true,
- "config": {
- "optimize-autoloader": true,
- "allow-plugins": {
- "dealerdirect/phpcodesniffer-composer-installer": true
- }
- },
- "extra": {
- "branch-alias": {
- "dev-version/1": "1.x-dev",
- "dev-master": "2.x-dev"
- }
- },
- "scripts" : {
- "phpcompat": [
- "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs -ps . --standard=PHPCompatibility --ignore=*/vendor/* --extensions=php --basepath=./ --runtime-set testVersion 5.6-"
- ]
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/function-stubs.md b/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/function-stubs.md
deleted file mode 100644
index 990843b1..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/function-stubs.md
+++ /dev/null
@@ -1,181 +0,0 @@
-# Bulk patching with `stubs()`
-
-`when()` and its related functions are quite simple and straightforward.
-
-However, it can be quite verbose when multiple functions needs to be patched.
-
-For this reason, version 2.1 introduced a new API function to define multiple functions in bulk: `stubs()`
-
-### `stubs()`
-
-`Functions\stubs()` accepts an array of functions to be defined.
-
-The first way to use it is to pass function names as array item _keys_ and the wanted return values as array _values_:
-
-```php
-Functions\stubs(
- [
- 'is_user_logged_in' => true,
- 'current_user_can' => false,
- ]
-);
-```
-
-There are two special cases:
-
-* when the array item value is a `callable`, the function given as array item key is _aliased_ to the given callback instead of returning the callback itself;
-* when the array item value is `null`, the function given as array item key will return the first argument received, just like `when( $function_name )->justReturnArg()` was used for it
-
-```php
-Functions\stubs(
- [
- 'is_user_logged_in' => true, // will return `true` as provided
- 'wp_get_current_user' => function () { // will return the WP_User mock
- return \Mockery::mock(\WP_User::class);
- },
- '__' => null, // will return the 1st argument received
- ]
-);
-```
-
-Another way to use `stubs`, useful to stub many function with same return value, is to pass to a non-associative array of function names as first argument, and the wanted return value for all of them as second argument.
-
-For example, the snippet below will create a stub that returns `true` for all the given functions:
-
-```php
-Functions\stubs(
- [
- 'is_user_logged_in',
- 'current_user_can',
- 'is_multisite',
- 'is_admin',
- ],
- true
-);
-```
-
-Please note that the default value for the second argument, being it optional, is `null`, and because using `null` as value means _"return first received argument"_ it is possible to stub many functions that have to return first received argument, by passing their names as first argument to `stubs()` \(and no second argument\), like this:
-
-```php
-Functions\stubs(
- [
- 'esc_attr',
- 'esc_html',
- '__',
- '_x',
- 'esc_attr__',
- 'esc_html__',
- ]
-);
-```
-
-\(Even if there's a simpler way to stub escaping and translation WP functions, more on this below\).
-
-It worth noting that the two ways of using `stubs()` can be mixed together, for example like this:
-
-```php
-Functions\stubs(
- [
- // will both return 1st argument received, because `stubs` 2nd param defaults to `null`
- 'esc_attr',
- 'esc_html',
-
- // will all return what is given as array item value
- 'is_user_logged_in' => true,
- 'current_user_can' => false,
- 'get_current_user_id' => 1,
- ]
-);
-```
-
-### Pre-defined stubs for escaping functions
-
-To stub WordPress escaping functions is a very common usage for `Functions\stubs`.
-
-This is why, since version 2.3, Brain Monkey introduced a new API function:
-
-* **`Functions\stubEscapeFunctions()`**
-
-When called, it will create a stub for each of the following functions:
-
-* `esc_js()`
-* `esc_sql()`
-* `esc_attr()`
-* `esc_html()`
-* `esc_textarea()`
-* `esc_url()`
-* `esc_url_raw()`
-* `esc_xml()` \(since 2.6\)
-
-By calling `Functions\stubEscapeFunctions()`, for _all_ of the functions listed above a stub will be created that will do some very basic escaping on the received first argument before returning it.
-
-It will _not_ be the exact same escape mechanism that WordPress would apply, but "similar enough" for unit tests purpose and could still be helpful to discover some bugs.
-
-### Pre-defined stubs for translation functions
-
-Another common usage for `Functions\stubs`, since its introduction, has been to stub translation functions.
-
-Since version 2.3, this has became much easier thanks to the introduction of a new API function:
-
-* **`Functions\stubTranslationFunctions()`**
-
-When called, it will create a stub for _all_ the following functions:
-
-* `__()`
-* `_e()`
-* `_ex()`
-* `_x()`
-* `_n()` \(since 2.6\)
-* `_nx()` \(since 2.6\)
-* `translate()`
-* `esc_html__()`
-* `esc_html_x()`
-* `esc_attr__()`
-* `esc_attr_x()`
-* `esc_html_e()`
-* `esc_attr_e()`
-* `_n_noop()` \(since 2.7\)
-* `_nx_noop()` \(since 2.7\)
-* `translate_nooped_plural()` \(since 2.7\)
-
-The created stub will not attempt any translation, but will return \(or echo\) the first received argument.
-
-Only for functions that both translate and escape \(`esc_html__()`, `esc_html_x()`...\) the same escaping mechanism used by the pre-defined escaping functions stubs \(see above\) is applied before returning first received argument.
-
-Please note how `Functions\stubTranslationFunctions()` creates stubs for functions that _echo_ translated text, something not easily doable with `Functions\stubs()` alone.
-
-### Gotcha for `Functions\stubs`
-
-#### Functions that returns null
-
-When using `stubs()`, passing `null` as the "value" of the function to stub, the return value of the stub will **not** be `null`, but the first received value.
-
-To use `stubs()` to stub functions that return `null` it is possible to do something like this:
-
-```php
-Functions\stubs( [ 'function_that_returns_null' => '__return_null' ] );
-```
-
-It works because `__return_null` is a WP function that Brain Monkey also defines since version 2.0.
-
-#### Functions that returns callbacks
-
-When using `stubs`, passing a `callable` as the "value" of the function to stub, the created stub will be an _alias_ of the given callable, will **not** return it.
-
-If one want to use `stubs` to stub a function that returns a callable, a way to do it would be something like this:
-
-```php
-Functions\stubs(
- [
- 'function_that_returns_a_callback' => function() {
- return 'the_expected_returned_callback';
- }
- ]
-);
-```
-
-but it is probably simpler to use the "usual" `when` + `justReturn`:
-
-```php
-when('function_that_returns_a_callback')->justReturn('the_expected_returned_callback')
-```
diff --git a/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/functions-expect.md b/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/functions-expect.md
deleted file mode 100644
index 4aa06004..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/functions-expect.md
+++ /dev/null
@@ -1,133 +0,0 @@
-# Testing functions with expect\(\)
-
-Often, in tests, what we need is not only to enforce a function returned value \(what `Functions\when()` allows to do\), but to test function behavior based on **expectations**.
-
-Mockery has a very powerful, and human readable Domain Specific Language \(DSL\) that allows to set expectations on how object methods should behave, e.g. validate arguments they should receive, how many times they are called, and so on.
-
-Brain Monkey brings that power to function testing. The entry-point is the `Functions\expect()` function.
-
-It receives a function name and returns a Mockery expectation object with all its power.
-
-Below there are just several examples, for the full story about Mockery expectations see its [documentation](http://docs.mockery.io/en/latest/reference/index.html).
-
-Only note that in functions testing the `shouldReceive` Mockery method makes **no sense**, so don't use it \(an exception will be thrown if you do that\).
-
-## Expectations on times a function is called
-
-```php
-Functions\expect('paganini')->once();
-
-Functions\expect('tween')->twice();
-
-Functions\expect('who_knows')->zeroOrMoreTimes();
-
-Functions\expect('i_should_run')->atLeast()->once();
-
-Functions\expect('i_have_a_max')->atMost()->twice();
-
-Functions\expect('poor_me')->never();
-
-Functions\expect('pretty_precise')->times(3);
-
-Functions\expect('i_have_max_and_min')->between(2, 4);
-```
-
-There is no need to explain how it works: Mockery DSL reads like plain English.
-
-Of course, expectation on the times a function should run can be combined with arguments expectation.
-
-## Expectations on received arguments
-
-Below a few examples, for the full story see [Mockery docs](http://docs.mockery.io/en/latest/reference/argument_validation.html).
-
-```php
-// allow anything
-Functions\expect('function_name')
- ->once()
- ->withAnyArgs();
-
-// allow nothing
-Functions\expect('function_name')
- ->once()
- ->withNoArgs();
-
-// validate specific arguments
-Functions\expect('function_name')
- ->once()
- ->with('arg_1', 'arg2');
-
-// validate specific argument types
-Functions\expect('function_name')
- ->times(3)
- ->with(Mockery::type('resource'), Mockery::type('int'));
-
-// validate anything in specific places
-Functions\expect('function_name')
- ->zeroOrMoreTimes()
- ->with(Mockery::any());
-
-// validate a set of given arguments
-Functions::expect('function_name')
- ->once()
- ->with(Mockery::anyOf('a', 'b', 'c'));
-
-// regex validation
-Functions\expect('function_name')
- ->once()
- ->with('/^foo/');
-
-// excluding specific values
-Functions\expect('function_name')
- ->once()
- ->with(Mockery::not(2, 3));
-
-// dealing with array arguments
-Functions\expect('function_name')
- ->once()
- ->with(Mockery::hasKey('foo'), Mockery::contains('bar', 'baz'));
-```
-
-## Forcing behavior
-
-Excluding `shouldReceive`, all the Mockery expectation methods can be used with Brain Monkey, including `andReturn` or `andReturnUsing` used to enforce a function to return specific values during tests.
-
-In fact, `Functions\when()` do same thing for simple cases when no expectations are required.
-
-Again, just a few examples:
-
-```php
-// return a specific value
-Functions\expect('function_name')
- ->once()
- ->with('foo', 'bar')
- ->andReturn('Baz!');
-
-// return values in order
-Functions\expect('function_name')
- ->twice()
- ->andReturn('First time I run', 'Second time I run');
-
-// return values in order, alternative
-Functions\expect('function_name')
- ->twice()
- ->andReturnValues(['First time I run', 'Second time I run']);
-
-// return noting
-Functions::expect('function_name')
- ->twice()
- ->andReturnNull();
-
-// use a callback for returning a value
-Functions\expect('function_name')
- ->atLeast()
- ->once()
- ->andReturnUsing(function() {
- return 'I am an alias!';
- });
-
-// makes function throws an Exception (e.g. to test try statements)
-Functions\expect('function_name')
- ->once()
- ->andThrow('RuntimeException'); // Both exception names and object are supported
-```
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/functions-setup.md b/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/functions-setup.md
deleted file mode 100644
index 307d0324..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/functions-setup.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# Setup for functions testing
-
-## Testing framework agnostic
-
-Brain Monkey can be used with any testing framework.
-
-Examples in this page will use PHPUnit, but the concepts are applicable at any testing framework.
-
-## Warning
-
-Brain Monkey uses [Patchwork](http://patchwork2.org/) to redefine functions.
-
-Brain Monkey 2.\* requires Patchwork 2 which allows to re-define both userland and core functions, with some [limitations](http://patchwork2.org/limitations/).
-
-The main limitations that affects Brain Monkey are \(from Patchwork website\):
-
-* _Patchwork will fail on every attempt to redefine an internal function that is missing from the redefinable-internals array of your `patchwork.json`._
-* _Make sure that Patchwork is imported as early as possible, since any files imported earlier, including the one from which the importing takes place, will be missed by Patchwork's code preprocessor._
-
-## Setup tests
-
-After Brain Monkey is part of the project \(see _Getting Started / Installation_\), to be able to use its features two simple steps are needed before being able to use Brain Monkey in tests:
-
-1. be sure to require Composer autoload file _before_ running tests \(e.g. PHPUnit users will probably require it in their bootstrap file\).
-2. call the function `Brain\Monkey\tearDown()` after any test
-
-### PHPUnit example
-
-Let's take PHPUnit as example, the average test case class that uses Brain Monkey would be something like:
-
-```php
-use PHPUnit_Framework_TestCase;
-use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
-use Brain\Monkey;
-
-class MyTestCase extends PHPUnit_Framework_TestCase
-{
- // Adds Mockery expectations to the PHPUnit assertions count.
- use MockeryPHPUnitIntegration;
-
- protected function tearDown()
- {
- Monkey\tearDown();
- parent::tearDown();
- }
-}
-```
-
-After that for all test classes can extend this class instead of directly extending `PHPUnit_Framework_TestCase`.
-
-That's all. Again, I used PHPUnit for the example, but any testing framework can be used.
-
-For function mocking and testing there are two entry-point functions:
-
-* **`Functions\when()`**
-* **`Functions\expect()`**
-
-See dedicated documentation pages.
-
-## Namespaced functions
-
-All the code examples in this documentation make use of functions in global namespace.
-
-However, note that namespaced functions are supported as well, just be sure to pass the fully qualified name of the functions:
-
-```php
-Functions\expect('a_global_function');
-
-Functions\expect('My\\App\\awesome_function');
-```
-
-## Note for WordPressers
-
-Anything said in this page is fine for WordPress functions too, they are PHP functions, after all.
-
-However, Brain Monkey has specific features for WordPress, and there is a way to setup tests for **all** Brain Monkey features \(WordPress-specific and not\).
-
-**If you want to use Brain Monkey to test code wrote for WordPress, it is preferable to use the setup explained in the** _**"WordPress / Setup"**_ **section that** _**includes**_ **the setup needed to use Brain Monkey tools for functions.**
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/functions-when.md b/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/functions-when.md
deleted file mode 100644
index ec4d3402..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/functions-testing-tools/functions-when.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# Patching functions with when\(\)
-
-The first way Brain Monkey offers to monkey patch a function is `Functions\when()`.
-
-This function has to be used to **set a behavior** for functions.
-
-`when()` and 5 related methods are used to define functions \(if not defined yet\) and:
-
-* make them return a specific value
-* make them return one of the received arguments
-* make them echo a specific value
-* make them echo one of the received arguments
-* make them behave just like another callback
-
-For the sake of readability, in all the code samples below I'll assume that an `use` statement is in place:
-
-```php
-use Brain\Monkey\Functions;
-```
-
-Don't forget to add it in your code as well, or use the fully qualified class name.
-
-Also be sure to read the _PHP Functions / Setup_ section that explain how setup Brain Monkey for usage in tests.
-
-## `justReturn()`
-
-By using `when()` in combination with `justReturn()` you can make a \(maybe\) undefined function _just return_ a given value:
-
-```php
-Functions\when('a_undefined_function')->justReturn('Cool!');
-
-echo a_undefined_function(); // echoes "Cool!"
-```
-
-Without passing a value to `justReturn()` the target function will return nothing \(`null`\).
-
-## `returnArg()`
-
-This other `when`-related method is used to make the target function return one of the received arguments, by default the first.
-
-```php
-Functions\when('give_me_the_first')->returnArg(); // is the same of ->returnArg(1)
-Functions\when('i_want_the_second')->returnArg(2);
-Functions\when('and_the_third_for_me')->returnArg(3);
-
-echo give_me_the_first('A', 'B', 'C'); // echoes "A"
-echo i_want_the_second('A', 'B', 'C'); // echoes "B"
-echo and_the_third_for_me('A', 'B', 'C'); // echoes "C"
-```
-
-Note that if the target function does not receive the desired argument, `returnArg()` throws an exception:
-
-```php
-Functions\when('needs_the_third')->returnArg(3);
-
-// throws an exception because required 3rd argument, but received 2
-echo needs_the_third('A', 'B');
-```
-
-## `justEcho()`
-
-Similar to `justReturn()`, it makes the mocked function echo some value instead of returning it.
-
-```php
-Functions\when('a_undefined_function')->justEcho('Cool!');
-
-a_undefined_function(); // echoes "Cool!"
-```
-
-## `echoArg()`
-
-Similar to `returnArg()`, it makes the mocked function echo some received argument instead of returning it.
-
-```php
-Functions\when('echo_the_first')->echoArg(); // is the same of ->echoArg(1)
-Functions\when('echo_the_second')->echoArg(2);
-
-echo_the_first('A', 'B', 'C'); // echoes "A"
-echo_the_second('A', 'B', 'C'); // echoes "B"
-```
-
-## `alias()`
-
-The last of the when-related methods allows to make a function behave just like another callback. The replacing function can be anything that can be run: a core function or a custom one, a class method, a closure...
-
-```php
-Functions\when('duplicate')->alias(function($value) {
- return "Was ".$value.", now is ".($value * 2);
-});
-
-Functions\when('bigger')->alias('strtoupper');
-
-echo duplicate(1); // echoes "Was 1, now is 2"
-echo bigger('was lower'); // echoes "WAS LOWER"
-```
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/general/installation.md b/wordpress-dev/vendor/brain/monkey/docs/general/installation.md
deleted file mode 100644
index 18158c88..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/general/installation.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# Installation
-
-To install Brain Monkey you need:
-
-* PHP 5.6+
-* [Composer](https://getcomposer.org)
-
-Brain Monkey is available on Packagist, so the only thing you need to do is to add it as a dependency for your project.
-
-That can be done by running following command in your project folder:
-
-```text
-composer require brain/monkey:2.* --dev
-```
-
-As alternative you can directly edit your `composer.json` by adding:
-
-```javascript
-{
- "require-dev": {
- "brain/monkey": "~2.0.0"
- }
-}
-```
-
-I've used `require-dev` because, being a testing tool, Brain Monkey should **not** be included in production.
-
-Brain Monkey can work with any testing framework, so it doesn't require any of them.
-
-To run your tests you'll probably need to require a testing framework too, e.g. [PHPUnit](https://phpunit.de/) or [phpspec](https://www.phpspec.net/en/latest/).
-
-## Dependencies
-
-Brain Monkey needs 2 libraries to work:
-
-* [Mockery](http://docs.mockery.io/en/latest/) \(BSD-3-Clause\)
-* [Patchwork](http://patchwork2.org/) \(MIT\)
-
-They will be installed for you by Composer.
-
-When installed in development mode \(to test itself\), Brain Monkey also requires:
-
-* [PHPUnit](https://phpunit.de/) \(MIT\)
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/more/migrating-from-v1.md b/wordpress-dev/vendor/brain/monkey/docs/more/migrating-from-v1.md
deleted file mode 100644
index 6b269370..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/more/migrating-from-v1.md
+++ /dev/null
@@ -1,367 +0,0 @@
-# Migration from v1
-
-## \[Updated\] Patchwork Version
-
-Patchwork has been updated to version 2. This new version allows to redefine PHP core functions and not only custom defined functions. \(There are limitations, see [http://patchwork2.org/limitations/](http://patchwork2.org/limitations/)\).
-
-This new Patchwork version seems to also fix an annoying issue with undesired Patchwork cache.
-
-## \[Changed\] Setup Functions - BREAKING!
-
-On version 1 of Brain Monkey there where 4 static methods dedicated to setup:
-
-* `Brain\Monkey::setUp()` -> before each test that use only functions redefinition \(no WP features\)
-* `Brain\Monkey::tearDown()` -> after each test that use only functions redefinition \(no WP features\)
-* `Brain\Monkey::setUpWp()` -> before each test that use functions redefinition and WP features
-* `Brain\Monkey::tearDownWp()` -> after each test that use functions redefinition and WP features
-
-This has been simplified, in fact, **only two setup functions exists in Brain Monkey v2**:
-
-* `Brain\Monkey\setUp()` -> before each test that use functions redefinition and WP features
-* `Brain\Monkey\tearDown()` -> after each test, no matter if for functions redefinition or for also
-
- WP features
-
-Which means that for function redefinitions, only `Brain\Monkey\tearDown()` have to be called after each test, and nothing _before_ each test.
-
-To also use WP features, `Brain\Monkey\setUp()` have also to called before each test.
-
-## \[Changed\] New API - BREAKING!
-
-Big part of Brain Monkey is acting as a "bridge" between Mockery an Patchwork, that is, make Mockery DSL for expectations available for functions and WordPress hooks.
-
-To access the Mockery API, Brain Monkey v1 provided two different methods:
-
-1. using static methods on the `Brain\Monkey` class
-2. using static methods on one of the three feature-specific classes `Brain\Monkey\Functions`,
-
- `Brain\Monkey\WP\Actions` or `Brain\Monkey\WP\Filters`
-
-For example:
-
-```php
-// Brain Monkey v1 method one
-Brain\Monkey::functions::expect('some_function');
-Brain\Monkey::actions()->expectAdded('init');
-Brain\Monkey::filters()->expectApplied('the_title');
-
-// Brain Monkey v1 method two
-Brain\Monkey\Functions::expect('some_function');
-Brain\Monkey\WP\Actions::expectAdded('init');
-Brain\Monkey\WP\Filters::expectApplied('the_title');
-```
-
-In Brain Monkey v2 there's only one method, that makes use of **functions**:
-
-```php
-// Brain Monkey v2
-Brain\Monkey\Functions\expect('some_function');
-Brain\Monkey\Actions\expectAdded('init');
-Brain\Monkey\Filters\expectApplied('the_title');
-```
-
-### Renamed method for done actions
-
-For WordPress filters, there were in Brain Monkey v1 two methods:
-
-* `Filters::expectAdded()`
-* `Filters::expectApplied()`
-
-named after the WordPress functions `add_filter()` / `apply_filters()`
-
-But for actions there were:
-
-* `Actions::expectAdded()`
-* `Actions::expectFired()`
-
-`expectAdded()` pairs with `add_action()`, but `expectFired()` does not really pair with `do_action()`: this is why in Brain Monkey v2 **the method `expectFired()` has been replaced by the function `expectDone()`**.
-
-So, in version 2 there are total of 5 entry-point **functions** to Mockery API:
-
-* `Brain\Monkey\Functions\expect()`
-* `Brain\Monkey\Actions\expectAdded()`
-* `Brain\Monkey\Actions\expectDone()`
-* `Brain\Monkey\Filters\expectAdded()`
-* `Brain\Monkey\Filters\expectApplied()`
-
-## \[Changed\] Default Expectations Behavior - BREAKING!
-
-In Brain Monkey v1, expectation on the "times" an expected event happen was required.
-
-```php
-class MyClass {
-
- public function doSomething() {
- return true;
- }
-}
-
-
-class MyClassTest extends MyTestCase {
-
- // this test passes in Brain Monkey v1
- public function testSomething() {
- \Brain\Monkey\WP\Actions::expectAdded('init'); // this has pretty much no effect
- $class = new MyClass();
- self::assertTrue($class->doSomething());
- }
-}
-```
-
-This **test passed in Brain Monkey v1**, because even if `Actions::expectAdded()` was used, the test does not fail unless something like `Actions::expectAdded('init')->once()` was used, which made the test pass only if `add_action( 'init' )` was called once.
-
-The reason is that Mockery default behavior is to add a `->zeroOrMoreTimes()` as expectation on number of times a method is called, so when the expectation is called _zero times_, that's a valid outcome.
-
-This was somehow confusing \(because reading `expectAdded` one could _expect_ the test to fail if that thing did not happened\), and also made tests unnecessarily verbose.
-
-**Brain Monkey v2, set Mockery expectation default to `->atLeast()->once()`** so, for example, the test above fails in Brain Monkey v2 if `MyClass::doSomething()` does not call `add_action('init')` at least once.
-
-## \[Changed\] Closure String Representation - BREAKING!
-
-Brain Monkey allows to do some basic tests using `has_action()` / `has_filter()`, functions, to test if some portion of code have added some hooks.
-
-A "special" syntax, was already added in Brain Monkey v1 to permit the checking for hooks added using object instances as part of the hook callback, without having any reference to those objects.
-
-For example, assuming a function like:
-
-```php
-namespace A\Name\Space;
-
-function test() {
-
- add_action('example_one', [new SomeClass(), 'aMethod']);
-
- add_action('example_two', function(array $foo) { /* ... */ });
-}
-```
-
-could be tested with in Brain Monkey v1 with:
-
-```php
-// Brain Monkey v1:
-test();
-self::assertNotFalse(has_action('example_one', 'A\Name\Space\SomeClass->aMethod()')); // pass
-self::assertNotFalse(has_action('example_two', 'function()')); // pass
-```
-
-The syntax for string representation of callbacks including objects is unchanged in Brain Monkey v2, however, **the syntax for closures string representation has been changed to allow more fine grained control**.
-
-In fact, in Brain Monkey v1 _all_ the closures were represented as the string `"function()"`, in Brain Monkey v2 closure string representations also contain the parameters used in the closure signature:
-
-```php
-// Brain Monkey v2:
-test();
-self::assertNotFalse(has_action('example_one', 'A\Name\Space\SomeClass->aMethod()')); // pass
-self::assertNotFalse(has_action('example_two', 'function()')); // fail!
-self::assertNotFalse(has_action('example_two', 'function(array $foo)')); // pass!
-```
-
-The closure string representation _does_ take into account:
-
-* name of the parameters
-* parameters type hints \(works with PHP 7+ scalar type hints\)
-* variadic arguments
-* `static` closures VS normal closures
-
-_does not_ take into account:
-
-* PHP 7 return type declaration
-* parameters defaults
-* content of the closure
-
-For example:
-
-```php
-namespace A\Name\Space;
-
-$closure_1 = static function( array $foo, SomeClass $bar, int ...$ids ) : bool { /* */ }
-
-$closure_2 = function( array $foo, SomeClass $bar, array $ids = [] ) : bool { /* */ }
-
-// $closure_1 is represented as:
-"static function ( array $foo, A\Name\Space\SomeClass $bar, int ...$ids )";
-
-// $closure_2 is represented as:
-"function ( array $foo, A\Name\Space\SomeClass $bar, array $ids )";
-```
-
-Note how type-hints using classes always have fully qualified names in string representation.
-
-## \[Changed\] Relaxed `callable` check
-
-In Brain Monkey v1 methods and functions that accept a `callable` like, for example, second argument to `add_action()` / `add_filter()`, checked the received argument to be an actual callable PHP entity, using `is_callable`:
-
-```php
-// this fail in Brain Monkey v1 if `SomeClass` was not available
-// or if SomeClass::aMethod would not be a valid method
-add_action( 'foo', [ SomeClass::class, 'aMethod' ] );
-
-// this fail in Brain Monkey v1 if `Some\Name\Space\aFunction` is not available
-add_action( 'bar', 'Some\Name\Space\aFunction' );
-```
-
-For these reasons, it was often required to create a mock for unavailable classes or functions just to don't make Brain Monkey throw an exception, even if the mock was not used and not relevant for the test.
-
-Brain Monkey v2 is less strict on checking for `callable` and it accepts anything that _looks like_ a callable.
-
-Something like `[SomeClass::class, 'aMethod']` would be accepted even if `SomeClass` is not loaded at all, because _it looks like_ a callable. Same goes for `'Some\Name\Space\aFunction'`.
-
-However, something like `[SomeClass::class, 'a-Method']` or `[SomeClass::class, 'aMethod', 1]` or even `Some\Name\Space\a Function` will throw an exception because method and function names can't contain hyphens or spaces and when a callback is made of an array, it must have exactly two arguments.
-
-This more "relaxed" check allows to save creation of mocks that are not necessary for the logic of the test.
-
-It worth noting that when doing something like `[SomeClass::class, 'aMethod']` **if** the class `SomeClass` is available, Brain Monkey checks it to have an accessible method named `aMethod`, and raise an exception if not, but will not do any check if the class is not available.
-
-The same applies when object instances are used for callbacks, for example, using as callback argument `[$someObject, 'aMethod']`, the instance of `$someObject` is checked to have an accessible method named `aMethod`.
-
-## \[Fixed\] `apply_filters` Default Behavior
-
-The WordPress function `apply_filters()` is defined by Brain Monkey and it returns the first argument passed to it, just like WordPress:
-
-```php
-self::assertSame('Foo', apply_filters('a_filter', 'Foo', 'Bar')); // pass!
-```
-
-In Brain Monkey v1 this was true _unless_ some expectation was added to the applied filter:
-
-```php
-Brain\Monkey\WP\Filters::expectApplied('a_filter');
-
-self::assertSame('Foo', apply_filters('a_filter', 'Foo', 'Bar')); // fails in v1
-```
-
-**The test above fails in Brain Monkey v1**. The reason is that even if the expectation in first line is validated, it breaks the default `apply_filters` behavior, requiring the return value to be added to expectation to make the test pass again.
-
-For example, the following test used to pass in Brain Monkey v1:
-
-```php
-Brain\Monkey\WP\Filters::expectApplied('a_filter')->andReturn('Foo');
-
-self::assertSame('Foo', apply_filters('a_filter', 'Foo', 'Bar')); // pass
-```
-
-**In Brain Monkey v2 this is not necessary anymore.**
-
-Calling `expectApplied` on applied filters does **not** break the default behavior of `apply_filters` behavior, if no return expectations are added.
-
-The following test **passes in Brain Monkey v2**:
-
-```php
-Brain\Monkey\Filters\expectApplied('a_filter')->once()->with('Foo', 'Bar');
-
-self::assertSame('Foo', apply_filters('a_filter', 'Foo', 'Bar')); // pass in v2!
-```
-
-Please note that if any return expectation is added for a filter, return expectations must be added for all the set of arguments the filter might receive.
-
-For example:
-
-```php
-Brain\Monkey\Filters\expectApplied('a_filter')->once()->with('Foo')->andReturn('Foo!');
-Brain\Monkey\Filters\expectApplied('a_filter')->once()->with('Bar');
-
-self::assertSame('Foo!', apply_filters('a_filter', 'Foo')); // pass
-self::assertSame('Bar', apply_filters('a_filter', 'Bar')); // fail!
-```
-
-The second assertion fails because since we added a return expectation for the filter "'a_filter'" we need to add return expectation for \_all_ the possible arguments.
-
-This task is easier in Brain Monkey v2 thanks to the introduction of `andReturnFirstArg()` expectation method \(more on this below\).
-
-For example:
-
-```php
-Brain\Monkey\Filters\expectApplied('a_filter')->once()->with('Foo')->andReturn('Foo!');
-Brain\Monkey\Filters\expectApplied('a_filter')->zeroOrMoreTimes()->withAnyArgs()->andReturnFirstArg();
-
-self::assertSame('Foo', apply_filters('a_filter', 'Foo', 'Bar')); // pass
-self::assertSame('Bar', apply_filters('a_filter', 'Bar')); // pass!
-```
-
-`andReturnFirstArg()` used in combination with Mockery methods `zeroOrMoreTimes()->withAnyArgs()` allows to create a "catch all" behavior for filters when a return expectation has been added, without having to create specific expectations for each of the possible arguments a filter might receive.
-
-Of course, adding specific expectations for each of the possible arguments a filter might receive is still possible.
-
-## \[Added\] Utility Functions Stubs
-
-There are WordPress functions that are often used in WordPress plugins or themes that are pretty much _logicless_, but still they need to be mocked in tests if WordPress is not available.
-
-Brain Monkey v2 now ships stubs for those functions, so it is not necessary to mock them anymore, they are:
-
-* `__return_true`
-* `__return_false`
-* `__return_null`
-* `__return_empty_array`
-* `__return_empty_string`
-* `__return_zero`
-* `trailingslashit`
-* `untrailingslashit`
-
-Those functions do exactly what they are expected to do, even if WordPress is not loaded: some functions mocking is now saved.
-
-Of course, their behavior can still be mocked, e.g. to make a test fail on purpose.
-
-## \[Added\] Support for `doing_action()` and `doing_filter()`
-
-When adding expectation on returning value of filters, or when using `whenHappen` to respond to actions, inside the expectation callback, the function `current_filter()` in Brain Monkey v1 used to correctly resolve to the action / filter being executed.
-
-The functions `doing_action()` and `doing_filter()` didn't work: they were not provided at all with Brain Monkey v1 and required to be mocked "manually" .
-
-In Brain Monkey v2 those two functions are provided as well, and correctly return true or false when used inside the callbacks used to respond to hooks.
-
-## \[Added\] Method `andReturnFirstArg()`
-
-When adding expectations on returning value of applied filters or functions, it is now possible to use `andReturnFirstArg()` to make the Mockery expectations return first argument received.
-
-```php
-// Brain\Monkey v2:
-Brain\Monkey\Functions\expect('foo')->andReturnFirstArg();
-Brain\Monkey\Filters\expectApplied('the_title')->andReturnFirstArg();
-
-
-// Brain\Monkey v1:
-Brain\Monkey\Functions\expect('foo')->andReturnUsing(function($arg) {
- return $arg;
-});
-
-Brain\Monkey\Filters\expectApplied('the_title')->andReturnUsing(function($arg) {
- return $arg;
-});
-```
-
-## \[Added\] Method `andAlsoExpectIt()`
-
-In Mockery, when creating expectations for multiple methods of same class, the method `getMock()` allows to do it without leaving "fluent interface chain", for example:
-
-```php
-Mockery\mock(SomeClass::class)
- ->shouldReceive('exclamation')->with('Foo')->once()->andReturn('Foo!')
- ->getMock()
- ->shouldReceive('question')->with('Bar')->once()->andReturn('Bar?')
- ->getMock()
- ->shouldReceive('invert')->with('Baz')->once()->andReturn('zaB')
-```
-
-The method `getMock()` is **not** available for Brain Monkey expectations.
-
-For this reason has been introduced `andAlsoExpectIt()`:
-
-```php
-Brain\Monkey\Filters\expectApplied('some_filter')
- ->once()->with('Hello')->andReturn('Hello!')
- ->andAlsoExpectIt()
- ->atLeast()->twice()->with('Hi')->andReturn('Hi!')
- ->andAlsoExpectIt()
- ->zeroOrMoreTimes()->withAnyArgs()->andReturnFirstArg();
-```
-
-Of course, it also works in other kind of expectations, like for functions or for actions added or done.
-
-## \[Added\] New Exceptions Classes
-
-In Brain Monkey v1, when exceptions were thrown, PHP core exception classes were used, like `\RuntimeException` or `\InvalidArgumentException`, and so on.
-
-In Brain Monkey v2, different custom exceptions classes have been added, to make very easy to catch any error thrown by Brain Monkey.
-
-Now, in fact, every exception thrown by Brain Monkey is of a custom type, and there's a hierarchy of exceptions classes for a total of 16 exception classes, all inheriting \(one or more levels deep\) the "base" exception class that is `Brain\Monkey\Exception`.
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/summary.md b/wordpress-dev/vendor/brain/monkey/docs/summary.md
deleted file mode 100644
index 244f4470..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/summary.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# Table of contents
-
-* [Introduction](what-and-why.md)
-
-## General
-
-* [Installation](general/installation.md)
-
-## Functions testing tools
-
-* [Setup for functions testing](functions-testing-tools/functions-setup.md)
-* [Patching functions with when\(\)](functions-testing-tools/functions-when.md)
-* [Bulk patching with stubs\(\)](functions-testing-tools/function-stubs.md)
-* [Testing functions with expect\(\)](functions-testing-tools/functions-expect.md)
-
-## WordPress-specific tools
-
-* [Why bother](wordpress-specific-tools/wordpress-why-bother.md)
-* [WordPress testing tools](wordpress-specific-tools/wordpress-tools.md)
-* [Setup for WordPress testing](wordpress-specific-tools/wordpress-setup.md)
-* [Test added hooks](wordpress-specific-tools/wordpress-hooks-added.md)
-* [Test done hooks](wordpress-specific-tools/wordpress-hooks-done.md)
-
-## More
-
-* [Migration from v1](more/migrating-from-v1.md)
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/what-and-why.md b/wordpress-dev/vendor/brain/monkey/docs/what-and-why.md
deleted file mode 100644
index e0dfa8b3..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/what-and-why.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# Introduction
-
-## What's Brain Monkey
-
-Brain Monkey is a unit test utility for PHP.
-
-It comes with 2 group of features:
-
-* the first allow **mocking and testing any PHP function**. This part is a general tool and two times framework agnostic: can be used to test code that uses any frameworks \(or no framework\) and in combination with any testing framework.
-* the second group of features can be used with any testing framework as well, but is **specific to test WordPress code**.
-
- Who is interested in the first part can use only it, just like this second group of features does not exists.
-
-## Why Brain Monkey
-
-When unit tests are done in the right way, the SUT \(System Under Test\) must be tested in **isolation**.
-
-Long story short, it means that any _external_ code used in the SUT must be assumed as perfectly working.
-
-This is a key concept in unit tests.
-
-In PHP, to create "mock" and "stubs" for objects is a pretty easy task, framework like [PHPUnit](https://phpunit.de/manual/current/en/test-doubles.html) or [phpspec](https://www.phpspec.net/en/latest/manual/prophet-objects.html) have embedded features to do that, and libraries like [Mockery](https://github.com/padraic/mockery) make it even easier.
-
-But when _external_ code make use of **functions** things become harder, because PHP testing framework can't mock or monkey patch functions.
-
-This is where Brain Monkey comes into play: its aim is to bring that easiness to function testing.
-
-This involves:
-
-* define functions if not defined
-* allow to enforce function behavior
-* allow to set expectations on function execution
-
-Moreover, I have to admit that I coded Brain Monkey to test WordPress code \(that makes a large use of global functions\).
-
-This is the reason why Brain Monkey comes with a set of WordPress-specific tools, but the ability to monkey patch and test functions is independent from WordPress-specific tools and can be used to test any PHP code.
-
-### Under the hood
-
-Brain Monkey gets all its power from two great libraries: [**Mockery**](http://docs.mockery.io/) and [**Patchwork**](http://patchwork2.org/).
-
-What actually Brain Monkey does is to connect the _function redefinition_ feature of Patchwork with the powerful testing mechanism and DSL provided by Mockery, and thanks to that Brain Monkey has:
-
-* PHPUnit, PHPSpec or any other testing framework compatibility
-* powerful and succinct API with human readable syntax
-
-All the rest is joy.
-
-### PHP versions compatibility
-
-Currently, Brain Monkey supports PHP 5.6+.
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-hooks-added.md b/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-hooks-added.md
deleted file mode 100644
index 178ceeef..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-hooks-added.md
+++ /dev/null
@@ -1,271 +0,0 @@
-# Test added hooks
-
-With Brain Monkey there are two ways to test some hook have been added, and with which arguments.
-
-First method \(easier\) makes use of WordPress functions, the second \(more powerful\) makes use of Brain Monkey \(Mockery\) expectation DSL.
-
-## Testing framework agnostic
-
-Brain Monkey can be used with any testing framework. Examples in this page will use PHPUnit, but the concepts are applicable to any testing framework.
-
-Also note that test classes in this page extends the class `MyTestCase` that is assumed very similar to the one coded in the _WordPress / Setup_ docs section.
-
-## Testing with WordPress functions: `has_action()` and `has_filter()`
-
-When Brain Monkey is loaded for tests it registers all the functions of WordPress plugin API \(see _WordPress / WordPress Testing Tools_\). Among them there are `has_action()` and `has_filter()` that, just like _real_ WordPress functions can be used to test if some hook \(action or filter\) has been added, and also verify the arguments.
-
-Let's assume the code to be tested is:
-
-```php
-namespace Some\Name\Space;
-
-class MyClass {
-
- public function addHooks() {
-
- add_action('init', [__CLASS__, 'init'], 20);
- add_filter('the_title', [__CLASS__, 'the_title'], 99);
- }
-}
-```
-
-in Brain Monkey, just like in real WordPress code, you can test hooks are added using WordPress functions:
-
-```php
-use Some\Name\Space\MyClass;
-
-class MyClassTest extends MyTestCase {
-
- public function testAddHooksActuallyAddsHooks() {
-
- ( new MyClass() )->addHooks();
- self::assertNotFalse( has_action('init', [ MyClass::class, 'init' ]) );
- self::assertNotFalse( has_filter('the_title', [ MyClass::class, 'the_title' ] ) );
- }
-}
-```
-
-Nice thing of this approach is that you don't need to remember Brain Monkey classes and methods names, you can just use functions you, as a WordPress developer, are already used to use.
-
-There's more.
-
-A problem of WordPress hooks is that when dynamic object methods or anonymous functions are used, identify them is not easy. It's pretty hard, to be honest.
-
-But Brain Monkey is not WordPress, and it makes these sort of things very easy. Let's assume the code to test is:
-
-```php
-namespace Some\Name\Space;
-
-class MyClass {
-
- public function init() {
- /* ... */
- }
-
- public function addHooks() {
- add_action('init', [ $this, 'init' ], 20);
- }
-}
-```
-
-Using real WordPress functions, to check hooks added like in code above is pretty hard, because we don't have access to `$this` outside of the class.
-
-But Brain Monkey version of `has_action` and `has_filter` allow to check this cases with a very intuitive syntax:
-
-```php
-class MyClassTest extends MyTestCase
-{
- public function testAddHooksActuallyAddsHooks()
- {
- $class = new \Some\Name\Space\MyClass\MyClass();
- $class->addHooks();
-
- self::assertSame( 20, has_action( 'init', 'Some\Name\Space\MyClass->init()' ) );
- }
-}
-```
-
-So we have identified a dynamic method by using the class name, followed by `->` and the method name followed by parenthesis.
-
-Moreover
-
-* a static method can be identified by the class name followed by `::` and the method name followed by parenthesis, e.g. `'Some\Name\Space\MyClass::init()'`
-* an invokable object \(a class with a `__invoke()` method\) can be identified by the class name followed by parenthesis, e.g. `'Some\Name\Space\MyClass()'`
-
-Note that fully qualified names of classes are used and namespace.
-
-### Identify Closures
-
-One tricky thing when working with hooks and closures in WordPress is that they are hard to identify, for example to remove or even to check via `has_action()` / `has_filter()` if a specific closure has been added to an hook.
-
-Brain Monkey makes this a bit easier thanks to a sort of "serialization" of closures: a closure can be identified by a string very similar to the PHP code used to define the closure. Hopefully, an example will make it more clear.
-
-Assuming a code like:
-
-```php
-namespace Some\Name\Space;
-
-class MyClass {
-
- public function addHooks() {
-
- add_filter('the_title', function($title) {
- return $title;
- }, 99);
- }
-}
-```
-
-It could be tested with:
-
-```php
-class MyClassTest extends MyTestCase
-{
- public function testAddHooksActuallyAddsHooks()
- {
- $class = new \Some\Name\Space\MyClass();
- $class->addHooks();
-
- self::assertNotFalse( has_filter('the_title', 'function ($title)' ) );
- }
-}
-```
-
-It also works with type-hints and variadic arguments. E.g. a closure like:
-
-```php
-namespace Foo\Bar;
-
-function( array $foo, Baz $baz, Bar ...$bar) {
- // ....
-}
-```
-
-could be identified like this:
-
-```php
-'function ( array $foo, Foo\Bar\Baz $baz, Foo\Bar\Bar ...$bar )';
-```
-
-Just note how classes used in type-hints were using _relative_ namespace on declaration, always need the fully qualified name in the closure string representation.
-
-PHP 7+ scalar type hints are perfectly supported.
-
-The serialization also recognizes `static` closures. Following closure:
-
-```php
-static function( int $foo, Bar ...$bar ) {
- // ....
-}
-```
-
-could be identified like this:
-
-```php
-'static function ( int $foo, Bar ...$bar )';
-```
-
-Things that are **not** took into account during serialization:
-
-* default values for arguments
-* PHP 7+ return type declarations
-
-For example **all** following closures:
-
-```php
-function( array $foo, $bar ) {
- // ....
-}
-
-function( array $foo = [], $bar = null ) {
- // ....
-}
-
-function( array $foo, $bar ) : array {
- // ....
-}
-
-function( array $foo, $bar = null ) : array {
- // ....
-}
-```
-
-are serialized into :
-
-```php
-'function ( array $foo, $bar )';
-```
-
-## Testing with expectations
-
-Even if the doing tests using WordPress native functions is pretty easy, there are cases in which is not enough powerful, or the expectation methods are just more convenient.
-
-Moreover, Brain Monkey functions always try to mimic WordPress real functions behavior and so a call to `remove_action` or `remove_filter` can make impossible to test some code using `has_action` and `has_filter`, because hooks are actually removed.
-
-The solution is to use expectations, provided in Brain Monkey by Mockery.
-
-Assuming the class to test is:
-
-```php
-namespace Some\Name\Space;
-
-class MyClass {
-
- public function addHooks() {
-
- add_action('init', [$this, 'init']);
-
- add_filter('the_title', function($title) {
- return $title;
- }, 99);
- }
-}
-```
-
-it can be tested like so:
-
-```php
-use Brain\Monkey\Actions;
-use Brain\Monkey\Filters;
-
-class MyClassTest extends MyTestCase
-{
- function testAddHooksActuallyAddsHooks()
- {
- Actions\expectAdded('init');
-
- Filters\expectAdded('the_title')->with(\Mockery::type('Closure'));
-
- // let's use the code that have to satisfy our expectations
- ( new \Some\Name\Space\MyClass() )->addHooks();
- }
-}
-```
-
-This is just an example, but Mockery expectations are a very powerful testing mechanism.
-
-To know more, read [Mockery documentation](http://docs.mockery.io/en/latest/), and have a look to _PHP Functions_ doc section to see how it is used seamlessly in Brain Monkey.
-
-## Just a couple of things...
-
-* expectations must be set _before_ the code to be tested runs: they are called "expectations" for a reason;
-* argument validation done using `with()`, validates hook arguments, not function arguments, it means what is passed to `add_action()` or `add_filter()` **excluding** hook name itself.
-* If you are errors related to `Call to undefined function add_action()` it could have to do with how you are loading your plugin file in the bootstrap.php file. See [some tips for procedural/OOP setup](https://github.com/Brain-WP/BrainMonkey/issues/90#issuecomment-745148097).
-
-## Don't set expectations on return values for added hooks
-
-Maybe you already know that `add_action()` and `add_filter()` always return `true`.
-
-As already said, Brain Monkey always tries to make WordPress functions behave how they do in real WordPress code, for this reason Brain Monkey version of those functions returns `true` as well.
-
-But if you read _PHP Functions_ doc section or Mockery documentation you probably noticed a `andReturn` method that allows to force an expectation to return a given value.
-
-Once `expectAdded()` method works with Mockery expectations, you may be tempted to use it... if you do that **an exception will be thrown**.
-
-```php
-// this expectation will thrown an error!
-Filters\expectAdded('the_title')->once()->andReturn(false);
-```
-
-Reason is that if Brain Monkey had allowed a _mocked_ returning value for `add_action` and `add_filter` that had been in contrast with real WordPress code, with disastrous effects on tests.
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-hooks-done.md b/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-hooks-done.md
deleted file mode 100644
index 468f5dd8..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-hooks-done.md
+++ /dev/null
@@ -1,305 +0,0 @@
-# Test done hooks
-
-## Testing framework agnostic
-
-Brain Monkey can be used with any testing framework. Examples in this page will use PHPUnit, but the concepts are applicable to any testing framework.
-
-Also note that test classes in this page extends the class `MyTestCase` that is assumed very similar to the one coded in the _WordPress / Setup_ docs section.
-
-## Simple tests with `did_action()` and `Filters\applied()`
-
-To check hooks have been fired, the only available WordPress function is `did_action()`, it doesn't exist any `did_filter()` or `applied_filter()`.
-
-To overcome the missing counter part of `did_action()` for filters, Brain Monkey has a method accessible via `Brain\Monkey\Filters\applied()` that does what you might expect.
-
-Assuming a class like the following:
-
-```php
-class MyClass {
-
- function fireHooks() {
-
- do_action('my_action', $this);
-
- return apply_filters('my_filter', 'Filter applied', $this);
- }
-}
-```
-
-It can be tested using:
-
-```php
-use Brain\Monkey\Filters;
-
-class MyClassTest extends MyTestCase
-{
- function testFireHooksActuallyFiresHooks()
- {
- ( new MyClass() )->fireHooks();
-
- $this->assertSame( 1, did_action('my_action') );
- $this->assertTrue( Filters\applied('my_filter') > 0 );
- }
-}
-```
-
-As you can guess from test code above, `did_action()` and `Filters\applied()` return the number of times an action or a filter has been triggered, just like `did_action()` does in WordPress, but there's no way to use them to check which arguments were passed to the fired hook.
-
-So, `did_action()` and `Filters\applied()` are fine for simple tests, mostly because using them you don't need to recall Brain Monkey methods, but they are not very powerful: arguments checking and, above all, the ability to respond to fired hooks are pivotal tasks to proper test WordPress code.
-
-In Brain Monkey those tasks can be done testing fired hooks with expectations.
-
-## Test fired hooks with expectations
-
-A powerful testing mechanism for fired hooks is provided by Brain Monkey thanks to Mockery expectations.
-
-The entry points to use it are the `Actions\expectDone()` and `Filters\expectApplied()` functions.
-
-As usual, below there a just a couple of examples, for the full story see [Mockery docs](http://docs.mockery.io/en/latest/reference/expectations.html).
-
-Assuming the `MyClass` above in this page, it can be tested with:
-
-```php
-use Brain\Monkey\Actions;
-use Brain\Monkey\Filters;
-
-class MyClassTest extends MyTestCase
-{
- function testFireHooksActuallyFiresHooks()
- {
- Actions\expectDone('my_action')
- ->once()
- ->with(Mockery::type(MyClass::class));
-
- Filters\expectApplied('my_filter')
- ->once()
- ->with('Filter applied', Mockery::type(MyClass::class));
-
- ( new MyClass() )->fireHooks();
- }
-}
-```
-
-## Just a couple of things...
-
-* expectations must be set _before_ the code to be tested runs: they are called "expectations" for a reason
-* argument validation done using `with()`, validates hook arguments, not function arguments, it means what is passed to `do_action` or `apply_filters` **excluding** hook name itself
-
-## Respond to filters
-
-Yet again, Brain Monkey, when possible, tries to make WordPress functions it redefines behave in the same way of _real_ WordPress functions.
-
-Brain Monkey `apply_filters` by default returns the first argument passed to it, just like WordPress function does when no callback is added to the filter.
-
-However, sometimes in tests is required that a filter returns something different.
-
-Luckily, Mockery provides `andReturn()` and `andReturnUsing()` expectation methods that can be used to make a filter return anything.
-
-```php
-use Brain\Monkey\Filters;
-
-class MyClassTest extends MyTestCase {
-
- function testFireHooksReturnValue() {
-
- Filters\expectApplied('my_filter')
- ->once()
- ->with('Filter applied', Mockery::type(MyClass::class))
- ->andReturn('Brain Monkey rocks!');
-
- $class = new MyClass();
-
- $this->assertSame('Brain Monkey rocks!', $class->fireHooks());
- }
-}
-```
-
-See [Mockery docs](http://docs.mockery.io/en/latest/reference/expectations.html) for more information.
-
-Brain Monkey also provides the helper `andReturnFirstArg()` that can be used to make a filter expectation behave like WordPress does: return first argument received:
-
-```php
-Filters\expectApplied('my_filter')->once()->andReturnFirstArg();
-
-self::assertSame( 'foo', apply_filters( 'my_filter', 'foo', 'bar' ) );
-```
-
-Note that in the example right above, the expectation would not be necessary; in fact, the assertion verify either way because it is the default behavior of WordPress and Brain Monkey.
-
-But this is very helpful what we want to set expectations and returned values for filters based on some received arguments, for example:
-
-```php
-Filters\expectApplied('my_filter')->once()->with('foo')->andReturnFirstArg();
-Filters\expectApplied('my_filter')->once()->with('bar')->andReturn('This time bar!');
-
-self::assertSame( 'Foo', apply_filters( 'my_filter', 'Foo' ) );
-self::assertSame( 'This time bar!', apply_filters( 'my_filter', 'Bar' ) );
-```
-
-Finally note that when setting different expectations for same filter, but for different received arguments, an expectation is required to be set for **all** the arguments that the filter is going to receive. For example this will fail:
-
-```php
-Filters\expectApplied('my_filter')->once()->with('foo')->andReturnFirstArg();
-Filters\expectApplied('my_filter')->once()->with('bar')->andReturn('This time bar!');
-
-self::assertSame( 'Foo', apply_filters( 'my_filter', 'Foo' ) );
-self::assertSame( 'This time bar!', apply_filters( 'my_filter', 'Bar' ) );
-self::assertSame( 'Meh!', apply_filters( 'my_filter', 'Meh!' ) );
-```
-
-The reason for failing is that there's no expectation set when the filter receives `"Meh!"`.
-
-In such case, `andReturnFirstArg()` comes useful again, to set a "catch all" expectation:
-
-```php
-Filters\expectApplied('my_filter')->once()->with('bar')->andReturn('This time bar!');
-// Catch all the other cases with the default:
-Filters\expectApplied('my_filter')->once()->withAnyargs()->andReturnFirstArg();
-
-// All the following passes!
-self::assertSame( 'Foo', apply_filters( 'my_filter', 'Foo' ) );
-self::assertSame( 'This time bar!', apply_filters( 'my_filter', 'Bar' ) );
-self::assertSame( 'Meh!', apply_filters( 'my_filter', 'Meh!' ) );
-```
-
-## Respond to actions
-
-To return a value from a filter is routine, not so for actions.
-
-In fact, `do_action()` always returns `null` so, if Brain Monkey would allow a _mocked_ returning value for `do_action()` expectations, it would be in contrast with real WordPress code, with disastrous effects on tests.
-
-So, don't try to use neither `andReturn()` or `andReturnUsing()` with `Actions\expectDone()` because it will throw an exception.
-
-However, sometimes one may be in the need do _something_ when code calls `do_action()`, like WordPress actually does.
-
-This is the reason Brain Monkey introduces `whenHappen()` method for action expectations. The method takes a callback to be ran when an action is fired.
-
-Let's assume a class like the following:
-
-```php
-class MyClass {
-
- public $post;
-
- function setPost() {
-
- global $post;
- $this->post = $post;
-
- do_action('my_class_set_post', $this);
-
- return $post;
- }
-}
-```
-
-It is possible write a test like this:
-
-```php
-use Brain\Monkey\Actions;
-
-class MyClassTest extends MyTestCase {
-
- function testFireHooksReturnValue() {
-
- Action\expectDone('my_class_set_post')
- ->with(Mockery::type(MyClass::class))
- ->whenHappen(function($my_class) {
- $my_class->post = (object) ['post_title' => 'Mocked!'];
- });
-
- ( new MyClass() )->setPost();
-
- $this->assertSame( 'Mocked!', $class->post->post_title );
- }
-}
-```
-
-## Resolving `current_filter()`, `doing_action` and `doing_filter()`
-
-When WordPress is not performing an hook, `current_filter()` returns `false`.
-
-And so does the Brain Monkey version of that function.
-
-Now I want to surprise you: `current_filter()` correctly resolves to the correct hook during the execution of any callback added to respond to hooks.
-
-Let's assume a class like the following:
-
-```php
-class MyClass {
-
- function getValues() {
-
- $title = apply_filters('my_class_title', '');
- $content = apply_filters('my_class_content', '');
-
- return [$title, $content];
- }
-}
-```
-
-It is possible write a test like this:
-
-```php
-use Brain\Monkey\Filters;
-
-class MyClassTest extends MyTestCase
-{
- function testGetValues()
- {
- $callback = function() {
- return current_filter() === 'my_class_title' ? 'Title' : 'Content';
- };
-
- Filters\expectApplied('my_class_title')->once()->andReturnUsing($callback);
- Filters\expectApplied('my_class_content')->once()->andReturnUsing($callback);
-
- $class = new MyClass();
-
- $this->assertSame(['Title', 'Content'], $class->getValues());
- }
-}
-```
-
-Like magic, inside our callback, `current_filter()` returns the right hook just like it does in WordPress. Note this will also work with any callback passed to `whenHappen()`.
-
-Surprised? There's more: inside callbacks used to respond to actions and filters, `doing_action()` and `doing_filter()` works as well!
-
-Assuming a class like the following:
-
-```php
-class MyClass {
-
- function doStuff() {
- do_action( 'trigger_an_hook' );
- }
-}
-```
-
-It is possible to write a test like this:
-
-```php
-use Brain\Monkey\Actions;
-
-class MyClassTest extends MyTestCase {
-
- function testDoStuff() {
-
- // 'an_hook' action is done below in the "whenHappen" callback
- Actions\expectDone( 'an_hook' )->once()->whenHappen(function() {
-
- self::assertTrue( doing_action('an_hook') );
-
- // doing_action() also resolves the "parent" hook like it was WordPress!
- self::assertTrue( doing_action('trigger_an_hook') );
- });
-
- Actions\expectDone('trigger_an_hook')->once()->whenHappen(function() {
- if( current_filter() === 'trigger_an_hook' ) {
- do_action('an_hook');
- }
- });
- }
-}
-```
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-setup.md b/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-setup.md
deleted file mode 100644
index ef8b644a..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-setup.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# Setup for WordPress testing
-
-## Testing framework agnostic
-
-Brain Monkey can be used with any testing framework. Examples in this page will use PHPUnit, but the concepts are applicable to any testing framework.
-
-## Warning
-
-The procedure below **includes** the setup needed for testing PHP functions, so there is **no** need to apply what said here and _additionally_ what said in the section _PHP Functions / Setup_: steps below are enough to use all Brain Monkey features, including functions utilities.
-
-## Setup tests
-
-After Brain Monkey is part of the project \(see _Getting Started / Installation_\), to be able to use its features you need to **require vendor autoload file** before running tests \(e.g. PHPUnit users will probably require it in their bootstrap file\).
-
-After that, you need to call a function _before_ any test, and another _after_ any test.
-
-These two functions are:
-
-* `Brain\Monkey\setUp()` has to be run before any test
-* `Brain\Monkey\tearDown()` has to be run after any test
-
-PHPUnit users will probably want to add these methods to a custom test case class:
-
-```php
-use PHPUnit_Framework_TestCase;
-use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
-use Brain\Monkey;
-
-class MyTestCase extends PHPUnit_Framework_TestCase {
-
- // Adds Mockery expectations to the PHPUnit assertions count.
- use MockeryPHPUnitIntegration;
-
- protected function setUp() {
- parent::setUp();
- Monkey\setUp();
- }
-
- protected function tearDown() {
- Monkey\tearDown();
- parent::tearDown();
- }
-}
-```
-
-and then extend various test classes from it instead of directly extend `PHPUnit_Framework_TestCase`.
-
-That's all. You are ready to use all Brain Monkey features.
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-tools.md b/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-tools.md
deleted file mode 100644
index 8bc01b7e..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-tools.md
+++ /dev/null
@@ -1,97 +0,0 @@
-# WordPress testing tools
-
-The sole ability to mocking functions is a great help on testing WordPress code.
-
-All WordPress functions can be mocked and tested using the techniques described in the _PHP Functions_ section, they are PHP functions, after all.
-
-However, to test WordPress code in isolation, without a bunch of bootstrap code for every test, a more fine grained control of plugin API functions is required.
-
-This is exactly what Brain Monkey offers.
-
-## Defined functions
-
-Following functions are defined by Brain Monkey when it is loaded for tests:
-
-**Hook-related functions:**
-
-* `add_action()`
-* `remove_action()`
-* `do_action()`
-* `do_action_ref_array()`
-* `do_action_deprecated()` (since 2.4)
-* `did_action()`
-* `doing_action()`
-* `has_action()`
-* `add_filter()`
-* `remove_filter()`
-* `apply_filters()`
-* `apply_filters_ref_array()`
-* `apply_filters_deprecated()` \(since 2.4\)
-* `doing_filter()`
-* `has_filter()`
-* `current_filter()`
-
-**Generic functions:**
-
-* `__return_true()`
-* `__return_false()`
-* `__return_null()`
-* `__return_zero()`
-* `__return_empty_array()`
-* `__return_empty_string()`
-* `trailingslashit()`
-* `untrailingslashit()`
-* `user_trailingslashit()` \(since 2.6\)
-* `absint()` \(since 2.3\)
-* `wp_json_encode()` \(since 2.6\)
-* `is_wp_error()` \(since 2.3\)
-* `wp_validate_boolean()` \(since 2.7\)
-* `wp_slash()` \(since 2.7\)
-
-**Translation function:**
-
-Since Brain Monkey 2.3, stubs for the standard WordPress translations functions are available via `Functions\stubEscapeFunctions()`.
-See: [Pre-defined stubs for translation functions](https://giuseppe-mazzapica.gitbook.io/brain-monkey/functions-testing-tools/function-stubs#pre-defined-stubs-for-translation-functions)
-
-**Escaping functions:**
-Since Brain Monkey 2.3, stubs for the standard WordPress escaping functions are available via `Functions\stubTranslationFunctions()`.
-See: [Pre-defined stubs for escaping functions](https://giuseppe-mazzapica.gitbook.io/brain-monkey/functions-testing-tools/function-stubs#pre-defined-stubs-for-escaping-functions)
-
-If your code uses any of these functions, and very likely it does, you don't need to define \(or mock\) them to avoid fatal errors during tests.
-
-Note that the returning value of those functions \(_most of the times_\) will work out of the box as you might expect.
-
-For example, if your code contains:
-
-```php
-do_action('my_custom_action');
-
-// something in the middle
-$did = did_action('my_custom_action');
-```
-
-the value of `$did` will be correctly `1` \(`did_action()` in WordPress returns the number an action was _done_\).
-
-Or if your code contains:
-
-```php
-$post = [ 'post_title' => 'My Title' ];
-
-$title = apply_filters('the_title', $post['post_title']);
-```
-
-the value of `$title` will be `'My Title'`, without the need of any intervention.
-
-This works as long as there's no code that actually adds filters to `"the_title"` hook, so we expect that the title stay unchanged. And that's what happen.
-
-If in the code under test there's something that adds filters \(i.e. calls `add_filter`\), the _Brain Monkey version_ of `apply_filters` will still return the value unchanged, but will allow to test that `apply_filters` has been called, how many times, with which callbacks and arguments are used.
-
-More generally, with regards to the WP hook API, Brain Monkey allows to:
-
-* test if an action or a filter has been added, how many times that happen and with which arguments
-* test if an action or a filter has been fired, how many times that happen and with which arguments
-* perform some callback when an action is fired, being able to access passed arguments
-* perform some callback when an filter is applied, being able to access passed arguments and to return specific values
-
-And it does that using its straightforward and human-readable syntax.
-
diff --git a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-why-bother.md b/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-why-bother.md
deleted file mode 100644
index bf079863..00000000
--- a/wordpress-dev/vendor/brain/monkey/docs/wordpress-specific-tools/wordpress-why-bother.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# Why bother
-
-Just to be clear, Brain Monkey is useful for testing code wrote _for_ WordPress \(plugin, themes\) not WordPress core.
-
-More specifically, it is useful to run **unit tests**.
-
-Integration tests or end-to-end tests are a thing: you need to be sure that your code works good _with_ WordPress.
-
-But **unit** tests are meant to be run **without loading WordPress environment**.
-
-Every component that is unit tested, should be tested in isolation: when you test a class, you only have to test that specific class, assuming all other code \(e.g. WordPress code\) is working perfectly.
-
-This is not only because doing that tests will run much faster, but also because the key concept in unit testing is that every piece of code should work _per se_, in this way if a test fails there is only one possible culprit.
-
-By assuming all the external code is working perfectly, it is possible to test the behavior of the SUT \(System Under Test\), without any _interference_.
-
-To deepen these concepts, read [this answer](https://wordpress.stackexchange.com/a/164138/35541) I wrote for WordPress Development \(StackExchange\) site, that also contains some tips to write better _testable_ WordPress code.
-
-## If WordPress is not loaded...
-
-WordPress functions are not available, and trying to run tests in that situation, tests fail with fatal errors.
-
-Unless you use Brain Monkey.
-
-It allows to mock WordPress function \(just like any PHP function\), and to check how they are called inside your code.
-
-See the _PHP Function_ documentation section for a deep explanation on how it works.
-
-Moreover, among others, WordPress [Plugin API functions](https://codex.wordpress.org/Plugin_API) are particularly important and a very fine grained control on how they are used in code is pivotal to proper test WordPress extensions.
-
-This is why Brain Monkey comes with a set of features specifically designed for that.
-
diff --git a/wordpress-dev/vendor/brain/monkey/inc/api.php b/wordpress-dev/vendor/brain/monkey/inc/api.php
deleted file mode 100644
index 8d5d8dd2..00000000
--- a/wordpress-dev/vendor/brain/monkey/inc/api.php
+++ /dev/null
@@ -1,407 +0,0 @@
-reset();
- \Mockery::close();
- \Patchwork\restoreAll();
- }
-}
-
-namespace Brain\Monkey\Functions {
-
- use Brain\Monkey\Container;
- use Brain\Monkey\Expectation\EscapeHelper;
- use Brain\Monkey\Expectation\FunctionStubFactory;
- use Brain\Monkey\Name\FunctionName;
-
- /**
- * API entry-point for plain functions stub.
- *
- * Factory method: receives the name of the function to mock and returns an instance of
- * FunctionStub.
- *
- * @param string $function_name the name of the function to mock
- * @return \Brain\Monkey\Expectation\FunctionStub
- */
- function when($function_name)
- {
- return Container::instance()
- ->functionStubFactory()
- ->create(new FunctionName($function_name), FunctionStubFactory::SCOPE_STUB);
- }
-
- /**
- * API method to fast & simple create multiple functions stubs.
- *
- * It does not allow to add expectations.
- *
- * The function name to create stub for can be passed as array key or as array value (with no
- * key).
- *
- * When the function name is in the key, the value can be:
- * - a callable, in which case the function will be aliased to it
- * - anything else, in which case a stub returning given value will be created for the
- * function
- *
- * When the function name is in the value, and no key is set, the behavior will change based on
- * the second param:
- * - when 2nd param is `null` (default) the created stub will return the 1st param it will
- * receive
- * - when 2nd param is anything else the created stub will return it
- *
- *
- * @param array $functions
- * @param mixed|null $default_return
- */
- function stubs(array $functions, $default_return = null)
- {
- foreach ($functions as $key => $value) {
-
- list($function_name, $return_value) = is_numeric($key)
- ? [$value, $default_return]
- : [$key, $value];
-
- if (is_callable($return_value)) {
- when($function_name)->alias($return_value);
- continue;
- }
-
- $return_value === null
- ? when($function_name)->returnArg()
- : when($function_name)->justReturn($return_value);
- }
- }
-
- /**
- * API entry-point for plain functions expectations.
- *
- * Returns a Mockery Expectation object, where is possible to set all the expectations, using
- * Mockery methods.
- *
- * @param string $function_name
- * @return \Brain\Monkey\Expectation\Expectation
- */
- function expect($function_name)
- {
- $name = new FunctionName($function_name);
- $expectation = Container::instance()
- ->expectationFactory()
- ->forFunctionExecuted($function_name);
-
- $factory = Container::instance()->functionStubFactory();
- if ( ! $factory->has($name)) {
- $factory->create($name, FunctionStubFactory::SCOPE_EXPECTATION)
- ->redefineUsingExpectation($expectation);
-
- }
-
- return $expectation;
- }
-
- /**
- * Stub translation functions.
- *
- * @see EscapeHelper
- */
- function stubTranslationFunctions()
- {
- stubs(
- [
- '__',
- '_x',
- 'translate',
- '_n' => static function($single, $plural, $number) {
- return ($number === 1) ? $single : $plural;
- },
- '_nx' => static function($single, $plural, $number) {
- return ($number === 1) ? $single : $plural;
- },
- 'esc_html__' => [EscapeHelper::class, 'esc'],
- 'esc_html_x' => [EscapeHelper::class, 'esc'],
- 'esc_attr__' => [EscapeHelper::class, 'esc'],
- 'esc_attr_x' => [EscapeHelper::class, 'esc'],
- 'esc_html_e' => [EscapeHelper::class, 'escAndEcho'],
- 'esc_attr_e' => [EscapeHelper::class, 'escAndEcho'],
- '_n_noop' => static function ($singular, $plural) {
- return compact('singular', 'plural');
- },
- '_nx_noop' => static function ($singular, $plural) {
- return compact('singular', 'plural');
- },
- 'translate_nooped_plural' => static function($nooped_plural, $count) {
- return ($count === 1) ? $nooped_plural['singular'] : $nooped_plural['plural'];
- },
- ]
- );
-
- when('_e')->echoArg();
- when('_ex')->echoArg();
- }
-
- /**
- * Stub escape functions with default behavior.
- *
- * @see EscapeHelper
- */
- function stubEscapeFunctions()
- {
- stubs(
- [
- 'esc_js' => [EscapeHelper::class, 'esc'],
- 'esc_sql' => 'addslashes',
- 'esc_attr' => [EscapeHelper::class, 'esc'],
- 'esc_html' => [EscapeHelper::class, 'esc'],
- 'esc_textarea' => [EscapeHelper::class, 'esc'],
- 'esc_url' => [EscapeHelper::class, 'escUrl'],
- 'esc_url_raw' => [EscapeHelper::class, 'escUrlRaw'],
- 'esc_xml' => [EscapeHelper::class, 'escXml'],
- ]
- );
- }
-}
-
-namespace Brain\Monkey\Actions {
-
- use Brain\Monkey\Container;
- use Brain\Monkey\Hook;
-
- /**
- * API entry-point for added action expectations.
- *
- * Takes the action name and returns a Mockery Expectation object, where is possible to set all
- * the expectations, using Mockery methods.
- *
- * @param string $action
- * @return \Brain\Monkey\Expectation\Expectation
- */
- function expectAdded($action)
- {
- return Container::instance()
- ->expectationFactory()
- ->forActionAdded($action);
- }
-
- /**
- * API entry-point for fired action expectations.
- *
- * Takes the action name and returns a Mockery Expectation object, where is possible to set all
- * the expectations, using Mockery methods.
- *
- * @param string $action
- * @return \Brain\Monkey\Expectation\Expectation
- */
- function expectDone($action)
- {
- return Container::instance()
- ->expectationFactory()
- ->forActionDone($action);
- }
-
- /**
- * Utility method to check if any or specific callback has been added to given action.
- *
- * Brain Monkey version of `has_action` will alias here.
- *
- * @param string $action
- * @param null $callback
- * @return bool
- */
- function has($action, $callback = null)
- {
- $type = Hook\HookStorage::ACTIONS;
- $hookStorage = Container::instance()->hookStorage();
-
- if ($callback === null) {
- return $hookStorage->isHookAdded($type, $action);
- }
-
- return $hookStorage->hookPriority($type, $action, $callback);
- }
-
- /**
- * Utility method to check if given action has been done.
- *
- * Brain Monkey version of `did_action` will alias here.
- *
- * @param string $action
- * @return int
- */
- function did($action)
- {
- return Container::instance()
- ->hookStorage()
- ->isHookDone(Hook\HookStorage::ACTIONS, $action);
- }
-
- /**
- * Utility method to check if given action is currently being done.
- *
- * Brain Monkey version of `doing_action` will alias here.
- *
- * @param string $action
- * @return bool
- */
- function doing($action)
- {
- return Container::instance()
- ->hookRunningStack()
- ->has($action);
- }
-
- /**
- * API entry-point for removed action expectations.
- *
- * Takes the action name and returns a Mockery Expectation object, where is possible to set all
- * the expectations, using Mockery methods.
- *
- * @param string $action
- * @return \Brain\Monkey\Expectation\Expectation
- */
- function expectRemoved($action)
- {
- return Container::instance()
- ->expectationFactory()
- ->forActionRemoved($action);
- }
-}
-
-namespace Brain\Monkey\Filters {
-
- use Brain\Monkey\Container;
- use Brain\Monkey\Hook;
-
- /**
- * API entry-point for added filter expectations.
- *
- * Takes the filter name and returns a Mockery Expectation object, where is possible to set all
- * the expectations, using Mockery methods.
- *
- * @param string $filter
- * @return \Brain\Monkey\Expectation\Expectation
- */
- function expectAdded($filter)
- {
- return Container::instance()
- ->expectationFactory()
- ->forFilterAdded($filter);
- }
-
- /**
- * API entry-point for applied filter expectations.
- *
- * Takes the filter name and returns a Mockery Expectation object, where is possible to set all
- * the expectations, using Mockery methods.
- *
- * @param string $filter
- * @return \Brain\Monkey\Expectation\Expectation
- */
- function expectApplied($filter)
- {
- return Container::instance()
- ->expectationFactory()
- ->forFilterApplied($filter);
- }
-
- /**
- * Utility method to check if any or specific callback has been added to given filter.
- *
- * Brain Monkey version of `has_filter` will alias here.
- *
- * @param string $filter
- * @param null $callback
- * @return bool|int If callback is omitted, returns boolean for whether the hook has anything registered.
- * When checking a specific callback, the priority of that hook is returned,
- * or false if the callback is not attached.
- */
- function has($filter, $callback = null)
- {
- $type = Hook\HookStorage::FILTERS;
- $hookStorage = Container::instance()->hookStorage();
-
- if ($callback === null) {
- return $hookStorage->isHookAdded($type, $filter);
- }
-
- return $hookStorage->hookPriority($type, $filter, $callback);
- }
-
- /**
- * Utility method to check if given filter as been applied.
- *
- * There's no WordPress function counter part for it.
- *
- * @param string $filter
- * @return int
- */
- function applied($filter)
- {
- return Container::instance()
- ->hookStorage()
- ->isHookDone(Hook\HookStorage::FILTERS, $filter);
- }
-
- /**
- * Utility method to check if given filter is currently being done.
- *
- * Brain Monkey version of `doing_filter` will alias here.
- *
- * @param string $filter
- * @return bool
- */
- function doing($filter)
- {
- return Container::instance()
- ->hookRunningStack()
- ->has($filter);
- }
-
- /**
- * API entry-point for removed action expectations.
- *
- * Takes the action name and returns a Mockery Expectation object, where is possible to set all
- * the expectations, using Mockery methods.
- *
- * @param string $filter
- * @return \Brain\Monkey\Expectation\Expectation
- */
- function expectRemoved($filter)
- {
- return Container::instance()
- ->expectationFactory()
- ->forFilterRemoved($filter);
- }
-}
-
diff --git a/wordpress-dev/vendor/brain/monkey/inc/patchwork-loader.php b/wordpress-dev/vendor/brain/monkey/inc/patchwork-loader.php
deleted file mode 100644
index adb3f171..00000000
--- a/wordpress-dev/vendor/brain/monkey/inc/patchwork-loader.php
+++ /dev/null
@@ -1,29 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @author Giuseppe Mazzapica
- * @license http://opensource.org/licenses/MIT MIT
- * @package BrainMonkey
- */
-
-if (function_exists('Patchwork\redefine')) {
- return;
-}
-
-if (file_exists(dirname(dirname(dirname(__DIR__)))."/antecedent/patchwork/Patchwork.php")) {
- @require_once dirname(dirname(dirname(__DIR__)))."/antecedent/patchwork/Patchwork.php";
-} elseif (file_exists(dirname(__DIR__)."/vendor/antecedent/patchwork/Patchwork.php")) {
- @require_once dirname(__DIR__)."/vendor/antecedent/patchwork/Patchwork.php";
-}
-
-if ( ! function_exists('Patchwork\redefine')) {
- throw new \Brain\Monkey\Exception(
- 'Brain Monkey was unable to load Patchwork. Please require Patchwork.php by yourself before running tests.'
- );
-}
diff --git a/wordpress-dev/vendor/brain/monkey/inc/wp-helper-functions.php b/wordpress-dev/vendor/brain/monkey/inc/wp-helper-functions.php
deleted file mode 100644
index 2ac92691..00000000
--- a/wordpress-dev/vendor/brain/monkey/inc/wp-helper-functions.php
+++ /dev/null
@@ -1,119 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @author Giuseppe Mazzapica
- * @license http://opensource.org/licenses/MIT MIT
- * @package BrainMonkey
- *
- * As the functions in this file are a compatibility layer for WordPress, the same
- * function names should be used as are currently used by WordPress.
- * This cannot be changed at this time.
- * @phpcs:disable PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
- */
-
-if ( ! function_exists('__return_true')) {
- function __return_true()
- {
- return true;
- }
-}
-
-if ( ! function_exists('__return_false')) {
- function __return_false()
- {
- return false;
- }
-}
-
-if ( ! function_exists('__return_null')) {
- function __return_null()
- {
- return null;
- }
-}
-
-if ( ! function_exists('__return_zero')) {
- function __return_zero()
- {
- return 0;
- }
-}
-
-if ( ! function_exists('__return_empty_array')) {
- function __return_empty_array()
- {
- return [];
- }
-}
-
-if ( ! function_exists('__return_empty_string')) {
- function __return_empty_string()
- {
- return '';
- }
-}
-
-if ( ! function_exists('untrailingslashit')) {
- function untrailingslashit($value)
- {
- return rtrim($value, '/\\');
- }
-}
-
-if ( ! function_exists('trailingslashit')) {
- function trailingslashit($value)
- {
- return rtrim($value, '/\\').'/';
- }
-}
-
-if ( ! function_exists('user_trailingslashit')) {
- function user_trailingslashit($url)
- {
- return trailingslashit($url);
- }
-}
-
-if ( ! function_exists('absint')) {
- function absint($maybeint)
- {
- return abs((int)$maybeint);
- }
-}
-
-if ( ! function_exists('wp_json_encode')) {
- function wp_json_encode($data, $options = 0, $depth = 512)
- {
- return json_encode($data, $options, $depth);
- }
-}
-
-if ( ! function_exists('is_wp_error')) {
- function is_wp_error($thing)
- {
- return $thing instanceof \WP_Error;
- }
-}
-
-if ( ! function_exists('wp_validate_boolean')) {
- function wp_validate_boolean($value)
- {
- return (is_string($value) && (strtolower($value) === 'false')) ? false : (bool)$value;
- }
-}
-
-if ( ! function_exists('wp_slash')) {
- function wp_slash($value)
- {
- if (is_array($value)) {
- return array_map('wp_slash', $value);
- }
- return is_string($value) ? addslashes($value) : $value;
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/inc/wp-hook-functions.php b/wordpress-dev/vendor/brain/monkey/inc/wp-hook-functions.php
deleted file mode 100644
index 64c4b783..00000000
--- a/wordpress-dev/vendor/brain/monkey/inc/wp-hook-functions.php
+++ /dev/null
@@ -1,164 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @author Giuseppe Mazzapica
- * @license http://opensource.org/licenses/MIT MIT
- * @package BrainMonkey
- */
-
-use Brain\Monkey;
-
-if ( ! function_exists('add_action')) {
- function add_action($hook_name, $callback, $priority = 10, $accepted_args = 1)
- {
- $args = [$callback, $priority, $accepted_args];
- $container = Monkey\Container::instance();
- $container->hookStorage()->pushToAdded(Monkey\Hook\HookStorage::ACTIONS, $hook_name, $args);
- $container->hookExpectationExecutor()->executeAddAction($hook_name, $args);
-
- return true;
- }
-}
-
-if ( ! function_exists('add_filter')) {
- function add_filter($hook_name, $callback, $priority = 10, $accepted_args = 1)
- {
- $args = [$callback, $priority, $accepted_args];
- $container = Monkey\Container::instance();
- $container->hookStorage()->pushToAdded(Monkey\Hook\HookStorage::FILTERS, $hook_name, $args);
- $container->hookExpectationExecutor()->executeAddFilter($hook_name, $args);
-
- return true;
- }
-}
-
-if ( ! function_exists('do_action')) {
- function do_action($hook_name, ...$args)
- {
- $container = Monkey\Container::instance();
- $container->hookStorage()->pushToDone(Monkey\Hook\HookStorage::ACTIONS, $hook_name, $args);
- $container->hookExpectationExecutor()->executeDoAction($hook_name, $args);
- }
-}
-
-if ( ! function_exists('do_action_ref_array')) {
- function do_action_ref_array($hook_name, array $args)
- {
- $container = Monkey\Container::instance();
- $container->hookStorage()->pushToDone(Monkey\Hook\HookStorage::ACTIONS, $hook_name, $args);
- $container->hookExpectationExecutor()->executeDoAction($hook_name, $args);
- }
-}
-
-if ( ! function_exists('do_action_deprecated')) {
- function do_action_deprecated($hook_name, array $args, $version, $replacement, $message = null)
- {
- $container = Monkey\Container::instance();
- $container->hookStorage()->pushToDone(Monkey\Hook\HookStorage::ACTIONS, $hook_name, $args);
- $container->hookExpectationExecutor()->executeDoAction($hook_name, $args);
- }
-}
-
-if ( ! function_exists('apply_filters')) {
- function apply_filters($hook_name, ...$args)
- {
- $container = Monkey\Container::instance();
- $container->hookStorage()->pushToDone(Monkey\Hook\HookStorage::FILTERS, $hook_name, $args);
-
- return $container->hookExpectationExecutor()->executeApplyFilters($hook_name, $args);
- }
-}
-
-if ( ! function_exists('apply_filters_ref_array')) {
- function apply_filters_ref_array($hook_name, array $args)
- {
- $container = Monkey\Container::instance();
- $container->hookStorage()->pushToDone(Monkey\Hook\HookStorage::FILTERS, $hook_name, $args);
-
- return $container->hookExpectationExecutor()->executeApplyFilters($hook_name, $args);
- }
-}
-
-if ( ! function_exists('apply_filters_deprecated')) {
- function apply_filters_deprecated($hook_name, array $args, $version, $replacement, $message = null)
- {
- $container = Monkey\Container::instance();
- $container->hookStorage()->pushToDone(Monkey\Hook\HookStorage::FILTERS, $hook_name, $args);
-
- return $container->hookExpectationExecutor()->executeApplyFilters($hook_name, $args);
- }
-}
-
-if ( ! function_exists('has_action')) {
- function has_action($hook_name, $callback = null)
- {
- return Monkey\Actions\has($hook_name, $callback);
- }
-}
-
-if ( ! function_exists('has_filter')) {
- function has_filter($hook_name, $callback = null)
- {
- return Monkey\Filters\has($hook_name, $callback);
- }
-}
-
-if ( ! function_exists('did_action')) {
- function did_action($hook_name)
- {
- return Monkey\Actions\did($hook_name);
- }
-}
-
-if ( ! function_exists('remove_action')) {
- function remove_action($hook_name, $callback, $priority = 10)
- {
- $container = Monkey\Container::instance();
- $storage = $container->hookStorage();
- $args = [$callback, $priority];
-
- $container->hookExpectationExecutor()->executeRemoveAction($hook_name, $args);
-
- return $storage->removeFromAdded(Monkey\Hook\HookStorage::ACTIONS, $hook_name, $args);
- }
-}
-
-if ( ! function_exists('remove_filter')) {
- function remove_filter($hook_name, $callback, $priority = 10)
- {
- $container = Monkey\Container::instance();
- $storage = $container->hookStorage();
- $args = [$callback, $priority];
-
- $container->hookExpectationExecutor()->executeRemoveFilter($hook_name, $args);
-
- return $storage->removeFromAdded(Monkey\Hook\HookStorage::FILTERS, $hook_name, $args);
- }
-}
-
-if ( ! function_exists('doing_action')) {
- function doing_action($hook_name)
- {
- return Monkey\Actions\doing($hook_name);
- }
-}
-
-if ( ! function_exists('doing_filter')) {
- function doing_filter($hook_name)
- {
- return Monkey\Filters\doing($hook_name);
- }
-}
-
-if ( ! function_exists('current_filter')) {
- function current_filter()
- {
- return Monkey\Container::instance()->hookRunningStack()->last() ? : false;
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/phpunit.xml.dist b/wordpress-dev/vendor/brain/monkey/phpunit.xml.dist
deleted file mode 100644
index f8d6273c..00000000
--- a/wordpress-dev/vendor/brain/monkey/phpunit.xml.dist
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
- src
-
-
-
-
- tests/cases/unit
-
-
- tests/cases/unit/Api
-
-
- tests/cases/unit/Expectation
-
-
- tests/cases/unit/Name
-
-
- tests/cases/unit/Hook
-
-
- tests/cases/functional
-
-
-
diff --git a/wordpress-dev/vendor/brain/monkey/src/Container.php b/wordpress-dev/vendor/brain/monkey/src/Container.php
deleted file mode 100644
index 1269c759..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Container.php
+++ /dev/null
@@ -1,113 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-final class Container
-{
-
- /**
- * @var Container|null
- */
- private static $instance;
-
- /**
- * @var array
- */
- private $services = [];
-
- /**
- * Static instance lookup.
- *
- * @return Container
- */
- public static function instance()
- {
- if ( ! self::$instance) {
- require_once dirname(__DIR__).'/inc/patchwork-loader.php';
- self::$instance = new static();
- }
-
- return self::$instance;
- }
-
- /**
- * @return \Brain\Monkey\Expectation\ExpectationFactory
- */
- public function expectationFactory()
- {
- return $this->service(__FUNCTION__, new Expectation\ExpectationFactory());
- }
-
- /**
- * @return \Brain\Monkey\Hook\HookRunningStack
- */
- public function hookRunningStack()
- {
- return $this->service(__FUNCTION__, new Hook\HookRunningStack());
- }
-
- /**
- * @return \Brain\Monkey\Hook\HookStorage
- */
- public function hookStorage()
- {
- return $this->service(__FUNCTION__, new Hook\HookStorage());
- }
-
- /**
- * @return \Brain\Monkey\Hook\HookExpectationExecutor
- */
- public function hookExpectationExecutor()
- {
- return $this->service(__FUNCTION__, new Hook\HookExpectationExecutor(
- $this->hookRunningStack(),
- $this->expectationFactory()
- ));
- }
-
- /**
- * @return \Brain\Monkey\Expectation\FunctionStubFactory
- */
- public function functionStubFactory()
- {
- return $this->service(__FUNCTION__, new Expectation\FunctionStubFactory());
- }
-
- /**
- * @return void
- */
- public function reset()
- {
- $this->expectationFactory()->reset();
- $this->hookRunningStack()->reset();
- $this->hookStorage()->reset();
- $this->functionStubFactory()->reset();
- }
-
- /**
- * @param string $id
- * @param mixed $service
- * @return mixed
- */
- private function service($id, $service)
- {
- if ( ! array_key_exists($id, $this->services)) {
- $this->services[$id] = $service;
- }
-
- return $this->services[$id];
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Exception.php b/wordpress-dev/vendor/brain/monkey/src/Exception.php
deleted file mode 100644
index 877d9aae..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Exception.php
+++ /dev/null
@@ -1,21 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class Exception extends \Exception
-{
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/EscapeHelper.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/EscapeHelper.php
deleted file mode 100644
index 1ec19c8a..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/EscapeHelper.php
+++ /dev/null
@@ -1,99 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Brain\Monkey\Expectation;
-
-/**
- * Helper functions used to get an escaping that is "similar enough" to WordPress functions,
- * without adding too much complexity.
- *
- * For edge cases consumers can either override the downstream functions that make use of this, or
- * tests in integration.
- */
-class EscapeHelper
-{
-
- /**
- * @param string $text
- * @return string
- */
- public static function esc($text)
- {
- return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
- }
-
- /**
- * @param string $text
- * @return void
- */
- public static function escAndEcho($text)
- {
- print static::esc($text);
-
- }
-
- /**
- * @param string $url
- * @return string
- */
- public static function escUrlRaw($url)
- {
- if ( ! parse_url($url, PHP_URL_SCHEME)) {
- $url = "http://{$url}";
- }
-
- return $url;
- }
-
- /**
- * @param string $url
- * @return string
- */
- public static function escUrl($url)
- {
- return str_replace(['&', "'"], ['&', '''], static::escUrlRaw($url));
- }
-
- /**
- * @param string $text
- * @return string
- */
- public static function escXml($text)
- {
- $text = html_entity_decode($text, ENT_QUOTES | ENT_XML1 | ENT_XHTML, 'UTF-8'); // Undo existing entities.
- $cdata_regex = '\<\!\[CDATA\[.*?\]\]\>';
- $regex = "
- `
- (?=.*?{$cdata_regex}) # lookahead that will match anything followed by a CDATA Section
- (?(.*?)) # the 'anything' matched by the lookahead
- (?({$cdata_regex})) # the CDATA Section matched by the lookahead
- | # alternative
- (?(.*)) # non-CDATA Section
- `sx";
-
- return (string) preg_replace_callback(
- $regex,
- static function($matches) {
- if ( ! $matches[0]) {
- return '';
- }
-
- if ( ! empty($matches['non_cdata'])) {
- // Escape HTML entities in the non-CDATA Section.
- return htmlspecialchars($matches['non_cdata'], ENT_XML1, 'UTF-8', false);
- }
-
- // Return the CDATA Section unchanged, escape HTML entities in the rest.
- return htmlspecialchars($matches['non_cdata_followed_by_cdata'], ENT_XML1, 'UTF-8', false) . $matches['cdata'];
- },
- $text
- );
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/Exception.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/Exception.php
deleted file mode 100644
index 046472d6..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/Exception.php
+++ /dev/null
@@ -1,37 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class Exception extends BaseException
-{
-
- /**
- *
- * @param \Exception $exception
- * @return static
- */
- public static function becauseOf(\Exception $exception)
- {
- return new static(
- $exception->getMessage(),
- $exception->getCode(),
- $exception
- );
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/ExpectationArgsRequired.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/ExpectationArgsRequired.php
deleted file mode 100644
index 0b0ebab4..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/ExpectationArgsRequired.php
+++ /dev/null
@@ -1,51 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class ExpectationArgsRequired extends Exception
-{
-
- /**
- * @param \Brain\Monkey\Expectation\ExpectationTarget $target
- * @return static
- */
- public static function forExpectationType(ExpectationTarget $target)
- {
- $type = 'given';
-
- switch ($target->type()) {
- case ExpectationTarget::TYPE_ACTION_ADDED:
- $type = "added action";
- break;
- case ExpectationTarget::TYPE_ACTION_DONE:
- $type = "done action";
- break;
- case ExpectationTarget::TYPE_FILTER_ADDED:
- $type = "added filter";
- break;
- case ExpectationTarget::TYPE_FILTER_APPLIED:
- $type = "applied filter";
- break;
- }
-
- return new static(
- "Can't use `withNoArgs()` for {$type} expectations: they require at least one argument."
- );
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/InvalidArgumentForStub.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/InvalidArgumentForStub.php
deleted file mode 100644
index e53a86fe..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/InvalidArgumentForStub.php
+++ /dev/null
@@ -1,21 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class InvalidArgumentForStub extends Exception
-{
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/InvalidExpectationName.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/InvalidExpectationName.php
deleted file mode 100644
index 194d8a58..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/InvalidExpectationName.php
+++ /dev/null
@@ -1,39 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class InvalidExpectationName extends Exception
-{
-
- /**
- * @param mixed $name
- * @param string $type
- * @return static
- */
- public static function forNameAndType($name, $type)
- {
- return new static(
- sprintf(
- '%s name to set expectation for must be in a string, got %s.',
- $type === ExpectationTarget::TYPE_FUNCTION ? 'Function' : 'Hook',
- is_object($name) ? 'instance of '.get_class($name) : gettype($name)
- )
- );
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/InvalidExpectationType.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/InvalidExpectationType.php
deleted file mode 100644
index e277ed0f..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/InvalidExpectationType.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class InvalidExpectationType extends Exception
-{
-
- /**
- * @param string $type
- * @return static
- */
- public static function forType($type)
- {
- return new static(
- sprintf(
- '%s method is not allowed for Brain Monkey expectation.',
- $type
- )
- );
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/MissedPatchworkReplace.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/MissedPatchworkReplace.php
deleted file mode 100644
index 4eaebf7c..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/MissedPatchworkReplace.php
+++ /dev/null
@@ -1,32 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class MissedPatchworkReplace extends Exception
-{
-
- /**
- * @param string $function_name
- * @return static
- */
- public static function forFunction($function_name)
- {
- return new static(
- "Patchwork was not able to replace '{$function_name}', try to load Patchwork earlier."
- );
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/MissingFunctionExpectations.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/MissingFunctionExpectations.php
deleted file mode 100644
index 89f54942..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/MissingFunctionExpectations.php
+++ /dev/null
@@ -1,21 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class MissingFunctionExpectations extends Exception
-{
-
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/NotAllowedMethod.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/NotAllowedMethod.php
deleted file mode 100644
index 7d3fc4c9..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/Exception/NotAllowedMethod.php
+++ /dev/null
@@ -1,88 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class NotAllowedMethod extends Exception
-{
-
- const CODE_METHOD = 1;
- const CODE_RETURNING_METHOD = 2;
- const CODE_WHEN_HAPPEN = 3;
- const CODE_BY_DEFAULT = 4;
-
- /**
- * @param string $method_name
- * @return static
- */
- public static function forMethod($method_name)
- {
- return new static(
- sprintf(
- '%s method is not allowed for Brain Monkey expectation.',
- $method_name
- ),
- self::CODE_METHOD
- );
- }
-
- /**
- * @return static
- */
- public static function forByDefault()
- {
- return new static(
- 'byDefault method is not allowed for Brain Monkey hook expectation.',
- self::CODE_BY_DEFAULT
- );
- }
-
- /**
- * @param string $method_name
- * @return static
- */
- public static function forReturningMethod($method_name)
- {
- return new static(
- sprintf(
- 'Bad usage of "%s" method: returning expectation can only be used for functions or applied filters expectations.',
- $method_name
- ),
- self::CODE_RETURNING_METHOD
- );
- }
-
- public static function forWhenHappen(ExpectationTarget $target)
- {
- $type = '';
-
- switch ($target->type()) {
- case ExpectationTarget::TYPE_FUNCTION:
- $type = "function";
- break;
- case ExpectationTarget::TYPE_FILTER_APPLIED:
- $type = "applied filter";
- break;
- }
-
- return new static(
- "Can't use `whenHappen()` for {$type} expectations: use `andReturnUsing()` instead.",
- self::CODE_WHEN_HAPPEN
- );
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/Expectation.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/Expectation.php
deleted file mode 100644
index 046525ca..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/Expectation.php
+++ /dev/null
@@ -1,284 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Brain\Monkey\Expectation;
-
-use Mockery\ExpectationInterface;
-
-/**
- * A wrap around Mockery expectation.
- *
- * Acts as "man in the middle" between Monkey API and Mockery expectation, preventing calls to
- * some methods and do some checks before calling other methods.
- * finally, some additional methods are added like `andAlsoExpect` to overcome the not allowed
- * `getMock()` and `andReturnFirstArg()` to facilitate the creation of expectation for applied
- * filter hooks.
- *
- * @author Giuseppe Mazzapica
- * @license http://opensource.org/licenses/MIT MIT
- * @package BrainMonkey
- *
- * @method Expectation once()
- * @method Expectation twice()
- * @method Expectation atLeast()
- * @method Expectation atMost()
- * @method Expectation times(int $times)
- * @method Expectation never()
- * @method Expectation ordered()
- * @method Expectation between(int $min, int $max)
- * @method Expectation zeroOrMoreTimes()
- * @method Expectation withAnyArgs()
- * @method Expectation andReturn(...$args)
- * @method Expectation andReturnNull()
- * @method Expectation andReturnValues(...$args)
- * @method Expectation andReturnUsing(callable ...$args)
- * @method Expectation andThrow(\Throwable $throwable)
- */
-class Expectation
-{
-
- const RETURNING_EXPECTATION_TYPES = [
- ExpectationTarget::TYPE_FILTER_APPLIED,
- ExpectationTarget::TYPE_FUNCTION
- ];
-
- const ADDING_TYPES = [
- ExpectationTarget::TYPE_ACTION_ADDED,
- ExpectationTarget::TYPE_FILTER_ADDED
- ];
-
- const REMOVING_TYPES = [
- ExpectationTarget::TYPE_ACTION_REMOVED,
- ExpectationTarget::TYPE_FILTER_REMOVED
- ];
-
- const NO_ARGS_EXPECTATION_TYPES = [
- ExpectationTarget::TYPE_ACTION_DONE,
- ExpectationTarget::TYPE_FUNCTION
- ];
-
- const NOT_ALLOWED_METHODS = [
- 'shouldReceive',
- 'andSet',
- 'set',
- 'shouldExpect',
- 'mock',
- 'getMock',
- ];
-
- /**
- * @var \Mockery\Expectation|\Mockery\ExpectationInterface
- */
- private $expectation;
-
- /**
- * @var \Brain\Monkey\Expectation\ExpectationTarget
- */
- private $target;
-
- /**
- * @var bool
- */
- private $default = true;
-
- /**
- * @var \ArrayAccess
- */
- private $return_expectations;
-
- /**
- * @param \Mockery\ExpectationInterface $expectation
- * @param \Brain\Monkey\Expectation\ExpectationTarget $target
- * @param \ArrayAccess|null $return_expectations
- */
- public function __construct(
- ExpectationInterface $expectation,
- ExpectationTarget $target,
- $return_expectations = null
- ) {
- $this->expectation = $expectation;
- $this->target = $target;
- $this->return_expectations = ($return_expectations instanceof \ArrayAccess) ? $return_expectations : new \ArrayObject();
- }
-
- /**
- * Ensure full cloning.
- *
- * @codeCoverageIgnore
- */
- public function __clone()
- {
- $this->expectation = clone $this->expectation;
- $this->target = clone $this->target;
- }
-
- /**
- * Delegate method to wrapped expectation, after some checks.
- *
- * @param string $name
- * @param array $arguments
- * @return static
- */
- public function __call($name, array $arguments = [])
- {
- if (in_array($name, self::NOT_ALLOWED_METHODS, true)) {
- throw Exception\NotAllowedMethod::forMethod($name);
- }
-
- $has_return = stristr($name, 'return');
- $has_default = $name === 'byDefault';
-
- if ($has_default && $this->target->type() !== ExpectationTarget::TYPE_FUNCTION) {
- throw Exception\NotAllowedMethod::forByDefault();
- }
-
- if (
- $has_return
- && ! in_array($this->target->type(), self::RETURNING_EXPECTATION_TYPES, true)
- ) {
- throw Exception\NotAllowedMethod::forReturningMethod($name);
- }
-
- if ($this->default) {
- $this->default = false;
- $this->andAlsoExpectIt();
- }
-
- $callback = [$this->expectation, $name];
-
- $this->expectation = $callback(...$arguments);
-
- if ($has_return) {
- $id = $this->target->identifier();
- $this->return_expectations->offsetExists($id) or $this->return_expectations[$id] = 1;
- }
-
- return $this;
- }
-
- /**
- * @return \Mockery\Expectation|\Mockery\CompositeExpectation
- */
- public function mockeryExpectation()
- {
- return $this->expectation;
- }
-
- /**
- * Mockery expectation allow chaining different expectations with by chaining `getMock()`
- * method.
- * Since `getMock()` is disabled for Brain Monkey expectation this methods provides a way to
- * chain expectations.
- *
- * @return static
- */
- public function andAlsoExpectIt()
- {
- $method = $this->target->mockMethodName();
- /** @noinspection PhpMethodParametersCountMismatchInspection */
- $this->expectation = $this->expectation->getMock()->shouldReceive($method);
-
- return $this;
- }
-
- /**
- * WordPress action and filters addition and filters applying requires at least one argument,
- * and setting an expectation of no arguments for those triggers an error in Brain Monkey.
- *
- * @return static
- */
- public function withNoArgs()
- {
- if ( ! in_array($this->target->type(), self::NO_ARGS_EXPECTATION_TYPES, true)) {
- throw Exception\ExpectationArgsRequired::forExpectationType($this->target);
- }
-
- $this->expectation = $this->expectation->withNoArgs();
-
- return $this;
- }
-
- /**
- * @param mixed ...$args
- * @return static
- */
- public function with(...$args)
- {
- $argsNum = count($args);
-
- if ( ! $argsNum &&
- ! in_array($this->target->type(), self::NO_ARGS_EXPECTATION_TYPES, true)
- ) {
- throw Exception\ExpectationArgsRequired::forExpectationType($this->target);
- }
-
- if (in_array($this->target->type(), self::ADDING_TYPES, true) && $argsNum < 3) {
- $argsNum < 2 and $args[] = 10;
- $args[] = 1;
- }
-
- if (in_array($this->target->type(), self::REMOVING_TYPES, true) && $argsNum === 1) {
- $args[] = 10;
- }
-
- $this->expectation = $this->expectation->with(...$args);
-
- return $this;
- }
-
- /**
- * Brain Monkey doesn't allow return expectation for actions (added/done) nor for added
- * filters.
- * However, it is desirable to do something when the expected callback is used, this is the
- * reason to be of this method.
- *
- * ```
- * Actions::expectDone('some_action')->once()->whenHappen(function($some_arg) {
- * echo "{$some_arg} was passed to " . current_filter();
- * });
- * ```
- *
- * Snippet above will not change the return of `do_action('some_action', $some_arg)`
- * like a normal return expectation would do, but allows to catch expected events with a
- * callback.
- *
- * For expectation types that allows return expectation (functions, applied filters) this method
- * becomes just an alias for Mockery `andReturnUsing()`.
- *
- * @param callable $callback
- * @return static
- */
- public function whenHappen(callable $callback)
- {
- if (in_array($this->target->type(), self::RETURNING_EXPECTATION_TYPES, true)) {
- throw Exception\NotAllowedMethod::forWhenHappen($this->target);
- }
-
- $this->expectation->andReturnUsing($callback);
-
- return $this;
- }
-
- /**
- * @return static
- */
- public function andReturnFirstArg()
- {
- if ( ! in_array($this->target->type(), self::RETURNING_EXPECTATION_TYPES, true)) {
- throw Exception\NotAllowedMethod::forReturningMethod('andReturnFirstParam');
- }
-
- $this->expectation->andReturnUsing(function ($arg = null) {
- return $arg;
- });
-
- return $this;
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/ExpectationFactory.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/ExpectationFactory.php
deleted file mode 100644
index 90c36743..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/ExpectationFactory.php
+++ /dev/null
@@ -1,187 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class ExpectationFactory
-{
-
- /**
- * @var \Brain\Monkey\Expectation\Expectation[]
- */
- private $expectations = [];
-
- /**
- * @var \ArrayObject
- */
- private $return_expectations;
-
- public function __construct()
- {
- $this->return_expectations = new \ArrayObject();
- }
-
- /**
- * @param string $function
- * @return \Brain\Monkey\Expectation\Expectation;
- */
- public function forFunctionExecuted($function)
- {
- return $this->create(
- new ExpectationTarget(ExpectationTarget::TYPE_FUNCTION, $function)
- );
- }
-
- /**
- * @param string $action
- * @return \Brain\Monkey\Expectation\Expectation;
- */
- public function forActionAdded($action)
- {
- return $this->create(
- new ExpectationTarget(ExpectationTarget::TYPE_ACTION_ADDED, $action)
- );
- }
-
- /**
- * @param string $action
- * @return \Brain\Monkey\Expectation\Expectation;
- */
- public function forActionDone($action)
- {
- return $this->create(
- new ExpectationTarget(ExpectationTarget::TYPE_ACTION_DONE, $action)
- );
- }
-
- /**
- * @param string $action
- * @return \Brain\Monkey\Expectation\Expectation;
- */
- public function forActionRemoved($action)
- {
- return $this->create(
- new ExpectationTarget(ExpectationTarget::TYPE_ACTION_REMOVED, $action)
- );
- }
-
- /**
- * @param string $filter
- * @return \Brain\Monkey\Expectation\Expectation;
- */
- public function forFilterAdded($filter)
- {
- return $this->create(
- new ExpectationTarget(ExpectationTarget::TYPE_FILTER_ADDED, $filter)
- );
- }
-
- /**
- * @param string $filter
- * @return \Brain\Monkey\Expectation\Expectation;
- */
- public function forFilterApplied($filter)
- {
- return $this->create(
- new ExpectationTarget(ExpectationTarget::TYPE_FILTER_APPLIED, $filter)
- );
- }
-
- /**
- * @param string $filter
- * @return \Brain\Monkey\Expectation\Expectation;
- */
- public function forFilterRemoved($filter)
- {
- return $this->create(
- new ExpectationTarget(ExpectationTarget::TYPE_FILTER_REMOVED, $filter)
- );
- }
-
- /**
- * @param \Brain\Monkey\Expectation\ExpectationTarget $target
- * @return \Mockery\MockInterface|mixed
- */
- public function hasMockFor(ExpectationTarget $target)
- {
- return array_key_exists($target->identifier(), $this->expectations);
- }
-
- /**
- * @param \Brain\Monkey\Expectation\ExpectationTarget $target
- * @return \Mockery\MockInterface|mixed
- */
- public function hasReturnExpectationFor(ExpectationTarget $target)
- {
- if ( ! $this->hasMockFor($target)) {
- return false;
- }
-
- return $this->return_expectations->offsetExists($target->identifier());
- }
-
- /**
- * @param \Brain\Monkey\Expectation\ExpectationTarget $target
- * @return \Mockery\MockInterface|mixed
- */
- public function mockFor(ExpectationTarget $target)
- {
- return $this->hasMockFor($target)
- ? $this->expectations[$target->identifier()]->mockeryExpectation()->getMock()
- : \Mockery::mock();
- }
-
- public function reset()
- {
- $this->expectations = [];
- $this->return_expectations = new \ArrayObject();
- }
-
- /**
- * @param \Brain\Monkey\Expectation\ExpectationTarget $target
- * @return \Brain\Monkey\Expectation\Expectation
- */
- private function create(ExpectationTarget $target)
- {
- $id = $target->identifier();
-
- /** @noinspection PhpMethodParametersCountMismatchInspection */
- $expectation = $this->mockFor($target)
- ->shouldReceive($target->mockMethodName())
- ->atLeast()
- ->once();
-
- if ($target->type() === ExpectationTarget::TYPE_FILTER_APPLIED) {
- $expectation = $expectation->andReturnUsing(function ($arg) {
- return $arg;
- });
- }
-
- $expectation = $expectation->byDefault();
-
- $this->expectations[$id] = new Expectation(
- $expectation,
- $target,
- $this->return_expectations
- );
-
- return $this->expectations[$id];
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/ExpectationTarget.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/ExpectationTarget.php
deleted file mode 100644
index dfbcc08c..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/ExpectationTarget.php
+++ /dev/null
@@ -1,199 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-final class ExpectationTarget
-{
-
- const TYPE_ACTION_ADDED = 'add_action';
- const TYPE_ACTION_DONE = 'do_action';
- const TYPE_ACTION_REMOVED = 'remove_action';
- const TYPE_FILTER_ADDED = 'add_filter';
- const TYPE_FILTER_APPLIED = 'apply_filters';
- const TYPE_FILTER_REMOVED = 'remove_filter';
- const TYPE_FUNCTION = 'function';
- const TYPE_NULL = '';
-
- const TYPES = [
- self::TYPE_FUNCTION,
- self::TYPE_ACTION_ADDED,
- self::TYPE_ACTION_DONE,
- self::TYPE_ACTION_REMOVED,
- self::TYPE_FILTER_ADDED,
- self::TYPE_FILTER_APPLIED,
- self::TYPE_FILTER_REMOVED,
- ];
-
- const HOOK_SANITIZE_MAP = [
- '-' => '_hyphen_',
- ' ' => '_space_',
- '/' => '_slash_',
- '\\' => '_backslash_',
- '.' => '_dot_',
- '!' => '_exclamation_',
- '"' => '_double_quote_',
- '\'' => '_quote_',
- '£' => '_pound_',
- '$' => '_dollar_',
- '%' => '_percent_',
- '=' => '_equal_',
- '?' => '_question_',
- '*' => '_asterisk_',
- '@' => '_slug_',
- '#' => '_sharp_',
- '+' => '_plus_',
- '|' => '_pipe_',
- '<' => '_lt_',
- '>' => '_gt_',
- ',' => '_comma_',
- ';' => '_semicolon_',
- ':' => '_colon_',
- '~' => '_tilde_',
- '(' => '_bracket_open_',
- ')' => '_bracket_close_',
- '[' => '_square_bracket_open_',
- ']' => '_square_bracket_close_',
- '{' => '_curly_bracket_open_',
- '}' => '_curly_bracket_close_',
- ];
-
- /**
- * @var string
- */
- private $type;
-
- /**
- * @var callable|string
- */
- private $name;
-
- /**
- * @var string
- */
- private $original_name;
-
- /**
- * @param string $type
- * @param string $name
- */
- public function __construct($type, $name)
- {
- if ( ! in_array($type, self::TYPES, true)) {
- throw Exception\InvalidExpectationType::forType($name);
- }
-
- if ( ! is_string($name)) {
- throw Exception\InvalidExpectationName::forNameAndType($name, $type);
- }
-
- $this->type = $type;
-
- if ($type === self::TYPE_FUNCTION) {
- $nameObject = new FunctionName($name);
- $namespace = str_replace('\\', '_', ltrim($nameObject->getNamespace(), '\\'));
- $this->original_name = $nameObject->fullyQualifiedName();
- $this->name = $namespace
- ? "{$namespace}_".$nameObject->shortName()
- : $nameObject->shortName();
-
- return;
- }
-
- $this->original_name = $name;
- $replaced = strtr($name, self::HOOK_SANITIZE_MAP);
- $this->name = preg_replace('/[^a-zA-Z0-9_]/', '__', $replaced);
-
- }
-
- /**
- * @return string
- */
- public function identifier()
- {
- return md5($this->original_name.$this->type);
- }
-
- /**
- * @return string
- */
- public function name()
- {
- return $this->name;
- }
-
- /**
- * @return string
- */
- public function mockMethodName()
- {
- $name = $this->name();
-
- switch ($this->type()) {
- case ExpectationTarget::TYPE_FUNCTION:
- break;
- case ExpectationTarget::TYPE_ACTION_ADDED:
- $name = "add_action_{$name}";
- break;
- case ExpectationTarget::TYPE_ACTION_DONE:
- $name = "do_action_{$name}";
- break;
- case ExpectationTarget::TYPE_ACTION_REMOVED:
- $name = "remove_action_{$name}";
- break;
- case ExpectationTarget::TYPE_FILTER_ADDED:
- $name = "add_filter_{$name}";
- break;
- case ExpectationTarget::TYPE_FILTER_APPLIED:
- $name = "apply_filters_{$name}";
- break;
- case ExpectationTarget::TYPE_FILTER_REMOVED:
- $name = "remove_filter_{$name}";
- break;
- default :
- throw new \UnexpectedValueException(sprintf('Unexpected %s type.', __CLASS__));
- }
-
- return $name;
- }
-
- /**
- * @return string
- */
- public function type()
- {
- return $this->type;
- }
-
- /**
- * @param \Brain\Monkey\Expectation\ExpectationTarget $target
- * @return bool
- */
- public function equals(ExpectationTarget $target)
- {
- return
- $this->original_name === $target->original_name
- && $this->type === $target->type;
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/FunctionStub.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/FunctionStub.php
deleted file mode 100644
index 1cdce6ec..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/FunctionStub.php
+++ /dev/null
@@ -1,239 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class FunctionStub
-{
-
- /**
- * @var \Brain\Monkey\Name\FunctionName
- */
- private $function_name;
-
- /**
- * @param FunctionName $function_name
- */
- public function __construct(FunctionName $function_name)
- {
- $this->function_name = $function_name;
- $name = $this->function_name->shortName();
- $namespace = $this->function_name->getNamespace();
-
- if (function_exists($function_name->fullyQualifiedName())) {
- return;
- }
-
- $function = <<function_name->fullyQualifiedName();
- }
-
- /**
- * Redefine target function replacing it on the fly with a given callable.
- *
- * @param callable $callback
- */
- public function alias(callable $callback)
- {
- $fqn = $this->function_name->fullyQualifiedName();
- \Patchwork\redefine($fqn, $callback);
- $this->assertRedefined($fqn);
- }
-
- /**
- * Redefine target function replacing it with a function that execute Brain Monkey expectation
- * target method on the mock associated with given Brain Monkey expectation.
- *
- * @param \Brain\Monkey\Expectation\Expectation $expectation
- * @return void
- */
- public function redefineUsingExpectation(Expectation $expectation)
- {
- $fqn = $this->function_name->fullyQualifiedName();
-
- $this->alias(function (...$args) use ($expectation, $fqn) {
-
- $mock = $expectation->mockeryExpectation()->getMock();
- $target = new ExpectationTarget(ExpectationTarget::TYPE_FUNCTION, $fqn);
-
- return $mock->{$target->mockMethodName()}(...$args);
- });
- }
-
- /**
- * Redefine target function making it return an arbitrary value.
- *
- * @param mixed $return
- */
- public function justReturn($return = null)
- {
- $fqn = ltrim($this->function_name->fullyQualifiedName(), '\\');
-
- \Patchwork\redefine($fqn, function () use ($return) {
- return $return;
- });
-
- $this->assertRedefined($fqn);
- }
-
- /**
- * Redefine target function making it echo an arbitrary value.
- *
- * @param mixed $value
- */
- public function justEcho($value = null)
- {
- is_null($value) and $value = '';
- $fqn = ltrim($this->function_name->fullyQualifiedName(), '\\');
-
- $this->assertPrintable($value, 'provided to justEcho');
-
- \Patchwork\redefine($fqn, function () use ($value) {
- echo $value;
- });
-
- $this->assertRedefined($fqn);
- }
-
- /**
- * Redefine target function making it return one of the received arguments, the first by
- * default. Redefined function will throw an exception if the function does not receive desired
- * argument.
- *
- * @param int $arg_num The position (1-based) of the argument to return
- */
- public function returnArg($arg_num = 1)
- {
- $arg_num = $this->assertValidArgNum($arg_num, 'returnArg');
-
- $fqn = $this->function_name->fullyQualifiedName();
-
- \Patchwork\redefine($fqn, function (...$args) use ($fqn, $arg_num) {
- if ( ! array_key_exists($arg_num - 1, $args)) {
- $count = count($args);
- throw new Exception\InvalidArgumentForStub(
- "{$fqn} was called with {$count} params, can't return argument \"{$arg_num}\"."
- );
- }
-
- return $args[$arg_num - 1];
- });
- $this->assertRedefined($fqn);
- }
-
- /**
- * Redefine target function making it echo one of the received arguments, the first by default.
- * Redefined function will throw an exception if the function does not receive desired argument.
- *
- * @param int $arg_num The position (1-based) of the argument to echo
- */
- public function echoArg($arg_num = 1)
- {
- $arg_num = $this->assertValidArgNum($arg_num, 'echoArg');
-
- $fqn = $this->function_name->fullyQualifiedName();
-
- \Patchwork\redefine($fqn, function (...$args) use ($fqn, $arg_num) {
-
- if ( ! array_key_exists($arg_num - 1, $args)) {
- $count = count($args);
- throw new \RuntimeException(
- "{$fqn} was called with {$count} params, can't return argument \"{$arg_num}\"."
- );
- }
-
- $arg = $args[$arg_num - 1];
-
- $this->assertPrintable($arg, "passed as argument {$arg_num} to {$fqn}");
-
- echo (string)$arg;
- });
-
- $this->assertRedefined($fqn);
- }
-
- /**
- * @param mixed $arg_num
- * @param string $method
- * @return bool
- */
- private function assertValidArgNum($arg_num, $method)
- {
- if ( ! is_int($arg_num) || $arg_num <= 0) {
- throw new Exception\InvalidArgumentForStub(
- sprintf('`%s::%s()` first parameter must be a positiver integer.', __CLASS__,
- $method)
- );
- }
-
- return $arg_num;
- }
-
- /**
- * @param string $function_name
- */
- private function assertRedefined($function_name)
- {
- if (\Patchwork\hasMissed($function_name)) {
- throw Exception\MissedPatchworkReplace::forFunction($function_name);
- }
- }
-
- /**
- * @param $value
- * @param string $coming
- */
- private function assertPrintable($value, $coming = '')
- {
- if (is_scalar($value)) {
- return;
- }
-
- $printable =
- is_object($value)
- && method_exists($value, '__toString')
- && is_callable([$value, '__toString']);
-
- if ( ! $printable) {
- throw new Exception\InvalidArgumentForStub(
- sprintf(
- "%s, %s, is not printable.",
- is_object($value) ? 'Instance of '.get_class($value) : gettype($value),
- $coming
- )
- );
- }
-
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Expectation/FunctionStubFactory.php b/wordpress-dev/vendor/brain/monkey/src/Expectation/FunctionStubFactory.php
deleted file mode 100644
index 73ad60cf..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Expectation/FunctionStubFactory.php
+++ /dev/null
@@ -1,95 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class FunctionStubFactory
-{
-
- const SCOPE_STUB = 'a stub';
- const SCOPE_EXPECTATION = 'an expectation';
-
- /**
- * @var array
- */
- private $storage = [];
-
- /**
- * @param \Brain\Monkey\Name\FunctionName $name
- * @param string $scope
- * @return \Brain\Monkey\Expectation\FunctionStub
- */
- public function create(FunctionName $name, $scope)
- {
- $stored_type = $this->storedType($name);
-
- if ( ! $stored_type) {
-
- $stub = new FunctionStub($name);
- $this->storage[$name->fullyQualifiedName()] = [$stub, $scope];
-
- return $stub;
- }
-
- if ($scope !== $stored_type) {
- throw new Exception\Exception(
- sprintf(
- 'It was not possible to create %s for function "%s" because %s for it already exists.',
- $scope,
- $name->fullyQualifiedName(),
- $stored_type
- )
- );
- }
-
- list($stub) = $this->storage[$name->fullyQualifiedName()];
-
- return $stub;
- }
-
- /**
- * @param \Brain\Monkey\Name\FunctionName $name
- * @return bool
- */
- public function has(FunctionName $name)
- {
- return array_key_exists($name->fullyQualifiedName(), $this->storage);
- }
-
- /**
- * @return void
- */
- public function reset()
- {
- $this->storage = [];
- }
-
- /**
- * @param \Brain\Monkey\Name\FunctionName $name
- * @return string
- */
- private function storedType(FunctionName $name)
- {
- if ( ! $this->has($name)) {
- return '';
- }
-
- list(, $stored_type) = $this->storage[$name->fullyQualifiedName()];
-
- return $stored_type;
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Hook/Exception/Exception.php b/wordpress-dev/vendor/brain/monkey/src/Hook/Exception/Exception.php
deleted file mode 100644
index 7cbe74a3..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Hook/Exception/Exception.php
+++ /dev/null
@@ -1,24 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class Exception extends BaseException
-{
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Hook/Exception/InvalidAddedHookArgument.php b/wordpress-dev/vendor/brain/monkey/src/Hook/Exception/InvalidAddedHookArgument.php
deleted file mode 100644
index 858481fb..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Hook/Exception/InvalidAddedHookArgument.php
+++ /dev/null
@@ -1,87 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class InvalidAddedHookArgument extends InvalidHookArgument
-{
-
- const CODE_WRONG_ARGS_COUNT = 1;
- const CODE_MISSING_CALLBACK = 2;
- const CODE_INVALID_PRIORITY = 3;
- const CODE_INVALID_ACCEPTED_ARGS = 4;
-
- /**
- * @param string $type
- * @return static
- */
- public static function forWrongArgumentsCount($type)
- {
- return new static(
- sprintf(
- '"%s" must be called at with hook name and at maximum three other arguments: callback, priority, and accepted args num.',
- $type === HookStorage::ACTIONS ? "add_action" : "add_filter"
- ),
- self::CODE_WRONG_ARGS_COUNT
- );
- }
-
- /**
- * @param string $type
- * @return static
- */
- public static function forMissingCallback($type)
- {
- return new static(
- sprintf(
- 'A callback parameter is required for "%s".',
- $type === HookStorage::ACTIONS ? "add_action" : "add_filter"
- ),
- self::CODE_MISSING_CALLBACK
- );
- }
-
- /**
- * @param string $type
- * @return static
- */
- public static function forInvalidPriority($type)
- {
- return new static(
- sprintf(
- 'Priority parameter passed to "%s" must be an integer.',
- $type === HookStorage::ACTIONS ? "add_action" : "add_filter"
- ),
- self::CODE_INVALID_PRIORITY
- );
- }
-
- /**
- * @param string $type
- * @return static
- */
- public static function forInvalidAcceptedArgs($type)
- {
- return new static(
- sprintf(
- 'Accepted args number parameter passed to "%s" must be an integer.',
- $type === HookStorage::ACTIONS ? "add_action" : "add_filter"
- ),
- self::CODE_INVALID_ACCEPTED_ARGS
- );
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Hook/Exception/InvalidHookArgument.php b/wordpress-dev/vendor/brain/monkey/src/Hook/Exception/InvalidHookArgument.php
deleted file mode 100644
index fb7058ce..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Hook/Exception/InvalidHookArgument.php
+++ /dev/null
@@ -1,79 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class InvalidHookArgument extends Exception
-{
-
- /**
- * @param mixed $type
- * @return static
- */
- public static function forInvalidType($type)
- {
- return new static(
- sprintf(
- 'HookStorage hook type must either HookStorage::ACTIONS or HookStorage::FILTERS, got %s.',
- is_object($type) ? ' instance of '.get_class($type) : gettype($type)
- )
- );
- }
-
- /**
- * @param mixed $type
- * @return static
- */
- public static function forInvalidHook($type)
- {
- return new static(
- sprintf(
- 'Hook name must be in a string, got %s.',
- is_object($type) ? ' instance of '.get_class($type) : gettype($type)
- )
- );
- }
-
- /**
- * @param string $key
- * @param string $type
- * @return static
- */
- public static function forEmptyArguments($key, $type)
- {
- $function = $missing = '';
-
- switch ($type) {
- case HookStorage::ACTIONS:
- $missing = 'callback';
- $function = $key === HookStorage::ADDED ? "'add_action'" : "'do_action'";
- break;
- case HookStorage::FILTERS:
- $missing = $key === HookStorage::ADDED ? 'callback' : 'first';
- $function = $key === HookStorage::ADDED ? "'add_filter'" : "'apply_filters'";
- break;
- }
-
- return new static(
- sprintf(
- 'Missing %s required argument for %s.',
- $missing,
- $function
- )
- );
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Hook/HookExpectationExecutor.php b/wordpress-dev/vendor/brain/monkey/src/Hook/HookExpectationExecutor.php
deleted file mode 100644
index 285f03d8..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Hook/HookExpectationExecutor.php
+++ /dev/null
@@ -1,140 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class HookExpectationExecutor
-{
-
- /**
- * @var \Brain\Monkey\Hook\HookRunningStack
- */
- private $stack;
-
- /**
- * @var \Brain\Monkey\Expectation\ExpectationFactory
- */
- private $factory;
-
- /**
- * @param \Brain\Monkey\Hook\HookRunningStack $stack
- * @param \Brain\Monkey\Expectation\ExpectationFactory $factory
- */
- public function __construct(HookRunningStack $stack, ExpectationFactory $factory)
- {
- $this->stack = $stack;
- $this->factory = $factory;
- }
-
- /**
- * @param string $action
- * @param array $args
- */
- public function executeAddAction($action, array $args)
- {
- $this->execute(ExpectationTarget::TYPE_ACTION_ADDED, $action, $args);
- }
-
- /**
- * @param string $action
- * @param array $args
- */
- public function executeAddFilter($action, array $args)
- {
- $this->execute(ExpectationTarget::TYPE_FILTER_ADDED, $action, $args);
- }
-
- /**
- * @param string $action
- * @param array $args
- */
- public function executeDoAction($action, array $args = [])
- {
- $is_running = $this->stack->has();
- $this->stack->push($action);
- $this->execute(ExpectationTarget::TYPE_ACTION_DONE, $action, $args);
- $is_running or $this->stack->reset();
- }
-
- /**
- * @param string $filter
- * @param array $args
- * @return mixed|null
- */
- public function executeApplyFilters($filter, array $args)
- {
-
- $is_running = $this->stack->has();
- $this->stack->push($filter);
- $return = $this->execute(ExpectationTarget::TYPE_FILTER_APPLIED, $filter, $args);
- $is_running or $this->stack->reset();
-
- return $return;
- }
-
- /**
- * @param string $action
- * @param array $args
- * @return mixed
- */
- public function executeRemoveAction($action, array $args)
- {
- return $this->execute(ExpectationTarget::TYPE_ACTION_REMOVED, $action, $args);
- }
-
- /**
- * @param string $filter
- * @param array $args
- * @return mixed
- */
- public function executeRemoveFilter($filter, array $args)
- {
- return $this->execute(ExpectationTarget::TYPE_FILTER_REMOVED, $filter, $args);
- }
-
- /**
- * @param string $type
- * @param string $hook
- * @param array $args
- * @return mixed
- */
- private function execute($type, $hook, array $args)
- {
- $target = new ExpectationTarget($type, $hook);
- if ($this->factory->hasMockFor($target)) {
- $method = $target->mockMethodName();
-
- $return = $this->factory->mockFor($target)->{$method}(...$args);
- $this->factory->hasReturnExpectationFor($target) or $return = reset($args);
-
- return $return;
- }
-
- if ($type === ExpectationTarget::TYPE_FILTER_APPLIED) {
- return reset($args);
- }
-
- return null;
-
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Hook/HookRunningStack.php b/wordpress-dev/vendor/brain/monkey/src/Hook/HookRunningStack.php
deleted file mode 100644
index 572870f9..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Hook/HookRunningStack.php
+++ /dev/null
@@ -1,76 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-final class HookRunningStack
-{
-
- /**
- * @var array
- */
- private $stack = [];
-
- /**
- * @param string $hook_name
- * @return static
- */
- public function push($hook_name)
- {
- $this->stack[] = $hook_name;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function last()
- {
- if ( ! $this->stack) {
- return '';
- }
-
- return end($this->stack);
- }
-
- /**
- * @param string $hook_name
- * @return bool
- */
- public function has($hook_name = null)
- {
- if ( ! $this->stack) {
- return false;
- }
-
- return $hook_name === null ? true : in_array($hook_name, $this->stack, true);
- }
-
- /**
- * @return static
- */
- public function reset()
- {
- $this->stack = [];
-
- return $this;
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Hook/HookStorage.php b/wordpress-dev/vendor/brain/monkey/src/Hook/HookStorage.php
deleted file mode 100644
index a7492796..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Hook/HookStorage.php
+++ /dev/null
@@ -1,263 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-final class HookStorage
-{
-
- const ACTIONS = 'actions';
- const FILTERS = 'filters';
- const ADDED = 'added';
- const DONE = 'done';
-
- private $storage = [
- self::ADDED => [],
- self::DONE => []
- ];
-
- /**
- * @return void
- */
- public function reset()
- {
- $this->storage = [
- self::ADDED => [],
- self::DONE => []
- ];
- }
-
- /**
- * @param string $type
- * @param string $hook
- * @param array $args
- * @return static
- */
- public function pushToAdded($type, $hook, array $args)
- {
- return $this->pushToStorage(self::ADDED, $type, $hook, $args);
- }
-
- /**
- * @param string $type
- * @param string $hook
- * @param array $args
- * @return bool
- */
- public function removeFromAdded($type, $hook, array $args)
- {
- if ( ! $this->isHookAdded($type, $hook)) {
- return false;
- }
-
- if ( ! $args) {
- unset($this->storage[self::ADDED][$type][$hook]);
-
- return true;
- }
-
- $args = $this->parseArgsToAdd($args, self::ADDED, $type);
-
- $all = $this->storage[self::ADDED][$type][$hook];
- $removed = 0;
-
- /**
- * @var CallbackStringForm $callback
- */
- foreach ($all as $key => list($callback, $priority)) {
- if ($callback->equals($args[0]) && $priority === $args[1]) {
- unset($all[$key]);
- $removed++;
- }
- }
-
- $removed and $this->storage[self::ADDED][$type][$hook] = array_values($all);
- if ( ! $this->storage[self::ADDED][$type][$hook]) {
- unset($this->storage[self::ADDED][$type][$hook]);
- }
-
- return $removed > 0;
- }
-
- /**
- * @param string $type
- * @param string $hook
- * @param array $args
- * @return static
- */
- public function pushToDone($type, $hook, array $args)
- {
- return $this->pushToStorage(self::DONE, $type, $hook, $args);
- }
-
- /**
- * @param string $type
- * @param string $hook
- * @param callable|null $function
- * @return bool
- */
- public function isHookAdded($type, $hook, $function = null)
- {
- return $this->isInStorage(self::ADDED, $type, $hook, $function);
- }
-
- /**
- * @param string $type
- * @param string $hook
- * @return int
- */
- public function isHookDone($type, $hook)
- {
- return $this->isInStorage(self::DONE, $type, $hook);
- }
-
- /**
- * @param $type
- * @param $hook
- * @param $function
- * @return bool|int
- */
- public function hookPriority($type, $hook, $function)
- {
- if ( ! isset($this->storage[self::ADDED][$type][$hook])) {
- return false;
- }
-
- $all = $this->storage[self::ADDED][$type][$hook];
-
- /**
- * @var CallbackStringForm $callback
- * @var int $priority
- */
- foreach ($all as $key => list($callback, $priority)) {
- if ($callback->equals(new CallbackStringForm($function))) {
- return $priority;
- }
- }
-
- return false;
- }
-
- /**
- * @param string $key
- * @param string $type
- * @param string $hook
- * @param array $args
- * @return static
- */
- private function pushToStorage($key, $type, $hook, array $args)
- {
- if ($type !== self::ACTIONS && $type !== self::FILTERS) {
- throw Exception\InvalidHookArgument::forInvalidType($type);
- }
-
- if ( ! is_string($hook)) {
- throw Exception\InvalidHookArgument::forInvalidHook($hook);
- }
-
- // do_action() is the only of target functions that can be called without additional arguments
- if ( ! $args && ($key !== self::DONE || $type !== self::ACTIONS)) {
- throw Exception\InvalidHookArgument::forEmptyArguments($key, $type);
- }
-
- $storage = &$this->storage[$key];
-
- array_key_exists($type, $storage) or $storage[$type] = [];
- array_key_exists($hook, $storage[$type]) or $storage[$type][$hook] = [];
-
- if ($key === self::ADDED) {
- $args = $this->parseArgsToAdd($args, $key, $type);
- }
-
- $storage[$type][$hook][] = $args;
-
- return $this;
- }
-
- /**
- * @param string $key
- * @param string $type
- * @param string $hook
- * @param callable|null $function
- * @return int|bool
- */
- private function isInStorage($key, $type, $hook, $function = null)
- {
- $storage = $this->storage[$key];
-
- if ( ! in_array($type, [self::ACTIONS, self::FILTERS], true)) {
- throw Exception\InvalidHookArgument::forInvalidType($type);
- }
-
- if ( ! array_key_exists($type, $storage) || ! array_key_exists($hook, $storage[$type])) {
- return $key === self::ADDED ? false : 0;
- }
-
- if ($function === null) {
- return $key === self::ADDED ? true : count($storage[$type][$hook]);
- }
-
- $filter = function (array $args) use ($function) {
- return $args[0]->equals(new CallbackStringForm($function));
- };
-
- $matching = array_filter($storage[$type][$hook], $filter);
-
- return $key === self::ADDED ? (bool)$matching : count($matching);
- }
-
- /**
- * @param array $args
- * @param string $key
- * @param string $type
- * @return array
- */
- private function parseArgsToAdd(array $args, $key, $type)
- {
- if ( ! $args) {
- throw Exception\InvalidHookArgument::forEmptyArguments($key, $type);
- }
-
- if (count($args) > 3) {
- throw Exception\InvalidAddedHookArgument::forWrongArgumentsCount($type);
- }
-
- $args = array_replace([null, 10, 1], array_values($args));
-
- if ( ! $args[0]) {
- throw Exception\InvalidAddedHookArgument::forMissingCallback($type);
- }
-
- $args[0] = new CallbackStringForm($args[0]);
-
- if ( ! is_int($args[1])) {
- throw Exception\InvalidAddedHookArgument::forInvalidPriority($type);
- }
-
- if ( ! is_int($args[2])) {
- throw Exception\InvalidAddedHookArgument::forInvalidAcceptedArgs($type);
- }
-
- return $args;
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/CallbackStringForm.php b/wordpress-dev/vendor/brain/monkey/src/Name/CallbackStringForm.php
deleted file mode 100644
index 2cfdab05..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/CallbackStringForm.php
+++ /dev/null
@@ -1,181 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-final class CallbackStringForm
-{
-
- /**
- * @var string
- */
- private $parsed;
-
- /**
- * @param callable $callback
- */
- public function __construct($callback)
- {
- $this->parsed = $this->parseCallback($callback);
- }
-
- /**
- * @param \Brain\Monkey\Name\CallbackStringForm $callback
- * @return bool
- */
- public function equals(CallbackStringForm $callback)
- {
- return (string)$this === (string)$callback;
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- return $this->parsed;
- }
-
- /**
- * @param mixed $callback
- * @return string
- */
- private function parseCallback($callback)
- {
- if ( ! is_callable($callback, true)) {
- throw Exception\InvalidCallable::forCallable($callback);
- }
-
- if (is_string($callback)) {
- return $this->parseString($callback);
- }
-
- $is_object = is_object($callback);
-
- if ($is_object && ! is_callable($callback)) {
- throw new Exception\NotInvokableObjectAsCallback();
- }
-
- if ($is_object) {
- return $callback instanceof \Closure
- ? (string)new ClosureStringForm($callback)
- : get_class($callback).'()';
- }
-
- list($object, $method) = $callback;
-
- $method_name = (new MethodName($method))->name();
-
- if (is_string($object)) {
- $class_name = (new ClassName($object))->fullyQualifiedName();
-
- $this->assertMethodCallable($class_name, $method_name, $callback);
-
- return "{$class_name}::{$method_name}()";
- }
-
- if ( ! is_callable([$object, $method_name])) {
- throw new Exception\NotInvokableObjectAsCallback();
- }
-
- $class_name = (new ClassName(get_class($object)))->fullyQualifiedName();
-
- return ltrim("{$class_name}->{$method_name}()", '\\');
- }
-
- /**
- * @param string $callback
- * @return string
- */
- private function parseString($callback)
- {
- $callback = trim($callback);
-
- if (
- (strpos($callback, 'function') === 0 || strpos($callback, 'static') === 0)
- && substr($callback, -1) === ')'
- ) {
- try {
- return ClosureStringForm::normalizeString($callback);
- } catch (Exception\Exception $exception) {
- throw Exception\InvalidCallable::forCallable($callback);
- }
- }
-
- $is_static_method = substr_count($callback, '::') === 1;
- $is_normalized_form = substr($callback, -2) === '()';
-
- // Callback is a static method passed as string, like "Foo\Bar::some_method"
- if ($is_static_method && ! $is_normalized_form) {
- return $this->parseCallback(explode('::', $callback));
- }
-
- // If this is not a string in normalized form, we just check is a valid function name
- if ( ! $is_normalized_form) {
- return (new FunctionName($callback))->fullyQualifiedName();
- }
-
- // remove parenthesis
- $callback = preg_replace('~\(\)$~', '', $callback);
-
- $is_dynamic_method = substr_count($callback, '->') === 1;
-
- // If this is a normalized form of a static or dynamic method let's check that both class
- // and method names are fine
- if ($is_dynamic_method || $is_static_method) {
- $separator = $is_dynamic_method ? '->' : '::';
- list($class, $method) = explode($separator, $callback);
- $class_name = (new ClassName($class))->fullyQualifiedName();
- $method_name = (new MethodName($method))->name();
- $this->assertMethodCallable($class_name, $method, "{$callback}()");
-
- return ltrim("{$class_name}{$separator}{$method_name}()", '\\');
- }
-
- // Last chance is that the string is fully qualified name of an invokable object.
- $class_name = (new ClassName($callback))->fullyQualifiedName();
- // Check `__invoke` method existence only if class is available
- if (class_exists($class_name) && ! method_exists($class_name, '__invoke')) {
- throw new Exception\NotInvokableObjectAsCallback();
- }
-
- return ltrim("{$class_name}()", '\\');
- }
-
- /**
- * Ensure method existence only if class is available.
- *
- * @param string $class_name
- * @param string $method
- * @param string|array $callable
- */
- private function assertMethodCallable($class_name, $method, $callable)
- {
- if (
- class_exists($class_name)
- && ! (method_exists($class_name, $method) || is_callable([$class_name, $method]))
- ) {
- throw Exception\InvalidCallable::forCallable($callable);
- }
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/ClassName.php b/wordpress-dev/vendor/brain/monkey/src/Name/ClassName.php
deleted file mode 100644
index 107dc4e2..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/ClassName.php
+++ /dev/null
@@ -1,71 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-final class ClassName
-{
-
- /**
- * @var \Brain\Monkey\Name\FunctionName
- */
- private $function_name;
-
- /**
- * @param string $class_name
- */
- public function __construct($class_name)
- {
- try {
- $this->function_name = new FunctionName($class_name);
- } catch (Exception\InvalidName $e) {
- throw Exception\InvalidName::forClass($class_name);
- }
- }
-
- /**
- * @return string
- */
- public function fullyQualifiedName()
- {
- return $this->function_name->fullyQualifiedName();
- }
-
- /**
- * @return string
- */
- public function shortName()
- {
- return $this->function_name->shortName();
- }
-
- /**
- * @return string
- */
- public function getNamespace()
- {
- return $this->function_name->getNamespace();
- }
-
- /**
- * @param \Brain\Monkey\Name\ClassName $name
- * @return bool
- */
- public function equals(ClassName $name)
- {
- return $this->fullyQualifiedName() === $name->fullyQualifiedName();
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/ClosureParamStringForm.php b/wordpress-dev/vendor/brain/monkey/src/Name/ClosureParamStringForm.php
deleted file mode 100644
index efb7c93b..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/ClosureParamStringForm.php
+++ /dev/null
@@ -1,145 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class ClosureParamStringForm
-{
-
- const PARAM_SUBPATTERN = '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)*';
-
- const VALID_PARAM_PATTERN = '/^' . self::PARAM_SUBPATTERN . '$/';
-
- const REFLECTION_PARAM_PATTERN = '/\[\s\<\w+?>\s(' . self::PARAM_SUBPATTERN . ')/s';
-
- private $param_name;
- /**
- * @var string
- */
- private $type_name;
- /**
- * @var bool
- */
- private $variadic;
-
- /**
- * @param string $param
- * @return static
- */
- public static function fromString($param)
- {
- $param = trim($param);
-
- $variadic = substr_count($param, '...') === 1;
- $variadic and $param = str_replace('.', '', $param);
- $parts = array_filter(explode(' ', $param));
- $count = count($parts);
-
- if ($count !== 2 && $count !== 1) {
- throw InvalidClosureParam::forInvalidName($param);
- }
-
- $name = array_pop($parts);
- $type = $parts ? ltrim(array_pop($parts), '\\') : '';
-
- strpos($name, '$') === 0 and $name = substr($name, 1);
-
- if ($name && ! preg_match(self::VALID_PARAM_PATTERN, $name)) {
- throw InvalidClosureParam::forInvalidName($name);
- }
-
- if ($type && ! preg_match(self::VALID_PARAM_PATTERN, $type)) {
- throw InvalidClosureParam::forInvalidType($type, $name);
- }
-
- return new static($name, $type, $variadic);
- }
-
- /**
- * @param \ReflectionParameter $parameter
- * @return static
- */
- public static function fromReflectionParameter(\ReflectionParameter $parameter)
- {
- $type = '';
- if (PHP_MAJOR_VERSION >= 7) {
- if ($parameter->hasType()) {
- $type = $parameter->getType();
- if ($type instanceof \ReflectionNamedType) {
- // PHP >= 7.1.
- $type = $type->getName();
- }
-
- // In PHP 7.0 the ReflectionType::__toString() method will retrieve the type.
- $type = ltrim($type, '\\');
- }
- } else {
- preg_match(self::REFLECTION_PARAM_PATTERN, $parameter->__toString(), $matches);
- if (isset($matches[1])) {
- $type = $matches[1];
- }
- }
-
- return new static($parameter->getName(), $type, $parameter->isVariadic());
- }
-
- /**
- * @param string $param_name
- * @param string $type_name
- * @param bool $variadic
- */
- private function __construct($param_name, $type_name = '', $variadic = false)
- {
- if ( ! is_string($param_name) || ! $param_name) {
- throw InvalidClosureParam::forInvalidName($param_name);
- }
-
- $this->param_name = $param_name;
- $this->type_name = $type_name;
- $this->variadic = $variadic;
- }
-
- /**
- * @param \Brain\Monkey\Name\ClosureParamStringForm $param
- * @return bool
- */
- public function equals(ClosureParamStringForm $param)
- {
- return $this->__toString() === (string)$param;
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- $string = $this->type_name ? "{$this->type_name} " : '';
- $this->variadic and $string .= '...';
- $string .= '$'.$this->param_name;
-
- return $string;
- }
-
- /**
- * @return bool
- */
- public function isVariadic()
- {
- return $this->variadic;
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/ClosureStringForm.php b/wordpress-dev/vendor/brain/monkey/src/Name/ClosureStringForm.php
deleted file mode 100644
index 1c49f468..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/ClosureStringForm.php
+++ /dev/null
@@ -1,126 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-final class ClosureStringForm
-{
-
- const CLOSURE_PATTERN = '/^(static\s+)?function\s*\((.*?)\)$/';
-
- /**
- * @var string
- */
- private $name;
-
- /**
- * @param string $closure_string
- * @return string
- */
- public static function normalizeString($closure_string)
- {
- if (
- ! is_string($closure_string)
- || ! preg_match(self::CLOSURE_PATTERN, trim($closure_string), $matches)
- ) {
- throw InvalidCallable::forCallable($closure_string);
- }
-
- $raw_params = trim($matches[2]);
- $static = trim($matches[1]);
-
- $normalized = $static ? 'static function (' : 'function (';
-
- if ( ! $raw_params) {
- return "{$normalized})";
- }
-
- $variadic = false;
- $params = explode(',', $raw_params);
-
- $normalized = array_reduce($params, function ($normalized, $param_name) use (&$variadic) {
-
- $param = ClosureParamStringForm::fromString($param_name);
-
- $is_variadic = $param->isVariadic();
- if ($variadic && $is_variadic) {
- throw InvalidClosureParam::forMultipleVariadic($param_name);
- }
-
- $is_variadic and $variadic = true;
-
- return $normalized.(string)$param.', ';
-
- }, $normalized);
-
- return rtrim($normalized, ', ').')';
- }
-
- /**
- * @param \Closure $closure
- */
- public function __construct(\Closure $closure)
- {
- $this->name = $this->buildName($closure);
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- return $this->name;
- }
-
- /**
- * @param \Brain\Monkey\Name\ClosureStringForm $name
- * @return bool
- */
- public function equals(ClosureStringForm $name)
- {
- return $this->__toString() === (string)$name;
- }
-
- /**
- * Checks the name of a function and throw an exception if is not valid.
- * When name is valid returns an array of the name itself and its namespace parts.
- *
- * @param \Closure $closure
- * @return string
- */
- private function buildName(\Closure $closure)
- {
- $reflection = new \ReflectionFunction($closure);
-
- // Quite hackish, but it seems there's no better way to get if a closure is static
- $bind = @\Closure::bind($closure, new \stdClass);
- $static =
- $bind === null
- || (new \ReflectionFunction($bind))->getClosureThis() === null;
-
- $arguments = array_map('strval', array_map(
- [ClosureParamStringForm::class, 'fromReflectionParameter'],
- $reflection->getParameters()
- ));
-
- $name = $static ? 'static function (' : 'function (';
-
- return $name.implode(', ', $arguments).')';
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/Exception.php b/wordpress-dev/vendor/brain/monkey/src/Name/Exception/Exception.php
deleted file mode 100644
index 0a4385d5..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/Exception.php
+++ /dev/null
@@ -1,24 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class Exception extends BaseException
-{
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/InvalidCallable.php b/wordpress-dev/vendor/brain/monkey/src/Name/Exception/InvalidCallable.php
deleted file mode 100644
index 31550897..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/InvalidCallable.php
+++ /dev/null
@@ -1,41 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class InvalidCallable extends Exception
-{
-
- /**
- * @param mixed $callback
- * @return \Brain\Monkey\Name\Exception\InvalidCallable|\Brain\Monkey\Name\Exception\NotInvokableObjectAsCallback
- */
- public static function forCallable($callback)
- {
- if (is_object($callback)) {
- return new NotInvokableObjectAsCallback();
- }
-
- return new static(
- sprintf(
- 'Given %s "%s" is not a valid PHP callable.',
- gettype($callback),
- is_string($callback) ? "{$callback}" : var_export($callback, true)
- )
- );
-
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/InvalidClosureParam.php b/wordpress-dev/vendor/brain/monkey/src/Name/Exception/InvalidClosureParam.php
deleted file mode 100644
index aeec7d46..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/InvalidClosureParam.php
+++ /dev/null
@@ -1,66 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class InvalidClosureParam extends Exception
-{
-
- const CODE_INVALID_NAME = 1;
- const CODE_INVALID_TYPE = 2;
- const CODE_MULTIPLE_VARIADIC = 3;
-
- /**
- * @param string $name
- * @return static
- */
- public static function forInvalidName($name)
- {
- return new static(
- sprintf('%s is not a valid function argument name.', $name),
- self::CODE_INVALID_NAME
- );
- }
-
- /**
- * @param string $type
- * @param string $name
- * @return static
- */
- public static function forInvalidType($type, $name)
- {
- return new static(
- sprintf('%s is not a valid function argument type for argument %s.', $type, $name),
- self::CODE_INVALID_TYPE
- );
- }
-
- /**
- * @param string $name
- * @return static
- */
- public static function forMultipleVariadic($name)
- {
- return new static(
- sprintf(
- '%s is a variadic argument for a function that already has a variadic argument.',
- $name
- ),
- self::CODE_MULTIPLE_VARIADIC
- );
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/InvalidName.php b/wordpress-dev/vendor/brain/monkey/src/Name/Exception/InvalidName.php
deleted file mode 100644
index 1ece85d9..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/InvalidName.php
+++ /dev/null
@@ -1,87 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class InvalidName extends Exception
-{
-
- const CODE_FOR_FUNCTION = 1;
- const CODE_FOR_CLASS = 2;
- const CODE_FOR_METHOD = 3;
-
- /**
- * @param string $function
- * @return \Brain\Monkey\Name\Exception\InvalidName
- */
- public static function forFunction($function)
- {
- return self::createFor($function, self::CODE_FOR_FUNCTION);
- }
-
- /**
- * @param string $class
- * @return \Brain\Monkey\Name\Exception\InvalidName
- */
- public static function forClass($class)
- {
- return self::createFor($class, self::CODE_FOR_CLASS);
- }
-
- /**
- * @param string $function
- * @return \Brain\Monkey\Name\Exception\InvalidName
- */
- public static function forMethod($function)
- {
- return self::createFor($function, self::CODE_FOR_METHOD);
- }
-
- /**
- * @param mixed $thing
- * @param int $code
- * @return static
- */
- private static function createFor($thing, $code)
- {
- switch ($code) {
- case self::CODE_FOR_CLASS:
- $type = 'class';
- break;
- case self::CODE_FOR_METHOD:
- $type = 'class method';
- break;
- case self::CODE_FOR_FUNCTION:
- default:
- $type = 'function';
- break;
- }
-
- switch (true) {
- case is_string($thing):
- $name = "'{$thing}'";
- break;
- case is_object($thing):
- $name = 'An instance of '.get_class($thing);
- break;
- default:
- $name = 'A variable of type '.gettype($thing);
- }
-
- return new static(sprintf('%s is not a valid %s name.', $name, $type), $code);
- }
-
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/NotInvokableObjectAsCallback.php b/wordpress-dev/vendor/brain/monkey/src/Name/Exception/NotInvokableObjectAsCallback.php
deleted file mode 100644
index 2738a519..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/Exception/NotInvokableObjectAsCallback.php
+++ /dev/null
@@ -1,29 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-class NotInvokableObjectAsCallback extends Exception
-{
-
- public function __construct()
- {
- parent::__construct(
- 'Only closures and invokable objects can be used as callbacks for hooks.'
- );
- }
-
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/FunctionName.php b/wordpress-dev/vendor/brain/monkey/src/Name/FunctionName.php
deleted file mode 100644
index 8eff35c2..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/FunctionName.php
+++ /dev/null
@@ -1,97 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-final class FunctionName
-{
-
- const VALID_NAME_PATTERN = '/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/';
-
- /**
- * @var string
- */
- private $function_name = '';
-
- /**
- * @var string
- */
- private $namespace = '';
-
- /**
- * @param string $function_name
- */
- public function __construct($function_name)
- {
- list($this->function_name, $this->namespace) = $this->parseName($function_name);
- }
-
- /**
- * @return string
- */
- public function fullyQualifiedName()
- {
- return ltrim("{$this->namespace}\\{$this->function_name}", '\\');
- }
-
- /**
- * @return string
- */
- public function shortName()
- {
- return $this->function_name;
- }
-
- /**
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * @param \Brain\Monkey\Name\FunctionName $name
- * @return bool
- */
- public function equals(FunctionName $name)
- {
- return $this->fullyQualifiedName() === $name->fullyQualifiedName();
- }
-
- /**
- * Checks the name of a function and throw an exception if is not valid.
- * When name is valid returns an array of the name itself and its namespace parts.
- *
- * @param mixed $function_name
- * @return string[]
- */
- private function parseName($function_name)
- {
- $chunks = is_string($function_name) ? explode('\\', ltrim($function_name, '\\')) : null;
- $valid = $chunks ? preg_filter(self::VALID_NAME_PATTERN, '$0', $chunks) : null;
-
- if ( ! $valid || $valid !== $chunks) {
- $name = is_string($function_name)
- ? "'{$function_name}'"
- : 'Variable of type '.gettype($function_name);
-
- throw Exception\InvalidName::forFunction($name);
- }
-
- return [array_pop($chunks), implode('\\', $chunks)];
- }
-}
diff --git a/wordpress-dev/vendor/brain/monkey/src/Name/MethodName.php b/wordpress-dev/vendor/brain/monkey/src/Name/MethodName.php
deleted file mode 100644
index 72bfd88a..00000000
--- a/wordpress-dev/vendor/brain/monkey/src/Name/MethodName.php
+++ /dev/null
@@ -1,61 +0,0 @@
-
- * @package BrainMonkey
- * @license http://opensource.org/licenses/MIT MIT
- */
-final class MethodName
-{
-
- /**
- * @var string
- */
- private $name;
-
- /**
- * @param string $method_name
- */
- public function __construct($method_name)
- {
- try {
- $function_name = new FunctionName($method_name);
- } catch (Exception\InvalidName $e) {
- throw Exception\InvalidName::forMethod($method_name);
- }
-
- if ($function_name->getNamespace()) {
- throw Exception\InvalidName::forMethod($method_name);
- }
-
- $this->name = $function_name->shortName();
- }
-
- /**
- * @return string
- */
- public function name()
- {
- return $this->name;
- }
-
- /**
- * @param \Brain\Monkey\Name\MethodName $name
- * @return bool
- */
- public function equals(MethodName $name)
- {
- return $this->name() === $name->name();
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/composer/ClassLoader.php b/wordpress-dev/vendor/composer/ClassLoader.php
deleted file mode 100644
index 7824d8f7..00000000
--- a/wordpress-dev/vendor/composer/ClassLoader.php
+++ /dev/null
@@ -1,579 +0,0 @@
-
- * Jordi Boggiano
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Composer\Autoload;
-
-/**
- * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
- *
- * $loader = new \Composer\Autoload\ClassLoader();
- *
- * // register classes with namespaces
- * $loader->add('Symfony\Component', __DIR__.'/component');
- * $loader->add('Symfony', __DIR__.'/framework');
- *
- * // activate the autoloader
- * $loader->register();
- *
- * // to enable searching the include path (eg. for PEAR packages)
- * $loader->setUseIncludePath(true);
- *
- * In this example, if you try to use a class in the Symfony\Component
- * namespace or one of its children (Symfony\Component\Console for instance),
- * the autoloader will first look for the class under the component/
- * directory, and it will then fallback to the framework/ directory if not
- * found before giving up.
- *
- * This class is loosely based on the Symfony UniversalClassLoader.
- *
- * @author Fabien Potencier
- * @author Jordi Boggiano
- * @see https://www.php-fig.org/psr/psr-0/
- * @see https://www.php-fig.org/psr/psr-4/
- */
-class ClassLoader
-{
- /** @var \Closure(string):void */
- private static $includeFile;
-
- /** @var string|null */
- private $vendorDir;
-
- // PSR-4
- /**
- * @var array>
- */
- private $prefixLengthsPsr4 = array();
- /**
- * @var array>
- */
- private $prefixDirsPsr4 = array();
- /**
- * @var list
- */
- private $fallbackDirsPsr4 = array();
-
- // PSR-0
- /**
- * List of PSR-0 prefixes
- *
- * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
- *
- * @var array>>
- */
- private $prefixesPsr0 = array();
- /**
- * @var list
- */
- private $fallbackDirsPsr0 = array();
-
- /** @var bool */
- private $useIncludePath = false;
-
- /**
- * @var array
- */
- private $classMap = array();
-
- /** @var bool */
- private $classMapAuthoritative = false;
-
- /**
- * @var array
- */
- private $missingClasses = array();
-
- /** @var string|null */
- private $apcuPrefix;
-
- /**
- * @var array
- */
- private static $registeredLoaders = array();
-
- /**
- * @param string|null $vendorDir
- */
- public function __construct($vendorDir = null)
- {
- $this->vendorDir = $vendorDir;
- self::initializeIncludeClosure();
- }
-
- /**
- * @return array>
- */
- public function getPrefixes()
- {
- if (!empty($this->prefixesPsr0)) {
- return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
- }
-
- return array();
- }
-
- /**
- * @return array>
- */
- public function getPrefixesPsr4()
- {
- return $this->prefixDirsPsr4;
- }
-
- /**
- * @return list
- */
- public function getFallbackDirs()
- {
- return $this->fallbackDirsPsr0;
- }
-
- /**
- * @return list
- */
- public function getFallbackDirsPsr4()
- {
- return $this->fallbackDirsPsr4;
- }
-
- /**
- * @return array Array of classname => path
- */
- public function getClassMap()
- {
- return $this->classMap;
- }
-
- /**
- * @param array $classMap Class to filename map
- *
- * @return void
- */
- public function addClassMap(array $classMap)
- {
- if ($this->classMap) {
- $this->classMap = array_merge($this->classMap, $classMap);
- } else {
- $this->classMap = $classMap;
- }
- }
-
- /**
- * Registers a set of PSR-0 directories for a given prefix, either
- * appending or prepending to the ones previously set for this prefix.
- *
- * @param string $prefix The prefix
- * @param list|string $paths The PSR-0 root directories
- * @param bool $prepend Whether to prepend the directories
- *
- * @return void
- */
- public function add($prefix, $paths, $prepend = false)
- {
- $paths = (array) $paths;
- if (!$prefix) {
- if ($prepend) {
- $this->fallbackDirsPsr0 = array_merge(
- $paths,
- $this->fallbackDirsPsr0
- );
- } else {
- $this->fallbackDirsPsr0 = array_merge(
- $this->fallbackDirsPsr0,
- $paths
- );
- }
-
- return;
- }
-
- $first = $prefix[0];
- if (!isset($this->prefixesPsr0[$first][$prefix])) {
- $this->prefixesPsr0[$first][$prefix] = $paths;
-
- return;
- }
- if ($prepend) {
- $this->prefixesPsr0[$first][$prefix] = array_merge(
- $paths,
- $this->prefixesPsr0[$first][$prefix]
- );
- } else {
- $this->prefixesPsr0[$first][$prefix] = array_merge(
- $this->prefixesPsr0[$first][$prefix],
- $paths
- );
- }
- }
-
- /**
- * Registers a set of PSR-4 directories for a given namespace, either
- * appending or prepending to the ones previously set for this namespace.
- *
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param list|string $paths The PSR-4 base directories
- * @param bool $prepend Whether to prepend the directories
- *
- * @throws \InvalidArgumentException
- *
- * @return void
- */
- public function addPsr4($prefix, $paths, $prepend = false)
- {
- $paths = (array) $paths;
- if (!$prefix) {
- // Register directories for the root namespace.
- if ($prepend) {
- $this->fallbackDirsPsr4 = array_merge(
- $paths,
- $this->fallbackDirsPsr4
- );
- } else {
- $this->fallbackDirsPsr4 = array_merge(
- $this->fallbackDirsPsr4,
- $paths
- );
- }
- } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
- // Register directories for a new namespace.
- $length = strlen($prefix);
- if ('\\' !== $prefix[$length - 1]) {
- throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
- }
- $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
- $this->prefixDirsPsr4[$prefix] = $paths;
- } elseif ($prepend) {
- // Prepend directories for an already registered namespace.
- $this->prefixDirsPsr4[$prefix] = array_merge(
- $paths,
- $this->prefixDirsPsr4[$prefix]
- );
- } else {
- // Append directories for an already registered namespace.
- $this->prefixDirsPsr4[$prefix] = array_merge(
- $this->prefixDirsPsr4[$prefix],
- $paths
- );
- }
- }
-
- /**
- * Registers a set of PSR-0 directories for a given prefix,
- * replacing any others previously set for this prefix.
- *
- * @param string $prefix The prefix
- * @param list|string $paths The PSR-0 base directories
- *
- * @return void
- */
- public function set($prefix, $paths)
- {
- if (!$prefix) {
- $this->fallbackDirsPsr0 = (array) $paths;
- } else {
- $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
- }
- }
-
- /**
- * Registers a set of PSR-4 directories for a given namespace,
- * replacing any others previously set for this namespace.
- *
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param list|string $paths The PSR-4 base directories
- *
- * @throws \InvalidArgumentException
- *
- * @return void
- */
- public function setPsr4($prefix, $paths)
- {
- if (!$prefix) {
- $this->fallbackDirsPsr4 = (array) $paths;
- } else {
- $length = strlen($prefix);
- if ('\\' !== $prefix[$length - 1]) {
- throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
- }
- $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
- $this->prefixDirsPsr4[$prefix] = (array) $paths;
- }
- }
-
- /**
- * Turns on searching the include path for class files.
- *
- * @param bool $useIncludePath
- *
- * @return void
- */
- public function setUseIncludePath($useIncludePath)
- {
- $this->useIncludePath = $useIncludePath;
- }
-
- /**
- * Can be used to check if the autoloader uses the include path to check
- * for classes.
- *
- * @return bool
- */
- public function getUseIncludePath()
- {
- return $this->useIncludePath;
- }
-
- /**
- * Turns off searching the prefix and fallback directories for classes
- * that have not been registered with the class map.
- *
- * @param bool $classMapAuthoritative
- *
- * @return void
- */
- public function setClassMapAuthoritative($classMapAuthoritative)
- {
- $this->classMapAuthoritative = $classMapAuthoritative;
- }
-
- /**
- * Should class lookup fail if not found in the current class map?
- *
- * @return bool
- */
- public function isClassMapAuthoritative()
- {
- return $this->classMapAuthoritative;
- }
-
- /**
- * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
- *
- * @param string|null $apcuPrefix
- *
- * @return void
- */
- public function setApcuPrefix($apcuPrefix)
- {
- $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
- }
-
- /**
- * The APCu prefix in use, or null if APCu caching is not enabled.
- *
- * @return string|null
- */
- public function getApcuPrefix()
- {
- return $this->apcuPrefix;
- }
-
- /**
- * Registers this instance as an autoloader.
- *
- * @param bool $prepend Whether to prepend the autoloader or not
- *
- * @return void
- */
- public function register($prepend = false)
- {
- spl_autoload_register(array($this, 'loadClass'), true, $prepend);
-
- if (null === $this->vendorDir) {
- return;
- }
-
- if ($prepend) {
- self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
- } else {
- unset(self::$registeredLoaders[$this->vendorDir]);
- self::$registeredLoaders[$this->vendorDir] = $this;
- }
- }
-
- /**
- * Unregisters this instance as an autoloader.
- *
- * @return void
- */
- public function unregister()
- {
- spl_autoload_unregister(array($this, 'loadClass'));
-
- if (null !== $this->vendorDir) {
- unset(self::$registeredLoaders[$this->vendorDir]);
- }
- }
-
- /**
- * Loads the given class or interface.
- *
- * @param string $class The name of the class
- * @return true|null True if loaded, null otherwise
- */
- public function loadClass($class)
- {
- if ($file = $this->findFile($class)) {
- $includeFile = self::$includeFile;
- $includeFile($file);
-
- return true;
- }
-
- return null;
- }
-
- /**
- * Finds the path to the file where the class is defined.
- *
- * @param string $class The name of the class
- *
- * @return string|false The path if found, false otherwise
- */
- public function findFile($class)
- {
- // class map lookup
- if (isset($this->classMap[$class])) {
- return $this->classMap[$class];
- }
- if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
- return false;
- }
- if (null !== $this->apcuPrefix) {
- $file = apcu_fetch($this->apcuPrefix.$class, $hit);
- if ($hit) {
- return $file;
- }
- }
-
- $file = $this->findFileWithExtension($class, '.php');
-
- // Search for Hack files if we are running on HHVM
- if (false === $file && defined('HHVM_VERSION')) {
- $file = $this->findFileWithExtension($class, '.hh');
- }
-
- if (null !== $this->apcuPrefix) {
- apcu_add($this->apcuPrefix.$class, $file);
- }
-
- if (false === $file) {
- // Remember that this class does not exist.
- $this->missingClasses[$class] = true;
- }
-
- return $file;
- }
-
- /**
- * Returns the currently registered loaders keyed by their corresponding vendor directories.
- *
- * @return array
- */
- public static function getRegisteredLoaders()
- {
- return self::$registeredLoaders;
- }
-
- /**
- * @param string $class
- * @param string $ext
- * @return string|false
- */
- private function findFileWithExtension($class, $ext)
- {
- // PSR-4 lookup
- $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
-
- $first = $class[0];
- if (isset($this->prefixLengthsPsr4[$first])) {
- $subPath = $class;
- while (false !== $lastPos = strrpos($subPath, '\\')) {
- $subPath = substr($subPath, 0, $lastPos);
- $search = $subPath . '\\';
- if (isset($this->prefixDirsPsr4[$search])) {
- $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
- foreach ($this->prefixDirsPsr4[$search] as $dir) {
- if (file_exists($file = $dir . $pathEnd)) {
- return $file;
- }
- }
- }
- }
- }
-
- // PSR-4 fallback dirs
- foreach ($this->fallbackDirsPsr4 as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
- return $file;
- }
- }
-
- // PSR-0 lookup
- if (false !== $pos = strrpos($class, '\\')) {
- // namespaced class name
- $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
- . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
- } else {
- // PEAR-like class name
- $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
- }
-
- if (isset($this->prefixesPsr0[$first])) {
- foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
- if (0 === strpos($class, $prefix)) {
- foreach ($dirs as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
- return $file;
- }
- }
- }
- }
- }
-
- // PSR-0 fallback dirs
- foreach ($this->fallbackDirsPsr0 as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
- return $file;
- }
- }
-
- // PSR-0 include paths.
- if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
- return $file;
- }
-
- return false;
- }
-
- /**
- * @return void
- */
- private static function initializeIncludeClosure()
- {
- if (self::$includeFile !== null) {
- return;
- }
-
- /**
- * Scope isolated include.
- *
- * Prevents access to $this/self from included files.
- *
- * @param string $file
- * @return void
- */
- self::$includeFile = \Closure::bind(static function($file) {
- include $file;
- }, null, null);
- }
-}
diff --git a/wordpress-dev/vendor/composer/InstalledVersions.php b/wordpress-dev/vendor/composer/InstalledVersions.php
deleted file mode 100644
index 2e0eeffa..00000000
--- a/wordpress-dev/vendor/composer/InstalledVersions.php
+++ /dev/null
@@ -1,378 +0,0 @@
-
- * Jordi Boggiano
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Composer;
-
-use Composer\Autoload\ClassLoader;
-use Composer\Semver\VersionParser;
-
-/**
- * This class is copied in every Composer installed project and available to all
- *
- * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
- *
- * To require its presence, you can require `composer-runtime-api ^2.0`
- *
- * @final
- */
-class InstalledVersions
-{
- /**
- * @var mixed[]|null
- * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null
- */
- private static $installed;
-
- /**
- * @var bool
- */
- private static $installedIsLocalDir;
-
- /**
- * @var bool|null
- */
- private static $canGetVendors;
-
- /**
- * @var array[]
- * @psalm-var array}>
- */
- private static $installedByVendor = array();
-
- /**
- * Returns a list of all package names which are present, either by being installed, replaced or provided
- *
- * @return string[]
- * @psalm-return list
- */
- public static function getInstalledPackages()
- {
- $packages = array();
- foreach (self::getInstalled() as $installed) {
- $packages[] = array_keys($installed['versions']);
- }
-
- if (1 === \count($packages)) {
- return $packages[0];
- }
-
- return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
- }
-
- /**
- * Returns a list of all package names with a specific type e.g. 'library'
- *
- * @param string $type
- * @return string[]
- * @psalm-return list
- */
- public static function getInstalledPackagesByType($type)
- {
- $packagesByType = array();
-
- foreach (self::getInstalled() as $installed) {
- foreach ($installed['versions'] as $name => $package) {
- if (isset($package['type']) && $package['type'] === $type) {
- $packagesByType[] = $name;
- }
- }
- }
-
- return $packagesByType;
- }
-
- /**
- * Checks whether the given package is installed
- *
- * This also returns true if the package name is provided or replaced by another package
- *
- * @param string $packageName
- * @param bool $includeDevRequirements
- * @return bool
- */
- public static function isInstalled($packageName, $includeDevRequirements = true)
- {
- foreach (self::getInstalled() as $installed) {
- if (isset($installed['versions'][$packageName])) {
- return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
- }
- }
-
- return false;
- }
-
- /**
- * Checks whether the given package satisfies a version constraint
- *
- * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
- *
- * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
- *
- * @param VersionParser $parser Install composer/semver to have access to this class and functionality
- * @param string $packageName
- * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
- * @return bool
- */
- public static function satisfies(VersionParser $parser, $packageName, $constraint)
- {
- $constraint = $parser->parseConstraints((string) $constraint);
- $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
-
- return $provided->matches($constraint);
- }
-
- /**
- * Returns a version constraint representing all the range(s) which are installed for a given package
- *
- * It is easier to use this via isInstalled() with the $constraint argument if you need to check
- * whether a given version of a package is installed, and not just whether it exists
- *
- * @param string $packageName
- * @return string Version constraint usable with composer/semver
- */
- public static function getVersionRanges($packageName)
- {
- foreach (self::getInstalled() as $installed) {
- if (!isset($installed['versions'][$packageName])) {
- continue;
- }
-
- $ranges = array();
- if (isset($installed['versions'][$packageName]['pretty_version'])) {
- $ranges[] = $installed['versions'][$packageName]['pretty_version'];
- }
- if (array_key_exists('aliases', $installed['versions'][$packageName])) {
- $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
- }
- if (array_key_exists('replaced', $installed['versions'][$packageName])) {
- $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
- }
- if (array_key_exists('provided', $installed['versions'][$packageName])) {
- $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
- }
-
- return implode(' || ', $ranges);
- }
-
- throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
- }
-
- /**
- * @param string $packageName
- * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
- */
- public static function getVersion($packageName)
- {
- foreach (self::getInstalled() as $installed) {
- if (!isset($installed['versions'][$packageName])) {
- continue;
- }
-
- if (!isset($installed['versions'][$packageName]['version'])) {
- return null;
- }
-
- return $installed['versions'][$packageName]['version'];
- }
-
- throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
- }
-
- /**
- * @param string $packageName
- * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
- */
- public static function getPrettyVersion($packageName)
- {
- foreach (self::getInstalled() as $installed) {
- if (!isset($installed['versions'][$packageName])) {
- continue;
- }
-
- if (!isset($installed['versions'][$packageName]['pretty_version'])) {
- return null;
- }
-
- return $installed['versions'][$packageName]['pretty_version'];
- }
-
- throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
- }
-
- /**
- * @param string $packageName
- * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
- */
- public static function getReference($packageName)
- {
- foreach (self::getInstalled() as $installed) {
- if (!isset($installed['versions'][$packageName])) {
- continue;
- }
-
- if (!isset($installed['versions'][$packageName]['reference'])) {
- return null;
- }
-
- return $installed['versions'][$packageName]['reference'];
- }
-
- throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
- }
-
- /**
- * @param string $packageName
- * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
- */
- public static function getInstallPath($packageName)
- {
- foreach (self::getInstalled() as $installed) {
- if (!isset($installed['versions'][$packageName])) {
- continue;
- }
-
- return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
- }
-
- throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
- }
-
- /**
- * @return array
- * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
- */
- public static function getRootPackage()
- {
- $installed = self::getInstalled();
-
- return $installed[0]['uberrxmprk'];
- }
-
- /**
- * Returns the raw installed.php data for custom implementations
- *
- * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
- * @return array[]
- * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}
- */
- public static function getRawData()
- {
- @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
-
- if (null === self::$installed) {
- // only require the installed.php file if this file is loaded from its dumped location,
- // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
- if (substr(__DIR__, -8, 1) !== 'C') {
- self::$installed = include __DIR__ . '/installed.php';
- } else {
- self::$installed = array();
- }
- }
-
- return self::$installed;
- }
-
- /**
- * Returns the raw data of all installed.php which are currently loaded for custom implementations
- *
- * @return array[]
- * @psalm-return list}>
- */
- public static function getAllRawData()
- {
- return self::getInstalled();
- }
-
- /**
- * Lets you reload the static array from another file
- *
- * This is only useful for complex integrations in which a project needs to use
- * this class but then also needs to execute another project's autoloader in process,
- * and wants to ensure both projects have access to their version of installed.php.
- *
- * A typical case would be PHPUnit, where it would need to make sure it reads all
- * the data it needs from this class, then call reload() with
- * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
- * the project in which it runs can then also use this class safely, without
- * interference between PHPUnit's dependencies and the project's dependencies.
- *
- * @param array[] $data A vendor/composer/installed.php data set
- * @return void
- *
- * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data
- */
- public static function reload($data)
- {
- self::$installed = $data;
- self::$installedByVendor = array();
-
- // when using reload, we disable the duplicate protection to ensure that self::$installed data is
- // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
- // so we have to assume it does not, and that may result in duplicate data being returned when listing
- // all installed packages for example
- self::$installedIsLocalDir = false;
- }
-
- /**
- * @return array[]
- * @psalm-return list}>
- */
- private static function getInstalled()
- {
- if (null === self::$canGetVendors) {
- self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
- }
-
- $installed = array();
- $copiedLocalDir = false;
-
- if (self::$canGetVendors) {
- $selfDir = strtr(__DIR__, '\\', '/');
- foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
- $vendorDir = strtr($vendorDir, '\\', '/');
- if (isset(self::$installedByVendor[$vendorDir])) {
- $installed[] = self::$installedByVendor[$vendorDir];
- } elseif (is_file($vendorDir.'/composer/installed.php')) {
- /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */
- $required = require $vendorDir.'/composer/installed.php';
- self::$installedByVendor[$vendorDir] = $required;
- $installed[] = $required;
- if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
- self::$installed = $required;
- self::$installedIsLocalDir = true;
- }
- }
- if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
- $copiedLocalDir = true;
- }
- }
- }
-
- if (null === self::$installed) {
- // only require the installed.php file if this file is loaded from its dumped location,
- // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
- if (substr(__DIR__, -8, 1) !== 'C') {
- /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */
- $required = require __DIR__ . '/installed.php';
- self::$installed = $required;
- } else {
- self::$installed = array();
- }
- }
-
- if (self::$installed !== array() && !$copiedLocalDir) {
- $installed[] = self::$installed;
- }
-
- return $installed;
- }
-}
diff --git a/wordpress-dev/vendor/composer/LICENSE b/wordpress-dev/vendor/composer/LICENSE
deleted file mode 100644
index f27399a0..00000000
--- a/wordpress-dev/vendor/composer/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-
-Copyright (c) Nils Adermann, Jordi Boggiano
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
diff --git a/wordpress-dev/vendor/composer/autoload_classmap.php b/wordpress-dev/vendor/composer/autoload_classmap.php
deleted file mode 100644
index d6613e9e..00000000
--- a/wordpress-dev/vendor/composer/autoload_classmap.php
+++ /dev/null
@@ -1,712 +0,0 @@
- $vendorDir . '/composer/InstalledVersions.php',
- 'Hamcrest\\Arrays\\IsArray' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php',
- 'Hamcrest\\Arrays\\IsArrayContaining' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php',
- 'Hamcrest\\Arrays\\IsArrayContainingInAnyOrder' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php',
- 'Hamcrest\\Arrays\\IsArrayContainingInOrder' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php',
- 'Hamcrest\\Arrays\\IsArrayContainingKey' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php',
- 'Hamcrest\\Arrays\\IsArrayContainingKeyValuePair' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php',
- 'Hamcrest\\Arrays\\IsArrayWithSize' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php',
- 'Hamcrest\\Arrays\\MatchingOnce' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/MatchingOnce.php',
- 'Hamcrest\\Arrays\\SeriesMatchingOnce' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php',
- 'Hamcrest\\AssertionError' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php',
- 'Hamcrest\\BaseDescription' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseDescription.php',
- 'Hamcrest\\BaseMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php',
- 'Hamcrest\\Collection\\IsEmptyTraversable' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php',
- 'Hamcrest\\Collection\\IsTraversableWithSize' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php',
- 'Hamcrest\\Core\\AllOf' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AllOf.php',
- 'Hamcrest\\Core\\AnyOf' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php',
- 'Hamcrest\\Core\\CombinableMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php',
- 'Hamcrest\\Core\\DescribedAs' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php',
- 'Hamcrest\\Core\\Every' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php',
- 'Hamcrest\\Core\\HasToString' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php',
- 'Hamcrest\\Core\\Is' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php',
- 'Hamcrest\\Core\\IsAnything' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php',
- 'Hamcrest\\Core\\IsCollectionContaining' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php',
- 'Hamcrest\\Core\\IsEqual' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php',
- 'Hamcrest\\Core\\IsIdentical' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php',
- 'Hamcrest\\Core\\IsInstanceOf' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php',
- 'Hamcrest\\Core\\IsNot' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php',
- 'Hamcrest\\Core\\IsNull' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php',
- 'Hamcrest\\Core\\IsSame' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php',
- 'Hamcrest\\Core\\IsTypeOf' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php',
- 'Hamcrest\\Core\\Set' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php',
- 'Hamcrest\\Core\\ShortcutCombination' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php',
- 'Hamcrest\\Description' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php',
- 'Hamcrest\\DiagnosingMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/DiagnosingMatcher.php',
- 'Hamcrest\\FeatureMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php',
- 'Hamcrest\\Internal\\SelfDescribingValue' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php',
- 'Hamcrest\\Matcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php',
- 'Hamcrest\\MatcherAssert' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php',
- 'Hamcrest\\Matchers' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php',
- 'Hamcrest\\NullDescription' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php',
- 'Hamcrest\\Number\\IsCloseTo' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/IsCloseTo.php',
- 'Hamcrest\\Number\\OrderingComparison' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php',
- 'Hamcrest\\SelfDescribing' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php',
- 'Hamcrest\\StringDescription' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/StringDescription.php',
- 'Hamcrest\\Text\\IsEmptyString' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php',
- 'Hamcrest\\Text\\IsEqualIgnoringCase' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php',
- 'Hamcrest\\Text\\IsEqualIgnoringWhiteSpace' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php',
- 'Hamcrest\\Text\\MatchesPattern' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php',
- 'Hamcrest\\Text\\StringContains' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php',
- 'Hamcrest\\Text\\StringContainsIgnoringCase' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php',
- 'Hamcrest\\Text\\StringContainsInOrder' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php',
- 'Hamcrest\\Text\\StringEndsWith' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php',
- 'Hamcrest\\Text\\StringStartsWith' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php',
- 'Hamcrest\\Text\\SubstringMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php',
- 'Hamcrest\\TypeSafeDiagnosingMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeDiagnosingMatcher.php',
- 'Hamcrest\\TypeSafeMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php',
- 'Hamcrest\\Type\\IsArray' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php',
- 'Hamcrest\\Type\\IsBoolean' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsBoolean.php',
- 'Hamcrest\\Type\\IsCallable' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsCallable.php',
- 'Hamcrest\\Type\\IsDouble' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsDouble.php',
- 'Hamcrest\\Type\\IsInteger' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsInteger.php',
- 'Hamcrest\\Type\\IsNumeric' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsNumeric.php',
- 'Hamcrest\\Type\\IsObject' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php',
- 'Hamcrest\\Type\\IsResource' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsResource.php',
- 'Hamcrest\\Type\\IsScalar' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsScalar.php',
- 'Hamcrest\\Type\\IsString' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php',
- 'Hamcrest\\Util' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php',
- 'Hamcrest\\Xml\\HasXPath' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php',
- 'PHPUnit\\Exception' => $vendorDir . '/phpunit/phpunit/src/Exception.php',
- 'PHPUnit\\Framework\\ActualValueIsNotAnObjectException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php',
- 'PHPUnit\\Framework\\Assert' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert.php',
- 'PHPUnit\\Framework\\AssertionFailedError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/AssertionFailedError.php',
- 'PHPUnit\\Framework\\CodeCoverageException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/CodeCoverageException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotAcceptParameterTypeException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotAcceptParameterTypeException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotDeclareBoolReturnTypeException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotDeclareExactlyOneParameterException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotDeclareParameterTypeException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareParameterTypeException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotExistException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotExistException.php',
- 'PHPUnit\\Framework\\Constraint\\ArrayHasKey' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Traversable/ArrayHasKey.php',
- 'PHPUnit\\Framework\\Constraint\\BinaryOperator' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Operator/BinaryOperator.php',
- 'PHPUnit\\Framework\\Constraint\\Callback' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Callback.php',
- 'PHPUnit\\Framework\\Constraint\\ClassHasAttribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Object/ClassHasAttribute.php',
- 'PHPUnit\\Framework\\Constraint\\ClassHasStaticAttribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Object/ClassHasStaticAttribute.php',
- 'PHPUnit\\Framework\\Constraint\\Constraint' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Constraint.php',
- 'PHPUnit\\Framework\\Constraint\\Count' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/Count.php',
- 'PHPUnit\\Framework\\Constraint\\DirectoryExists' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Filesystem/DirectoryExists.php',
- 'PHPUnit\\Framework\\Constraint\\Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Exception/Exception.php',
- 'PHPUnit\\Framework\\Constraint\\ExceptionCode' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Exception/ExceptionCode.php',
- 'PHPUnit\\Framework\\Constraint\\ExceptionMessage' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Exception/ExceptionMessage.php',
- 'PHPUnit\\Framework\\Constraint\\ExceptionMessageRegularExpression' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Exception/ExceptionMessageRegularExpression.php',
- 'PHPUnit\\Framework\\Constraint\\FileExists' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Filesystem/FileExists.php',
- 'PHPUnit\\Framework\\Constraint\\GreaterThan' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/GreaterThan.php',
- 'PHPUnit\\Framework\\Constraint\\IsAnything' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsAnything.php',
- 'PHPUnit\\Framework\\Constraint\\IsEmpty' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/IsEmpty.php',
- 'PHPUnit\\Framework\\Constraint\\IsEqual' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqual.php',
- 'PHPUnit\\Framework\\Constraint\\IsEqualCanonicalizing' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqualCanonicalizing.php',
- 'PHPUnit\\Framework\\Constraint\\IsEqualIgnoringCase' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqualIgnoringCase.php',
- 'PHPUnit\\Framework\\Constraint\\IsEqualWithDelta' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqualWithDelta.php',
- 'PHPUnit\\Framework\\Constraint\\IsFalse' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Boolean/IsFalse.php',
- 'PHPUnit\\Framework\\Constraint\\IsFinite' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Math/IsFinite.php',
- 'PHPUnit\\Framework\\Constraint\\IsIdentical' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php',
- 'PHPUnit\\Framework\\Constraint\\IsInfinite' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Math/IsInfinite.php',
- 'PHPUnit\\Framework\\Constraint\\IsInstanceOf' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Type/IsInstanceOf.php',
- 'PHPUnit\\Framework\\Constraint\\IsJson' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/String/IsJson.php',
- 'PHPUnit\\Framework\\Constraint\\IsNan' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Math/IsNan.php',
- 'PHPUnit\\Framework\\Constraint\\IsNull' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Type/IsNull.php',
- 'PHPUnit\\Framework\\Constraint\\IsReadable' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Filesystem/IsReadable.php',
- 'PHPUnit\\Framework\\Constraint\\IsTrue' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Boolean/IsTrue.php',
- 'PHPUnit\\Framework\\Constraint\\IsType' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Type/IsType.php',
- 'PHPUnit\\Framework\\Constraint\\IsWritable' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Filesystem/IsWritable.php',
- 'PHPUnit\\Framework\\Constraint\\JsonMatches' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php',
- 'PHPUnit\\Framework\\Constraint\\JsonMatchesErrorMessageProvider' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/JsonMatchesErrorMessageProvider.php',
- 'PHPUnit\\Framework\\Constraint\\LessThan' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/LessThan.php',
- 'PHPUnit\\Framework\\Constraint\\LogicalAnd' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Operator/LogicalAnd.php',
- 'PHPUnit\\Framework\\Constraint\\LogicalNot' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Operator/LogicalNot.php',
- 'PHPUnit\\Framework\\Constraint\\LogicalOr' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Operator/LogicalOr.php',
- 'PHPUnit\\Framework\\Constraint\\LogicalXor' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Operator/LogicalXor.php',
- 'PHPUnit\\Framework\\Constraint\\ObjectEquals' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Object/ObjectEquals.php',
- 'PHPUnit\\Framework\\Constraint\\ObjectHasAttribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Object/ObjectHasAttribute.php',
- 'PHPUnit\\Framework\\Constraint\\ObjectHasProperty' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Object/ObjectHasProperty.php',
- 'PHPUnit\\Framework\\Constraint\\Operator' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Operator/Operator.php',
- 'PHPUnit\\Framework\\Constraint\\RegularExpression' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/String/RegularExpression.php',
- 'PHPUnit\\Framework\\Constraint\\SameSize' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/SameSize.php',
- 'PHPUnit\\Framework\\Constraint\\StringContains' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/String/StringContains.php',
- 'PHPUnit\\Framework\\Constraint\\StringEndsWith' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/String/StringEndsWith.php',
- 'PHPUnit\\Framework\\Constraint\\StringMatchesFormatDescription' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/String/StringMatchesFormatDescription.php',
- 'PHPUnit\\Framework\\Constraint\\StringStartsWith' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/String/StringStartsWith.php',
- 'PHPUnit\\Framework\\Constraint\\TraversableContains' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContains.php',
- 'PHPUnit\\Framework\\Constraint\\TraversableContainsEqual' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContainsEqual.php',
- 'PHPUnit\\Framework\\Constraint\\TraversableContainsIdentical' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContainsIdentical.php',
- 'PHPUnit\\Framework\\Constraint\\TraversableContainsOnly' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContainsOnly.php',
- 'PHPUnit\\Framework\\Constraint\\UnaryOperator' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Operator/UnaryOperator.php',
- 'PHPUnit\\Framework\\CoveredCodeNotExecutedException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/CoveredCodeNotExecutedException.php',
- 'PHPUnit\\Framework\\DataProviderTestSuite' => $vendorDir . '/phpunit/phpunit/src/Framework/DataProviderTestSuite.php',
- 'PHPUnit\\Framework\\Error' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/Error.php',
- 'PHPUnit\\Framework\\ErrorTestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/ErrorTestCase.php',
- 'PHPUnit\\Framework\\Error\\Deprecated' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Deprecated.php',
- 'PHPUnit\\Framework\\Error\\Error' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Error.php',
- 'PHPUnit\\Framework\\Error\\Notice' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Notice.php',
- 'PHPUnit\\Framework\\Error\\Warning' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Warning.php',
- 'PHPUnit\\Framework\\Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/Exception.php',
- 'PHPUnit\\Framework\\ExceptionWrapper' => $vendorDir . '/phpunit/phpunit/src/Framework/ExceptionWrapper.php',
- 'PHPUnit\\Framework\\ExecutionOrderDependency' => $vendorDir . '/phpunit/phpunit/src/Framework/ExecutionOrderDependency.php',
- 'PHPUnit\\Framework\\ExpectationFailedException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/ExpectationFailedException.php',
- 'PHPUnit\\Framework\\IncompleteTest' => $vendorDir . '/phpunit/phpunit/src/Framework/IncompleteTest.php',
- 'PHPUnit\\Framework\\IncompleteTestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/IncompleteTestCase.php',
- 'PHPUnit\\Framework\\IncompleteTestError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/IncompleteTestError.php',
- 'PHPUnit\\Framework\\InvalidArgumentException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/InvalidArgumentException.php',
- 'PHPUnit\\Framework\\InvalidCoversTargetException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/InvalidCoversTargetException.php',
- 'PHPUnit\\Framework\\InvalidDataProviderException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/InvalidDataProviderException.php',
- 'PHPUnit\\Framework\\InvalidParameterGroupException' => $vendorDir . '/phpunit/phpunit/src/Framework/InvalidParameterGroupException.php',
- 'PHPUnit\\Framework\\MissingCoversAnnotationException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/MissingCoversAnnotationException.php',
- 'PHPUnit\\Framework\\MockObject\\Api' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Api/Api.php',
- 'PHPUnit\\Framework\\MockObject\\BadMethodCallException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/BadMethodCallException.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\Identity' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/Identity.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\InvocationMocker' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/InvocationMocker.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\InvocationStubber' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/InvocationStubber.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\MethodNameMatch' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/MethodNameMatch.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\ParametersMatch' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/ParametersMatch.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\Stub' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/Stub.php',
- 'PHPUnit\\Framework\\MockObject\\CannotUseAddMethodsException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/CannotUseAddMethodsException.php',
- 'PHPUnit\\Framework\\MockObject\\CannotUseOnlyMethodsException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/CannotUseOnlyMethodsException.php',
- 'PHPUnit\\Framework\\MockObject\\ClassAlreadyExistsException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/ClassAlreadyExistsException.php',
- 'PHPUnit\\Framework\\MockObject\\ClassIsFinalException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/ClassIsFinalException.php',
- 'PHPUnit\\Framework\\MockObject\\ClassIsReadonlyException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/ClassIsReadonlyException.php',
- 'PHPUnit\\Framework\\MockObject\\ConfigurableMethod' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/ConfigurableMethod.php',
- 'PHPUnit\\Framework\\MockObject\\ConfigurableMethodsAlreadyInitializedException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/ConfigurableMethodsAlreadyInitializedException.php',
- 'PHPUnit\\Framework\\MockObject\\DuplicateMethodException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/DuplicateMethodException.php',
- 'PHPUnit\\Framework\\MockObject\\Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/Exception.php',
- 'PHPUnit\\Framework\\MockObject\\Generator' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Generator.php',
- 'PHPUnit\\Framework\\MockObject\\IncompatibleReturnValueException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/IncompatibleReturnValueException.php',
- 'PHPUnit\\Framework\\MockObject\\InvalidMethodNameException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/InvalidMethodNameException.php',
- 'PHPUnit\\Framework\\MockObject\\Invocation' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Invocation.php',
- 'PHPUnit\\Framework\\MockObject\\InvocationHandler' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/InvocationHandler.php',
- 'PHPUnit\\Framework\\MockObject\\MatchBuilderNotFoundException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/MatchBuilderNotFoundException.php',
- 'PHPUnit\\Framework\\MockObject\\Matcher' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher.php',
- 'PHPUnit\\Framework\\MockObject\\MatcherAlreadyRegisteredException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/MatcherAlreadyRegisteredException.php',
- 'PHPUnit\\Framework\\MockObject\\Method' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Api/Method.php',
- 'PHPUnit\\Framework\\MockObject\\MethodCannotBeConfiguredException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/MethodCannotBeConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\MethodNameAlreadyConfiguredException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/MethodNameAlreadyConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\MethodNameConstraint' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MethodNameConstraint.php',
- 'PHPUnit\\Framework\\MockObject\\MethodNameNotConfiguredException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/MethodNameNotConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\MethodParametersAlreadyConfiguredException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/MethodParametersAlreadyConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\MockBuilder' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php',
- 'PHPUnit\\Framework\\MockObject\\MockClass' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockClass.php',
- 'PHPUnit\\Framework\\MockObject\\MockMethod' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockMethod.php',
- 'PHPUnit\\Framework\\MockObject\\MockMethodSet' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockMethodSet.php',
- 'PHPUnit\\Framework\\MockObject\\MockObject' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockObject.php',
- 'PHPUnit\\Framework\\MockObject\\MockTrait' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockTrait.php',
- 'PHPUnit\\Framework\\MockObject\\MockType' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockType.php',
- 'PHPUnit\\Framework\\MockObject\\OriginalConstructorInvocationRequiredException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/OriginalConstructorInvocationRequiredException.php',
- 'PHPUnit\\Framework\\MockObject\\ReflectionException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/ReflectionException.php',
- 'PHPUnit\\Framework\\MockObject\\ReturnValueNotConfiguredException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/ReturnValueNotConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\AnyInvokedCount' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/AnyInvokedCount.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\AnyParameters' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/AnyParameters.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\ConsecutiveParameters' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/ConsecutiveParameters.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvocationOrder' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvocationOrder.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedAtIndex' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedAtIndex.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedAtLeastCount' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedAtLeastCount.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedAtLeastOnce' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedAtLeastOnce.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedAtMostCount' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedAtMostCount.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedCount' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedCount.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\MethodName' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/MethodName.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\Parameters' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/Parameters.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\ParametersRule' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Rule/ParametersRule.php',
- 'PHPUnit\\Framework\\MockObject\\RuntimeException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/RuntimeException.php',
- 'PHPUnit\\Framework\\MockObject\\SoapExtensionNotAvailableException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/SoapExtensionNotAvailableException.php',
- 'PHPUnit\\Framework\\MockObject\\Stub' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ConsecutiveCalls' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ConsecutiveCalls.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/Exception.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnArgument' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnArgument.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnCallback' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnCallback.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnReference' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnReference.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnSelf' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnSelf.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnStub' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnStub.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnValueMap' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnValueMap.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\Stub' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/Stub.php',
- 'PHPUnit\\Framework\\MockObject\\UnknownClassException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/UnknownClassException.php',
- 'PHPUnit\\Framework\\MockObject\\UnknownTraitException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/UnknownTraitException.php',
- 'PHPUnit\\Framework\\MockObject\\UnknownTypeException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/UnknownTypeException.php',
- 'PHPUnit\\Framework\\MockObject\\Verifiable' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Verifiable.php',
- 'PHPUnit\\Framework\\NoChildTestSuiteException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/NoChildTestSuiteException.php',
- 'PHPUnit\\Framework\\OutputError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/OutputError.php',
- 'PHPUnit\\Framework\\PHPTAssertionFailedError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/PHPTAssertionFailedError.php',
- 'PHPUnit\\Framework\\Reorderable' => $vendorDir . '/phpunit/phpunit/src/Framework/Reorderable.php',
- 'PHPUnit\\Framework\\RiskyTestError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/RiskyTestError.php',
- 'PHPUnit\\Framework\\SelfDescribing' => $vendorDir . '/phpunit/phpunit/src/Framework/SelfDescribing.php',
- 'PHPUnit\\Framework\\SkippedTest' => $vendorDir . '/phpunit/phpunit/src/Framework/SkippedTest.php',
- 'PHPUnit\\Framework\\SkippedTestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/SkippedTestCase.php',
- 'PHPUnit\\Framework\\SkippedTestError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/SkippedTestError.php',
- 'PHPUnit\\Framework\\SkippedTestSuiteError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/SkippedTestSuiteError.php',
- 'PHPUnit\\Framework\\SyntheticError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/SyntheticError.php',
- 'PHPUnit\\Framework\\SyntheticSkippedError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/SyntheticSkippedError.php',
- 'PHPUnit\\Framework\\Test' => $vendorDir . '/phpunit/phpunit/src/Framework/Test.php',
- 'PHPUnit\\Framework\\TestBuilder' => $vendorDir . '/phpunit/phpunit/src/Framework/TestBuilder.php',
- 'PHPUnit\\Framework\\TestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/TestCase.php',
- 'PHPUnit\\Framework\\TestFailure' => $vendorDir . '/phpunit/phpunit/src/Framework/TestFailure.php',
- 'PHPUnit\\Framework\\TestListener' => $vendorDir . '/phpunit/phpunit/src/Framework/TestListener.php',
- 'PHPUnit\\Framework\\TestListenerDefaultImplementation' => $vendorDir . '/phpunit/phpunit/src/Framework/TestListenerDefaultImplementation.php',
- 'PHPUnit\\Framework\\TestResult' => $vendorDir . '/phpunit/phpunit/src/Framework/TestResult.php',
- 'PHPUnit\\Framework\\TestSuite' => $vendorDir . '/phpunit/phpunit/src/Framework/TestSuite.php',
- 'PHPUnit\\Framework\\TestSuiteIterator' => $vendorDir . '/phpunit/phpunit/src/Framework/TestSuiteIterator.php',
- 'PHPUnit\\Framework\\UnintentionallyCoveredCodeError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/UnintentionallyCoveredCodeError.php',
- 'PHPUnit\\Framework\\Warning' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/Warning.php',
- 'PHPUnit\\Framework\\WarningTestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/WarningTestCase.php',
- 'PHPUnit\\Runner\\AfterIncompleteTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterIncompleteTestHook.php',
- 'PHPUnit\\Runner\\AfterLastTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterLastTestHook.php',
- 'PHPUnit\\Runner\\AfterRiskyTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterRiskyTestHook.php',
- 'PHPUnit\\Runner\\AfterSkippedTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterSkippedTestHook.php',
- 'PHPUnit\\Runner\\AfterSuccessfulTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterSuccessfulTestHook.php',
- 'PHPUnit\\Runner\\AfterTestErrorHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterTestErrorHook.php',
- 'PHPUnit\\Runner\\AfterTestFailureHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterTestFailureHook.php',
- 'PHPUnit\\Runner\\AfterTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterTestHook.php',
- 'PHPUnit\\Runner\\AfterTestWarningHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterTestWarningHook.php',
- 'PHPUnit\\Runner\\BaseTestRunner' => $vendorDir . '/phpunit/phpunit/src/Runner/BaseTestRunner.php',
- 'PHPUnit\\Runner\\BeforeFirstTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/BeforeFirstTestHook.php',
- 'PHPUnit\\Runner\\BeforeTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/BeforeTestHook.php',
- 'PHPUnit\\Runner\\DefaultTestResultCache' => $vendorDir . '/phpunit/phpunit/src/Runner/DefaultTestResultCache.php',
- 'PHPUnit\\Runner\\Exception' => $vendorDir . '/phpunit/phpunit/src/Runner/Exception.php',
- 'PHPUnit\\Runner\\Extension\\ExtensionHandler' => $vendorDir . '/phpunit/phpunit/src/Runner/Extension/ExtensionHandler.php',
- 'PHPUnit\\Runner\\Extension\\PharLoader' => $vendorDir . '/phpunit/phpunit/src/Runner/Extension/PharLoader.php',
- 'PHPUnit\\Runner\\Filter\\ExcludeGroupFilterIterator' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/ExcludeGroupFilterIterator.php',
- 'PHPUnit\\Runner\\Filter\\Factory' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/Factory.php',
- 'PHPUnit\\Runner\\Filter\\GroupFilterIterator' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/GroupFilterIterator.php',
- 'PHPUnit\\Runner\\Filter\\IncludeGroupFilterIterator' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/IncludeGroupFilterIterator.php',
- 'PHPUnit\\Runner\\Filter\\NameFilterIterator' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/NameFilterIterator.php',
- 'PHPUnit\\Runner\\Hook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/Hook.php',
- 'PHPUnit\\Runner\\NullTestResultCache' => $vendorDir . '/phpunit/phpunit/src/Runner/NullTestResultCache.php',
- 'PHPUnit\\Runner\\PhptTestCase' => $vendorDir . '/phpunit/phpunit/src/Runner/PhptTestCase.php',
- 'PHPUnit\\Runner\\ResultCacheExtension' => $vendorDir . '/phpunit/phpunit/src/Runner/ResultCacheExtension.php',
- 'PHPUnit\\Runner\\StandardTestSuiteLoader' => $vendorDir . '/phpunit/phpunit/src/Runner/StandardTestSuiteLoader.php',
- 'PHPUnit\\Runner\\TestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/TestHook.php',
- 'PHPUnit\\Runner\\TestListenerAdapter' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/TestListenerAdapter.php',
- 'PHPUnit\\Runner\\TestResultCache' => $vendorDir . '/phpunit/phpunit/src/Runner/TestResultCache.php',
- 'PHPUnit\\Runner\\TestSuiteLoader' => $vendorDir . '/phpunit/phpunit/src/Runner/TestSuiteLoader.php',
- 'PHPUnit\\Runner\\TestSuiteSorter' => $vendorDir . '/phpunit/phpunit/src/Runner/TestSuiteSorter.php',
- 'PHPUnit\\Runner\\Version' => $vendorDir . '/phpunit/phpunit/src/Runner/Version.php',
- 'PHPUnit\\TextUI\\CliArguments\\Builder' => $vendorDir . '/phpunit/phpunit/src/TextUI/CliArguments/Builder.php',
- 'PHPUnit\\TextUI\\CliArguments\\Configuration' => $vendorDir . '/phpunit/phpunit/src/TextUI/CliArguments/Configuration.php',
- 'PHPUnit\\TextUI\\CliArguments\\Exception' => $vendorDir . '/phpunit/phpunit/src/TextUI/CliArguments/Exception.php',
- 'PHPUnit\\TextUI\\CliArguments\\Mapper' => $vendorDir . '/phpunit/phpunit/src/TextUI/CliArguments/Mapper.php',
- 'PHPUnit\\TextUI\\Command' => $vendorDir . '/phpunit/phpunit/src/TextUI/Command.php',
- 'PHPUnit\\TextUI\\DefaultResultPrinter' => $vendorDir . '/phpunit/phpunit/src/TextUI/DefaultResultPrinter.php',
- 'PHPUnit\\TextUI\\Exception' => $vendorDir . '/phpunit/phpunit/src/TextUI/Exception/Exception.php',
- 'PHPUnit\\TextUI\\Help' => $vendorDir . '/phpunit/phpunit/src/TextUI/Help.php',
- 'PHPUnit\\TextUI\\ReflectionException' => $vendorDir . '/phpunit/phpunit/src/TextUI/Exception/ReflectionException.php',
- 'PHPUnit\\TextUI\\ResultPrinter' => $vendorDir . '/phpunit/phpunit/src/TextUI/ResultPrinter.php',
- 'PHPUnit\\TextUI\\RuntimeException' => $vendorDir . '/phpunit/phpunit/src/TextUI/Exception/RuntimeException.php',
- 'PHPUnit\\TextUI\\TestDirectoryNotFoundException' => $vendorDir . '/phpunit/phpunit/src/TextUI/Exception/TestDirectoryNotFoundException.php',
- 'PHPUnit\\TextUI\\TestFileNotFoundException' => $vendorDir . '/phpunit/phpunit/src/TextUI/Exception/TestFileNotFoundException.php',
- 'PHPUnit\\TextUI\\TestRunner' => $vendorDir . '/phpunit/phpunit/src/TextUI/TestRunner.php',
- 'PHPUnit\\TextUI\\TestSuiteMapper' => $vendorDir . '/phpunit/phpunit/src/TextUI/TestSuiteMapper.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\CodeCoverage' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/CodeCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\FilterMapper' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/FilterMapper.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Filter\\Directory' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Filter/Directory.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Filter\\DirectoryCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Filter/DirectoryCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Filter\\DirectoryCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Filter/DirectoryCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Clover' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Clover.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Cobertura' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Cobertura.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Crap4j' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Crap4j.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Html' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Html.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Php' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Php.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Text' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Text.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Xml' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Xml.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Configuration' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Configuration.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Constant' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/Constant.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ConstantCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/ConstantCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ConstantCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/ConstantCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ConvertLogTypes' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/ConvertLogTypes.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageCloverToReport' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageCloverToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageCrap4jToReport' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageCrap4jToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageHtmlToReport' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageHtmlToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoveragePhpToReport' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoveragePhpToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageTextToReport' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageTextToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageXmlToReport' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageXmlToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Directory' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/Directory.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\DirectoryCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/DirectoryCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\DirectoryCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/DirectoryCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Exception' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Exception.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Extension' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHPUnit/Extension.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ExtensionCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHPUnit/ExtensionCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ExtensionCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHPUnit/ExtensionCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\File' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/File.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\FileCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/FileCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\FileCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/FileCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Generator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Generator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Group' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Group/Group.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\GroupCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Group/GroupCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\GroupCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Group/GroupCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Groups' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Group/Groups.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\IniSetting' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/IniSetting.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\IniSettingCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/IniSettingCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\IniSettingCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/IniSettingCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\IntroduceCoverageElement' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/IntroduceCoverageElement.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Loader' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Loader.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\LogToReportMigration' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/LogToReportMigration.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\Junit' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/Junit.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\Logging' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/Logging.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\TeamCity' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/TeamCity.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\TestDox\\Html' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/TestDox/Html.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\TestDox\\Text' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/TestDox/Text.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\TestDox\\Xml' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/TestDox/Xml.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\Text' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/Text.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Migration' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/Migration.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MigrationBuilder' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/MigrationBuilder.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MigrationBuilderException' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/MigrationBuilderException.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MigrationException' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/MigrationException.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Migrator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MoveAttributesFromFilterWhitelistToCoverage' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/MoveAttributesFromFilterWhitelistToCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MoveAttributesFromRootToCoverage' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/MoveAttributesFromRootToCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MoveWhitelistExcludesToCoverage' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/MoveWhitelistExcludesToCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MoveWhitelistIncludesToCoverage' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/MoveWhitelistIncludesToCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\PHPUnit' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHPUnit/PHPUnit.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Php' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/Php.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\PhpHandler' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/PhpHandler.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\RemoveCacheTokensAttribute' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/RemoveCacheTokensAttribute.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\RemoveEmptyFilter' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/RemoveEmptyFilter.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\RemoveLogTypes' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/RemoveLogTypes.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestDirectory' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestDirectory.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestDirectoryCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestDirectoryCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestDirectoryCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestDirectoryCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestFile' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestFile.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestFileCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestFileCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestFileCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestFileCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestSuite' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestSuite.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestSuiteCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestSuiteCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestSuiteCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestSuiteCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\UpdateSchemaLocationTo93' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/UpdateSchemaLocationTo93.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Variable' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/Variable.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\VariableCollection' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/VariableCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\VariableCollectionIterator' => $vendorDir . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/VariableCollectionIterator.php',
- 'PHPUnit\\Util\\Annotation\\DocBlock' => $vendorDir . '/phpunit/phpunit/src/Util/Annotation/DocBlock.php',
- 'PHPUnit\\Util\\Annotation\\Registry' => $vendorDir . '/phpunit/phpunit/src/Util/Annotation/Registry.php',
- 'PHPUnit\\Util\\Blacklist' => $vendorDir . '/phpunit/phpunit/src/Util/Blacklist.php',
- 'PHPUnit\\Util\\Cloner' => $vendorDir . '/phpunit/phpunit/src/Util/Cloner.php',
- 'PHPUnit\\Util\\Color' => $vendorDir . '/phpunit/phpunit/src/Util/Color.php',
- 'PHPUnit\\Util\\ErrorHandler' => $vendorDir . '/phpunit/phpunit/src/Util/ErrorHandler.php',
- 'PHPUnit\\Util\\Exception' => $vendorDir . '/phpunit/phpunit/src/Util/Exception.php',
- 'PHPUnit\\Util\\ExcludeList' => $vendorDir . '/phpunit/phpunit/src/Util/ExcludeList.php',
- 'PHPUnit\\Util\\FileLoader' => $vendorDir . '/phpunit/phpunit/src/Util/FileLoader.php',
- 'PHPUnit\\Util\\Filesystem' => $vendorDir . '/phpunit/phpunit/src/Util/Filesystem.php',
- 'PHPUnit\\Util\\Filter' => $vendorDir . '/phpunit/phpunit/src/Util/Filter.php',
- 'PHPUnit\\Util\\GlobalState' => $vendorDir . '/phpunit/phpunit/src/Util/GlobalState.php',
- 'PHPUnit\\Util\\InvalidDataSetException' => $vendorDir . '/phpunit/phpunit/src/Util/InvalidDataSetException.php',
- 'PHPUnit\\Util\\Json' => $vendorDir . '/phpunit/phpunit/src/Util/Json.php',
- 'PHPUnit\\Util\\Log\\JUnit' => $vendorDir . '/phpunit/phpunit/src/Util/Log/JUnit.php',
- 'PHPUnit\\Util\\Log\\TeamCity' => $vendorDir . '/phpunit/phpunit/src/Util/Log/TeamCity.php',
- 'PHPUnit\\Util\\PHP\\AbstractPhpProcess' => $vendorDir . '/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php',
- 'PHPUnit\\Util\\PHP\\DefaultPhpProcess' => $vendorDir . '/phpunit/phpunit/src/Util/PHP/DefaultPhpProcess.php',
- 'PHPUnit\\Util\\PHP\\WindowsPhpProcess' => $vendorDir . '/phpunit/phpunit/src/Util/PHP/WindowsPhpProcess.php',
- 'PHPUnit\\Util\\Printer' => $vendorDir . '/phpunit/phpunit/src/Util/Printer.php',
- 'PHPUnit\\Util\\Reflection' => $vendorDir . '/phpunit/phpunit/src/Util/Reflection.php',
- 'PHPUnit\\Util\\RegularExpression' => $vendorDir . '/phpunit/phpunit/src/Util/RegularExpression.php',
- 'PHPUnit\\Util\\Test' => $vendorDir . '/phpunit/phpunit/src/Util/Test.php',
- 'PHPUnit\\Util\\TestDox\\CliTestDoxPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/CliTestDoxPrinter.php',
- 'PHPUnit\\Util\\TestDox\\HtmlResultPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/HtmlResultPrinter.php',
- 'PHPUnit\\Util\\TestDox\\NamePrettifier' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/NamePrettifier.php',
- 'PHPUnit\\Util\\TestDox\\ResultPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php',
- 'PHPUnit\\Util\\TestDox\\TestDoxPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/TestDoxPrinter.php',
- 'PHPUnit\\Util\\TestDox\\TextResultPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/TextResultPrinter.php',
- 'PHPUnit\\Util\\TestDox\\XmlResultPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/XmlResultPrinter.php',
- 'PHPUnit\\Util\\TextTestListRenderer' => $vendorDir . '/phpunit/phpunit/src/Util/TextTestListRenderer.php',
- 'PHPUnit\\Util\\Type' => $vendorDir . '/phpunit/phpunit/src/Util/Type.php',
- 'PHPUnit\\Util\\VersionComparisonOperator' => $vendorDir . '/phpunit/phpunit/src/Util/VersionComparisonOperator.php',
- 'PHPUnit\\Util\\XdebugFilterScriptGenerator' => $vendorDir . '/phpunit/phpunit/src/Util/XdebugFilterScriptGenerator.php',
- 'PHPUnit\\Util\\Xml' => $vendorDir . '/phpunit/phpunit/src/Util/Xml.php',
- 'PHPUnit\\Util\\XmlTestListRenderer' => $vendorDir . '/phpunit/phpunit/src/Util/XmlTestListRenderer.php',
- 'PHPUnit\\Util\\Xml\\Exception' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/Exception.php',
- 'PHPUnit\\Util\\Xml\\FailedSchemaDetectionResult' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/FailedSchemaDetectionResult.php',
- 'PHPUnit\\Util\\Xml\\Loader' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/Loader.php',
- 'PHPUnit\\Util\\Xml\\SchemaDetectionResult' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/SchemaDetectionResult.php',
- 'PHPUnit\\Util\\Xml\\SchemaDetector' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/SchemaDetector.php',
- 'PHPUnit\\Util\\Xml\\SchemaFinder' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/SchemaFinder.php',
- 'PHPUnit\\Util\\Xml\\SnapshotNodeList' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/SnapshotNodeList.php',
- 'PHPUnit\\Util\\Xml\\SuccessfulSchemaDetectionResult' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/SuccessfulSchemaDetectionResult.php',
- 'PHPUnit\\Util\\Xml\\ValidationResult' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/ValidationResult.php',
- 'PHPUnit\\Util\\Xml\\Validator' => $vendorDir . '/phpunit/phpunit/src/Util/Xml/Validator.php',
- 'PharIo\\Manifest\\Application' => $vendorDir . '/phar-io/manifest/src/values/Application.php',
- 'PharIo\\Manifest\\ApplicationName' => $vendorDir . '/phar-io/manifest/src/values/ApplicationName.php',
- 'PharIo\\Manifest\\Author' => $vendorDir . '/phar-io/manifest/src/values/Author.php',
- 'PharIo\\Manifest\\AuthorCollection' => $vendorDir . '/phar-io/manifest/src/values/AuthorCollection.php',
- 'PharIo\\Manifest\\AuthorCollectionIterator' => $vendorDir . '/phar-io/manifest/src/values/AuthorCollectionIterator.php',
- 'PharIo\\Manifest\\AuthorElement' => $vendorDir . '/phar-io/manifest/src/xml/AuthorElement.php',
- 'PharIo\\Manifest\\AuthorElementCollection' => $vendorDir . '/phar-io/manifest/src/xml/AuthorElementCollection.php',
- 'PharIo\\Manifest\\BundledComponent' => $vendorDir . '/phar-io/manifest/src/values/BundledComponent.php',
- 'PharIo\\Manifest\\BundledComponentCollection' => $vendorDir . '/phar-io/manifest/src/values/BundledComponentCollection.php',
- 'PharIo\\Manifest\\BundledComponentCollectionIterator' => $vendorDir . '/phar-io/manifest/src/values/BundledComponentCollectionIterator.php',
- 'PharIo\\Manifest\\BundlesElement' => $vendorDir . '/phar-io/manifest/src/xml/BundlesElement.php',
- 'PharIo\\Manifest\\ComponentElement' => $vendorDir . '/phar-io/manifest/src/xml/ComponentElement.php',
- 'PharIo\\Manifest\\ComponentElementCollection' => $vendorDir . '/phar-io/manifest/src/xml/ComponentElementCollection.php',
- 'PharIo\\Manifest\\ContainsElement' => $vendorDir . '/phar-io/manifest/src/xml/ContainsElement.php',
- 'PharIo\\Manifest\\CopyrightElement' => $vendorDir . '/phar-io/manifest/src/xml/CopyrightElement.php',
- 'PharIo\\Manifest\\CopyrightInformation' => $vendorDir . '/phar-io/manifest/src/values/CopyrightInformation.php',
- 'PharIo\\Manifest\\ElementCollection' => $vendorDir . '/phar-io/manifest/src/xml/ElementCollection.php',
- 'PharIo\\Manifest\\ElementCollectionException' => $vendorDir . '/phar-io/manifest/src/exceptions/ElementCollectionException.php',
- 'PharIo\\Manifest\\Email' => $vendorDir . '/phar-io/manifest/src/values/Email.php',
- 'PharIo\\Manifest\\Exception' => $vendorDir . '/phar-io/manifest/src/exceptions/Exception.php',
- 'PharIo\\Manifest\\ExtElement' => $vendorDir . '/phar-io/manifest/src/xml/ExtElement.php',
- 'PharIo\\Manifest\\ExtElementCollection' => $vendorDir . '/phar-io/manifest/src/xml/ExtElementCollection.php',
- 'PharIo\\Manifest\\Extension' => $vendorDir . '/phar-io/manifest/src/values/Extension.php',
- 'PharIo\\Manifest\\ExtensionElement' => $vendorDir . '/phar-io/manifest/src/xml/ExtensionElement.php',
- 'PharIo\\Manifest\\InvalidApplicationNameException' => $vendorDir . '/phar-io/manifest/src/exceptions/InvalidApplicationNameException.php',
- 'PharIo\\Manifest\\InvalidEmailException' => $vendorDir . '/phar-io/manifest/src/exceptions/InvalidEmailException.php',
- 'PharIo\\Manifest\\InvalidUrlException' => $vendorDir . '/phar-io/manifest/src/exceptions/InvalidUrlException.php',
- 'PharIo\\Manifest\\Library' => $vendorDir . '/phar-io/manifest/src/values/Library.php',
- 'PharIo\\Manifest\\License' => $vendorDir . '/phar-io/manifest/src/values/License.php',
- 'PharIo\\Manifest\\LicenseElement' => $vendorDir . '/phar-io/manifest/src/xml/LicenseElement.php',
- 'PharIo\\Manifest\\Manifest' => $vendorDir . '/phar-io/manifest/src/values/Manifest.php',
- 'PharIo\\Manifest\\ManifestDocument' => $vendorDir . '/phar-io/manifest/src/xml/ManifestDocument.php',
- 'PharIo\\Manifest\\ManifestDocumentException' => $vendorDir . '/phar-io/manifest/src/exceptions/ManifestDocumentException.php',
- 'PharIo\\Manifest\\ManifestDocumentLoadingException' => $vendorDir . '/phar-io/manifest/src/exceptions/ManifestDocumentLoadingException.php',
- 'PharIo\\Manifest\\ManifestDocumentMapper' => $vendorDir . '/phar-io/manifest/src/ManifestDocumentMapper.php',
- 'PharIo\\Manifest\\ManifestDocumentMapperException' => $vendorDir . '/phar-io/manifest/src/exceptions/ManifestDocumentMapperException.php',
- 'PharIo\\Manifest\\ManifestElement' => $vendorDir . '/phar-io/manifest/src/xml/ManifestElement.php',
- 'PharIo\\Manifest\\ManifestElementException' => $vendorDir . '/phar-io/manifest/src/exceptions/ManifestElementException.php',
- 'PharIo\\Manifest\\ManifestLoader' => $vendorDir . '/phar-io/manifest/src/ManifestLoader.php',
- 'PharIo\\Manifest\\ManifestLoaderException' => $vendorDir . '/phar-io/manifest/src/exceptions/ManifestLoaderException.php',
- 'PharIo\\Manifest\\ManifestSerializer' => $vendorDir . '/phar-io/manifest/src/ManifestSerializer.php',
- 'PharIo\\Manifest\\NoEmailAddressException' => $vendorDir . '/phar-io/manifest/src/exceptions/NoEmailAddressException.php',
- 'PharIo\\Manifest\\PhpElement' => $vendorDir . '/phar-io/manifest/src/xml/PhpElement.php',
- 'PharIo\\Manifest\\PhpExtensionRequirement' => $vendorDir . '/phar-io/manifest/src/values/PhpExtensionRequirement.php',
- 'PharIo\\Manifest\\PhpVersionRequirement' => $vendorDir . '/phar-io/manifest/src/values/PhpVersionRequirement.php',
- 'PharIo\\Manifest\\Requirement' => $vendorDir . '/phar-io/manifest/src/values/Requirement.php',
- 'PharIo\\Manifest\\RequirementCollection' => $vendorDir . '/phar-io/manifest/src/values/RequirementCollection.php',
- 'PharIo\\Manifest\\RequirementCollectionIterator' => $vendorDir . '/phar-io/manifest/src/values/RequirementCollectionIterator.php',
- 'PharIo\\Manifest\\RequiresElement' => $vendorDir . '/phar-io/manifest/src/xml/RequiresElement.php',
- 'PharIo\\Manifest\\Type' => $vendorDir . '/phar-io/manifest/src/values/Type.php',
- 'PharIo\\Manifest\\Url' => $vendorDir . '/phar-io/manifest/src/values/Url.php',
- 'PharIo\\Version\\AbstractVersionConstraint' => $vendorDir . '/phar-io/version/src/constraints/AbstractVersionConstraint.php',
- 'PharIo\\Version\\AndVersionConstraintGroup' => $vendorDir . '/phar-io/version/src/constraints/AndVersionConstraintGroup.php',
- 'PharIo\\Version\\AnyVersionConstraint' => $vendorDir . '/phar-io/version/src/constraints/AnyVersionConstraint.php',
- 'PharIo\\Version\\BuildMetaData' => $vendorDir . '/phar-io/version/src/BuildMetaData.php',
- 'PharIo\\Version\\ExactVersionConstraint' => $vendorDir . '/phar-io/version/src/constraints/ExactVersionConstraint.php',
- 'PharIo\\Version\\Exception' => $vendorDir . '/phar-io/version/src/exceptions/Exception.php',
- 'PharIo\\Version\\GreaterThanOrEqualToVersionConstraint' => $vendorDir . '/phar-io/version/src/constraints/GreaterThanOrEqualToVersionConstraint.php',
- 'PharIo\\Version\\InvalidPreReleaseSuffixException' => $vendorDir . '/phar-io/version/src/exceptions/InvalidPreReleaseSuffixException.php',
- 'PharIo\\Version\\InvalidVersionException' => $vendorDir . '/phar-io/version/src/exceptions/InvalidVersionException.php',
- 'PharIo\\Version\\NoBuildMetaDataException' => $vendorDir . '/phar-io/version/src/exceptions/NoBuildMetaDataException.php',
- 'PharIo\\Version\\NoPreReleaseSuffixException' => $vendorDir . '/phar-io/version/src/exceptions/NoPreReleaseSuffixException.php',
- 'PharIo\\Version\\OrVersionConstraintGroup' => $vendorDir . '/phar-io/version/src/constraints/OrVersionConstraintGroup.php',
- 'PharIo\\Version\\PreReleaseSuffix' => $vendorDir . '/phar-io/version/src/PreReleaseSuffix.php',
- 'PharIo\\Version\\SpecificMajorAndMinorVersionConstraint' => $vendorDir . '/phar-io/version/src/constraints/SpecificMajorAndMinorVersionConstraint.php',
- 'PharIo\\Version\\SpecificMajorVersionConstraint' => $vendorDir . '/phar-io/version/src/constraints/SpecificMajorVersionConstraint.php',
- 'PharIo\\Version\\UnsupportedVersionConstraintException' => $vendorDir . '/phar-io/version/src/exceptions/UnsupportedVersionConstraintException.php',
- 'PharIo\\Version\\Version' => $vendorDir . '/phar-io/version/src/Version.php',
- 'PharIo\\Version\\VersionConstraint' => $vendorDir . '/phar-io/version/src/constraints/VersionConstraint.php',
- 'PharIo\\Version\\VersionConstraintParser' => $vendorDir . '/phar-io/version/src/VersionConstraintParser.php',
- 'PharIo\\Version\\VersionConstraintValue' => $vendorDir . '/phar-io/version/src/VersionConstraintValue.php',
- 'PharIo\\Version\\VersionNumber' => $vendorDir . '/phar-io/version/src/VersionNumber.php',
- 'SebastianBergmann\\CliParser\\AmbiguousOptionException' => $vendorDir . '/sebastian/cli-parser/src/exceptions/AmbiguousOptionException.php',
- 'SebastianBergmann\\CliParser\\Exception' => $vendorDir . '/sebastian/cli-parser/src/exceptions/Exception.php',
- 'SebastianBergmann\\CliParser\\OptionDoesNotAllowArgumentException' => $vendorDir . '/sebastian/cli-parser/src/exceptions/OptionDoesNotAllowArgumentException.php',
- 'SebastianBergmann\\CliParser\\Parser' => $vendorDir . '/sebastian/cli-parser/src/Parser.php',
- 'SebastianBergmann\\CliParser\\RequiredOptionArgumentMissingException' => $vendorDir . '/sebastian/cli-parser/src/exceptions/RequiredOptionArgumentMissingException.php',
- 'SebastianBergmann\\CliParser\\UnknownOptionException' => $vendorDir . '/sebastian/cli-parser/src/exceptions/UnknownOptionException.php',
- 'SebastianBergmann\\CodeCoverage\\BranchAndPathCoverageNotSupportedException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/BranchAndPathCoverageNotSupportedException.php',
- 'SebastianBergmann\\CodeCoverage\\CodeCoverage' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage.php',
- 'SebastianBergmann\\CodeCoverage\\DeadCodeDetectionNotSupportedException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/DeadCodeDetectionNotSupportedException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Driver' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/Driver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PathExistsButIsNotDirectoryException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/PathExistsButIsNotDirectoryException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PcovDriver' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/PcovDriver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PcovNotAvailableException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/PcovNotAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PhpdbgDriver' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/PhpdbgDriver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PhpdbgNotAvailableException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/PhpdbgNotAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Selector' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/Selector.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\WriteOperationFailedException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/WriteOperationFailedException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\WrongXdebugVersionException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/WrongXdebugVersionException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Xdebug2Driver' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/Xdebug2Driver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Xdebug2NotEnabledException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/Xdebug2NotEnabledException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Xdebug3Driver' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/Xdebug3Driver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Xdebug3NotEnabledException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/Xdebug3NotEnabledException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\XdebugNotAvailableException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/XdebugNotAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\Exception' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/Exception.php',
- 'SebastianBergmann\\CodeCoverage\\Filter' => $vendorDir . '/phpunit/php-code-coverage/src/Filter.php',
- 'SebastianBergmann\\CodeCoverage\\InvalidArgumentException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/InvalidArgumentException.php',
- 'SebastianBergmann\\CodeCoverage\\NoCodeCoverageDriverAvailableException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/NoCodeCoverageDriverAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\NoCodeCoverageDriverWithPathCoverageSupportAvailableException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/NoCodeCoverageDriverWithPathCoverageSupportAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\AbstractNode' => $vendorDir . '/phpunit/php-code-coverage/src/Node/AbstractNode.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\Builder' => $vendorDir . '/phpunit/php-code-coverage/src/Node/Builder.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\CrapIndex' => $vendorDir . '/phpunit/php-code-coverage/src/Node/CrapIndex.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\Directory' => $vendorDir . '/phpunit/php-code-coverage/src/Node/Directory.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\File' => $vendorDir . '/phpunit/php-code-coverage/src/Node/File.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\Iterator' => $vendorDir . '/phpunit/php-code-coverage/src/Node/Iterator.php',
- 'SebastianBergmann\\CodeCoverage\\ParserException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/ParserException.php',
- 'SebastianBergmann\\CodeCoverage\\ProcessedCodeCoverageData' => $vendorDir . '/phpunit/php-code-coverage/src/ProcessedCodeCoverageData.php',
- 'SebastianBergmann\\CodeCoverage\\RawCodeCoverageData' => $vendorDir . '/phpunit/php-code-coverage/src/RawCodeCoverageData.php',
- 'SebastianBergmann\\CodeCoverage\\ReflectionException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/ReflectionException.php',
- 'SebastianBergmann\\CodeCoverage\\ReportAlreadyFinalizedException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/ReportAlreadyFinalizedException.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Clover' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Clover.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Cobertura' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Cobertura.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Crap4j' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Crap4j.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Dashboard' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Renderer/Dashboard.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Directory' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Renderer/Directory.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Facade' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Facade.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\File' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Renderer' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Renderer.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\PHP' => $vendorDir . '/phpunit/php-code-coverage/src/Report/PHP.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Text' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Text.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\BuildInformation' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/BuildInformation.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Coverage' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Coverage.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Directory' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Directory.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Facade' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Facade.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\File' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/File.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Method' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Method.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Node' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Node.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Project' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Project.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Report' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Report.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Source' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Source.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Tests' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Tests.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Totals' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Totals.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Unit' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Unit.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysisCacheNotConfiguredException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/StaticAnalysisCacheNotConfiguredException.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\CacheWarmer' => $vendorDir . '/phpunit/php-code-coverage/src/StaticAnalysis/CacheWarmer.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\CachingFileAnalyser' => $vendorDir . '/phpunit/php-code-coverage/src/StaticAnalysis/CachingFileAnalyser.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\CodeUnitFindingVisitor' => $vendorDir . '/phpunit/php-code-coverage/src/StaticAnalysis/CodeUnitFindingVisitor.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\ExecutableLinesFindingVisitor' => $vendorDir . '/phpunit/php-code-coverage/src/StaticAnalysis/ExecutableLinesFindingVisitor.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\FileAnalyser' => $vendorDir . '/phpunit/php-code-coverage/src/StaticAnalysis/FileAnalyser.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\IgnoredLinesFindingVisitor' => $vendorDir . '/phpunit/php-code-coverage/src/StaticAnalysis/IgnoredLinesFindingVisitor.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\ParsingFileAnalyser' => $vendorDir . '/phpunit/php-code-coverage/src/StaticAnalysis/ParsingFileAnalyser.php',
- 'SebastianBergmann\\CodeCoverage\\TestIdMissingException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/TestIdMissingException.php',
- 'SebastianBergmann\\CodeCoverage\\UnintentionallyCoveredCodeException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/UnintentionallyCoveredCodeException.php',
- 'SebastianBergmann\\CodeCoverage\\Util\\DirectoryCouldNotBeCreatedException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/DirectoryCouldNotBeCreatedException.php',
- 'SebastianBergmann\\CodeCoverage\\Util\\Filesystem' => $vendorDir . '/phpunit/php-code-coverage/src/Util/Filesystem.php',
- 'SebastianBergmann\\CodeCoverage\\Util\\Percentage' => $vendorDir . '/phpunit/php-code-coverage/src/Util/Percentage.php',
- 'SebastianBergmann\\CodeCoverage\\Version' => $vendorDir . '/phpunit/php-code-coverage/src/Version.php',
- 'SebastianBergmann\\CodeCoverage\\XmlException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/XmlException.php',
- 'SebastianBergmann\\CodeUnitReverseLookup\\Wizard' => $vendorDir . '/sebastian/code-unit-reverse-lookup/src/Wizard.php',
- 'SebastianBergmann\\CodeUnit\\ClassMethodUnit' => $vendorDir . '/sebastian/code-unit/src/ClassMethodUnit.php',
- 'SebastianBergmann\\CodeUnit\\ClassUnit' => $vendorDir . '/sebastian/code-unit/src/ClassUnit.php',
- 'SebastianBergmann\\CodeUnit\\CodeUnit' => $vendorDir . '/sebastian/code-unit/src/CodeUnit.php',
- 'SebastianBergmann\\CodeUnit\\CodeUnitCollection' => $vendorDir . '/sebastian/code-unit/src/CodeUnitCollection.php',
- 'SebastianBergmann\\CodeUnit\\CodeUnitCollectionIterator' => $vendorDir . '/sebastian/code-unit/src/CodeUnitCollectionIterator.php',
- 'SebastianBergmann\\CodeUnit\\Exception' => $vendorDir . '/sebastian/code-unit/src/exceptions/Exception.php',
- 'SebastianBergmann\\CodeUnit\\FunctionUnit' => $vendorDir . '/sebastian/code-unit/src/FunctionUnit.php',
- 'SebastianBergmann\\CodeUnit\\InterfaceMethodUnit' => $vendorDir . '/sebastian/code-unit/src/InterfaceMethodUnit.php',
- 'SebastianBergmann\\CodeUnit\\InterfaceUnit' => $vendorDir . '/sebastian/code-unit/src/InterfaceUnit.php',
- 'SebastianBergmann\\CodeUnit\\InvalidCodeUnitException' => $vendorDir . '/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php',
- 'SebastianBergmann\\CodeUnit\\Mapper' => $vendorDir . '/sebastian/code-unit/src/Mapper.php',
- 'SebastianBergmann\\CodeUnit\\NoTraitException' => $vendorDir . '/sebastian/code-unit/src/exceptions/NoTraitException.php',
- 'SebastianBergmann\\CodeUnit\\ReflectionException' => $vendorDir . '/sebastian/code-unit/src/exceptions/ReflectionException.php',
- 'SebastianBergmann\\CodeUnit\\TraitMethodUnit' => $vendorDir . '/sebastian/code-unit/src/TraitMethodUnit.php',
- 'SebastianBergmann\\CodeUnit\\TraitUnit' => $vendorDir . '/sebastian/code-unit/src/TraitUnit.php',
- 'SebastianBergmann\\Comparator\\ArrayComparator' => $vendorDir . '/sebastian/comparator/src/ArrayComparator.php',
- 'SebastianBergmann\\Comparator\\Comparator' => $vendorDir . '/sebastian/comparator/src/Comparator.php',
- 'SebastianBergmann\\Comparator\\ComparisonFailure' => $vendorDir . '/sebastian/comparator/src/ComparisonFailure.php',
- 'SebastianBergmann\\Comparator\\DOMNodeComparator' => $vendorDir . '/sebastian/comparator/src/DOMNodeComparator.php',
- 'SebastianBergmann\\Comparator\\DateTimeComparator' => $vendorDir . '/sebastian/comparator/src/DateTimeComparator.php',
- 'SebastianBergmann\\Comparator\\DoubleComparator' => $vendorDir . '/sebastian/comparator/src/DoubleComparator.php',
- 'SebastianBergmann\\Comparator\\Exception' => $vendorDir . '/sebastian/comparator/src/exceptions/Exception.php',
- 'SebastianBergmann\\Comparator\\ExceptionComparator' => $vendorDir . '/sebastian/comparator/src/ExceptionComparator.php',
- 'SebastianBergmann\\Comparator\\Factory' => $vendorDir . '/sebastian/comparator/src/Factory.php',
- 'SebastianBergmann\\Comparator\\MockObjectComparator' => $vendorDir . '/sebastian/comparator/src/MockObjectComparator.php',
- 'SebastianBergmann\\Comparator\\NumericComparator' => $vendorDir . '/sebastian/comparator/src/NumericComparator.php',
- 'SebastianBergmann\\Comparator\\ObjectComparator' => $vendorDir . '/sebastian/comparator/src/ObjectComparator.php',
- 'SebastianBergmann\\Comparator\\ResourceComparator' => $vendorDir . '/sebastian/comparator/src/ResourceComparator.php',
- 'SebastianBergmann\\Comparator\\RuntimeException' => $vendorDir . '/sebastian/comparator/src/exceptions/RuntimeException.php',
- 'SebastianBergmann\\Comparator\\ScalarComparator' => $vendorDir . '/sebastian/comparator/src/ScalarComparator.php',
- 'SebastianBergmann\\Comparator\\SplObjectStorageComparator' => $vendorDir . '/sebastian/comparator/src/SplObjectStorageComparator.php',
- 'SebastianBergmann\\Comparator\\TypeComparator' => $vendorDir . '/sebastian/comparator/src/TypeComparator.php',
- 'SebastianBergmann\\Complexity\\Calculator' => $vendorDir . '/sebastian/complexity/src/Calculator.php',
- 'SebastianBergmann\\Complexity\\Complexity' => $vendorDir . '/sebastian/complexity/src/Complexity/Complexity.php',
- 'SebastianBergmann\\Complexity\\ComplexityCalculatingVisitor' => $vendorDir . '/sebastian/complexity/src/Visitor/ComplexityCalculatingVisitor.php',
- 'SebastianBergmann\\Complexity\\ComplexityCollection' => $vendorDir . '/sebastian/complexity/src/Complexity/ComplexityCollection.php',
- 'SebastianBergmann\\Complexity\\ComplexityCollectionIterator' => $vendorDir . '/sebastian/complexity/src/Complexity/ComplexityCollectionIterator.php',
- 'SebastianBergmann\\Complexity\\CyclomaticComplexityCalculatingVisitor' => $vendorDir . '/sebastian/complexity/src/Visitor/CyclomaticComplexityCalculatingVisitor.php',
- 'SebastianBergmann\\Complexity\\Exception' => $vendorDir . '/sebastian/complexity/src/Exception/Exception.php',
- 'SebastianBergmann\\Complexity\\RuntimeException' => $vendorDir . '/sebastian/complexity/src/Exception/RuntimeException.php',
- 'SebastianBergmann\\Diff\\Chunk' => $vendorDir . '/sebastian/diff/src/Chunk.php',
- 'SebastianBergmann\\Diff\\ConfigurationException' => $vendorDir . '/sebastian/diff/src/Exception/ConfigurationException.php',
- 'SebastianBergmann\\Diff\\Diff' => $vendorDir . '/sebastian/diff/src/Diff.php',
- 'SebastianBergmann\\Diff\\Differ' => $vendorDir . '/sebastian/diff/src/Differ.php',
- 'SebastianBergmann\\Diff\\Exception' => $vendorDir . '/sebastian/diff/src/Exception/Exception.php',
- 'SebastianBergmann\\Diff\\InvalidArgumentException' => $vendorDir . '/sebastian/diff/src/Exception/InvalidArgumentException.php',
- 'SebastianBergmann\\Diff\\Line' => $vendorDir . '/sebastian/diff/src/Line.php',
- 'SebastianBergmann\\Diff\\LongestCommonSubsequenceCalculator' => $vendorDir . '/sebastian/diff/src/LongestCommonSubsequenceCalculator.php',
- 'SebastianBergmann\\Diff\\MemoryEfficientLongestCommonSubsequenceCalculator' => $vendorDir . '/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php',
- 'SebastianBergmann\\Diff\\Output\\AbstractChunkOutputBuilder' => $vendorDir . '/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php',
- 'SebastianBergmann\\Diff\\Output\\DiffOnlyOutputBuilder' => $vendorDir . '/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php',
- 'SebastianBergmann\\Diff\\Output\\DiffOutputBuilderInterface' => $vendorDir . '/sebastian/diff/src/Output/DiffOutputBuilderInterface.php',
- 'SebastianBergmann\\Diff\\Output\\StrictUnifiedDiffOutputBuilder' => $vendorDir . '/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php',
- 'SebastianBergmann\\Diff\\Output\\UnifiedDiffOutputBuilder' => $vendorDir . '/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php',
- 'SebastianBergmann\\Diff\\Parser' => $vendorDir . '/sebastian/diff/src/Parser.php',
- 'SebastianBergmann\\Diff\\TimeEfficientLongestCommonSubsequenceCalculator' => $vendorDir . '/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php',
- 'SebastianBergmann\\Environment\\Console' => $vendorDir . '/sebastian/environment/src/Console.php',
- 'SebastianBergmann\\Environment\\OperatingSystem' => $vendorDir . '/sebastian/environment/src/OperatingSystem.php',
- 'SebastianBergmann\\Environment\\Runtime' => $vendorDir . '/sebastian/environment/src/Runtime.php',
- 'SebastianBergmann\\Exporter\\Exporter' => $vendorDir . '/sebastian/exporter/src/Exporter.php',
- 'SebastianBergmann\\FileIterator\\Facade' => $vendorDir . '/phpunit/php-file-iterator/src/Facade.php',
- 'SebastianBergmann\\FileIterator\\Factory' => $vendorDir . '/phpunit/php-file-iterator/src/Factory.php',
- 'SebastianBergmann\\FileIterator\\Iterator' => $vendorDir . '/phpunit/php-file-iterator/src/Iterator.php',
- 'SebastianBergmann\\GlobalState\\CodeExporter' => $vendorDir . '/sebastian/global-state/src/CodeExporter.php',
- 'SebastianBergmann\\GlobalState\\Exception' => $vendorDir . '/sebastian/global-state/src/exceptions/Exception.php',
- 'SebastianBergmann\\GlobalState\\ExcludeList' => $vendorDir . '/sebastian/global-state/src/ExcludeList.php',
- 'SebastianBergmann\\GlobalState\\Restorer' => $vendorDir . '/sebastian/global-state/src/Restorer.php',
- 'SebastianBergmann\\GlobalState\\RuntimeException' => $vendorDir . '/sebastian/global-state/src/exceptions/RuntimeException.php',
- 'SebastianBergmann\\GlobalState\\Snapshot' => $vendorDir . '/sebastian/global-state/src/Snapshot.php',
- 'SebastianBergmann\\Invoker\\Exception' => $vendorDir . '/phpunit/php-invoker/src/exceptions/Exception.php',
- 'SebastianBergmann\\Invoker\\Invoker' => $vendorDir . '/phpunit/php-invoker/src/Invoker.php',
- 'SebastianBergmann\\Invoker\\ProcessControlExtensionNotLoadedException' => $vendorDir . '/phpunit/php-invoker/src/exceptions/ProcessControlExtensionNotLoadedException.php',
- 'SebastianBergmann\\Invoker\\TimeoutException' => $vendorDir . '/phpunit/php-invoker/src/exceptions/TimeoutException.php',
- 'SebastianBergmann\\LinesOfCode\\Counter' => $vendorDir . '/sebastian/lines-of-code/src/Counter.php',
- 'SebastianBergmann\\LinesOfCode\\Exception' => $vendorDir . '/sebastian/lines-of-code/src/Exception/Exception.php',
- 'SebastianBergmann\\LinesOfCode\\IllogicalValuesException' => $vendorDir . '/sebastian/lines-of-code/src/Exception/IllogicalValuesException.php',
- 'SebastianBergmann\\LinesOfCode\\LineCountingVisitor' => $vendorDir . '/sebastian/lines-of-code/src/LineCountingVisitor.php',
- 'SebastianBergmann\\LinesOfCode\\LinesOfCode' => $vendorDir . '/sebastian/lines-of-code/src/LinesOfCode.php',
- 'SebastianBergmann\\LinesOfCode\\NegativeValueException' => $vendorDir . '/sebastian/lines-of-code/src/Exception/NegativeValueException.php',
- 'SebastianBergmann\\LinesOfCode\\RuntimeException' => $vendorDir . '/sebastian/lines-of-code/src/Exception/RuntimeException.php',
- 'SebastianBergmann\\ObjectEnumerator\\Enumerator' => $vendorDir . '/sebastian/object-enumerator/src/Enumerator.php',
- 'SebastianBergmann\\ObjectEnumerator\\Exception' => $vendorDir . '/sebastian/object-enumerator/src/Exception.php',
- 'SebastianBergmann\\ObjectEnumerator\\InvalidArgumentException' => $vendorDir . '/sebastian/object-enumerator/src/InvalidArgumentException.php',
- 'SebastianBergmann\\ObjectReflector\\Exception' => $vendorDir . '/sebastian/object-reflector/src/Exception.php',
- 'SebastianBergmann\\ObjectReflector\\InvalidArgumentException' => $vendorDir . '/sebastian/object-reflector/src/InvalidArgumentException.php',
- 'SebastianBergmann\\ObjectReflector\\ObjectReflector' => $vendorDir . '/sebastian/object-reflector/src/ObjectReflector.php',
- 'SebastianBergmann\\RecursionContext\\Context' => $vendorDir . '/sebastian/recursion-context/src/Context.php',
- 'SebastianBergmann\\RecursionContext\\Exception' => $vendorDir . '/sebastian/recursion-context/src/Exception.php',
- 'SebastianBergmann\\RecursionContext\\InvalidArgumentException' => $vendorDir . '/sebastian/recursion-context/src/InvalidArgumentException.php',
- 'SebastianBergmann\\ResourceOperations\\ResourceOperations' => $vendorDir . '/sebastian/resource-operations/src/ResourceOperations.php',
- 'SebastianBergmann\\Template\\Exception' => $vendorDir . '/phpunit/php-text-template/src/exceptions/Exception.php',
- 'SebastianBergmann\\Template\\InvalidArgumentException' => $vendorDir . '/phpunit/php-text-template/src/exceptions/InvalidArgumentException.php',
- 'SebastianBergmann\\Template\\RuntimeException' => $vendorDir . '/phpunit/php-text-template/src/exceptions/RuntimeException.php',
- 'SebastianBergmann\\Template\\Template' => $vendorDir . '/phpunit/php-text-template/src/Template.php',
- 'SebastianBergmann\\Timer\\Duration' => $vendorDir . '/phpunit/php-timer/src/Duration.php',
- 'SebastianBergmann\\Timer\\Exception' => $vendorDir . '/phpunit/php-timer/src/exceptions/Exception.php',
- 'SebastianBergmann\\Timer\\NoActiveTimerException' => $vendorDir . '/phpunit/php-timer/src/exceptions/NoActiveTimerException.php',
- 'SebastianBergmann\\Timer\\ResourceUsageFormatter' => $vendorDir . '/phpunit/php-timer/src/ResourceUsageFormatter.php',
- 'SebastianBergmann\\Timer\\TimeSinceStartOfRequestNotAvailableException' => $vendorDir . '/phpunit/php-timer/src/exceptions/TimeSinceStartOfRequestNotAvailableException.php',
- 'SebastianBergmann\\Timer\\Timer' => $vendorDir . '/phpunit/php-timer/src/Timer.php',
- 'SebastianBergmann\\Type\\CallableType' => $vendorDir . '/sebastian/type/src/type/CallableType.php',
- 'SebastianBergmann\\Type\\Exception' => $vendorDir . '/sebastian/type/src/exception/Exception.php',
- 'SebastianBergmann\\Type\\FalseType' => $vendorDir . '/sebastian/type/src/type/FalseType.php',
- 'SebastianBergmann\\Type\\GenericObjectType' => $vendorDir . '/sebastian/type/src/type/GenericObjectType.php',
- 'SebastianBergmann\\Type\\IntersectionType' => $vendorDir . '/sebastian/type/src/type/IntersectionType.php',
- 'SebastianBergmann\\Type\\IterableType' => $vendorDir . '/sebastian/type/src/type/IterableType.php',
- 'SebastianBergmann\\Type\\MixedType' => $vendorDir . '/sebastian/type/src/type/MixedType.php',
- 'SebastianBergmann\\Type\\NeverType' => $vendorDir . '/sebastian/type/src/type/NeverType.php',
- 'SebastianBergmann\\Type\\NullType' => $vendorDir . '/sebastian/type/src/type/NullType.php',
- 'SebastianBergmann\\Type\\ObjectType' => $vendorDir . '/sebastian/type/src/type/ObjectType.php',
- 'SebastianBergmann\\Type\\Parameter' => $vendorDir . '/sebastian/type/src/Parameter.php',
- 'SebastianBergmann\\Type\\ReflectionMapper' => $vendorDir . '/sebastian/type/src/ReflectionMapper.php',
- 'SebastianBergmann\\Type\\RuntimeException' => $vendorDir . '/sebastian/type/src/exception/RuntimeException.php',
- 'SebastianBergmann\\Type\\SimpleType' => $vendorDir . '/sebastian/type/src/type/SimpleType.php',
- 'SebastianBergmann\\Type\\StaticType' => $vendorDir . '/sebastian/type/src/type/StaticType.php',
- 'SebastianBergmann\\Type\\TrueType' => $vendorDir . '/sebastian/type/src/type/TrueType.php',
- 'SebastianBergmann\\Type\\Type' => $vendorDir . '/sebastian/type/src/type/Type.php',
- 'SebastianBergmann\\Type\\TypeName' => $vendorDir . '/sebastian/type/src/TypeName.php',
- 'SebastianBergmann\\Type\\UnionType' => $vendorDir . '/sebastian/type/src/type/UnionType.php',
- 'SebastianBergmann\\Type\\UnknownType' => $vendorDir . '/sebastian/type/src/type/UnknownType.php',
- 'SebastianBergmann\\Type\\VoidType' => $vendorDir . '/sebastian/type/src/type/VoidType.php',
- 'SebastianBergmann\\Version' => $vendorDir . '/sebastian/version/src/Version.php',
- 'TheSeer\\Tokenizer\\Exception' => $vendorDir . '/theseer/tokenizer/src/Exception.php',
- 'TheSeer\\Tokenizer\\NamespaceUri' => $vendorDir . '/theseer/tokenizer/src/NamespaceUri.php',
- 'TheSeer\\Tokenizer\\NamespaceUriException' => $vendorDir . '/theseer/tokenizer/src/NamespaceUriException.php',
- 'TheSeer\\Tokenizer\\Token' => $vendorDir . '/theseer/tokenizer/src/Token.php',
- 'TheSeer\\Tokenizer\\TokenCollection' => $vendorDir . '/theseer/tokenizer/src/TokenCollection.php',
- 'TheSeer\\Tokenizer\\TokenCollectionException' => $vendorDir . '/theseer/tokenizer/src/TokenCollectionException.php',
- 'TheSeer\\Tokenizer\\Tokenizer' => $vendorDir . '/theseer/tokenizer/src/Tokenizer.php',
- 'TheSeer\\Tokenizer\\XMLSerializer' => $vendorDir . '/theseer/tokenizer/src/XMLSerializer.php',
- 'Yoast\\WPTestUtils\\BrainMonkey\\TestCase' => $vendorDir . '/yoast/wp-test-utils/src/BrainMonkey/TestCase.php',
- 'Yoast\\WPTestUtils\\BrainMonkey\\YoastTestCase' => $vendorDir . '/yoast/wp-test-utils/src/BrainMonkey/YoastTestCase.php',
- 'Yoast\\WPTestUtils\\Helpers\\ExpectOutputHelper' => $vendorDir . '/yoast/wp-test-utils/src/Helpers/ExpectOutputHelper.php',
- 'Yoast\\WPTestUtils\\WPIntegration\\Autoload' => $vendorDir . '/yoast/wp-test-utils/src/WPIntegration/Autoload.php',
- 'Yoast\\WPTestUtils\\WPIntegration\\TestCase' => $vendorDir . '/yoast/wp-test-utils/src/WPIntegration/TestCaseOnlyObjectPropertyPolyfill.php',
-);
diff --git a/wordpress-dev/vendor/composer/autoload_files.php b/wordpress-dev/vendor/composer/autoload_files.php
deleted file mode 100644
index 6686b97c..00000000
--- a/wordpress-dev/vendor/composer/autoload_files.php
+++ /dev/null
@@ -1,16 +0,0 @@
- $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
- 'c72349b1fe8d0deeedd3a52e8aa814d8' => $vendorDir . '/mockery/mockery/library/helpers.php',
- 'ce9671a430e4846b44e1c68c7611f9f5' => $vendorDir . '/mockery/mockery/library/Mockery.php',
- 'ec07570ca5a812141189b1fa81503674' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert/Functions.php',
- '051bafe20e2674435a162870efa2d2a7' => $vendorDir . '/brain/monkey/inc/api.php',
- '7d3b315c4f303f2fc14aca642a738e50' => $vendorDir . '/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php',
- '38fbb71d514eee25044aa9d94851ee76' => $vendorDir . '/wp-phpunit/wp-phpunit/__loaded.php',
-);
diff --git a/wordpress-dev/vendor/composer/autoload_namespaces.php b/wordpress-dev/vendor/composer/autoload_namespaces.php
deleted file mode 100644
index 15a2ff3a..00000000
--- a/wordpress-dev/vendor/composer/autoload_namespaces.php
+++ /dev/null
@@ -1,9 +0,0 @@
- array($vendorDir . '/nikic/php-parser/lib/PhpParser'),
- 'Mockery\\' => array($vendorDir . '/mockery/mockery/library/Mockery'),
- 'HVAC\\Tests\\' => array($baseDir . '/tests'),
- 'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
- 'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'),
- 'Brain\\Monkey\\' => array($vendorDir . '/brain/monkey/src'),
-);
diff --git a/wordpress-dev/vendor/composer/autoload_real.php b/wordpress-dev/vendor/composer/autoload_real.php
deleted file mode 100644
index 40993d1e..00000000
--- a/wordpress-dev/vendor/composer/autoload_real.php
+++ /dev/null
@@ -1,48 +0,0 @@
-register(true);
-
- $filesToLoad = \Composer\Autoload\ComposerStaticInit7b920e9ab8aa41d80bd9a138659e6903::$files;
- $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
- if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
- $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
-
- require $file;
- }
- }, null, null);
- foreach ($filesToLoad as $fileIdentifier => $file) {
- $requireFile($fileIdentifier, $file);
- }
-
- return $loader;
- }
-}
diff --git a/wordpress-dev/vendor/composer/autoload_static.php b/wordpress-dev/vendor/composer/autoload_static.php
deleted file mode 100644
index 20cfabb6..00000000
--- a/wordpress-dev/vendor/composer/autoload_static.php
+++ /dev/null
@@ -1,785 +0,0 @@
- __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
- 'c72349b1fe8d0deeedd3a52e8aa814d8' => __DIR__ . '/..' . '/mockery/mockery/library/helpers.php',
- 'ce9671a430e4846b44e1c68c7611f9f5' => __DIR__ . '/..' . '/mockery/mockery/library/Mockery.php',
- 'ec07570ca5a812141189b1fa81503674' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert/Functions.php',
- '051bafe20e2674435a162870efa2d2a7' => __DIR__ . '/..' . '/brain/monkey/inc/api.php',
- '7d3b315c4f303f2fc14aca642a738e50' => __DIR__ . '/..' . '/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php',
- '38fbb71d514eee25044aa9d94851ee76' => __DIR__ . '/..' . '/wp-phpunit/wp-phpunit/__loaded.php',
- );
-
- public static $prefixLengthsPsr4 = array (
- 'P' =>
- array (
- 'PhpParser\\' => 10,
- ),
- 'M' =>
- array (
- 'Mockery\\' => 8,
- ),
- 'H' =>
- array (
- 'HVAC\\Tests\\' => 11,
- ),
- 'D' =>
- array (
- 'Doctrine\\Instantiator\\' => 22,
- 'DeepCopy\\' => 9,
- ),
- 'B' =>
- array (
- 'Brain\\Monkey\\' => 13,
- ),
- );
-
- public static $prefixDirsPsr4 = array (
- 'PhpParser\\' =>
- array (
- 0 => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser',
- ),
- 'Mockery\\' =>
- array (
- 0 => __DIR__ . '/..' . '/mockery/mockery/library/Mockery',
- ),
- 'HVAC\\Tests\\' =>
- array (
- 0 => __DIR__ . '/../..' . '/tests',
- ),
- 'Doctrine\\Instantiator\\' =>
- array (
- 0 => __DIR__ . '/..' . '/doctrine/instantiator/src/Doctrine/Instantiator',
- ),
- 'DeepCopy\\' =>
- array (
- 0 => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy',
- ),
- 'Brain\\Monkey\\' =>
- array (
- 0 => __DIR__ . '/..' . '/brain/monkey/src',
- ),
- );
-
- public static $classMap = array (
- 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
- 'Hamcrest\\Arrays\\IsArray' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php',
- 'Hamcrest\\Arrays\\IsArrayContaining' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php',
- 'Hamcrest\\Arrays\\IsArrayContainingInAnyOrder' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php',
- 'Hamcrest\\Arrays\\IsArrayContainingInOrder' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php',
- 'Hamcrest\\Arrays\\IsArrayContainingKey' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php',
- 'Hamcrest\\Arrays\\IsArrayContainingKeyValuePair' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php',
- 'Hamcrest\\Arrays\\IsArrayWithSize' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php',
- 'Hamcrest\\Arrays\\MatchingOnce' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/MatchingOnce.php',
- 'Hamcrest\\Arrays\\SeriesMatchingOnce' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php',
- 'Hamcrest\\AssertionError' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php',
- 'Hamcrest\\BaseDescription' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseDescription.php',
- 'Hamcrest\\BaseMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php',
- 'Hamcrest\\Collection\\IsEmptyTraversable' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php',
- 'Hamcrest\\Collection\\IsTraversableWithSize' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php',
- 'Hamcrest\\Core\\AllOf' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AllOf.php',
- 'Hamcrest\\Core\\AnyOf' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php',
- 'Hamcrest\\Core\\CombinableMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php',
- 'Hamcrest\\Core\\DescribedAs' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php',
- 'Hamcrest\\Core\\Every' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php',
- 'Hamcrest\\Core\\HasToString' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php',
- 'Hamcrest\\Core\\Is' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php',
- 'Hamcrest\\Core\\IsAnything' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php',
- 'Hamcrest\\Core\\IsCollectionContaining' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php',
- 'Hamcrest\\Core\\IsEqual' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php',
- 'Hamcrest\\Core\\IsIdentical' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php',
- 'Hamcrest\\Core\\IsInstanceOf' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php',
- 'Hamcrest\\Core\\IsNot' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php',
- 'Hamcrest\\Core\\IsNull' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php',
- 'Hamcrest\\Core\\IsSame' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php',
- 'Hamcrest\\Core\\IsTypeOf' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php',
- 'Hamcrest\\Core\\Set' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php',
- 'Hamcrest\\Core\\ShortcutCombination' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php',
- 'Hamcrest\\Description' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php',
- 'Hamcrest\\DiagnosingMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/DiagnosingMatcher.php',
- 'Hamcrest\\FeatureMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php',
- 'Hamcrest\\Internal\\SelfDescribingValue' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php',
- 'Hamcrest\\Matcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php',
- 'Hamcrest\\MatcherAssert' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php',
- 'Hamcrest\\Matchers' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php',
- 'Hamcrest\\NullDescription' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php',
- 'Hamcrest\\Number\\IsCloseTo' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/IsCloseTo.php',
- 'Hamcrest\\Number\\OrderingComparison' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php',
- 'Hamcrest\\SelfDescribing' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php',
- 'Hamcrest\\StringDescription' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/StringDescription.php',
- 'Hamcrest\\Text\\IsEmptyString' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php',
- 'Hamcrest\\Text\\IsEqualIgnoringCase' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php',
- 'Hamcrest\\Text\\IsEqualIgnoringWhiteSpace' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php',
- 'Hamcrest\\Text\\MatchesPattern' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php',
- 'Hamcrest\\Text\\StringContains' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php',
- 'Hamcrest\\Text\\StringContainsIgnoringCase' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php',
- 'Hamcrest\\Text\\StringContainsInOrder' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php',
- 'Hamcrest\\Text\\StringEndsWith' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php',
- 'Hamcrest\\Text\\StringStartsWith' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php',
- 'Hamcrest\\Text\\SubstringMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php',
- 'Hamcrest\\TypeSafeDiagnosingMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeDiagnosingMatcher.php',
- 'Hamcrest\\TypeSafeMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php',
- 'Hamcrest\\Type\\IsArray' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php',
- 'Hamcrest\\Type\\IsBoolean' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsBoolean.php',
- 'Hamcrest\\Type\\IsCallable' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsCallable.php',
- 'Hamcrest\\Type\\IsDouble' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsDouble.php',
- 'Hamcrest\\Type\\IsInteger' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsInteger.php',
- 'Hamcrest\\Type\\IsNumeric' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsNumeric.php',
- 'Hamcrest\\Type\\IsObject' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php',
- 'Hamcrest\\Type\\IsResource' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsResource.php',
- 'Hamcrest\\Type\\IsScalar' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsScalar.php',
- 'Hamcrest\\Type\\IsString' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php',
- 'Hamcrest\\Util' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php',
- 'Hamcrest\\Xml\\HasXPath' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php',
- 'PHPUnit\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Exception.php',
- 'PHPUnit\\Framework\\ActualValueIsNotAnObjectException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php',
- 'PHPUnit\\Framework\\Assert' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert.php',
- 'PHPUnit\\Framework\\AssertionFailedError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/AssertionFailedError.php',
- 'PHPUnit\\Framework\\CodeCoverageException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/CodeCoverageException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotAcceptParameterTypeException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotAcceptParameterTypeException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotDeclareBoolReturnTypeException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotDeclareExactlyOneParameterException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotDeclareParameterTypeException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotDeclareParameterTypeException.php',
- 'PHPUnit\\Framework\\ComparisonMethodDoesNotExistException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotExistException.php',
- 'PHPUnit\\Framework\\Constraint\\ArrayHasKey' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Traversable/ArrayHasKey.php',
- 'PHPUnit\\Framework\\Constraint\\BinaryOperator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Operator/BinaryOperator.php',
- 'PHPUnit\\Framework\\Constraint\\Callback' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Callback.php',
- 'PHPUnit\\Framework\\Constraint\\ClassHasAttribute' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Object/ClassHasAttribute.php',
- 'PHPUnit\\Framework\\Constraint\\ClassHasStaticAttribute' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Object/ClassHasStaticAttribute.php',
- 'PHPUnit\\Framework\\Constraint\\Constraint' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Constraint.php',
- 'PHPUnit\\Framework\\Constraint\\Count' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/Count.php',
- 'PHPUnit\\Framework\\Constraint\\DirectoryExists' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Filesystem/DirectoryExists.php',
- 'PHPUnit\\Framework\\Constraint\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Exception/Exception.php',
- 'PHPUnit\\Framework\\Constraint\\ExceptionCode' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Exception/ExceptionCode.php',
- 'PHPUnit\\Framework\\Constraint\\ExceptionMessage' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Exception/ExceptionMessage.php',
- 'PHPUnit\\Framework\\Constraint\\ExceptionMessageRegularExpression' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Exception/ExceptionMessageRegularExpression.php',
- 'PHPUnit\\Framework\\Constraint\\FileExists' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Filesystem/FileExists.php',
- 'PHPUnit\\Framework\\Constraint\\GreaterThan' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/GreaterThan.php',
- 'PHPUnit\\Framework\\Constraint\\IsAnything' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsAnything.php',
- 'PHPUnit\\Framework\\Constraint\\IsEmpty' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/IsEmpty.php',
- 'PHPUnit\\Framework\\Constraint\\IsEqual' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqual.php',
- 'PHPUnit\\Framework\\Constraint\\IsEqualCanonicalizing' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqualCanonicalizing.php',
- 'PHPUnit\\Framework\\Constraint\\IsEqualIgnoringCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqualIgnoringCase.php',
- 'PHPUnit\\Framework\\Constraint\\IsEqualWithDelta' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqualWithDelta.php',
- 'PHPUnit\\Framework\\Constraint\\IsFalse' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Boolean/IsFalse.php',
- 'PHPUnit\\Framework\\Constraint\\IsFinite' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Math/IsFinite.php',
- 'PHPUnit\\Framework\\Constraint\\IsIdentical' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php',
- 'PHPUnit\\Framework\\Constraint\\IsInfinite' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Math/IsInfinite.php',
- 'PHPUnit\\Framework\\Constraint\\IsInstanceOf' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Type/IsInstanceOf.php',
- 'PHPUnit\\Framework\\Constraint\\IsJson' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/String/IsJson.php',
- 'PHPUnit\\Framework\\Constraint\\IsNan' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Math/IsNan.php',
- 'PHPUnit\\Framework\\Constraint\\IsNull' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Type/IsNull.php',
- 'PHPUnit\\Framework\\Constraint\\IsReadable' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Filesystem/IsReadable.php',
- 'PHPUnit\\Framework\\Constraint\\IsTrue' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Boolean/IsTrue.php',
- 'PHPUnit\\Framework\\Constraint\\IsType' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Type/IsType.php',
- 'PHPUnit\\Framework\\Constraint\\IsWritable' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Filesystem/IsWritable.php',
- 'PHPUnit\\Framework\\Constraint\\JsonMatches' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php',
- 'PHPUnit\\Framework\\Constraint\\JsonMatchesErrorMessageProvider' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/JsonMatchesErrorMessageProvider.php',
- 'PHPUnit\\Framework\\Constraint\\LessThan' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/LessThan.php',
- 'PHPUnit\\Framework\\Constraint\\LogicalAnd' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Operator/LogicalAnd.php',
- 'PHPUnit\\Framework\\Constraint\\LogicalNot' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Operator/LogicalNot.php',
- 'PHPUnit\\Framework\\Constraint\\LogicalOr' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Operator/LogicalOr.php',
- 'PHPUnit\\Framework\\Constraint\\LogicalXor' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Operator/LogicalXor.php',
- 'PHPUnit\\Framework\\Constraint\\ObjectEquals' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Object/ObjectEquals.php',
- 'PHPUnit\\Framework\\Constraint\\ObjectHasAttribute' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Object/ObjectHasAttribute.php',
- 'PHPUnit\\Framework\\Constraint\\ObjectHasProperty' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Object/ObjectHasProperty.php',
- 'PHPUnit\\Framework\\Constraint\\Operator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Operator/Operator.php',
- 'PHPUnit\\Framework\\Constraint\\RegularExpression' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/String/RegularExpression.php',
- 'PHPUnit\\Framework\\Constraint\\SameSize' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Cardinality/SameSize.php',
- 'PHPUnit\\Framework\\Constraint\\StringContains' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/String/StringContains.php',
- 'PHPUnit\\Framework\\Constraint\\StringEndsWith' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/String/StringEndsWith.php',
- 'PHPUnit\\Framework\\Constraint\\StringMatchesFormatDescription' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/String/StringMatchesFormatDescription.php',
- 'PHPUnit\\Framework\\Constraint\\StringStartsWith' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/String/StringStartsWith.php',
- 'PHPUnit\\Framework\\Constraint\\TraversableContains' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContains.php',
- 'PHPUnit\\Framework\\Constraint\\TraversableContainsEqual' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContainsEqual.php',
- 'PHPUnit\\Framework\\Constraint\\TraversableContainsIdentical' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContainsIdentical.php',
- 'PHPUnit\\Framework\\Constraint\\TraversableContainsOnly' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContainsOnly.php',
- 'PHPUnit\\Framework\\Constraint\\UnaryOperator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Operator/UnaryOperator.php',
- 'PHPUnit\\Framework\\CoveredCodeNotExecutedException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/CoveredCodeNotExecutedException.php',
- 'PHPUnit\\Framework\\DataProviderTestSuite' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/DataProviderTestSuite.php',
- 'PHPUnit\\Framework\\Error' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/Error.php',
- 'PHPUnit\\Framework\\ErrorTestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/ErrorTestCase.php',
- 'PHPUnit\\Framework\\Error\\Deprecated' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Error/Deprecated.php',
- 'PHPUnit\\Framework\\Error\\Error' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Error/Error.php',
- 'PHPUnit\\Framework\\Error\\Notice' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Error/Notice.php',
- 'PHPUnit\\Framework\\Error\\Warning' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Error/Warning.php',
- 'PHPUnit\\Framework\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/Exception.php',
- 'PHPUnit\\Framework\\ExceptionWrapper' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/ExceptionWrapper.php',
- 'PHPUnit\\Framework\\ExecutionOrderDependency' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/ExecutionOrderDependency.php',
- 'PHPUnit\\Framework\\ExpectationFailedException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/ExpectationFailedException.php',
- 'PHPUnit\\Framework\\IncompleteTest' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/IncompleteTest.php',
- 'PHPUnit\\Framework\\IncompleteTestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/IncompleteTestCase.php',
- 'PHPUnit\\Framework\\IncompleteTestError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/IncompleteTestError.php',
- 'PHPUnit\\Framework\\InvalidArgumentException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/InvalidArgumentException.php',
- 'PHPUnit\\Framework\\InvalidCoversTargetException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/InvalidCoversTargetException.php',
- 'PHPUnit\\Framework\\InvalidDataProviderException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/InvalidDataProviderException.php',
- 'PHPUnit\\Framework\\InvalidParameterGroupException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/InvalidParameterGroupException.php',
- 'PHPUnit\\Framework\\MissingCoversAnnotationException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/MissingCoversAnnotationException.php',
- 'PHPUnit\\Framework\\MockObject\\Api' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Api/Api.php',
- 'PHPUnit\\Framework\\MockObject\\BadMethodCallException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/BadMethodCallException.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\Identity' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Builder/Identity.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\InvocationMocker' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Builder/InvocationMocker.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\InvocationStubber' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Builder/InvocationStubber.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\MethodNameMatch' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Builder/MethodNameMatch.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\ParametersMatch' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Builder/ParametersMatch.php',
- 'PHPUnit\\Framework\\MockObject\\Builder\\Stub' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Builder/Stub.php',
- 'PHPUnit\\Framework\\MockObject\\CannotUseAddMethodsException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/CannotUseAddMethodsException.php',
- 'PHPUnit\\Framework\\MockObject\\CannotUseOnlyMethodsException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/CannotUseOnlyMethodsException.php',
- 'PHPUnit\\Framework\\MockObject\\ClassAlreadyExistsException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/ClassAlreadyExistsException.php',
- 'PHPUnit\\Framework\\MockObject\\ClassIsFinalException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/ClassIsFinalException.php',
- 'PHPUnit\\Framework\\MockObject\\ClassIsReadonlyException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/ClassIsReadonlyException.php',
- 'PHPUnit\\Framework\\MockObject\\ConfigurableMethod' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/ConfigurableMethod.php',
- 'PHPUnit\\Framework\\MockObject\\ConfigurableMethodsAlreadyInitializedException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/ConfigurableMethodsAlreadyInitializedException.php',
- 'PHPUnit\\Framework\\MockObject\\DuplicateMethodException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/DuplicateMethodException.php',
- 'PHPUnit\\Framework\\MockObject\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/Exception.php',
- 'PHPUnit\\Framework\\MockObject\\Generator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Generator.php',
- 'PHPUnit\\Framework\\MockObject\\IncompatibleReturnValueException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/IncompatibleReturnValueException.php',
- 'PHPUnit\\Framework\\MockObject\\InvalidMethodNameException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/InvalidMethodNameException.php',
- 'PHPUnit\\Framework\\MockObject\\Invocation' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Invocation.php',
- 'PHPUnit\\Framework\\MockObject\\InvocationHandler' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/InvocationHandler.php',
- 'PHPUnit\\Framework\\MockObject\\MatchBuilderNotFoundException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/MatchBuilderNotFoundException.php',
- 'PHPUnit\\Framework\\MockObject\\Matcher' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Matcher.php',
- 'PHPUnit\\Framework\\MockObject\\MatcherAlreadyRegisteredException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/MatcherAlreadyRegisteredException.php',
- 'PHPUnit\\Framework\\MockObject\\Method' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Api/Method.php',
- 'PHPUnit\\Framework\\MockObject\\MethodCannotBeConfiguredException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/MethodCannotBeConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\MethodNameAlreadyConfiguredException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/MethodNameAlreadyConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\MethodNameConstraint' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/MethodNameConstraint.php',
- 'PHPUnit\\Framework\\MockObject\\MethodNameNotConfiguredException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/MethodNameNotConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\MethodParametersAlreadyConfiguredException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/MethodParametersAlreadyConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\MockBuilder' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php',
- 'PHPUnit\\Framework\\MockObject\\MockClass' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/MockClass.php',
- 'PHPUnit\\Framework\\MockObject\\MockMethod' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/MockMethod.php',
- 'PHPUnit\\Framework\\MockObject\\MockMethodSet' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/MockMethodSet.php',
- 'PHPUnit\\Framework\\MockObject\\MockObject' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/MockObject.php',
- 'PHPUnit\\Framework\\MockObject\\MockTrait' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/MockTrait.php',
- 'PHPUnit\\Framework\\MockObject\\MockType' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/MockType.php',
- 'PHPUnit\\Framework\\MockObject\\OriginalConstructorInvocationRequiredException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/OriginalConstructorInvocationRequiredException.php',
- 'PHPUnit\\Framework\\MockObject\\ReflectionException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/ReflectionException.php',
- 'PHPUnit\\Framework\\MockObject\\ReturnValueNotConfiguredException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/ReturnValueNotConfiguredException.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\AnyInvokedCount' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/AnyInvokedCount.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\AnyParameters' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/AnyParameters.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\ConsecutiveParameters' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/ConsecutiveParameters.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvocationOrder' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvocationOrder.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedAtIndex' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedAtIndex.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedAtLeastCount' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedAtLeastCount.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedAtLeastOnce' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedAtLeastOnce.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedAtMostCount' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedAtMostCount.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\InvokedCount' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedCount.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\MethodName' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/MethodName.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\Parameters' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/Parameters.php',
- 'PHPUnit\\Framework\\MockObject\\Rule\\ParametersRule' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Rule/ParametersRule.php',
- 'PHPUnit\\Framework\\MockObject\\RuntimeException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/RuntimeException.php',
- 'PHPUnit\\Framework\\MockObject\\SoapExtensionNotAvailableException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/SoapExtensionNotAvailableException.php',
- 'PHPUnit\\Framework\\MockObject\\Stub' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ConsecutiveCalls' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub/ConsecutiveCalls.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub/Exception.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnArgument' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnArgument.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnCallback' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnCallback.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnReference' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnReference.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnSelf' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnSelf.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnStub' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnStub.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnValueMap' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnValueMap.php',
- 'PHPUnit\\Framework\\MockObject\\Stub\\Stub' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Stub/Stub.php',
- 'PHPUnit\\Framework\\MockObject\\UnknownClassException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/UnknownClassException.php',
- 'PHPUnit\\Framework\\MockObject\\UnknownTraitException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/UnknownTraitException.php',
- 'PHPUnit\\Framework\\MockObject\\UnknownTypeException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Exception/UnknownTypeException.php',
- 'PHPUnit\\Framework\\MockObject\\Verifiable' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/MockObject/Verifiable.php',
- 'PHPUnit\\Framework\\NoChildTestSuiteException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/NoChildTestSuiteException.php',
- 'PHPUnit\\Framework\\OutputError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/OutputError.php',
- 'PHPUnit\\Framework\\PHPTAssertionFailedError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/PHPTAssertionFailedError.php',
- 'PHPUnit\\Framework\\Reorderable' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Reorderable.php',
- 'PHPUnit\\Framework\\RiskyTestError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/RiskyTestError.php',
- 'PHPUnit\\Framework\\SelfDescribing' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/SelfDescribing.php',
- 'PHPUnit\\Framework\\SkippedTest' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/SkippedTest.php',
- 'PHPUnit\\Framework\\SkippedTestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/SkippedTestCase.php',
- 'PHPUnit\\Framework\\SkippedTestError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/SkippedTestError.php',
- 'PHPUnit\\Framework\\SkippedTestSuiteError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/SkippedTestSuiteError.php',
- 'PHPUnit\\Framework\\SyntheticError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/SyntheticError.php',
- 'PHPUnit\\Framework\\SyntheticSkippedError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/SyntheticSkippedError.php',
- 'PHPUnit\\Framework\\Test' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Test.php',
- 'PHPUnit\\Framework\\TestBuilder' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestBuilder.php',
- 'PHPUnit\\Framework\\TestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestCase.php',
- 'PHPUnit\\Framework\\TestFailure' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestFailure.php',
- 'PHPUnit\\Framework\\TestListener' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestListener.php',
- 'PHPUnit\\Framework\\TestListenerDefaultImplementation' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestListenerDefaultImplementation.php',
- 'PHPUnit\\Framework\\TestResult' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestResult.php',
- 'PHPUnit\\Framework\\TestSuite' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestSuite.php',
- 'PHPUnit\\Framework\\TestSuiteIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestSuiteIterator.php',
- 'PHPUnit\\Framework\\UnintentionallyCoveredCodeError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/UnintentionallyCoveredCodeError.php',
- 'PHPUnit\\Framework\\Warning' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/Warning.php',
- 'PHPUnit\\Framework\\WarningTestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/WarningTestCase.php',
- 'PHPUnit\\Runner\\AfterIncompleteTestHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/AfterIncompleteTestHook.php',
- 'PHPUnit\\Runner\\AfterLastTestHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/AfterLastTestHook.php',
- 'PHPUnit\\Runner\\AfterRiskyTestHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/AfterRiskyTestHook.php',
- 'PHPUnit\\Runner\\AfterSkippedTestHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/AfterSkippedTestHook.php',
- 'PHPUnit\\Runner\\AfterSuccessfulTestHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/AfterSuccessfulTestHook.php',
- 'PHPUnit\\Runner\\AfterTestErrorHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/AfterTestErrorHook.php',
- 'PHPUnit\\Runner\\AfterTestFailureHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/AfterTestFailureHook.php',
- 'PHPUnit\\Runner\\AfterTestHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/AfterTestHook.php',
- 'PHPUnit\\Runner\\AfterTestWarningHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/AfterTestWarningHook.php',
- 'PHPUnit\\Runner\\BaseTestRunner' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/BaseTestRunner.php',
- 'PHPUnit\\Runner\\BeforeFirstTestHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/BeforeFirstTestHook.php',
- 'PHPUnit\\Runner\\BeforeTestHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/BeforeTestHook.php',
- 'PHPUnit\\Runner\\DefaultTestResultCache' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/DefaultTestResultCache.php',
- 'PHPUnit\\Runner\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Exception.php',
- 'PHPUnit\\Runner\\Extension\\ExtensionHandler' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Extension/ExtensionHandler.php',
- 'PHPUnit\\Runner\\Extension\\PharLoader' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Extension/PharLoader.php',
- 'PHPUnit\\Runner\\Filter\\ExcludeGroupFilterIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/ExcludeGroupFilterIterator.php',
- 'PHPUnit\\Runner\\Filter\\Factory' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/Factory.php',
- 'PHPUnit\\Runner\\Filter\\GroupFilterIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/GroupFilterIterator.php',
- 'PHPUnit\\Runner\\Filter\\IncludeGroupFilterIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/IncludeGroupFilterIterator.php',
- 'PHPUnit\\Runner\\Filter\\NameFilterIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/NameFilterIterator.php',
- 'PHPUnit\\Runner\\Hook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/Hook.php',
- 'PHPUnit\\Runner\\NullTestResultCache' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/NullTestResultCache.php',
- 'PHPUnit\\Runner\\PhptTestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/PhptTestCase.php',
- 'PHPUnit\\Runner\\ResultCacheExtension' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/ResultCacheExtension.php',
- 'PHPUnit\\Runner\\StandardTestSuiteLoader' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/StandardTestSuiteLoader.php',
- 'PHPUnit\\Runner\\TestHook' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/TestHook.php',
- 'PHPUnit\\Runner\\TestListenerAdapter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Hook/TestListenerAdapter.php',
- 'PHPUnit\\Runner\\TestResultCache' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/TestResultCache.php',
- 'PHPUnit\\Runner\\TestSuiteLoader' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/TestSuiteLoader.php',
- 'PHPUnit\\Runner\\TestSuiteSorter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/TestSuiteSorter.php',
- 'PHPUnit\\Runner\\Version' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Version.php',
- 'PHPUnit\\TextUI\\CliArguments\\Builder' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/CliArguments/Builder.php',
- 'PHPUnit\\TextUI\\CliArguments\\Configuration' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/CliArguments/Configuration.php',
- 'PHPUnit\\TextUI\\CliArguments\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/CliArguments/Exception.php',
- 'PHPUnit\\TextUI\\CliArguments\\Mapper' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/CliArguments/Mapper.php',
- 'PHPUnit\\TextUI\\Command' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/Command.php',
- 'PHPUnit\\TextUI\\DefaultResultPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/DefaultResultPrinter.php',
- 'PHPUnit\\TextUI\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/Exception/Exception.php',
- 'PHPUnit\\TextUI\\Help' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/Help.php',
- 'PHPUnit\\TextUI\\ReflectionException' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/Exception/ReflectionException.php',
- 'PHPUnit\\TextUI\\ResultPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/ResultPrinter.php',
- 'PHPUnit\\TextUI\\RuntimeException' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/Exception/RuntimeException.php',
- 'PHPUnit\\TextUI\\TestDirectoryNotFoundException' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/Exception/TestDirectoryNotFoundException.php',
- 'PHPUnit\\TextUI\\TestFileNotFoundException' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/Exception/TestFileNotFoundException.php',
- 'PHPUnit\\TextUI\\TestRunner' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/TestRunner.php',
- 'PHPUnit\\TextUI\\TestSuiteMapper' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/TestSuiteMapper.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\CodeCoverage' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/CodeCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\FilterMapper' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/FilterMapper.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Filter\\Directory' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Filter/Directory.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Filter\\DirectoryCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Filter/DirectoryCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Filter\\DirectoryCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Filter/DirectoryCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Clover' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Clover.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Cobertura' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Cobertura.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Crap4j' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Crap4j.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Html' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Html.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Php' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Php.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Text' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Text.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CodeCoverage\\Report\\Xml' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/CodeCoverage/Report/Xml.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Configuration' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Configuration.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Constant' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/Constant.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ConstantCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/ConstantCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ConstantCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/ConstantCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ConvertLogTypes' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/ConvertLogTypes.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageCloverToReport' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageCloverToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageCrap4jToReport' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageCrap4jToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageHtmlToReport' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageHtmlToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoveragePhpToReport' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoveragePhpToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageTextToReport' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageTextToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\CoverageXmlToReport' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/CoverageXmlToReport.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Directory' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/Directory.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\DirectoryCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/DirectoryCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\DirectoryCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/DirectoryCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Exception.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Extension' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHPUnit/Extension.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ExtensionCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHPUnit/ExtensionCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\ExtensionCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHPUnit/ExtensionCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\File' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/File.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\FileCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/FileCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\FileCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Filesystem/FileCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Generator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Generator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Group' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Group/Group.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\GroupCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Group/GroupCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\GroupCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Group/GroupCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Groups' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Group/Groups.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\IniSetting' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/IniSetting.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\IniSettingCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/IniSettingCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\IniSettingCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/IniSettingCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\IntroduceCoverageElement' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/IntroduceCoverageElement.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Loader' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Loader.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\LogToReportMigration' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/LogToReportMigration.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\Junit' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/Junit.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\Logging' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/Logging.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\TeamCity' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/TeamCity.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\TestDox\\Html' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/TestDox/Html.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\TestDox\\Text' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/TestDox/Text.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\TestDox\\Xml' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/TestDox/Xml.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Logging\\Text' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Logging/Text.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Migration' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/Migration.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MigrationBuilder' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/MigrationBuilder.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MigrationBuilderException' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/MigrationBuilderException.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MigrationException' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/MigrationException.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Migrator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MoveAttributesFromFilterWhitelistToCoverage' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/MoveAttributesFromFilterWhitelistToCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MoveAttributesFromRootToCoverage' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/MoveAttributesFromRootToCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MoveWhitelistExcludesToCoverage' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/MoveWhitelistExcludesToCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\MoveWhitelistIncludesToCoverage' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/MoveWhitelistIncludesToCoverage.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\PHPUnit' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHPUnit/PHPUnit.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Php' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/Php.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\PhpHandler' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/PhpHandler.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\RemoveCacheTokensAttribute' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/RemoveCacheTokensAttribute.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\RemoveEmptyFilter' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/RemoveEmptyFilter.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\RemoveLogTypes' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/RemoveLogTypes.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestDirectory' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestDirectory.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestDirectoryCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestDirectoryCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestDirectoryCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestDirectoryCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestFile' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestFile.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestFileCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestFileCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestFileCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestFileCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestSuite' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestSuite.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestSuiteCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestSuiteCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\TestSuiteCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/TestSuite/TestSuiteCollectionIterator.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\UpdateSchemaLocationTo93' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/Migrations/UpdateSchemaLocationTo93.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\Variable' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/Variable.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\VariableCollection' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/VariableCollection.php',
- 'PHPUnit\\TextUI\\XmlConfiguration\\VariableCollectionIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/XmlConfiguration/PHP/VariableCollectionIterator.php',
- 'PHPUnit\\Util\\Annotation\\DocBlock' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Annotation/DocBlock.php',
- 'PHPUnit\\Util\\Annotation\\Registry' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Annotation/Registry.php',
- 'PHPUnit\\Util\\Blacklist' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Blacklist.php',
- 'PHPUnit\\Util\\Cloner' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Cloner.php',
- 'PHPUnit\\Util\\Color' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Color.php',
- 'PHPUnit\\Util\\ErrorHandler' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/ErrorHandler.php',
- 'PHPUnit\\Util\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Exception.php',
- 'PHPUnit\\Util\\ExcludeList' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/ExcludeList.php',
- 'PHPUnit\\Util\\FileLoader' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/FileLoader.php',
- 'PHPUnit\\Util\\Filesystem' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Filesystem.php',
- 'PHPUnit\\Util\\Filter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Filter.php',
- 'PHPUnit\\Util\\GlobalState' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/GlobalState.php',
- 'PHPUnit\\Util\\InvalidDataSetException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/InvalidDataSetException.php',
- 'PHPUnit\\Util\\Json' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Json.php',
- 'PHPUnit\\Util\\Log\\JUnit' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Log/JUnit.php',
- 'PHPUnit\\Util\\Log\\TeamCity' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Log/TeamCity.php',
- 'PHPUnit\\Util\\PHP\\AbstractPhpProcess' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php',
- 'PHPUnit\\Util\\PHP\\DefaultPhpProcess' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/PHP/DefaultPhpProcess.php',
- 'PHPUnit\\Util\\PHP\\WindowsPhpProcess' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/PHP/WindowsPhpProcess.php',
- 'PHPUnit\\Util\\Printer' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Printer.php',
- 'PHPUnit\\Util\\Reflection' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Reflection.php',
- 'PHPUnit\\Util\\RegularExpression' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/RegularExpression.php',
- 'PHPUnit\\Util\\Test' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Test.php',
- 'PHPUnit\\Util\\TestDox\\CliTestDoxPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/CliTestDoxPrinter.php',
- 'PHPUnit\\Util\\TestDox\\HtmlResultPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/HtmlResultPrinter.php',
- 'PHPUnit\\Util\\TestDox\\NamePrettifier' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/NamePrettifier.php',
- 'PHPUnit\\Util\\TestDox\\ResultPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php',
- 'PHPUnit\\Util\\TestDox\\TestDoxPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/TestDoxPrinter.php',
- 'PHPUnit\\Util\\TestDox\\TextResultPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/TextResultPrinter.php',
- 'PHPUnit\\Util\\TestDox\\XmlResultPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/XmlResultPrinter.php',
- 'PHPUnit\\Util\\TextTestListRenderer' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TextTestListRenderer.php',
- 'PHPUnit\\Util\\Type' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Type.php',
- 'PHPUnit\\Util\\VersionComparisonOperator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/VersionComparisonOperator.php',
- 'PHPUnit\\Util\\XdebugFilterScriptGenerator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/XdebugFilterScriptGenerator.php',
- 'PHPUnit\\Util\\Xml' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml.php',
- 'PHPUnit\\Util\\XmlTestListRenderer' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/XmlTestListRenderer.php',
- 'PHPUnit\\Util\\Xml\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/Exception.php',
- 'PHPUnit\\Util\\Xml\\FailedSchemaDetectionResult' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/FailedSchemaDetectionResult.php',
- 'PHPUnit\\Util\\Xml\\Loader' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/Loader.php',
- 'PHPUnit\\Util\\Xml\\SchemaDetectionResult' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/SchemaDetectionResult.php',
- 'PHPUnit\\Util\\Xml\\SchemaDetector' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/SchemaDetector.php',
- 'PHPUnit\\Util\\Xml\\SchemaFinder' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/SchemaFinder.php',
- 'PHPUnit\\Util\\Xml\\SnapshotNodeList' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/SnapshotNodeList.php',
- 'PHPUnit\\Util\\Xml\\SuccessfulSchemaDetectionResult' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/SuccessfulSchemaDetectionResult.php',
- 'PHPUnit\\Util\\Xml\\ValidationResult' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/ValidationResult.php',
- 'PHPUnit\\Util\\Xml\\Validator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Xml/Validator.php',
- 'PharIo\\Manifest\\Application' => __DIR__ . '/..' . '/phar-io/manifest/src/values/Application.php',
- 'PharIo\\Manifest\\ApplicationName' => __DIR__ . '/..' . '/phar-io/manifest/src/values/ApplicationName.php',
- 'PharIo\\Manifest\\Author' => __DIR__ . '/..' . '/phar-io/manifest/src/values/Author.php',
- 'PharIo\\Manifest\\AuthorCollection' => __DIR__ . '/..' . '/phar-io/manifest/src/values/AuthorCollection.php',
- 'PharIo\\Manifest\\AuthorCollectionIterator' => __DIR__ . '/..' . '/phar-io/manifest/src/values/AuthorCollectionIterator.php',
- 'PharIo\\Manifest\\AuthorElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/AuthorElement.php',
- 'PharIo\\Manifest\\AuthorElementCollection' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/AuthorElementCollection.php',
- 'PharIo\\Manifest\\BundledComponent' => __DIR__ . '/..' . '/phar-io/manifest/src/values/BundledComponent.php',
- 'PharIo\\Manifest\\BundledComponentCollection' => __DIR__ . '/..' . '/phar-io/manifest/src/values/BundledComponentCollection.php',
- 'PharIo\\Manifest\\BundledComponentCollectionIterator' => __DIR__ . '/..' . '/phar-io/manifest/src/values/BundledComponentCollectionIterator.php',
- 'PharIo\\Manifest\\BundlesElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/BundlesElement.php',
- 'PharIo\\Manifest\\ComponentElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/ComponentElement.php',
- 'PharIo\\Manifest\\ComponentElementCollection' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/ComponentElementCollection.php',
- 'PharIo\\Manifest\\ContainsElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/ContainsElement.php',
- 'PharIo\\Manifest\\CopyrightElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/CopyrightElement.php',
- 'PharIo\\Manifest\\CopyrightInformation' => __DIR__ . '/..' . '/phar-io/manifest/src/values/CopyrightInformation.php',
- 'PharIo\\Manifest\\ElementCollection' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/ElementCollection.php',
- 'PharIo\\Manifest\\ElementCollectionException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/ElementCollectionException.php',
- 'PharIo\\Manifest\\Email' => __DIR__ . '/..' . '/phar-io/manifest/src/values/Email.php',
- 'PharIo\\Manifest\\Exception' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/Exception.php',
- 'PharIo\\Manifest\\ExtElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/ExtElement.php',
- 'PharIo\\Manifest\\ExtElementCollection' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/ExtElementCollection.php',
- 'PharIo\\Manifest\\Extension' => __DIR__ . '/..' . '/phar-io/manifest/src/values/Extension.php',
- 'PharIo\\Manifest\\ExtensionElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/ExtensionElement.php',
- 'PharIo\\Manifest\\InvalidApplicationNameException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/InvalidApplicationNameException.php',
- 'PharIo\\Manifest\\InvalidEmailException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/InvalidEmailException.php',
- 'PharIo\\Manifest\\InvalidUrlException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/InvalidUrlException.php',
- 'PharIo\\Manifest\\Library' => __DIR__ . '/..' . '/phar-io/manifest/src/values/Library.php',
- 'PharIo\\Manifest\\License' => __DIR__ . '/..' . '/phar-io/manifest/src/values/License.php',
- 'PharIo\\Manifest\\LicenseElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/LicenseElement.php',
- 'PharIo\\Manifest\\Manifest' => __DIR__ . '/..' . '/phar-io/manifest/src/values/Manifest.php',
- 'PharIo\\Manifest\\ManifestDocument' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/ManifestDocument.php',
- 'PharIo\\Manifest\\ManifestDocumentException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/ManifestDocumentException.php',
- 'PharIo\\Manifest\\ManifestDocumentLoadingException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/ManifestDocumentLoadingException.php',
- 'PharIo\\Manifest\\ManifestDocumentMapper' => __DIR__ . '/..' . '/phar-io/manifest/src/ManifestDocumentMapper.php',
- 'PharIo\\Manifest\\ManifestDocumentMapperException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/ManifestDocumentMapperException.php',
- 'PharIo\\Manifest\\ManifestElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/ManifestElement.php',
- 'PharIo\\Manifest\\ManifestElementException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/ManifestElementException.php',
- 'PharIo\\Manifest\\ManifestLoader' => __DIR__ . '/..' . '/phar-io/manifest/src/ManifestLoader.php',
- 'PharIo\\Manifest\\ManifestLoaderException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/ManifestLoaderException.php',
- 'PharIo\\Manifest\\ManifestSerializer' => __DIR__ . '/..' . '/phar-io/manifest/src/ManifestSerializer.php',
- 'PharIo\\Manifest\\NoEmailAddressException' => __DIR__ . '/..' . '/phar-io/manifest/src/exceptions/NoEmailAddressException.php',
- 'PharIo\\Manifest\\PhpElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/PhpElement.php',
- 'PharIo\\Manifest\\PhpExtensionRequirement' => __DIR__ . '/..' . '/phar-io/manifest/src/values/PhpExtensionRequirement.php',
- 'PharIo\\Manifest\\PhpVersionRequirement' => __DIR__ . '/..' . '/phar-io/manifest/src/values/PhpVersionRequirement.php',
- 'PharIo\\Manifest\\Requirement' => __DIR__ . '/..' . '/phar-io/manifest/src/values/Requirement.php',
- 'PharIo\\Manifest\\RequirementCollection' => __DIR__ . '/..' . '/phar-io/manifest/src/values/RequirementCollection.php',
- 'PharIo\\Manifest\\RequirementCollectionIterator' => __DIR__ . '/..' . '/phar-io/manifest/src/values/RequirementCollectionIterator.php',
- 'PharIo\\Manifest\\RequiresElement' => __DIR__ . '/..' . '/phar-io/manifest/src/xml/RequiresElement.php',
- 'PharIo\\Manifest\\Type' => __DIR__ . '/..' . '/phar-io/manifest/src/values/Type.php',
- 'PharIo\\Manifest\\Url' => __DIR__ . '/..' . '/phar-io/manifest/src/values/Url.php',
- 'PharIo\\Version\\AbstractVersionConstraint' => __DIR__ . '/..' . '/phar-io/version/src/constraints/AbstractVersionConstraint.php',
- 'PharIo\\Version\\AndVersionConstraintGroup' => __DIR__ . '/..' . '/phar-io/version/src/constraints/AndVersionConstraintGroup.php',
- 'PharIo\\Version\\AnyVersionConstraint' => __DIR__ . '/..' . '/phar-io/version/src/constraints/AnyVersionConstraint.php',
- 'PharIo\\Version\\BuildMetaData' => __DIR__ . '/..' . '/phar-io/version/src/BuildMetaData.php',
- 'PharIo\\Version\\ExactVersionConstraint' => __DIR__ . '/..' . '/phar-io/version/src/constraints/ExactVersionConstraint.php',
- 'PharIo\\Version\\Exception' => __DIR__ . '/..' . '/phar-io/version/src/exceptions/Exception.php',
- 'PharIo\\Version\\GreaterThanOrEqualToVersionConstraint' => __DIR__ . '/..' . '/phar-io/version/src/constraints/GreaterThanOrEqualToVersionConstraint.php',
- 'PharIo\\Version\\InvalidPreReleaseSuffixException' => __DIR__ . '/..' . '/phar-io/version/src/exceptions/InvalidPreReleaseSuffixException.php',
- 'PharIo\\Version\\InvalidVersionException' => __DIR__ . '/..' . '/phar-io/version/src/exceptions/InvalidVersionException.php',
- 'PharIo\\Version\\NoBuildMetaDataException' => __DIR__ . '/..' . '/phar-io/version/src/exceptions/NoBuildMetaDataException.php',
- 'PharIo\\Version\\NoPreReleaseSuffixException' => __DIR__ . '/..' . '/phar-io/version/src/exceptions/NoPreReleaseSuffixException.php',
- 'PharIo\\Version\\OrVersionConstraintGroup' => __DIR__ . '/..' . '/phar-io/version/src/constraints/OrVersionConstraintGroup.php',
- 'PharIo\\Version\\PreReleaseSuffix' => __DIR__ . '/..' . '/phar-io/version/src/PreReleaseSuffix.php',
- 'PharIo\\Version\\SpecificMajorAndMinorVersionConstraint' => __DIR__ . '/..' . '/phar-io/version/src/constraints/SpecificMajorAndMinorVersionConstraint.php',
- 'PharIo\\Version\\SpecificMajorVersionConstraint' => __DIR__ . '/..' . '/phar-io/version/src/constraints/SpecificMajorVersionConstraint.php',
- 'PharIo\\Version\\UnsupportedVersionConstraintException' => __DIR__ . '/..' . '/phar-io/version/src/exceptions/UnsupportedVersionConstraintException.php',
- 'PharIo\\Version\\Version' => __DIR__ . '/..' . '/phar-io/version/src/Version.php',
- 'PharIo\\Version\\VersionConstraint' => __DIR__ . '/..' . '/phar-io/version/src/constraints/VersionConstraint.php',
- 'PharIo\\Version\\VersionConstraintParser' => __DIR__ . '/..' . '/phar-io/version/src/VersionConstraintParser.php',
- 'PharIo\\Version\\VersionConstraintValue' => __DIR__ . '/..' . '/phar-io/version/src/VersionConstraintValue.php',
- 'PharIo\\Version\\VersionNumber' => __DIR__ . '/..' . '/phar-io/version/src/VersionNumber.php',
- 'SebastianBergmann\\CliParser\\AmbiguousOptionException' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/AmbiguousOptionException.php',
- 'SebastianBergmann\\CliParser\\Exception' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/Exception.php',
- 'SebastianBergmann\\CliParser\\OptionDoesNotAllowArgumentException' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/OptionDoesNotAllowArgumentException.php',
- 'SebastianBergmann\\CliParser\\Parser' => __DIR__ . '/..' . '/sebastian/cli-parser/src/Parser.php',
- 'SebastianBergmann\\CliParser\\RequiredOptionArgumentMissingException' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/RequiredOptionArgumentMissingException.php',
- 'SebastianBergmann\\CliParser\\UnknownOptionException' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/UnknownOptionException.php',
- 'SebastianBergmann\\CodeCoverage\\BranchAndPathCoverageNotSupportedException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/BranchAndPathCoverageNotSupportedException.php',
- 'SebastianBergmann\\CodeCoverage\\CodeCoverage' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage.php',
- 'SebastianBergmann\\CodeCoverage\\DeadCodeDetectionNotSupportedException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/DeadCodeDetectionNotSupportedException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Driver' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Driver/Driver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PathExistsButIsNotDirectoryException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/PathExistsButIsNotDirectoryException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PcovDriver' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Driver/PcovDriver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PcovNotAvailableException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/PcovNotAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PhpdbgDriver' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Driver/PhpdbgDriver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\PhpdbgNotAvailableException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/PhpdbgNotAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Selector' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Driver/Selector.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\WriteOperationFailedException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/WriteOperationFailedException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\WrongXdebugVersionException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/WrongXdebugVersionException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Xdebug2Driver' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Driver/Xdebug2Driver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Xdebug2NotEnabledException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/Xdebug2NotEnabledException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Xdebug3Driver' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Driver/Xdebug3Driver.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\Xdebug3NotEnabledException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/Xdebug3NotEnabledException.php',
- 'SebastianBergmann\\CodeCoverage\\Driver\\XdebugNotAvailableException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/XdebugNotAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\Exception' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/Exception.php',
- 'SebastianBergmann\\CodeCoverage\\Filter' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Filter.php',
- 'SebastianBergmann\\CodeCoverage\\InvalidArgumentException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/InvalidArgumentException.php',
- 'SebastianBergmann\\CodeCoverage\\NoCodeCoverageDriverAvailableException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/NoCodeCoverageDriverAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\NoCodeCoverageDriverWithPathCoverageSupportAvailableException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/NoCodeCoverageDriverWithPathCoverageSupportAvailableException.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\AbstractNode' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Node/AbstractNode.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\Builder' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Node/Builder.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\CrapIndex' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Node/CrapIndex.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\Directory' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Node/Directory.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\File' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Node/File.php',
- 'SebastianBergmann\\CodeCoverage\\Node\\Iterator' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Node/Iterator.php',
- 'SebastianBergmann\\CodeCoverage\\ParserException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/ParserException.php',
- 'SebastianBergmann\\CodeCoverage\\ProcessedCodeCoverageData' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/ProcessedCodeCoverageData.php',
- 'SebastianBergmann\\CodeCoverage\\RawCodeCoverageData' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/RawCodeCoverageData.php',
- 'SebastianBergmann\\CodeCoverage\\ReflectionException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/ReflectionException.php',
- 'SebastianBergmann\\CodeCoverage\\ReportAlreadyFinalizedException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/ReportAlreadyFinalizedException.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Clover' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Clover.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Cobertura' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Cobertura.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Crap4j' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Crap4j.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Dashboard' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Html/Renderer/Dashboard.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Directory' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Html/Renderer/Directory.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Facade' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Html/Facade.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\File' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Renderer' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Html/Renderer.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\PHP' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/PHP.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Text' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Text.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\BuildInformation' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/BuildInformation.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Coverage' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Coverage.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Directory' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Directory.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Facade' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Facade.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\File' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/File.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Method' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Method.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Node' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Node.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Project' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Project.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Report' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Report.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Source' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Source.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Tests' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Tests.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Totals' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Totals.php',
- 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Unit' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Report/Xml/Unit.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysisCacheNotConfiguredException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/StaticAnalysisCacheNotConfiguredException.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\CacheWarmer' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/StaticAnalysis/CacheWarmer.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\CachingFileAnalyser' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/StaticAnalysis/CachingFileAnalyser.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\CodeUnitFindingVisitor' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/StaticAnalysis/CodeUnitFindingVisitor.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\ExecutableLinesFindingVisitor' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/StaticAnalysis/ExecutableLinesFindingVisitor.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\FileAnalyser' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/StaticAnalysis/FileAnalyser.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\IgnoredLinesFindingVisitor' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/StaticAnalysis/IgnoredLinesFindingVisitor.php',
- 'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\ParsingFileAnalyser' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/StaticAnalysis/ParsingFileAnalyser.php',
- 'SebastianBergmann\\CodeCoverage\\TestIdMissingException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/TestIdMissingException.php',
- 'SebastianBergmann\\CodeCoverage\\UnintentionallyCoveredCodeException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/UnintentionallyCoveredCodeException.php',
- 'SebastianBergmann\\CodeCoverage\\Util\\DirectoryCouldNotBeCreatedException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/DirectoryCouldNotBeCreatedException.php',
- 'SebastianBergmann\\CodeCoverage\\Util\\Filesystem' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Util/Filesystem.php',
- 'SebastianBergmann\\CodeCoverage\\Util\\Percentage' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Util/Percentage.php',
- 'SebastianBergmann\\CodeCoverage\\Version' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Version.php',
- 'SebastianBergmann\\CodeCoverage\\XmlException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/XmlException.php',
- 'SebastianBergmann\\CodeUnitReverseLookup\\Wizard' => __DIR__ . '/..' . '/sebastian/code-unit-reverse-lookup/src/Wizard.php',
- 'SebastianBergmann\\CodeUnit\\ClassMethodUnit' => __DIR__ . '/..' . '/sebastian/code-unit/src/ClassMethodUnit.php',
- 'SebastianBergmann\\CodeUnit\\ClassUnit' => __DIR__ . '/..' . '/sebastian/code-unit/src/ClassUnit.php',
- 'SebastianBergmann\\CodeUnit\\CodeUnit' => __DIR__ . '/..' . '/sebastian/code-unit/src/CodeUnit.php',
- 'SebastianBergmann\\CodeUnit\\CodeUnitCollection' => __DIR__ . '/..' . '/sebastian/code-unit/src/CodeUnitCollection.php',
- 'SebastianBergmann\\CodeUnit\\CodeUnitCollectionIterator' => __DIR__ . '/..' . '/sebastian/code-unit/src/CodeUnitCollectionIterator.php',
- 'SebastianBergmann\\CodeUnit\\Exception' => __DIR__ . '/..' . '/sebastian/code-unit/src/exceptions/Exception.php',
- 'SebastianBergmann\\CodeUnit\\FunctionUnit' => __DIR__ . '/..' . '/sebastian/code-unit/src/FunctionUnit.php',
- 'SebastianBergmann\\CodeUnit\\InterfaceMethodUnit' => __DIR__ . '/..' . '/sebastian/code-unit/src/InterfaceMethodUnit.php',
- 'SebastianBergmann\\CodeUnit\\InterfaceUnit' => __DIR__ . '/..' . '/sebastian/code-unit/src/InterfaceUnit.php',
- 'SebastianBergmann\\CodeUnit\\InvalidCodeUnitException' => __DIR__ . '/..' . '/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php',
- 'SebastianBergmann\\CodeUnit\\Mapper' => __DIR__ . '/..' . '/sebastian/code-unit/src/Mapper.php',
- 'SebastianBergmann\\CodeUnit\\NoTraitException' => __DIR__ . '/..' . '/sebastian/code-unit/src/exceptions/NoTraitException.php',
- 'SebastianBergmann\\CodeUnit\\ReflectionException' => __DIR__ . '/..' . '/sebastian/code-unit/src/exceptions/ReflectionException.php',
- 'SebastianBergmann\\CodeUnit\\TraitMethodUnit' => __DIR__ . '/..' . '/sebastian/code-unit/src/TraitMethodUnit.php',
- 'SebastianBergmann\\CodeUnit\\TraitUnit' => __DIR__ . '/..' . '/sebastian/code-unit/src/TraitUnit.php',
- 'SebastianBergmann\\Comparator\\ArrayComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ArrayComparator.php',
- 'SebastianBergmann\\Comparator\\Comparator' => __DIR__ . '/..' . '/sebastian/comparator/src/Comparator.php',
- 'SebastianBergmann\\Comparator\\ComparisonFailure' => __DIR__ . '/..' . '/sebastian/comparator/src/ComparisonFailure.php',
- 'SebastianBergmann\\Comparator\\DOMNodeComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/DOMNodeComparator.php',
- 'SebastianBergmann\\Comparator\\DateTimeComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/DateTimeComparator.php',
- 'SebastianBergmann\\Comparator\\DoubleComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/DoubleComparator.php',
- 'SebastianBergmann\\Comparator\\Exception' => __DIR__ . '/..' . '/sebastian/comparator/src/exceptions/Exception.php',
- 'SebastianBergmann\\Comparator\\ExceptionComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ExceptionComparator.php',
- 'SebastianBergmann\\Comparator\\Factory' => __DIR__ . '/..' . '/sebastian/comparator/src/Factory.php',
- 'SebastianBergmann\\Comparator\\MockObjectComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/MockObjectComparator.php',
- 'SebastianBergmann\\Comparator\\NumericComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/NumericComparator.php',
- 'SebastianBergmann\\Comparator\\ObjectComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ObjectComparator.php',
- 'SebastianBergmann\\Comparator\\ResourceComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ResourceComparator.php',
- 'SebastianBergmann\\Comparator\\RuntimeException' => __DIR__ . '/..' . '/sebastian/comparator/src/exceptions/RuntimeException.php',
- 'SebastianBergmann\\Comparator\\ScalarComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ScalarComparator.php',
- 'SebastianBergmann\\Comparator\\SplObjectStorageComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/SplObjectStorageComparator.php',
- 'SebastianBergmann\\Comparator\\TypeComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/TypeComparator.php',
- 'SebastianBergmann\\Complexity\\Calculator' => __DIR__ . '/..' . '/sebastian/complexity/src/Calculator.php',
- 'SebastianBergmann\\Complexity\\Complexity' => __DIR__ . '/..' . '/sebastian/complexity/src/Complexity/Complexity.php',
- 'SebastianBergmann\\Complexity\\ComplexityCalculatingVisitor' => __DIR__ . '/..' . '/sebastian/complexity/src/Visitor/ComplexityCalculatingVisitor.php',
- 'SebastianBergmann\\Complexity\\ComplexityCollection' => __DIR__ . '/..' . '/sebastian/complexity/src/Complexity/ComplexityCollection.php',
- 'SebastianBergmann\\Complexity\\ComplexityCollectionIterator' => __DIR__ . '/..' . '/sebastian/complexity/src/Complexity/ComplexityCollectionIterator.php',
- 'SebastianBergmann\\Complexity\\CyclomaticComplexityCalculatingVisitor' => __DIR__ . '/..' . '/sebastian/complexity/src/Visitor/CyclomaticComplexityCalculatingVisitor.php',
- 'SebastianBergmann\\Complexity\\Exception' => __DIR__ . '/..' . '/sebastian/complexity/src/Exception/Exception.php',
- 'SebastianBergmann\\Complexity\\RuntimeException' => __DIR__ . '/..' . '/sebastian/complexity/src/Exception/RuntimeException.php',
- 'SebastianBergmann\\Diff\\Chunk' => __DIR__ . '/..' . '/sebastian/diff/src/Chunk.php',
- 'SebastianBergmann\\Diff\\ConfigurationException' => __DIR__ . '/..' . '/sebastian/diff/src/Exception/ConfigurationException.php',
- 'SebastianBergmann\\Diff\\Diff' => __DIR__ . '/..' . '/sebastian/diff/src/Diff.php',
- 'SebastianBergmann\\Diff\\Differ' => __DIR__ . '/..' . '/sebastian/diff/src/Differ.php',
- 'SebastianBergmann\\Diff\\Exception' => __DIR__ . '/..' . '/sebastian/diff/src/Exception/Exception.php',
- 'SebastianBergmann\\Diff\\InvalidArgumentException' => __DIR__ . '/..' . '/sebastian/diff/src/Exception/InvalidArgumentException.php',
- 'SebastianBergmann\\Diff\\Line' => __DIR__ . '/..' . '/sebastian/diff/src/Line.php',
- 'SebastianBergmann\\Diff\\LongestCommonSubsequenceCalculator' => __DIR__ . '/..' . '/sebastian/diff/src/LongestCommonSubsequenceCalculator.php',
- 'SebastianBergmann\\Diff\\MemoryEfficientLongestCommonSubsequenceCalculator' => __DIR__ . '/..' . '/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php',
- 'SebastianBergmann\\Diff\\Output\\AbstractChunkOutputBuilder' => __DIR__ . '/..' . '/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php',
- 'SebastianBergmann\\Diff\\Output\\DiffOnlyOutputBuilder' => __DIR__ . '/..' . '/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php',
- 'SebastianBergmann\\Diff\\Output\\DiffOutputBuilderInterface' => __DIR__ . '/..' . '/sebastian/diff/src/Output/DiffOutputBuilderInterface.php',
- 'SebastianBergmann\\Diff\\Output\\StrictUnifiedDiffOutputBuilder' => __DIR__ . '/..' . '/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php',
- 'SebastianBergmann\\Diff\\Output\\UnifiedDiffOutputBuilder' => __DIR__ . '/..' . '/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php',
- 'SebastianBergmann\\Diff\\Parser' => __DIR__ . '/..' . '/sebastian/diff/src/Parser.php',
- 'SebastianBergmann\\Diff\\TimeEfficientLongestCommonSubsequenceCalculator' => __DIR__ . '/..' . '/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php',
- 'SebastianBergmann\\Environment\\Console' => __DIR__ . '/..' . '/sebastian/environment/src/Console.php',
- 'SebastianBergmann\\Environment\\OperatingSystem' => __DIR__ . '/..' . '/sebastian/environment/src/OperatingSystem.php',
- 'SebastianBergmann\\Environment\\Runtime' => __DIR__ . '/..' . '/sebastian/environment/src/Runtime.php',
- 'SebastianBergmann\\Exporter\\Exporter' => __DIR__ . '/..' . '/sebastian/exporter/src/Exporter.php',
- 'SebastianBergmann\\FileIterator\\Facade' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Facade.php',
- 'SebastianBergmann\\FileIterator\\Factory' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Factory.php',
- 'SebastianBergmann\\FileIterator\\Iterator' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Iterator.php',
- 'SebastianBergmann\\GlobalState\\CodeExporter' => __DIR__ . '/..' . '/sebastian/global-state/src/CodeExporter.php',
- 'SebastianBergmann\\GlobalState\\Exception' => __DIR__ . '/..' . '/sebastian/global-state/src/exceptions/Exception.php',
- 'SebastianBergmann\\GlobalState\\ExcludeList' => __DIR__ . '/..' . '/sebastian/global-state/src/ExcludeList.php',
- 'SebastianBergmann\\GlobalState\\Restorer' => __DIR__ . '/..' . '/sebastian/global-state/src/Restorer.php',
- 'SebastianBergmann\\GlobalState\\RuntimeException' => __DIR__ . '/..' . '/sebastian/global-state/src/exceptions/RuntimeException.php',
- 'SebastianBergmann\\GlobalState\\Snapshot' => __DIR__ . '/..' . '/sebastian/global-state/src/Snapshot.php',
- 'SebastianBergmann\\Invoker\\Exception' => __DIR__ . '/..' . '/phpunit/php-invoker/src/exceptions/Exception.php',
- 'SebastianBergmann\\Invoker\\Invoker' => __DIR__ . '/..' . '/phpunit/php-invoker/src/Invoker.php',
- 'SebastianBergmann\\Invoker\\ProcessControlExtensionNotLoadedException' => __DIR__ . '/..' . '/phpunit/php-invoker/src/exceptions/ProcessControlExtensionNotLoadedException.php',
- 'SebastianBergmann\\Invoker\\TimeoutException' => __DIR__ . '/..' . '/phpunit/php-invoker/src/exceptions/TimeoutException.php',
- 'SebastianBergmann\\LinesOfCode\\Counter' => __DIR__ . '/..' . '/sebastian/lines-of-code/src/Counter.php',
- 'SebastianBergmann\\LinesOfCode\\Exception' => __DIR__ . '/..' . '/sebastian/lines-of-code/src/Exception/Exception.php',
- 'SebastianBergmann\\LinesOfCode\\IllogicalValuesException' => __DIR__ . '/..' . '/sebastian/lines-of-code/src/Exception/IllogicalValuesException.php',
- 'SebastianBergmann\\LinesOfCode\\LineCountingVisitor' => __DIR__ . '/..' . '/sebastian/lines-of-code/src/LineCountingVisitor.php',
- 'SebastianBergmann\\LinesOfCode\\LinesOfCode' => __DIR__ . '/..' . '/sebastian/lines-of-code/src/LinesOfCode.php',
- 'SebastianBergmann\\LinesOfCode\\NegativeValueException' => __DIR__ . '/..' . '/sebastian/lines-of-code/src/Exception/NegativeValueException.php',
- 'SebastianBergmann\\LinesOfCode\\RuntimeException' => __DIR__ . '/..' . '/sebastian/lines-of-code/src/Exception/RuntimeException.php',
- 'SebastianBergmann\\ObjectEnumerator\\Enumerator' => __DIR__ . '/..' . '/sebastian/object-enumerator/src/Enumerator.php',
- 'SebastianBergmann\\ObjectEnumerator\\Exception' => __DIR__ . '/..' . '/sebastian/object-enumerator/src/Exception.php',
- 'SebastianBergmann\\ObjectEnumerator\\InvalidArgumentException' => __DIR__ . '/..' . '/sebastian/object-enumerator/src/InvalidArgumentException.php',
- 'SebastianBergmann\\ObjectReflector\\Exception' => __DIR__ . '/..' . '/sebastian/object-reflector/src/Exception.php',
- 'SebastianBergmann\\ObjectReflector\\InvalidArgumentException' => __DIR__ . '/..' . '/sebastian/object-reflector/src/InvalidArgumentException.php',
- 'SebastianBergmann\\ObjectReflector\\ObjectReflector' => __DIR__ . '/..' . '/sebastian/object-reflector/src/ObjectReflector.php',
- 'SebastianBergmann\\RecursionContext\\Context' => __DIR__ . '/..' . '/sebastian/recursion-context/src/Context.php',
- 'SebastianBergmann\\RecursionContext\\Exception' => __DIR__ . '/..' . '/sebastian/recursion-context/src/Exception.php',
- 'SebastianBergmann\\RecursionContext\\InvalidArgumentException' => __DIR__ . '/..' . '/sebastian/recursion-context/src/InvalidArgumentException.php',
- 'SebastianBergmann\\ResourceOperations\\ResourceOperations' => __DIR__ . '/..' . '/sebastian/resource-operations/src/ResourceOperations.php',
- 'SebastianBergmann\\Template\\Exception' => __DIR__ . '/..' . '/phpunit/php-text-template/src/exceptions/Exception.php',
- 'SebastianBergmann\\Template\\InvalidArgumentException' => __DIR__ . '/..' . '/phpunit/php-text-template/src/exceptions/InvalidArgumentException.php',
- 'SebastianBergmann\\Template\\RuntimeException' => __DIR__ . '/..' . '/phpunit/php-text-template/src/exceptions/RuntimeException.php',
- 'SebastianBergmann\\Template\\Template' => __DIR__ . '/..' . '/phpunit/php-text-template/src/Template.php',
- 'SebastianBergmann\\Timer\\Duration' => __DIR__ . '/..' . '/phpunit/php-timer/src/Duration.php',
- 'SebastianBergmann\\Timer\\Exception' => __DIR__ . '/..' . '/phpunit/php-timer/src/exceptions/Exception.php',
- 'SebastianBergmann\\Timer\\NoActiveTimerException' => __DIR__ . '/..' . '/phpunit/php-timer/src/exceptions/NoActiveTimerException.php',
- 'SebastianBergmann\\Timer\\ResourceUsageFormatter' => __DIR__ . '/..' . '/phpunit/php-timer/src/ResourceUsageFormatter.php',
- 'SebastianBergmann\\Timer\\TimeSinceStartOfRequestNotAvailableException' => __DIR__ . '/..' . '/phpunit/php-timer/src/exceptions/TimeSinceStartOfRequestNotAvailableException.php',
- 'SebastianBergmann\\Timer\\Timer' => __DIR__ . '/..' . '/phpunit/php-timer/src/Timer.php',
- 'SebastianBergmann\\Type\\CallableType' => __DIR__ . '/..' . '/sebastian/type/src/type/CallableType.php',
- 'SebastianBergmann\\Type\\Exception' => __DIR__ . '/..' . '/sebastian/type/src/exception/Exception.php',
- 'SebastianBergmann\\Type\\FalseType' => __DIR__ . '/..' . '/sebastian/type/src/type/FalseType.php',
- 'SebastianBergmann\\Type\\GenericObjectType' => __DIR__ . '/..' . '/sebastian/type/src/type/GenericObjectType.php',
- 'SebastianBergmann\\Type\\IntersectionType' => __DIR__ . '/..' . '/sebastian/type/src/type/IntersectionType.php',
- 'SebastianBergmann\\Type\\IterableType' => __DIR__ . '/..' . '/sebastian/type/src/type/IterableType.php',
- 'SebastianBergmann\\Type\\MixedType' => __DIR__ . '/..' . '/sebastian/type/src/type/MixedType.php',
- 'SebastianBergmann\\Type\\NeverType' => __DIR__ . '/..' . '/sebastian/type/src/type/NeverType.php',
- 'SebastianBergmann\\Type\\NullType' => __DIR__ . '/..' . '/sebastian/type/src/type/NullType.php',
- 'SebastianBergmann\\Type\\ObjectType' => __DIR__ . '/..' . '/sebastian/type/src/type/ObjectType.php',
- 'SebastianBergmann\\Type\\Parameter' => __DIR__ . '/..' . '/sebastian/type/src/Parameter.php',
- 'SebastianBergmann\\Type\\ReflectionMapper' => __DIR__ . '/..' . '/sebastian/type/src/ReflectionMapper.php',
- 'SebastianBergmann\\Type\\RuntimeException' => __DIR__ . '/..' . '/sebastian/type/src/exception/RuntimeException.php',
- 'SebastianBergmann\\Type\\SimpleType' => __DIR__ . '/..' . '/sebastian/type/src/type/SimpleType.php',
- 'SebastianBergmann\\Type\\StaticType' => __DIR__ . '/..' . '/sebastian/type/src/type/StaticType.php',
- 'SebastianBergmann\\Type\\TrueType' => __DIR__ . '/..' . '/sebastian/type/src/type/TrueType.php',
- 'SebastianBergmann\\Type\\Type' => __DIR__ . '/..' . '/sebastian/type/src/type/Type.php',
- 'SebastianBergmann\\Type\\TypeName' => __DIR__ . '/..' . '/sebastian/type/src/TypeName.php',
- 'SebastianBergmann\\Type\\UnionType' => __DIR__ . '/..' . '/sebastian/type/src/type/UnionType.php',
- 'SebastianBergmann\\Type\\UnknownType' => __DIR__ . '/..' . '/sebastian/type/src/type/UnknownType.php',
- 'SebastianBergmann\\Type\\VoidType' => __DIR__ . '/..' . '/sebastian/type/src/type/VoidType.php',
- 'SebastianBergmann\\Version' => __DIR__ . '/..' . '/sebastian/version/src/Version.php',
- 'TheSeer\\Tokenizer\\Exception' => __DIR__ . '/..' . '/theseer/tokenizer/src/Exception.php',
- 'TheSeer\\Tokenizer\\NamespaceUri' => __DIR__ . '/..' . '/theseer/tokenizer/src/NamespaceUri.php',
- 'TheSeer\\Tokenizer\\NamespaceUriException' => __DIR__ . '/..' . '/theseer/tokenizer/src/NamespaceUriException.php',
- 'TheSeer\\Tokenizer\\Token' => __DIR__ . '/..' . '/theseer/tokenizer/src/Token.php',
- 'TheSeer\\Tokenizer\\TokenCollection' => __DIR__ . '/..' . '/theseer/tokenizer/src/TokenCollection.php',
- 'TheSeer\\Tokenizer\\TokenCollectionException' => __DIR__ . '/..' . '/theseer/tokenizer/src/TokenCollectionException.php',
- 'TheSeer\\Tokenizer\\Tokenizer' => __DIR__ . '/..' . '/theseer/tokenizer/src/Tokenizer.php',
- 'TheSeer\\Tokenizer\\XMLSerializer' => __DIR__ . '/..' . '/theseer/tokenizer/src/XMLSerializer.php',
- 'Yoast\\WPTestUtils\\BrainMonkey\\TestCase' => __DIR__ . '/..' . '/yoast/wp-test-utils/src/BrainMonkey/TestCase.php',
- 'Yoast\\WPTestUtils\\BrainMonkey\\YoastTestCase' => __DIR__ . '/..' . '/yoast/wp-test-utils/src/BrainMonkey/YoastTestCase.php',
- 'Yoast\\WPTestUtils\\Helpers\\ExpectOutputHelper' => __DIR__ . '/..' . '/yoast/wp-test-utils/src/Helpers/ExpectOutputHelper.php',
- 'Yoast\\WPTestUtils\\WPIntegration\\Autoload' => __DIR__ . '/..' . '/yoast/wp-test-utils/src/WPIntegration/Autoload.php',
- 'Yoast\\WPTestUtils\\WPIntegration\\TestCase' => __DIR__ . '/..' . '/yoast/wp-test-utils/src/WPIntegration/TestCaseOnlyObjectPropertyPolyfill.php',
- );
-
- public static function getInitializer(ClassLoader $loader)
- {
- return \Closure::bind(function () use ($loader) {
- $loader->prefixLengthsPsr4 = ComposerStaticInit7b920e9ab8aa41d80bd9a138659e6903::$prefixLengthsPsr4;
- $loader->prefixDirsPsr4 = ComposerStaticInit7b920e9ab8aa41d80bd9a138659e6903::$prefixDirsPsr4;
- $loader->classMap = ComposerStaticInit7b920e9ab8aa41d80bd9a138659e6903::$classMap;
-
- }, null, ClassLoader::class);
- }
-}
diff --git a/wordpress-dev/vendor/composer/installed.json b/wordpress-dev/vendor/composer/installed.json
deleted file mode 100644
index bf272f6c..00000000
--- a/wordpress-dev/vendor/composer/installed.json
+++ /dev/null
@@ -1,2320 +0,0 @@
-{
- "packages": [
- {
- "name": "antecedent/patchwork",
- "version": "2.2.1",
- "version_normalized": "2.2.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/antecedent/patchwork.git",
- "reference": "1bf183a3e1bd094f231a2128b9ecc5363c269245"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/antecedent/patchwork/zipball/1bf183a3e1bd094f231a2128b9ecc5363c269245",
- "reference": "1bf183a3e1bd094f231a2128b9ecc5363c269245",
- "shasum": ""
- },
- "require": {
- "php": ">=7.1.0"
- },
- "require-dev": {
- "phpunit/phpunit": ">=4"
- },
- "time": "2024-12-11T10:19:54+00:00",
- "type": "library",
- "installation-source": "dist",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Ignas Rudaitis",
- "email": "ignas.rudaitis@gmail.com"
- }
- ],
- "description": "Method redefinition (monkey-patching) functionality for PHP.",
- "homepage": "https://antecedent.github.io/patchwork/",
- "keywords": [
- "aop",
- "aspect",
- "interception",
- "monkeypatching",
- "redefinition",
- "runkit",
- "testing"
- ],
- "support": {
- "issues": "https://github.com/antecedent/patchwork/issues",
- "source": "https://github.com/antecedent/patchwork/tree/2.2.1"
- },
- "install-path": "../antecedent/patchwork"
- },
- {
- "name": "brain/monkey",
- "version": "2.6.2",
- "version_normalized": "2.6.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Brain-WP/BrainMonkey.git",
- "reference": "d95a9d895352c30f47604ad1b825ab8fa9d1a373"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Brain-WP/BrainMonkey/zipball/d95a9d895352c30f47604ad1b825ab8fa9d1a373",
- "reference": "d95a9d895352c30f47604ad1b825ab8fa9d1a373",
- "shasum": ""
- },
- "require": {
- "antecedent/patchwork": "^2.1.17",
- "mockery/mockery": "^1.3.5 || ^1.4.4",
- "php": ">=5.6.0"
- },
- "require-dev": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
- "phpcompatibility/php-compatibility": "^9.3.0",
- "phpunit/phpunit": "^5.7.26 || ^6.0 || ^7.0 || >=8.0 <8.5.12 || ^8.5.14 || ^9.0"
- },
- "time": "2024-08-29T20:15:04+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev",
- "dev-version/1": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "inc/api.php"
- ],
- "psr-4": {
- "Brain\\Monkey\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Giuseppe Mazzapica",
- "email": "giuseppe.mazzapica@gmail.com",
- "homepage": "https://gmazzap.me",
- "role": "Developer"
- }
- ],
- "description": "Mocking utility for PHP functions and WordPress plugin API",
- "keywords": [
- "Monkey Patching",
- "interception",
- "mock",
- "mock functions",
- "mockery",
- "patchwork",
- "redefinition",
- "runkit",
- "test",
- "testing"
- ],
- "support": {
- "issues": "https://github.com/Brain-WP/BrainMonkey/issues",
- "source": "https://github.com/Brain-WP/BrainMonkey"
- },
- "install-path": "../brain/monkey"
- },
- {
- "name": "doctrine/instantiator",
- "version": "2.0.0",
- "version_normalized": "2.0.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0",
- "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0",
- "shasum": ""
- },
- "require": {
- "php": "^8.1"
- },
- "require-dev": {
- "doctrine/coding-standard": "^11",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpbench/phpbench": "^1.2",
- "phpstan/phpstan": "^1.9.4",
- "phpstan/phpstan-phpunit": "^1.3",
- "phpunit/phpunit": "^9.5.27",
- "vimeo/psalm": "^5.4"
- },
- "time": "2022-12-30T00:23:10+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "https://ocramius.github.io/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://www.doctrine-project.org/projects/instantiator.html",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "support": {
- "issues": "https://github.com/doctrine/instantiator/issues",
- "source": "https://github.com/doctrine/instantiator/tree/2.0.0"
- },
- "funding": [
- {
- "url": "https://www.doctrine-project.org/sponsorship.html",
- "type": "custom"
- },
- {
- "url": "https://www.patreon.com/phpdoctrine",
- "type": "patreon"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
- "type": "tidelift"
- }
- ],
- "install-path": "../doctrine/instantiator"
- },
- {
- "name": "hamcrest/hamcrest-php",
- "version": "v2.0.1",
- "version_normalized": "2.0.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/hamcrest/hamcrest-php.git",
- "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
- "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
- "shasum": ""
- },
- "require": {
- "php": "^5.3|^7.0|^8.0"
- },
- "replace": {
- "cordoval/hamcrest-php": "*",
- "davedevelopment/hamcrest-php": "*",
- "kodova/hamcrest-php": "*"
- },
- "require-dev": {
- "phpunit/php-file-iterator": "^1.4 || ^2.0",
- "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0"
- },
- "time": "2020-07-09T08:09:16+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.1-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "hamcrest"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "This is the PHP port of Hamcrest Matchers",
- "keywords": [
- "test"
- ],
- "support": {
- "issues": "https://github.com/hamcrest/hamcrest-php/issues",
- "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1"
- },
- "install-path": "../hamcrest/hamcrest-php"
- },
- {
- "name": "mockery/mockery",
- "version": "1.6.12",
- "version_normalized": "1.6.12.0",
- "source": {
- "type": "git",
- "url": "https://github.com/mockery/mockery.git",
- "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699",
- "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699",
- "shasum": ""
- },
- "require": {
- "hamcrest/hamcrest-php": "^2.0.1",
- "lib-pcre": ">=7.0",
- "php": ">=7.3"
- },
- "conflict": {
- "phpunit/phpunit": "<8.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^8.5 || ^9.6.17",
- "symplify/easy-coding-standard": "^12.1.14"
- },
- "time": "2024-05-16T03:13:13+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "files": [
- "library/helpers.php",
- "library/Mockery.php"
- ],
- "psr-4": {
- "Mockery\\": "library/Mockery"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Pádraic Brady",
- "email": "padraic.brady@gmail.com",
- "homepage": "https://github.com/padraic",
- "role": "Author"
- },
- {
- "name": "Dave Marshall",
- "email": "dave.marshall@atstsolutions.co.uk",
- "homepage": "https://davedevelopment.co.uk",
- "role": "Developer"
- },
- {
- "name": "Nathanael Esayeas",
- "email": "nathanael.esayeas@protonmail.com",
- "homepage": "https://github.com/ghostwriter",
- "role": "Lead Developer"
- }
- ],
- "description": "Mockery is a simple yet flexible PHP mock object framework",
- "homepage": "https://github.com/mockery/mockery",
- "keywords": [
- "BDD",
- "TDD",
- "library",
- "mock",
- "mock objects",
- "mockery",
- "stub",
- "test",
- "test double",
- "testing"
- ],
- "support": {
- "docs": "https://docs.mockery.io/",
- "issues": "https://github.com/mockery/mockery/issues",
- "rss": "https://github.com/mockery/mockery/releases.atom",
- "security": "https://github.com/mockery/mockery/security/advisories",
- "source": "https://github.com/mockery/mockery"
- },
- "install-path": "../mockery/mockery"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.13.0",
- "version_normalized": "1.13.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "024473a478be9df5fdaca2c793f2232fe788e414"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/024473a478be9df5fdaca2c793f2232fe788e414",
- "reference": "024473a478be9df5fdaca2c793f2232fe788e414",
- "shasum": ""
- },
- "require": {
- "php": "^7.1 || ^8.0"
- },
- "conflict": {
- "doctrine/collections": "<1.6.8",
- "doctrine/common": "<2.13.3 || >=3 <3.2.2"
- },
- "require-dev": {
- "doctrine/collections": "^1.6.8",
- "doctrine/common": "^2.13.3 || ^3.2.2",
- "phpspec/prophecy": "^1.10",
- "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13"
- },
- "time": "2025-02-12T12:17:51+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "files": [
- "src/DeepCopy/deep_copy.php"
- ],
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "support": {
- "issues": "https://github.com/myclabs/DeepCopy/issues",
- "source": "https://github.com/myclabs/DeepCopy/tree/1.13.0"
- },
- "funding": [
- {
- "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
- "type": "tidelift"
- }
- ],
- "install-path": "../myclabs/deep-copy"
- },
- {
- "name": "nikic/php-parser",
- "version": "v5.4.0",
- "version_normalized": "5.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "447a020a1f875a434d62f2a401f53b82a396e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494",
- "reference": "447a020a1f875a434d62f2a401f53b82a396e494",
- "shasum": ""
- },
- "require": {
- "ext-ctype": "*",
- "ext-json": "*",
- "ext-tokenizer": "*",
- "php": ">=7.4"
- },
- "require-dev": {
- "ircmaxell/php-yacc": "^0.0.7",
- "phpunit/phpunit": "^9.0"
- },
- "time": "2024-12-30T11:07:19+00:00",
- "bin": [
- "bin/php-parse"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "PhpParser\\": "lib/PhpParser"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Nikita Popov"
- }
- ],
- "description": "A PHP parser written in PHP",
- "keywords": [
- "parser",
- "php"
- ],
- "support": {
- "issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0"
- },
- "install-path": "../nikic/php-parser"
- },
- {
- "name": "phar-io/manifest",
- "version": "2.0.4",
- "version_normalized": "2.0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "54750ef60c58e43759730615a392c31c80e23176"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176",
- "reference": "54750ef60c58e43759730615a392c31c80e23176",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-libxml": "*",
- "ext-phar": "*",
- "ext-xmlwriter": "*",
- "phar-io/version": "^3.0.1",
- "php": "^7.2 || ^8.0"
- },
- "time": "2024-03-03T12:33:53+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "support": {
- "issues": "https://github.com/phar-io/manifest/issues",
- "source": "https://github.com/phar-io/manifest/tree/2.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/theseer",
- "type": "github"
- }
- ],
- "install-path": "../phar-io/manifest"
- },
- {
- "name": "phar-io/version",
- "version": "3.2.1",
- "version_normalized": "3.2.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/version.git",
- "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74",
- "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74",
- "shasum": ""
- },
- "require": {
- "php": "^7.2 || ^8.0"
- },
- "time": "2022-02-21T01:04:05+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Library for handling version information and constraints",
- "support": {
- "issues": "https://github.com/phar-io/version/issues",
- "source": "https://github.com/phar-io/version/tree/3.2.1"
- },
- "install-path": "../phar-io/version"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "9.2.32",
- "version_normalized": "9.2.32.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/85402a822d1ecf1db1096959413d35e1c37cf1a5",
- "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-libxml": "*",
- "ext-xmlwriter": "*",
- "nikic/php-parser": "^4.19.1 || ^5.1.0",
- "php": ">=7.3",
- "phpunit/php-file-iterator": "^3.0.6",
- "phpunit/php-text-template": "^2.0.4",
- "sebastian/code-unit-reverse-lookup": "^2.0.3",
- "sebastian/complexity": "^2.0.3",
- "sebastian/environment": "^5.1.5",
- "sebastian/lines-of-code": "^1.0.4",
- "sebastian/version": "^3.0.2",
- "theseer/tokenizer": "^1.2.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.6"
- },
- "suggest": {
- "ext-pcov": "PHP extension that provides line coverage",
- "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
- },
- "time": "2024-08-22T04:23:01+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-main": "9.2.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
- "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.32"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../phpunit/php-code-coverage"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "3.0.6",
- "version_normalized": "3.0.6.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf",
- "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2021-12-02T12:48:52+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
- "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../phpunit/php-file-iterator"
- },
- {
- "name": "phpunit/php-invoker",
- "version": "3.1.1",
- "version_normalized": "3.1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-invoker.git",
- "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
- "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "ext-pcntl": "*",
- "phpunit/phpunit": "^9.3"
- },
- "suggest": {
- "ext-pcntl": "*"
- },
- "time": "2020-09-28T05:58:55+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Invoke callables with a timeout",
- "homepage": "https://github.com/sebastianbergmann/php-invoker/",
- "keywords": [
- "process"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
- "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../phpunit/php-invoker"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "2.0.4",
- "version_normalized": "2.0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
- "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2020-10-26T05:33:50+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
- "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../phpunit/php-text-template"
- },
- {
- "name": "phpunit/php-timer",
- "version": "5.0.3",
- "version_normalized": "5.0.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
- "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2020-10-26T13:16:10+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-timer/issues",
- "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../phpunit/php-timer"
- },
- {
- "name": "phpunit/phpunit",
- "version": "9.6.22",
- "version_normalized": "9.6.22.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f80235cb4d3caa59ae09be3adf1ded27521d1a9c",
- "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.5.0 || ^2",
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "ext-xmlwriter": "*",
- "myclabs/deep-copy": "^1.12.1",
- "phar-io/manifest": "^2.0.4",
- "phar-io/version": "^3.2.1",
- "php": ">=7.3",
- "phpunit/php-code-coverage": "^9.2.32",
- "phpunit/php-file-iterator": "^3.0.6",
- "phpunit/php-invoker": "^3.1.1",
- "phpunit/php-text-template": "^2.0.4",
- "phpunit/php-timer": "^5.0.3",
- "sebastian/cli-parser": "^1.0.2",
- "sebastian/code-unit": "^1.0.8",
- "sebastian/comparator": "^4.0.8",
- "sebastian/diff": "^4.0.6",
- "sebastian/environment": "^5.1.5",
- "sebastian/exporter": "^4.0.6",
- "sebastian/global-state": "^5.0.7",
- "sebastian/object-enumerator": "^4.0.4",
- "sebastian/resource-operations": "^3.0.4",
- "sebastian/type": "^3.2.1",
- "sebastian/version": "^3.0.2"
- },
- "suggest": {
- "ext-soap": "To be able to generate mocks based on WSDL files",
- "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
- },
- "time": "2024-12-05T13:48:26+00:00",
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "9.6-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "src/Framework/Assert/Functions.php"
- ],
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/phpunit/issues",
- "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.22"
- },
- "funding": [
- {
- "url": "https://phpunit.de/sponsors.html",
- "type": "custom"
- },
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit",
- "type": "tidelift"
- }
- ],
- "install-path": "../phpunit/phpunit"
- },
- {
- "name": "sebastian/cli-parser",
- "version": "1.0.2",
- "version_normalized": "1.0.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/cli-parser.git",
- "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b",
- "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2024-03-02T06:27:43+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library for parsing CLI options",
- "homepage": "https://github.com/sebastianbergmann/cli-parser",
- "support": {
- "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
- "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/cli-parser"
- },
- {
- "name": "sebastian/code-unit",
- "version": "1.0.8",
- "version_normalized": "1.0.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit.git",
- "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120",
- "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2020-10-26T13:08:54+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Collection of value objects that represent the PHP code units",
- "homepage": "https://github.com/sebastianbergmann/code-unit",
- "support": {
- "issues": "https://github.com/sebastianbergmann/code-unit/issues",
- "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/code-unit"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "2.0.3",
- "version_normalized": "2.0.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
- "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2020-09-28T05:30:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "support": {
- "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
- "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/code-unit-reverse-lookup"
- },
- {
- "name": "sebastian/comparator",
- "version": "4.0.8",
- "version_normalized": "4.0.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "fa0f136dd2334583309d32b62544682ee972b51a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a",
- "reference": "fa0f136dd2334583309d32b62544682ee972b51a",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3",
- "sebastian/diff": "^4.0",
- "sebastian/exporter": "^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2022-09-14T12:41:17+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "https://github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/comparator/issues",
- "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/comparator"
- },
- {
- "name": "sebastian/complexity",
- "version": "2.0.3",
- "version_normalized": "2.0.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/complexity.git",
- "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a",
- "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a",
- "shasum": ""
- },
- "require": {
- "nikic/php-parser": "^4.18 || ^5.0",
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2023-12-22T06:19:30+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library for calculating the complexity of PHP code units",
- "homepage": "https://github.com/sebastianbergmann/complexity",
- "support": {
- "issues": "https://github.com/sebastianbergmann/complexity/issues",
- "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/complexity"
- },
- {
- "name": "sebastian/diff",
- "version": "4.0.6",
- "version_normalized": "4.0.6.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc",
- "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3",
- "symfony/process": "^4.2 || ^5"
- },
- "time": "2024-03-02T06:30:58+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff",
- "udiff",
- "unidiff",
- "unified diff"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/diff/issues",
- "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/diff"
- },
- {
- "name": "sebastian/environment",
- "version": "5.1.5",
- "version_normalized": "5.1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed",
- "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "suggest": {
- "ext-posix": "*"
- },
- "time": "2023-02-03T06:03:51+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.1-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/environment/issues",
- "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/environment"
- },
- {
- "name": "sebastian/exporter",
- "version": "4.0.6",
- "version_normalized": "4.0.6.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72",
- "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3",
- "sebastian/recursion-context": "^4.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "^9.3"
- },
- "time": "2024-03-02T06:33:00+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "https://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/exporter/issues",
- "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/exporter"
- },
- {
- "name": "sebastian/global-state",
- "version": "5.0.7",
- "version_normalized": "5.0.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9",
- "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3",
- "sebastian/object-reflector": "^2.0",
- "sebastian/recursion-context": "^4.0"
- },
- "require-dev": {
- "ext-dom": "*",
- "phpunit/phpunit": "^9.3"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "time": "2024-03-02T06:35:11+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/global-state/issues",
- "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/global-state"
- },
- {
- "name": "sebastian/lines-of-code",
- "version": "1.0.4",
- "version_normalized": "1.0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/lines-of-code.git",
- "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5",
- "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5",
- "shasum": ""
- },
- "require": {
- "nikic/php-parser": "^4.18 || ^5.0",
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2023-12-22T06:20:34+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library for counting the lines of code in PHP source code",
- "homepage": "https://github.com/sebastianbergmann/lines-of-code",
- "support": {
- "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
- "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/lines-of-code"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "4.0.4",
- "version_normalized": "4.0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "5c9eeac41b290a3712d88851518825ad78f45c71"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71",
- "reference": "5c9eeac41b290a3712d88851518825ad78f45c71",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3",
- "sebastian/object-reflector": "^2.0",
- "sebastian/recursion-context": "^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2020-10-26T13:12:34+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "support": {
- "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
- "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/object-enumerator"
- },
- {
- "name": "sebastian/object-reflector",
- "version": "2.0.4",
- "version_normalized": "2.0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
- "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2020-10-26T13:14:26+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "support": {
- "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
- "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/object-reflector"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "4.0.5",
- "version_normalized": "4.0.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1",
- "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "time": "2023-02-03T06:07:39+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "https://github.com/sebastianbergmann/recursion-context",
- "support": {
- "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
- "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/recursion-context"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "3.0.4",
- "version_normalized": "3.0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e",
- "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.0"
- },
- "time": "2024-03-14T16:00:52+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-main": "3.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "support": {
- "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/resource-operations"
- },
- {
- "name": "sebastian/type",
- "version": "3.2.1",
- "version_normalized": "3.2.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/type.git",
- "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7",
- "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.5"
- },
- "time": "2023-02-03T06:13:03+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Collection of value objects that represent the types of the PHP type system",
- "homepage": "https://github.com/sebastianbergmann/type",
- "support": {
- "issues": "https://github.com/sebastianbergmann/type/issues",
- "source": "https://github.com/sebastianbergmann/type/tree/3.2.1"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/type"
- },
- {
- "name": "sebastian/version",
- "version": "3.0.2",
- "version_normalized": "3.0.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "c6c1022351a901512170118436c764e473f6de8c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c",
- "reference": "c6c1022351a901512170118436c764e473f6de8c",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "time": "2020-09-28T06:39:44+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "support": {
- "issues": "https://github.com/sebastianbergmann/version/issues",
- "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "install-path": "../sebastian/version"
- },
- {
- "name": "theseer/tokenizer",
- "version": "1.2.3",
- "version_normalized": "1.2.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/theseer/tokenizer.git",
- "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2",
- "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": "^7.2 || ^8.0"
- },
- "time": "2024-03-03T12:36:25+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- }
- ],
- "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "support": {
- "issues": "https://github.com/theseer/tokenizer/issues",
- "source": "https://github.com/theseer/tokenizer/tree/1.2.3"
- },
- "funding": [
- {
- "url": "https://github.com/theseer",
- "type": "github"
- }
- ],
- "install-path": "../theseer/tokenizer"
- },
- {
- "name": "wp-phpunit/wp-phpunit",
- "version": "6.7.2",
- "version_normalized": "6.7.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/wp-phpunit/wp-phpunit.git",
- "reference": "e2bb06bacc92a8e9e405e83f56989e8ed9359db1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/e2bb06bacc92a8e9e405e83f56989e8ed9359db1",
- "reference": "e2bb06bacc92a8e9e405e83f56989e8ed9359db1",
- "shasum": ""
- },
- "time": "2025-02-12T01:22:52+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "files": [
- "__loaded.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0-or-later"
- ],
- "authors": [
- {
- "name": "Evan Mattson",
- "email": "me@aaemnnost.tv"
- },
- {
- "name": "WordPress Community",
- "homepage": "https://wordpress.org/about/"
- }
- ],
- "description": "WordPress core PHPUnit library",
- "homepage": "https://github.com/wp-phpunit",
- "keywords": [
- "phpunit",
- "test",
- "wordpress"
- ],
- "support": {
- "docs": "https://github.com/wp-phpunit/docs",
- "issues": "https://github.com/wp-phpunit/issues",
- "source": "https://github.com/wp-phpunit/wp-phpunit"
- },
- "install-path": "../wp-phpunit/wp-phpunit"
- },
- {
- "name": "yoast/phpunit-polyfills",
- "version": "1.1.4",
- "version_normalized": "1.1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Yoast/PHPUnit-Polyfills.git",
- "reference": "e6faedf5e34cea4438e341f660e2f719760c531d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/e6faedf5e34cea4438e341f660e2f719760c531d",
- "reference": "e6faedf5e34cea4438e341f660e2f719760c531d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4",
- "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
- },
- "require-dev": {
- "php-parallel-lint/php-console-highlighter": "^1.0.0",
- "php-parallel-lint/php-parallel-lint": "^1.4.0",
- "yoast/yoastcs": "^3.1.0"
- },
- "time": "2025-02-09T18:13:44+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-main": "4.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "phpunitpolyfills-autoload.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Team Yoast",
- "email": "support@yoast.com",
- "homepage": "https://yoast.com"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/Yoast/PHPUnit-Polyfills/graphs/contributors"
- }
- ],
- "description": "Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests",
- "homepage": "https://github.com/Yoast/PHPUnit-Polyfills",
- "keywords": [
- "phpunit",
- "polyfill",
- "testing"
- ],
- "support": {
- "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues",
- "security": "https://github.com/Yoast/PHPUnit-Polyfills/security/policy",
- "source": "https://github.com/Yoast/PHPUnit-Polyfills"
- },
- "install-path": "../yoast/phpunit-polyfills"
- },
- {
- "name": "yoast/wp-test-utils",
- "version": "1.2.0",
- "version_normalized": "1.2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Yoast/wp-test-utils.git",
- "reference": "2e0f62e0281e4859707c5f13b7da1422aa1c8f7b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Yoast/wp-test-utils/zipball/2e0f62e0281e4859707c5f13b7da1422aa1c8f7b",
- "reference": "2e0f62e0281e4859707c5f13b7da1422aa1c8f7b",
- "shasum": ""
- },
- "require": {
- "brain/monkey": "^2.6.1",
- "php": ">=5.6",
- "yoast/phpunit-polyfills": "^1.1.0"
- },
- "require-dev": {
- "yoast/yoastcs": "^2.3.1"
- },
- "time": "2023-09-27T10:25:08+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-main": "1.x-dev",
- "dev-develop": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ],
- "exclude-from-classmap": [
- "/src/WPIntegration/TestCase.php",
- "/src/WPIntegration/TestCaseNoPolyfills.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Team Yoast",
- "email": "support@yoast.com",
- "homepage": "https://yoast.com"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/Yoast/wp-test-utils/graphs/contributors"
- }
- ],
- "description": "PHPUnit cross-version compatibility layer for testing plugins and themes build for WordPress",
- "homepage": "https://github.com/Yoast/wp-test-utils/",
- "keywords": [
- "brainmonkey",
- "integration-testing",
- "phpunit",
- "testing",
- "unit-testing",
- "wordpress"
- ],
- "support": {
- "issues": "https://github.com/Yoast/wp-test-utils/issues",
- "source": "https://github.com/Yoast/wp-test-utils"
- },
- "install-path": "../yoast/wp-test-utils"
- }
- ],
- "dev": true,
- "dev-package-names": [
- "antecedent/patchwork",
- "brain/monkey",
- "doctrine/instantiator",
- "hamcrest/hamcrest-php",
- "mockery/mockery",
- "myclabs/deep-copy",
- "nikic/php-parser",
- "phar-io/manifest",
- "phar-io/version",
- "phpunit/php-code-coverage",
- "phpunit/php-file-iterator",
- "phpunit/php-invoker",
- "phpunit/php-text-template",
- "phpunit/php-timer",
- "phpunit/phpunit",
- "sebastian/cli-parser",
- "sebastian/code-unit",
- "sebastian/code-unit-reverse-lookup",
- "sebastian/comparator",
- "sebastian/complexity",
- "sebastian/diff",
- "sebastian/environment",
- "sebastian/exporter",
- "sebastian/global-state",
- "sebastian/lines-of-code",
- "sebastian/object-enumerator",
- "sebastian/object-reflector",
- "sebastian/recursion-context",
- "sebastian/resource-operations",
- "sebastian/type",
- "sebastian/version",
- "theseer/tokenizer",
- "wp-phpunit/wp-phpunit",
- "yoast/phpunit-polyfills",
- "yoast/wp-test-utils"
- ]
-}
diff --git a/wordpress-dev/vendor/composer/installed.php b/wordpress-dev/vendor/composer/installed.php
deleted file mode 100644
index 6dfb091c..00000000
--- a/wordpress-dev/vendor/composer/installed.php
+++ /dev/null
@@ -1,356 +0,0 @@
- array(
- 'name' => '__root__',
- 'pretty_version' => 'dev-main',
- 'version' => 'dev-main',
- 'reference' => '5af52fcab993fb6e4a9633e0ef329b29f36855ae',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../../',
- 'aliases' => array(),
- 'dev' => true,
- ),
- 'versions' => array(
- '__root__' => array(
- 'pretty_version' => 'dev-main',
- 'version' => 'dev-main',
- 'reference' => '5af52fcab993fb6e4a9633e0ef329b29f36855ae',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../../',
- 'aliases' => array(),
- 'dev_requirement' => false,
- ),
- 'antecedent/patchwork' => array(
- 'pretty_version' => '2.2.1',
- 'version' => '2.2.1.0',
- 'reference' => '1bf183a3e1bd094f231a2128b9ecc5363c269245',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../antecedent/patchwork',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'brain/monkey' => array(
- 'pretty_version' => '2.6.2',
- 'version' => '2.6.2.0',
- 'reference' => 'd95a9d895352c30f47604ad1b825ab8fa9d1a373',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../brain/monkey',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'cordoval/hamcrest-php' => array(
- 'dev_requirement' => true,
- 'replaced' => array(
- 0 => '*',
- ),
- ),
- 'davedevelopment/hamcrest-php' => array(
- 'dev_requirement' => true,
- 'replaced' => array(
- 0 => '*',
- ),
- ),
- 'doctrine/instantiator' => array(
- 'pretty_version' => '2.0.0',
- 'version' => '2.0.0.0',
- 'reference' => 'c6222283fa3f4ac679f8b9ced9a4e23f163e80d0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../doctrine/instantiator',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'hamcrest/hamcrest-php' => array(
- 'pretty_version' => 'v2.0.1',
- 'version' => '2.0.1.0',
- 'reference' => '8c3d0a3f6af734494ad8f6fbbee0ba92422859f3',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../hamcrest/hamcrest-php',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'kodova/hamcrest-php' => array(
- 'dev_requirement' => true,
- 'replaced' => array(
- 0 => '*',
- ),
- ),
- 'mockery/mockery' => array(
- 'pretty_version' => '1.6.12',
- 'version' => '1.6.12.0',
- 'reference' => '1f4efdd7d3beafe9807b08156dfcb176d18f1699',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../mockery/mockery',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'myclabs/deep-copy' => array(
- 'pretty_version' => '1.13.0',
- 'version' => '1.13.0.0',
- 'reference' => '024473a478be9df5fdaca2c793f2232fe788e414',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../myclabs/deep-copy',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'nikic/php-parser' => array(
- 'pretty_version' => 'v5.4.0',
- 'version' => '5.4.0.0',
- 'reference' => '447a020a1f875a434d62f2a401f53b82a396e494',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../nikic/php-parser',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'phar-io/manifest' => array(
- 'pretty_version' => '2.0.4',
- 'version' => '2.0.4.0',
- 'reference' => '54750ef60c58e43759730615a392c31c80e23176',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../phar-io/manifest',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'phar-io/version' => array(
- 'pretty_version' => '3.2.1',
- 'version' => '3.2.1.0',
- 'reference' => '4f7fd7836c6f332bb2933569e566a0d6c4cbed74',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../phar-io/version',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'phpunit/php-code-coverage' => array(
- 'pretty_version' => '9.2.32',
- 'version' => '9.2.32.0',
- 'reference' => '85402a822d1ecf1db1096959413d35e1c37cf1a5',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../phpunit/php-code-coverage',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'phpunit/php-file-iterator' => array(
- 'pretty_version' => '3.0.6',
- 'version' => '3.0.6.0',
- 'reference' => 'cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../phpunit/php-file-iterator',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'phpunit/php-invoker' => array(
- 'pretty_version' => '3.1.1',
- 'version' => '3.1.1.0',
- 'reference' => '5a10147d0aaf65b58940a0b72f71c9ac0423cc67',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../phpunit/php-invoker',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'phpunit/php-text-template' => array(
- 'pretty_version' => '2.0.4',
- 'version' => '2.0.4.0',
- 'reference' => '5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../phpunit/php-text-template',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'phpunit/php-timer' => array(
- 'pretty_version' => '5.0.3',
- 'version' => '5.0.3.0',
- 'reference' => '5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../phpunit/php-timer',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'phpunit/phpunit' => array(
- 'pretty_version' => '9.6.22',
- 'version' => '9.6.22.0',
- 'reference' => 'f80235cb4d3caa59ae09be3adf1ded27521d1a9c',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../phpunit/phpunit',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/cli-parser' => array(
- 'pretty_version' => '1.0.2',
- 'version' => '1.0.2.0',
- 'reference' => '2b56bea83a09de3ac06bb18b92f068e60cc6f50b',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/cli-parser',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/code-unit' => array(
- 'pretty_version' => '1.0.8',
- 'version' => '1.0.8.0',
- 'reference' => '1fc9f64c0927627ef78ba436c9b17d967e68e120',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/code-unit',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/code-unit-reverse-lookup' => array(
- 'pretty_version' => '2.0.3',
- 'version' => '2.0.3.0',
- 'reference' => 'ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/code-unit-reverse-lookup',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/comparator' => array(
- 'pretty_version' => '4.0.8',
- 'version' => '4.0.8.0',
- 'reference' => 'fa0f136dd2334583309d32b62544682ee972b51a',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/comparator',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/complexity' => array(
- 'pretty_version' => '2.0.3',
- 'version' => '2.0.3.0',
- 'reference' => '25f207c40d62b8b7aa32f5ab026c53561964053a',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/complexity',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/diff' => array(
- 'pretty_version' => '4.0.6',
- 'version' => '4.0.6.0',
- 'reference' => 'ba01945089c3a293b01ba9badc29ad55b106b0bc',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/diff',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/environment' => array(
- 'pretty_version' => '5.1.5',
- 'version' => '5.1.5.0',
- 'reference' => '830c43a844f1f8d5b7a1f6d6076b784454d8b7ed',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/environment',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/exporter' => array(
- 'pretty_version' => '4.0.6',
- 'version' => '4.0.6.0',
- 'reference' => '78c00df8f170e02473b682df15bfcdacc3d32d72',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/exporter',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/global-state' => array(
- 'pretty_version' => '5.0.7',
- 'version' => '5.0.7.0',
- 'reference' => 'bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/global-state',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/lines-of-code' => array(
- 'pretty_version' => '1.0.4',
- 'version' => '1.0.4.0',
- 'reference' => 'e1e4a170560925c26d424b6a03aed157e7dcc5c5',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/lines-of-code',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/object-enumerator' => array(
- 'pretty_version' => '4.0.4',
- 'version' => '4.0.4.0',
- 'reference' => '5c9eeac41b290a3712d88851518825ad78f45c71',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/object-enumerator',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/object-reflector' => array(
- 'pretty_version' => '2.0.4',
- 'version' => '2.0.4.0',
- 'reference' => 'b4f479ebdbf63ac605d183ece17d8d7fe49c15c7',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/object-reflector',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/recursion-context' => array(
- 'pretty_version' => '4.0.5',
- 'version' => '4.0.5.0',
- 'reference' => 'e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/recursion-context',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/resource-operations' => array(
- 'pretty_version' => '3.0.4',
- 'version' => '3.0.4.0',
- 'reference' => '05d5692a7993ecccd56a03e40cd7e5b09b1d404e',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/resource-operations',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/type' => array(
- 'pretty_version' => '3.2.1',
- 'version' => '3.2.1.0',
- 'reference' => '75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/type',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'sebastian/version' => array(
- 'pretty_version' => '3.0.2',
- 'version' => '3.0.2.0',
- 'reference' => 'c6c1022351a901512170118436c764e473f6de8c',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../sebastian/version',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'theseer/tokenizer' => array(
- 'pretty_version' => '1.2.3',
- 'version' => '1.2.3.0',
- 'reference' => '737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../theseer/tokenizer',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'wp-phpunit/wp-phpunit' => array(
- 'pretty_version' => '6.7.2',
- 'version' => '6.7.2.0',
- 'reference' => 'e2bb06bacc92a8e9e405e83f56989e8ed9359db1',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../wp-phpunit/wp-phpunit',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'yoast/phpunit-polyfills' => array(
- 'pretty_version' => '1.1.4',
- 'version' => '1.1.4.0',
- 'reference' => 'e6faedf5e34cea4438e341f660e2f719760c531d',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../yoast/phpunit-polyfills',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- 'yoast/wp-test-utils' => array(
- 'pretty_version' => '1.2.0',
- 'version' => '1.2.0.0',
- 'reference' => '2e0f62e0281e4859707c5f13b7da1422aa1c8f7b',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../yoast/wp-test-utils',
- 'aliases' => array(),
- 'dev_requirement' => true,
- ),
- ),
-);
diff --git a/wordpress-dev/vendor/doctrine/instantiator/.doctrine-project.json b/wordpress-dev/vendor/doctrine/instantiator/.doctrine-project.json
deleted file mode 100644
index 24ae36e0..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/.doctrine-project.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "active": true,
- "name": "Instantiator",
- "slug": "instantiator",
- "docsSlug": "doctrine-instantiator",
- "codePath": "/src",
- "versions": [
- {
- "name": "1.5",
- "branchName": "1.5.x",
- "slug": "latest",
- "upcoming": true
- },
- {
- "name": "1.4",
- "branchName": "1.4.x",
- "slug": "1.4",
- "aliases": [
- "current",
- "stable"
- ],
- "maintained": true,
- "current": true
- },
- {
- "name": "1.3",
- "branchName": "1.3.x",
- "slug": "1.3",
- "maintained": false
- },
- {
- "name": "1.2",
- "branchName": "1.2.x",
- "slug": "1.2"
- },
- {
- "name": "1.1",
- "branchName": "1.1.x",
- "slug": "1.1"
- },
- {
- "name": "1.0",
- "branchName": "1.0.x",
- "slug": "1.0"
- }
- ]
-}
diff --git a/wordpress-dev/vendor/doctrine/instantiator/CONTRIBUTING.md b/wordpress-dev/vendor/doctrine/instantiator/CONTRIBUTING.md
deleted file mode 100644
index c1a2c42e..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/CONTRIBUTING.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Contributing
-
- * Follow the [Doctrine Coding Standard](https://github.com/doctrine/coding-standard)
- * The project will follow strict [object calisthenics](http://www.slideshare.net/guilhermeblanco/object-calisthenics-applied-to-php)
- * Any contribution must provide tests for additional introduced conditions
- * Any un-confirmed issue needs a failing test case before being accepted
- * Pull requests must be sent from a new hotfix/feature branch, not from `master`.
-
-## Installation
-
-To install the project and run the tests, you need to clone it first:
-
-```sh
-$ git clone git://github.com/doctrine/instantiator.git
-```
-
-You will then need to run a composer installation:
-
-```sh
-$ cd Instantiator
-$ curl -s https://getcomposer.org/installer | php
-$ php composer.phar update
-```
-
-## Testing
-
-The PHPUnit version to be used is the one installed as a dev- dependency via composer:
-
-```sh
-$ ./vendor/bin/phpunit
-```
-
-Accepted coverage for new contributions is 80%. Any contribution not satisfying this requirement
-won't be merged.
-
diff --git a/wordpress-dev/vendor/doctrine/instantiator/LICENSE b/wordpress-dev/vendor/doctrine/instantiator/LICENSE
deleted file mode 100644
index 4d983d1a..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2014 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/wordpress-dev/vendor/doctrine/instantiator/README.md b/wordpress-dev/vendor/doctrine/instantiator/README.md
deleted file mode 100644
index 1fa95679..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Instantiator
-
-This library provides a way of avoiding usage of constructors when instantiating PHP classes.
-
-[](https://travis-ci.org/doctrine/instantiator)
-[](https://codecov.io/gh/doctrine/instantiator/branch/master)
-[](https://www.versioneye.com/package/php--doctrine--instantiator)
-
-[](https://packagist.org/packages/doctrine/instantiator)
-[](https://packagist.org/packages/doctrine/instantiator)
-
-## Installation
-
-The suggested installation method is via [composer](https://getcomposer.org/):
-
-```sh
-composer require doctrine/instantiator
-```
-
-## Usage
-
-The instantiator is able to create new instances of any class without using the constructor or any API of the class
-itself:
-
-```php
-$instantiator = new \Doctrine\Instantiator\Instantiator();
-
-$instance = $instantiator->instantiate(\My\ClassName\Here::class);
-```
-
-## Contributing
-
-Please read the [CONTRIBUTING.md](CONTRIBUTING.md) contents if you wish to help out!
-
-## Credits
-
-This library was migrated from [ocramius/instantiator](https://github.com/Ocramius/Instantiator), which
-has been donated to the doctrine organization, and which is now deprecated in favour of this package.
diff --git a/wordpress-dev/vendor/doctrine/instantiator/composer.json b/wordpress-dev/vendor/doctrine/instantiator/composer.json
deleted file mode 100644
index 179145e8..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/composer.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "name": "doctrine/instantiator",
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "type": "library",
- "license": "MIT",
- "homepage": "https://www.doctrine-project.org/projects/instantiator.html",
- "keywords": [
- "instantiate",
- "constructor"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "https://ocramius.github.io/"
- }
- ],
- "require": {
- "php": "^8.1"
- },
- "require-dev": {
- "ext-phar": "*",
- "ext-pdo": "*",
- "doctrine/coding-standard": "^11",
- "phpbench/phpbench": "^1.2",
- "phpstan/phpstan": "^1.9.4",
- "phpstan/phpstan-phpunit": "^1.3",
- "phpunit/phpunit": "^9.5.27",
- "vimeo/psalm": "^5.4"
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "autoload-dev": {
- "psr-0": {
- "DoctrineTest\\InstantiatorPerformance\\": "tests",
- "DoctrineTest\\InstantiatorTest\\": "tests",
- "DoctrineTest\\InstantiatorTestAsset\\": "tests"
- }
- },
- "config": {
- "allow-plugins": {
- "dealerdirect/phpcodesniffer-composer-installer": true
- }
- }
-}
diff --git a/wordpress-dev/vendor/doctrine/instantiator/docs/en/index.rst b/wordpress-dev/vendor/doctrine/instantiator/docs/en/index.rst
deleted file mode 100644
index 0c85da0b..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/docs/en/index.rst
+++ /dev/null
@@ -1,68 +0,0 @@
-Introduction
-============
-
-This library provides a way of avoiding usage of constructors when instantiating PHP classes.
-
-Installation
-============
-
-The suggested installation method is via `composer`_:
-
-.. code-block:: console
-
- $ composer require doctrine/instantiator
-
-Usage
-=====
-
-The instantiator is able to create new instances of any class without
-using the constructor or any API of the class itself:
-
-.. code-block:: php
-
- instantiate(User::class);
-
-Contributing
-============
-
-- Follow the `Doctrine Coding Standard`_
-- The project will follow strict `object calisthenics`_
-- Any contribution must provide tests for additional introduced
- conditions
-- Any un-confirmed issue needs a failing test case before being
- accepted
-- Pull requests must be sent from a new hotfix/feature branch, not from
- ``master``.
-
-Testing
-=======
-
-The PHPUnit version to be used is the one installed as a dev- dependency
-via composer:
-
-.. code-block:: console
-
- $ ./vendor/bin/phpunit
-
-Accepted coverage for new contributions is 80%. Any contribution not
-satisfying this requirement won’t be merged.
-
-Credits
-=======
-
-This library was migrated from `ocramius/instantiator`_, which has been
-donated to the doctrine organization, and which is now deprecated in
-favour of this package.
-
-.. _composer: https://getcomposer.org/
-.. _CONTRIBUTING.md: CONTRIBUTING.md
-.. _ocramius/instantiator: https://github.com/Ocramius/Instantiator
-.. _Doctrine Coding Standard: https://github.com/doctrine/coding-standard
-.. _object calisthenics: http://www.slideshare.net/guilhermeblanco/object-calisthenics-applied-to-php
diff --git a/wordpress-dev/vendor/doctrine/instantiator/docs/en/sidebar.rst b/wordpress-dev/vendor/doctrine/instantiator/docs/en/sidebar.rst
deleted file mode 100644
index 0c364791..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/docs/en/sidebar.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-.. toctree::
- :depth: 3
-
- index
diff --git a/wordpress-dev/vendor/doctrine/instantiator/psalm.xml b/wordpress-dev/vendor/doctrine/instantiator/psalm.xml
deleted file mode 100644
index e9b622b3..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/psalm.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/ExceptionInterface.php b/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/ExceptionInterface.php
deleted file mode 100644
index 1e591928..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/ExceptionInterface.php
+++ /dev/null
@@ -1,14 +0,0 @@
- $reflectionClass
- *
- * @template T of object
- */
- public static function fromAbstractClass(ReflectionClass $reflectionClass): self
- {
- return new self(sprintf(
- 'The provided class "%s" is abstract, and cannot be instantiated',
- $reflectionClass->getName(),
- ));
- }
-
- public static function fromEnum(string $className): self
- {
- return new self(sprintf(
- 'The provided class "%s" is an enum, and cannot be instantiated',
- $className,
- ));
- }
-}
diff --git a/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php b/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php
deleted file mode 100644
index 4f70ded2..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php
+++ /dev/null
@@ -1,61 +0,0 @@
- $reflectionClass
- *
- * @template T of object
- */
- public static function fromSerializationTriggeredException(
- ReflectionClass $reflectionClass,
- Exception $exception,
- ): self {
- return new self(
- sprintf(
- 'An exception was raised while trying to instantiate an instance of "%s" via un-serialization',
- $reflectionClass->getName(),
- ),
- 0,
- $exception,
- );
- }
-
- /**
- * @phpstan-param ReflectionClass $reflectionClass
- *
- * @template T of object
- */
- public static function fromUncleanUnSerialization(
- ReflectionClass $reflectionClass,
- string $errorString,
- int $errorCode,
- string $errorFile,
- int $errorLine,
- ): self {
- return new self(
- sprintf(
- 'Could not produce an instance of "%s" via un-serialization, since an error was triggered '
- . 'in file "%s" at line "%d"',
- $reflectionClass->getName(),
- $errorFile,
- $errorLine,
- ),
- 0,
- new Exception($errorString, $errorCode),
- );
- }
-}
diff --git a/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php b/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
deleted file mode 100644
index f803f89a..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
+++ /dev/null
@@ -1,255 +0,0 @@
- $className
- *
- * @phpstan-return T
- *
- * @throws ExceptionInterface
- *
- * @template T of object
- */
- public function instantiate(string $className): object
- {
- if (isset(self::$cachedCloneables[$className])) {
- /** @phpstan-var T */
- $cachedCloneable = self::$cachedCloneables[$className];
-
- return clone $cachedCloneable;
- }
-
- if (isset(self::$cachedInstantiators[$className])) {
- $factory = self::$cachedInstantiators[$className];
-
- return $factory();
- }
-
- return $this->buildAndCacheFromFactory($className);
- }
-
- /**
- * Builds the requested object and caches it in static properties for performance
- *
- * @phpstan-param class-string $className
- *
- * @phpstan-return T
- *
- * @template T of object
- */
- private function buildAndCacheFromFactory(string $className): object
- {
- $factory = self::$cachedInstantiators[$className] = $this->buildFactory($className);
- $instance = $factory();
-
- if ($this->isSafeToClone(new ReflectionClass($instance))) {
- self::$cachedCloneables[$className] = clone $instance;
- }
-
- return $instance;
- }
-
- /**
- * Builds a callable capable of instantiating the given $className without
- * invoking its constructor.
- *
- * @phpstan-param class-string $className
- *
- * @phpstan-return callable(): T
- *
- * @throws InvalidArgumentException
- * @throws UnexpectedValueException
- * @throws ReflectionException
- *
- * @template T of object
- */
- private function buildFactory(string $className): callable
- {
- $reflectionClass = $this->getReflectionClass($className);
-
- if ($this->isInstantiableViaReflection($reflectionClass)) {
- return [$reflectionClass, 'newInstanceWithoutConstructor'];
- }
-
- $serializedString = sprintf(
- '%s:%d:"%s":0:{}',
- is_subclass_of($className, Serializable::class) ? self::SERIALIZATION_FORMAT_USE_UNSERIALIZER : self::SERIALIZATION_FORMAT_AVOID_UNSERIALIZER,
- strlen($className),
- $className,
- );
-
- $this->checkIfUnSerializationIsSupported($reflectionClass, $serializedString);
-
- return static fn () => unserialize($serializedString);
- }
-
- /**
- * @phpstan-param class-string $className
- *
- * @phpstan-return ReflectionClass
- *
- * @throws InvalidArgumentException
- * @throws ReflectionException
- *
- * @template T of object
- */
- private function getReflectionClass(string $className): ReflectionClass
- {
- if (! class_exists($className)) {
- throw InvalidArgumentException::fromNonExistingClass($className);
- }
-
- if (enum_exists($className, false)) {
- throw InvalidArgumentException::fromEnum($className);
- }
-
- $reflection = new ReflectionClass($className);
-
- if ($reflection->isAbstract()) {
- throw InvalidArgumentException::fromAbstractClass($reflection);
- }
-
- return $reflection;
- }
-
- /**
- * @phpstan-param ReflectionClass $reflectionClass
- *
- * @throws UnexpectedValueException
- *
- * @template T of object
- */
- private function checkIfUnSerializationIsSupported(ReflectionClass $reflectionClass, string $serializedString): void
- {
- set_error_handler(static function (int $code, string $message, string $file, int $line) use ($reflectionClass, &$error): bool {
- $error = UnexpectedValueException::fromUncleanUnSerialization(
- $reflectionClass,
- $message,
- $code,
- $file,
- $line,
- );
-
- return true;
- });
-
- try {
- $this->attemptInstantiationViaUnSerialization($reflectionClass, $serializedString);
- } finally {
- restore_error_handler();
- }
-
- if ($error) {
- throw $error;
- }
- }
-
- /**
- * @phpstan-param ReflectionClass $reflectionClass
- *
- * @throws UnexpectedValueException
- *
- * @template T of object
- */
- private function attemptInstantiationViaUnSerialization(ReflectionClass $reflectionClass, string $serializedString): void
- {
- try {
- unserialize($serializedString);
- } catch (Exception $exception) {
- throw UnexpectedValueException::fromSerializationTriggeredException($reflectionClass, $exception);
- }
- }
-
- /**
- * @phpstan-param ReflectionClass $reflectionClass
- *
- * @template T of object
- */
- private function isInstantiableViaReflection(ReflectionClass $reflectionClass): bool
- {
- return ! ($this->hasInternalAncestors($reflectionClass) && $reflectionClass->isFinal());
- }
-
- /**
- * Verifies whether the given class is to be considered internal
- *
- * @phpstan-param ReflectionClass $reflectionClass
- *
- * @template T of object
- */
- private function hasInternalAncestors(ReflectionClass $reflectionClass): bool
- {
- do {
- if ($reflectionClass->isInternal()) {
- return true;
- }
-
- $reflectionClass = $reflectionClass->getParentClass();
- } while ($reflectionClass);
-
- return false;
- }
-
- /**
- * Checks if a class is cloneable
- *
- * Classes implementing `__clone` cannot be safely cloned, as that may cause side-effects.
- *
- * @phpstan-param ReflectionClass $reflectionClass
- *
- * @template T of object
- */
- private function isSafeToClone(ReflectionClass $reflectionClass): bool
- {
- return $reflectionClass->isCloneable()
- && ! $reflectionClass->hasMethod('__clone')
- && ! $reflectionClass->isSubclassOf(ArrayIterator::class);
- }
-}
diff --git a/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php b/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php
deleted file mode 100644
index c6ebe351..00000000
--- a/wordpress-dev/vendor/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php
+++ /dev/null
@@ -1,24 +0,0 @@
- $className
- *
- * @phpstan-return T
- *
- * @throws ExceptionInterface
- *
- * @template T of object
- */
- public function instantiate(string $className): object;
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/.coveralls.yml b/wordpress-dev/vendor/hamcrest/hamcrest-php/.coveralls.yml
deleted file mode 100644
index f2f9ed58..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/.coveralls.yml
+++ /dev/null
@@ -1 +0,0 @@
-src_dir: hamcrest
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/.github/workflows/tests.yml b/wordpress-dev/vendor/hamcrest/hamcrest-php/.github/workflows/tests.yml
deleted file mode 100644
index 06255a1b..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/.github/workflows/tests.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: tests
-
-on:
- push:
- pull_request:
-
-jobs:
- tests:
-
- runs-on: ubuntu-latest
- strategy:
- matrix:
- php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
-
- name: PHP ${{ matrix.php }}
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v2
-
- - name: Setup PHP
- uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ matrix.php }}
- extensions: curl
- tools: composer:v2
- coverage: none
-
- - name: Install PHP 7 dependencies
- run: composer update --prefer-dist --no-interaction --no-progress
- if: "matrix.php != '8.0'"
-
- - name: Install PHP 8 dependencies
- run: composer update --prefer-dist --no-interaction --no-progress --ignore-platform-reqs
- if: "matrix.php == '8.0'"
-
- - name: Execute tests
- run: vendor/bin/phpunit -c tests/phpunit.xml.dist
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/.gitignore b/wordpress-dev/vendor/hamcrest/hamcrest-php/.gitignore
deleted file mode 100644
index 987e2a25..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-composer.lock
-vendor
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/.gush.yml b/wordpress-dev/vendor/hamcrest/hamcrest-php/.gush.yml
deleted file mode 100644
index b7c226d5..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/.gush.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-adapter: github
-issue_tracker: github
-meta-header: "Copyright (c) 2009-2015 hamcrest.org"
-table-pr:
- fixed_tickets: ['Fixed Tickets', '']
- license: ['License', MIT]
-base: master
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/.travis.yml b/wordpress-dev/vendor/hamcrest/hamcrest-php/.travis.yml
deleted file mode 100644
index 3b5651fa..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-language: php
-
-dist: trusty
-
-matrix:
- include:
- - name: PHP 5.3
- php: 5.3
- dist: precise
- - name: PHP 5.4
- php: 5.4
- - name: PHP 5.5
- php: 5.5
- - name: PHP 5.6
- php: 5.6
- - name: HHVM 3.18
- php: hhvm-3.18
-
-install:
- - travis_retry composer update --prefer-dist --no-progress
-
-script:
- - vendor/bin/phpunit -c tests/phpunit.xml.dist
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/CHANGES.txt b/wordpress-dev/vendor/hamcrest/hamcrest-php/CHANGES.txt
deleted file mode 100644
index bad8bcfe..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/CHANGES.txt
+++ /dev/null
@@ -1,173 +0,0 @@
-== Version 2.0.1: Released Jul 09 2020 ==
-
-* Added support for PHP 8
-
-
-== Version 2.0: Released Feb 26 2016 ==
-
-* Removed automatic loading of global functions
-
-
-== Version 1.1.0: Released Feb 2 2012 ==
-
-Issues Fixed: 121, 138, 147
-
-* Added non-empty matchers to complement the emptiness-matching forms.
-
- - nonEmptyString()
- - nonEmptyArray()
- - nonEmptyTraversable()
-
-* Added ability to pass variable arguments to several array-based matcher
- factory methods so they work like allOf() et al.
-
- - anArray()
- - arrayContainingInAnyOrder(), containsInAnyOrder()
- - arrayContaining(), contains()
- - stringContainsInOrder()
-
-* Matchers that accept an array of matchers now also accept variable arguments.
- Any non-matcher arguments are wrapped by IsEqual.
-
-* Added noneOf() as a shortcut for not(anyOf()).
-
-
-== Version 1.0.0: Released Jan 20 2012 ==
-
-Issues Fixed: 119, 136, 139, 141, 148, 149, 172
-
-* Moved hamcrest.php into Hamcrest folder and renamed to Hamcrest.php.
- This is more in line with PEAR packaging standards.
-
-* Renamed callable() to callableValue() for compatibility with PHP 5.4.
-
-* Added Hamcrest_Text_StringContainsIgnoringCase to assert using stripos().
-
- assertThat('fOObAr', containsStringIgnoringCase('oba'));
- assertThat('fOObAr', containsString('oba')->ignoringCase());
-
-* Fixed Hamcrest_Core_IsInstanceOf to return false for native types.
-
-* Moved string-based matchers to Hamcrest_Text package.
- StringContains, StringEndsWith, StringStartsWith, and SubstringMatcher
-
-* Hamcrest.php and Hamcrest_Matchers.php are now built from @factory doctags.
- Added @factory doctag to every static factory method.
-
-* Hamcrest_Matchers and Hamcrest.php now import each matcher as-needed
- and Hamcrest.php calls the matchers directly instead of Hamcrest_Matchers.
-
-
-== Version 0.3.0: Released Jul 26 2010 ==
-
-* Added running count to Hamcrest_MatcherAssert with methods to get and reset it.
- This can be used by unit testing frameworks for reporting.
-
-* Added Hamcrest_Core_HasToString to assert return value of toString() or __toString().
-
- assertThat($anObject, hasToString('foo'));
-
-* Added Hamcrest_Type_IsScalar to assert is_scalar().
- Matches values of type bool, int, float, double, and string.
-
- assertThat($count, scalarValue());
- assertThat('foo', scalarValue());
-
-* Added Hamcrest_Collection package.
-
- - IsEmptyTraversable
- - IsTraversableWithSize
-
- assertThat($iterator, emptyTraversable());
- assertThat($iterator, traversableWithSize(5));
-
-* Added Hamcrest_Xml_HasXPath to assert XPath expressions or the content of nodes in an XML/HTML DOM.
-
- assertThat($dom, hasXPath('books/book/title'));
- assertThat($dom, hasXPath('books/book[contains(title, "Alice")]', 3));
- assertThat($dom, hasXPath('books/book/title', 'Alice in Wonderland'));
- assertThat($dom, hasXPath('count(books/book)', greaterThan(10)));
-
-* Added aliases to match the Java API.
-
- hasEntry() -> hasKeyValuePair()
- hasValue() -> hasItemInArray()
- contains() -> arrayContaining()
- containsInAnyOrder() -> arrayContainingInAnyOrder()
-
-* Added optional subtype to Hamcrest_TypeSafeMatcher to enforce object class or resource type.
-
-* Hamcrest_TypeSafeDiagnosingMatcher now extends Hamcrest_TypeSafeMatcher.
-
-
-== Version 0.2.0: Released Jul 14 2010 ==
-
-Issues Fixed: 109, 111, 114, 115
-
-* Description::appendValues() and appendValueList() accept Iterator and IteratorAggregate. [111]
- BaseDescription::appendValue() handles IteratorAggregate.
-
-* assertThat() accepts a single boolean parameter and
- wraps any non-Matcher third parameter with equalTo().
-
-* Removed null return value from assertThat(). [114]
-
-* Fixed wrong variable name in contains(). [109]
-
-* Added Hamcrest_Core_IsSet to assert isset().
-
- assertThat(array('foo' => 'bar'), set('foo'));
- assertThat(array('foo' => 'bar'), notSet('bar'));
-
-* Added Hamcrest_Core_IsTypeOf to assert built-in types with gettype(). [115]
- Types: array, boolean, double, integer, null, object, resource, and string.
- Note that gettype() returns "double" for float values.
-
- assertThat($count, typeOf('integer'));
- assertThat(3.14159, typeOf('double'));
- assertThat(array('foo', 'bar'), typeOf('array'));
- assertThat(new stdClass(), typeOf('object'));
-
-* Added type-specific matchers in new Hamcrest_Type package.
-
- - IsArray
- - IsBoolean
- - IsDouble (includes float values)
- - IsInteger
- - IsObject
- - IsResource
- - IsString
-
- assertThat($count, integerValue());
- assertThat(3.14159, floatValue());
- assertThat('foo', stringValue());
-
-* Added Hamcrest_Type_IsNumeric to assert is_numeric().
- Matches values of type int and float/double or strings that are formatted as numbers.
-
- assertThat(5, numericValue());
- assertThat('-5e+3', numericValue());
-
-* Added Hamcrest_Type_IsCallable to assert is_callable().
-
- assertThat('preg_match', callable());
- assertThat(array('SomeClass', 'SomeMethod'), callable());
- assertThat(array($object, 'SomeMethod'), callable());
- assertThat($object, callable());
- assertThat(function ($x, $y) { return $x + $y; }, callable());
-
-* Added Hamcrest_Text_MatchesPattern for regex matching with preg_match().
-
- assertThat('foobar', matchesPattern('/o+b/'));
-
-* Added aliases:
- - atLeast() for greaterThanOrEqualTo()
- - atMost() for lessThanOrEqualTo()
-
-
-== Version 0.1.0: Released Jul 7 2010 ==
-
-* Created PEAR package
-
-* Core matchers
-
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/LICENSE.txt b/wordpress-dev/vendor/hamcrest/hamcrest-php/LICENSE.txt
deleted file mode 100644
index 91cd329a..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-BSD License
-
-Copyright (c) 2000-2014, www.hamcrest.org
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-Redistributions of source code must retain the above copyright notice, this list of
-conditions and the following disclaimer. Redistributions in binary form must reproduce
-the above copyright notice, this list of conditions and the following disclaimer in
-the documentation and/or other materials provided with the distribution.
-
-Neither the name of Hamcrest nor the names of its contributors may be used to endorse
-or promote products derived from this software without specific prior written
-permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
-SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
-WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGE.
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/README.md b/wordpress-dev/vendor/hamcrest/hamcrest-php/README.md
deleted file mode 100644
index 52e20413..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/README.md
+++ /dev/null
@@ -1,488 +0,0 @@
-This is the PHP port of Hamcrest Matchers
-=========================================
-
-[](https://travis-ci.org/hamcrest/hamcrest-php)
-
-Hamcrest is a matching library originally written for Java, but
-subsequently ported to many other languages. hamcrest-php is the
-official PHP port of Hamcrest and essentially follows a literal
-translation of the original Java API for Hamcrest, with a few
-Exceptions, mostly down to PHP language barriers:
-
- 1. `instanceOf($theClass)` is actually `anInstanceOf($theClass)`
-
- 2. `both(containsString('a'))->and(containsString('b'))`
- is actually `both(containsString('a'))->andAlso(containsString('b'))`
-
- 3. `either(containsString('a'))->or(containsString('b'))`
- is actually `either(containsString('a'))->orElse(containsString('b'))`
-
- 4. Unless it would be non-semantic for a matcher to do so, hamcrest-php
- allows dynamic typing for it's input, in "the PHP way". Exception are
- where semantics surrounding the type itself would suggest otherwise,
- such as stringContains() and greaterThan().
-
- 5. Several official matchers have not been ported because they don't
- make sense or don't apply in PHP:
-
- - `typeCompatibleWith($theClass)`
- - `eventFrom($source)`
- - `hasProperty($name)` **
- - `samePropertyValuesAs($obj)` **
-
- 6. When most of the collections matchers are finally ported, PHP-specific
- aliases will probably be created due to a difference in naming
- conventions between Java's Arrays, Collections, Sets and Maps compared
- with PHP's Arrays.
-
----
-** [Unless we consider POPO's (Plain Old PHP Objects) akin to JavaBeans]
- - The POPO thing is a joke. Java devs coin the term POJO's (Plain Old
- Java Objects).
-
-
-Usage
------
-
-Hamcrest matchers are easy to use as:
-
-```php
-Hamcrest_MatcherAssert::assertThat('a', Hamcrest_Matchers::equalToIgnoringCase('A'));
-```
-
-Alternatively, you can use the global proxy-functions:
-
-```php
-$result = true;
-// with an identifier
-assertThat("result should be true", $result, equalTo(true));
-
-// without an identifier
-assertThat($result, equalTo(true));
-
-// evaluate a boolean expression
-assertThat($result === true);
-
-// with syntactic sugar is()
-assertThat(true, is(true));
-```
-
-:warning: **NOTE:** the global proxy-functions aren't autoloaded by default, so you will need to load them first:
-
-```php
-\Hamcrest\Util::registerGlobalFunctions();
-```
-
-For brevity, all of the examples below use the proxy-functions.
-
-
-Documentation
--------------
-A tutorial can be found on the [Hamcrest site](https://code.google.com/archive/p/hamcrest/wikis/TutorialPHP.wiki).
-
-
-Available Matchers
-------------------
-* [Array](../master/README.md#array)
-* [Collection](../master/README.md#collection)
-* [Object](../master/README.md#object)
-* [Numbers](../master/README.md#numbers)
-* [Type checking](../master/README.md#type-checking)
-* [XML](../master/README.md#xml)
-
-
-### Array
-
-* `anArray` - evaluates an array
-```php
-assertThat([], anArray());
-```
-
-* `hasItemInArray` - check if item exists in array
-```php
-$list = range(2, 7, 2);
-$item = 4;
-assertThat($list, hasItemInArray($item));
-```
-
-* `hasValue` - alias of hasItemInArray
-
-* `arrayContainingInAnyOrder` - check if array contains elements in any order
-```php
-assertThat([2, 4, 6], arrayContainingInAnyOrder([6, 4, 2]));
-assertThat([2, 4, 6], arrayContainingInAnyOrder([4, 2, 6]));
-```
-
-* `containsInAnyOrder` - alias of arrayContainingInAnyOrder
-
-* `arrayContaining` - An array with elements that match the given matchers in the same order.
-```php
-assertThat([2, 4, 6], arrayContaining([2, 4, 6]));
-assertthat([2, 4, 6], not(arrayContaining([6, 4, 2])));
-```
-
-* `contains` - check array in same order
-```php
-assertThat([2, 4, 6], contains([2, 4, 6]));
-```
-
-* `hasKeyInArray` - check if array has given key
-```php
-assertThat(['name'=> 'foobar'], hasKeyInArray('name'));
-```
-
-* `hasKey` - alias of hasKeyInArray
-
-* `hasKeyValuePair` - check if arary has given key, value pair
-```php
-assertThat(['name'=> 'foobar'], hasKeyValuePair('name', 'foobar'));
-```
-* `hasEntry` - same as hasKeyValuePair
-
-* `arrayWithSize` - check array has given size
-```php
-assertthat([2, 4, 6], arrayWithSize(3));
-```
-* `emptyArray` - check if array is emtpy
-```php
-assertThat([], emptyArray());
-```
-
-* `nonEmptyArray`
-```php
-assertThat([1], nonEmptyArray());
-```
-
-### Collection
-
-* `emptyTraversable` - check if traversable is empty
-```php
-$empty_it = new EmptyIterator;
-assertThat($empty_it, emptyTraversable());
-```
-
-* `nonEmptyTraversable` - check if traversable isn't empty
-```php
-$non_empty_it = new ArrayIterator(range(1, 10));
-assertThat($non_empty_it, nonEmptyTraversable());
-a
-```
-
-* `traversableWithSize`
-```php
-$non_empty_it = new ArrayIterator(range(1, 10));
-assertThat($non_empty_it, traversableWithSize(count(range(1, 10))));
-`
-```
-
-### Core
-
-* `allOf` - Evaluates to true only if ALL of the passed in matchers evaluate to true.
-```php
-assertThat([2,4,6], allOf(hasValue(2), arrayWithSize(3)));
-```
-
-* `anyOf` - Evaluates to true if ANY of the passed in matchers evaluate to true.
-```php
-assertThat([2, 4, 6], anyOf(hasValue(8), hasValue(2)));
-```
-
-* `noneOf` - Evaluates to false if ANY of the passed in matchers evaluate to true.
-```php
-assertThat([2, 4, 6], noneOf(hasValue(1), hasValue(3)));
-```
-
-* `both` + `andAlso` - This is useful for fluently combining matchers that must both pass.
-```php
-assertThat([2, 4, 6], both(hasValue(2))->andAlso(hasValue(4)));
-```
-
-* `either` + `orElse` - This is useful for fluently combining matchers where either may pass,
-```php
-assertThat([2, 4, 6], either(hasValue(2))->orElse(hasValue(4)));
-```
-
-* `describedAs` - Wraps an existing matcher and overrides the description when it fails.
-```php
-$expected = "Dog";
-$found = null;
-// this assertion would result error message as Expected: is not null but: was null
-//assertThat("Expected {$expected}, got {$found}", $found, is(notNullValue()));
-// and this assertion would result error message as Expected: Dog but: was null
-//assertThat($found, describedAs($expected, notNullValue()));
-```
-
-* `everyItem` - A matcher to apply to every element in an array.
-```php
-assertThat([2, 4, 6], everyItem(notNullValue()));
-```
-
-* `hasItem` - check array has given item, it can take a matcher argument
-```php
-assertThat([2, 4, 6], hasItem(equalTo(2)));
-```
-
-* `hasItems` - check array has givem items, it can take multiple matcher as arguments
-```php
-assertThat([1, 3, 5], hasItems(equalTo(1), equalTo(3)));
-```
-
-### Object
-
-* `hasToString` - check `__toString` or `toString` method
-```php
-class Foo {
- public $name = null;
-
- public function __toString() {
- return "[Foo]Instance";
- }
-}
-$foo = new Foo;
-assertThat($foo, hasToString(equalTo("[Foo]Instance")));
-```
-
-* `equalTo` - compares two instances using comparison operator '=='
-```php
-$foo = new Foo;
-$foo2 = new Foo;
-assertThat($foo, equalTo($foo2));
-```
-
-* `identicalTo` - compares two instances using identity operator '==='
-```php
-assertThat($foo, is(not(identicalTo($foo2))));
-```
-
-* `anInstanceOf` - check instance is an instance|sub-class of given class
-```php
-assertThat($foo, anInstanceOf(Foo::class));
-```
-
-* `any` - alias of `anInstanceOf`
-
-* `nullValue` check null
-```php
-assertThat(null, is(nullValue()));
-```
-
-* `notNullValue` check not null
-```php
-assertThat("", notNullValue());
-```
-
-* `sameInstance` - check for same instance
-```php
-assertThat($foo, is(not(sameInstance($foo2))));
-assertThat($foo, is(sameInstance($foo)));
-```
-
-* `typeOf`- check type
-```php
-assertThat(1, typeOf("integer"));
-```
-
-* `notSet` - check if instance property is not set
-```php
-assertThat($foo, notSet("name"));
-```
-
-* `set` - check if instance property is set
-```php
-$foo->name = "bar";
-assertThat($foo, set("name"));
-```
-
-### Numbers
-
-* `closeTo` - check value close to a range
-```php
-assertThat(3, closeTo(3, 0.5));
-```
-
-* `comparesEqualTo` - check with '=='
-```php
-assertThat(2, comparesEqualTo(2));
-```
-
-* `greaterThan` - check '>'
-```
-assertThat(2, greaterThan(1));
-```
-
-* `greaterThanOrEqualTo`
-```php
-assertThat(2, greaterThanOrEqualTo(2));
-```
-
-* `atLeast` - The value is >= given value
-```php
-assertThat(3, atLeast(2));
-```
-* `lessThan`
-```php
-assertThat(2, lessThan(3));
-```
-
-* `lessThanOrEqualTo`
-```php
-assertThat(2, lessThanOrEqualTo(3));
-```
-
-* `atMost` - The value is <= given value
-```php
-assertThat(2, atMost(3));
-```
-
-### String
-
-* `emptyString` - check for empty string
-```php
-assertThat("", emptyString());
-```
-
-* `isEmptyOrNullString`
-```php
-assertThat(null, isEmptyOrNullString());
-```
-
-* `nullOrEmptyString`
-```php
-assertThat("", nullOrEmptyString());
-```
-
-* `isNonEmptyString`
-```php
-assertThat("foo", isNonEmptyString());
-```
-
-* `nonEmptyString`
-```php
-assertThat("foo", nonEmptyString());
-```
-
-* `equalToIgnoringCase`
-```php
-assertThat("Foo", equalToIgnoringCase("foo"));
-```
-* `equalToIgnoringWhiteSpace`
-```php
-assertThat(" Foo ", equalToIgnoringWhiteSpace("Foo"));
-```
-
-* `matchesPattern` - matches with regex pattern
-```php
-assertThat("foobarbaz", matchesPattern('/(foo)(bar)(baz)/'));
-```
-
-* `containsString` - check for substring
-```php
-assertThat("foobar", containsString("foo"));
-```
-
-* `containsStringIgnoringCase`
-```php
-assertThat("fooBar", containsStringIgnoringCase("bar"));
-```
-
-* `stringContainsInOrder`
-```php
-assertThat("foo", stringContainsInOrder("foo"));
-```
-
-* `endsWith` - check string that ends with given value
-```php
-assertThat("foo", endsWith("oo"));
-```
-
-* `startsWith` - check string that starts with given value
-```php
-assertThat("bar", startsWith("ba"));
-```
-
-### Type-checking
-
-* `arrayValue` - check array type
-```php
-assertThat([], arrayValue());
-```
-
-* `booleanValue`
-```php
-assertThat(true, booleanValue());
-```
-* `boolValue` - alias of booleanValue
-
-* `callableValue` - check if value is callable
-```php
-$func = function () {};
-assertThat($func, callableValue());
-```
-* `doubleValue`
-```php
-assertThat(3.14, doubleValue());
-```
-
-* `floatValue`
-```php
-assertThat(3.14, floatValue());
-```
-
-* `integerValue`
-```php
-assertThat(1, integerValue());
-```
-
-* `intValue` - alias of `integerValue`
-
-* `numericValue` - check if value is numeric
-```php
-assertThat("123", numericValue());
-```
-
-* `objectValue` - check for object
-```php
-$obj = new stdClass;
-assertThat($obj, objectValue());
-```
-* `anObject`
-```php
-assertThat($obj, anObject());
-```
-
-* `resourceValue` - check resource type
-```php
-$fp = fopen("/tmp/foo", "w+");
-assertThat($fp, resourceValue());
-```
-
-* `scalarValue` - check for scaler value
-```php
-assertThat(1, scalarValue());
-```
-
-* `stringValue`
-```php
-assertThat("", stringValue());
-```
-
-### XML
-
-* `hasXPath` - check xml with a xpath
-```php
-$xml = <<
-
- 1
-
-
- 2
-
-
-XML;
-
-$doc = new DOMDocument;
-$doc->loadXML($xml);
-assertThat($doc, hasXPath("book", 2));
-```
-
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/composer.json b/wordpress-dev/vendor/hamcrest/hamcrest-php/composer.json
deleted file mode 100644
index 712ad965..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/composer.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "name": "hamcrest/hamcrest-php",
- "type": "library",
- "description": "This is the PHP port of Hamcrest Matchers",
- "keywords": ["test"],
- "license": "BSD-3-Clause",
- "authors": [
- ],
-
- "autoload": {
- "classmap": ["hamcrest"]
- },
- "autoload-dev": {
- "classmap": ["tests", "generator"]
- },
-
- "require": {
- "php": "^5.3|^7.0|^8.0"
- },
-
- "require-dev": {
- "phpunit/php-file-iterator": "^1.4 || ^2.0",
- "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0"
- },
-
- "replace": {
- "kodova/hamcrest-php": "*",
- "davedevelopment/hamcrest-php": "*",
- "cordoval/hamcrest-php": "*"
- },
-
- "extra": {
- "branch-alias": {
- "dev-master": "2.1-dev"
- }
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryCall.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryCall.php
deleted file mode 100644
index 83965b2a..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryCall.php
+++ /dev/null
@@ -1,41 +0,0 @@
-method = $method;
- $this->name = $name;
- }
-
- public function getMethod()
- {
- return $this->method;
- }
-
- public function getName()
- {
- return $this->name;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryClass.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryClass.php
deleted file mode 100644
index a09cb73c..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryClass.php
+++ /dev/null
@@ -1,71 +0,0 @@
-file = $file;
- $this->reflector = $class;
- $this->extractFactoryMethods();
- }
-
- public function extractFactoryMethods()
- {
- $this->methods = array();
- foreach ($this->getPublicStaticMethods() as $method) {
- if ($method->isFactory()) {
- $this->methods[] = $method;
- }
- }
- }
-
- public function getPublicStaticMethods()
- {
- $methods = array();
- foreach ($this->reflector->getMethods(ReflectionMethod::IS_STATIC) as $method) {
- if ($method->isPublic() && $method->getDeclaringClass() == $this->reflector) {
- $methods[] = new FactoryMethod($this, $method);
- }
- }
- return $methods;
- }
-
- public function getFile()
- {
- return $this->file;
- }
-
- public function getName()
- {
- return $this->reflector->name;
- }
-
- public function isFactory()
- {
- return !empty($this->methods);
- }
-
- public function getMethods()
- {
- return $this->methods;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryFile.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryFile.php
deleted file mode 100644
index dd6109b1..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryFile.php
+++ /dev/null
@@ -1,121 +0,0 @@
-file = $file;
- $this->indent = $indent;
- }
-
- abstract public function addCall(FactoryCall $call);
-
- abstract public function build();
-
- public function addFileHeader()
- {
- $this->code = '';
- $this->addPart('file_header');
- }
-
- public function addPart($name)
- {
- $this->addCode($this->readPart($name));
- }
-
- public function addCode($code)
- {
- $this->code .= $code;
- }
-
- public function readPart($name)
- {
- return file_get_contents(__DIR__ . "/parts/$name.txt");
- }
-
- public function generateFactoryCall(FactoryCall $call)
- {
- $method = $call->getMethod();
- $code = $method->getComment($this->indent) . "\n";
- $code .= $this->generateDeclaration($call->getName(), $method);
- $code .= $this->generateCall($method);
- $code .= $this->generateClosing();
- return $code;
- }
-
- public function generateDeclaration($name, FactoryMethod $method)
- {
- $code = $this->indent . $this->getDeclarationModifiers()
- . 'function ' . $name . '('
- . $this->generateDeclarationArguments($method)
- . ')' . "\n" . $this->indent . '{' . "\n";
- return $code;
- }
-
- public function getDeclarationModifiers()
- {
- return '';
- }
-
- public function generateDeclarationArguments(FactoryMethod $method)
- {
- if ($method->acceptsVariableArguments()) {
- return '/* args... */';
- } else {
- return $method->getParameterDeclarations();
- }
- }
-
- public function generateImport(FactoryMethod $method)
- {
- return $this->indent . self::INDENT . "require_once '" . $method->getClass()->getFile() . "';" . "\n";
- }
-
- public function generateCall(FactoryMethod $method)
- {
- $code = '';
- if ($method->acceptsVariableArguments()) {
- $code .= $this->indent . self::INDENT . '$args = func_get_args();' . "\n";
- }
-
- $code .= $this->indent . self::INDENT . 'return ';
- if ($method->acceptsVariableArguments()) {
- $code .= 'call_user_func_array(array(\''
- . '\\' . $method->getClassName() . '\', \''
- . $method->getName() . '\'), $args);' . "\n";
- } else {
- $code .= '\\' . $method->getClassName() . '::'
- . $method->getName() . '('
- . $method->getParameterInvocations() . ');' . "\n";
- }
-
- return $code;
- }
-
- public function generateClosing()
- {
- return $this->indent . '}' . "\n";
- }
-
- public function write()
- {
- file_put_contents($this->file, $this->code);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryGenerator.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryGenerator.php
deleted file mode 100644
index 242875a0..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryGenerator.php
+++ /dev/null
@@ -1,124 +0,0 @@
-path = $path;
- $this->factoryFiles = array();
- }
-
- public function addFactoryFile(FactoryFile $factoryFile)
- {
- $this->factoryFiles[] = $factoryFile;
- }
-
- public function generate()
- {
- $classes = $this->getClassesWithFactoryMethods();
- foreach ($classes as $class) {
- foreach ($class->getMethods() as $method) {
- foreach ($method->getCalls() as $call) {
- foreach ($this->factoryFiles as $file) {
- $file->addCall($call);
- }
- }
- }
- }
- }
-
- public function write()
- {
- foreach ($this->factoryFiles as $file) {
- $file->build();
- $file->write();
- }
- }
-
- public function getClassesWithFactoryMethods()
- {
- $classes = array();
- $files = $this->getSortedFiles();
- foreach ($files as $file) {
- $class = $this->getFactoryClass($file);
- if ($class !== null) {
- $classes[] = $class;
- }
- }
-
- return $classes;
- }
-
- public function getSortedFiles()
- {
- $iter = $this->getFileIterator();
- $files = array();
- foreach ($iter as $file) {
- $files[] = $file;
- }
- sort($files, SORT_STRING);
-
- return $files;
- }
-
- private function getFileIterator()
- {
- $factoryClass = class_exists('File_Iterator_Factory') ? 'File_Iterator_Factory' : 'SebastianBergmann\FileIterator\Factory';
-
- $factory = new $factoryClass();
-
- return $factory->getFileIterator($this->path, '.php');
- }
-
- public function getFactoryClass($file)
- {
- $name = $this->getFactoryClassName($file);
- if ($name !== null) {
- require_once $file;
-
- if (class_exists($name)) {
- $class = new FactoryClass(substr($file, strpos($file, 'Hamcrest/')), new ReflectionClass($name));
- if ($class->isFactory()) {
- return $class;
- }
- }
- }
-
- return null;
- }
-
- public function getFactoryClassName($file)
- {
- $content = file_get_contents($file);
- if (preg_match('/namespace\s+(.+);/', $content, $namespace)
- && preg_match('/\n\s*class\s+(\w+)\s+extends\b/', $content, $className)
- && preg_match('/@factory\b/', $content)
- ) {
- return $namespace[1] . '\\' . $className[1];
- }
-
- return null;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryMethod.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryMethod.php
deleted file mode 100644
index 8a05371b..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryMethod.php
+++ /dev/null
@@ -1,231 +0,0 @@
-class = $class;
- $this->reflector = $reflector;
- $this->extractCommentWithoutLeadingShashesAndStars();
- $this->extractFactoryNamesFromComment();
- $this->extractParameters();
- }
-
- public function extractCommentWithoutLeadingShashesAndStars()
- {
- $this->comment = explode("\n", $this->reflector->getDocComment());
- foreach ($this->comment as &$line) {
- $line = preg_replace('#^\s*(/\\*+|\\*+/|\\*)\s?#', '', $line);
- }
- $this->trimLeadingBlankLinesFromComment();
- $this->trimTrailingBlankLinesFromComment();
- }
-
- public function trimLeadingBlankLinesFromComment()
- {
- while (count($this->comment) > 0) {
- $line = array_shift($this->comment);
- if (trim($line) != '') {
- array_unshift($this->comment, $line);
- break;
- }
- }
- }
-
- public function trimTrailingBlankLinesFromComment()
- {
- while (count($this->comment) > 0) {
- $line = array_pop($this->comment);
- if (trim($line) != '') {
- array_push($this->comment, $line);
- break;
- }
- }
- }
-
- public function extractFactoryNamesFromComment()
- {
- $this->calls = array();
- for ($i = 0; $i < count($this->comment); $i++) {
- if ($this->extractFactoryNamesFromLine($this->comment[$i])) {
- unset($this->comment[$i]);
- }
- }
- $this->trimTrailingBlankLinesFromComment();
- }
-
- public function extractFactoryNamesFromLine($line)
- {
- if (preg_match('/^\s*@factory(\s+(.+))?$/', $line, $match)) {
- $this->createCalls(
- $this->extractFactoryNamesFromAnnotation(
- isset($match[2]) ? trim($match[2]) : null
- )
- );
- return true;
- }
- return false;
- }
-
- public function extractFactoryNamesFromAnnotation($value)
- {
- $primaryName = $this->reflector->getName();
- if (empty($value)) {
- return array($primaryName);
- }
- preg_match_all('/(\.{3}|-|[a-zA-Z_][a-zA-Z_0-9]*)/', $value, $match);
- $names = $match[0];
- if (in_array('...', $names)) {
- $this->isVarArgs = true;
- }
- if (!in_array('-', $names) && !in_array($primaryName, $names)) {
- array_unshift($names, $primaryName);
- }
- return $names;
- }
-
- public function createCalls(array $names)
- {
- $names = array_unique($names);
- foreach ($names as $name) {
- if ($name != '-' && $name != '...') {
- $this->calls[] = new FactoryCall($this, $name);
- }
- }
- }
-
- public function extractParameters()
- {
- $this->parameters = array();
- if (!$this->isVarArgs) {
- foreach ($this->reflector->getParameters() as $parameter) {
- $this->parameters[] = new FactoryParameter($this, $parameter);
- }
- }
- }
-
- public function getParameterDeclarations()
- {
- if ($this->isVarArgs || !$this->hasParameters()) {
- return '';
- }
- $params = array();
- foreach ($this->parameters as /** @var $parameter FactoryParameter */
- $parameter) {
- $params[] = $parameter->getDeclaration();
- }
- return implode(', ', $params);
- }
-
- public function getParameterInvocations()
- {
- if ($this->isVarArgs) {
- return '';
- }
- $params = array();
- foreach ($this->parameters as $parameter) {
- $params[] = $parameter->getInvocation();
- }
- return implode(', ', $params);
- }
-
-
- public function getClass()
- {
- return $this->class;
- }
-
- public function getClassName()
- {
- return $this->class->getName();
- }
-
- public function getName()
- {
- return $this->reflector->name;
- }
-
- public function isFactory()
- {
- return count($this->calls) > 0;
- }
-
- public function getCalls()
- {
- return $this->calls;
- }
-
- public function acceptsVariableArguments()
- {
- return $this->isVarArgs;
- }
-
- public function hasParameters()
- {
- return !empty($this->parameters);
- }
-
- public function getParameters()
- {
- return $this->parameters;
- }
-
- public function getFullName()
- {
- return $this->getClassName() . '::' . $this->getName();
- }
-
- public function getCommentText()
- {
- return implode("\n", $this->comment);
- }
-
- public function getComment($indent = '')
- {
- $comment = $indent . '/**';
- foreach ($this->comment as $line) {
- $comment .= "\n" . rtrim($indent . ' * ' . $line);
- }
- $comment .= "\n" . $indent . ' */';
- return $comment;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryParameter.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryParameter.php
deleted file mode 100644
index 82b707ac..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/FactoryParameter.php
+++ /dev/null
@@ -1,131 +0,0 @@
-method = $method;
- $this->reflector = $reflector;
- }
-
- /**
- * Compute the declaration code.
- *
- * @return string
- */
- public function getDeclaration()
- {
- $code = $this->getTypeCode() . $this->getInvocation();
-
- if ($this->reflector->isOptional()) {
- $default = $this->reflector->getDefaultValue();
- if (is_null($default)) {
- $default = 'null';
- } elseif (is_bool($default)) {
- $default = $default ? 'true' : 'false';
- } elseif (is_string($default)) {
- $default = "'" . $default . "'";
- } elseif (is_numeric($default)) {
- $default = strval($default);
- } elseif (is_array($default)) {
- $default = 'array()';
- } else {
- echo 'Warning: unknown default type for ' . $this->getMethod()->getFullName() . "\n";
- var_dump($default);
- $default = 'null';
- }
- $code .= ' = ' . $default;
- }
- return $code;
- }
-
- /**
- * Compute the type code for the paramater.
- *
- * @return string
- */
- private function getTypeCode()
- {
- // Handle PHP 5 separately
- if (PHP_VERSION_ID < 70000) {
- if ($this->reflector->isArray()) {
- return 'array';
- }
-
- $class = $this->reflector->getClass();
-
- return $class ? sprintf('\\%s ', $class->getName()) : '';
- }
-
- if (!$this->reflector->hasType()) {
- return '';
- }
-
- $type = $this->reflector->getType();
- $name = self::getQualifiedName($type);
-
- // PHP 7.1+ supports nullable types via a leading question mark
- return (PHP_VERSION_ID >= 70100 && $type->allowsNull()) ? sprintf('?%s ', $name) : sprintf('%s ', $name);
- }
-
- /**
- * Compute qualified name for the given type.
- *
- * This function knows how to prefix class names with a leading slash and
- * also how to handle PHP 8's union types.
- *
- * @param ReflectionType $type
- *
- * @return string
- */
- private static function getQualifiedName(ReflectionType $type)
- {
- // PHP 8 union types can be recursively processed
- if ($type instanceof ReflectionUnionType) {
- return implode('|', array_map(function (ReflectionType $type) {
- // The "self::" call within a Closure is fine here because this
- // code will only ever be executed on PHP 7.0+
- return self::getQualifiedName($type);
- }, $type->getTypes()));
- }
-
- // PHP 7.0 doesn't have named types, but 7.1+ does
- $name = $type instanceof ReflectionNamedType ? $type->getName() : (string) $type;
-
- return $type->isBuiltin() ? $name : sprintf('\\%s', $name);
- }
-
- /**
- * Compute the invocation code.
- *
- * @return string
- */
- public function getInvocation()
- {
- return sprintf('$%s', $this->reflector->getName());
- }
-
- /**
- * Compute the method name.
- *
- * @return string
- */
- public function getMethod()
- {
- return $this->method;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/GlobalFunctionFile.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/GlobalFunctionFile.php
deleted file mode 100644
index ec8b1b39..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/GlobalFunctionFile.php
+++ /dev/null
@@ -1,42 +0,0 @@
-functions = '';
- }
-
- public function addCall(FactoryCall $call)
- {
- $this->functions .= "\n" . $this->generateFactoryCall($call);
- }
-
- public function build()
- {
- $this->addFileHeader();
- $this->addPart('functions_imports');
- $this->addPart('functions_header');
- $this->addCode($this->functions);
- $this->addPart('functions_footer');
- }
-
- public function generateFactoryCall(FactoryCall $call)
- {
- $code = "if (!function_exists('{$call->getName()}')) {\n";
- $code.= parent::generateFactoryCall($call);
- $code.= "}\n";
-
- return $code;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php
deleted file mode 100644
index 44cec02f..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php
+++ /dev/null
@@ -1,38 +0,0 @@
-methods = '';
- }
-
- public function addCall(FactoryCall $call)
- {
- $this->methods .= PHP_EOL . $this->generateFactoryCall($call);
- }
-
- public function getDeclarationModifiers()
- {
- return 'public static ';
- }
-
- public function build()
- {
- $this->addFileHeader();
- $this->addPart('matchers_imports');
- $this->addPart('matchers_header');
- $this->addCode($this->methods);
- $this->addPart('matchers_footer');
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/file_header.txt b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/file_header.txt
deleted file mode 100644
index 7b352e44..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/file_header.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
- * //With an identifier
- * assertThat("assertion identifier", $apple->flavour(), equalTo("tasty"));
- * //Without an identifier
- * assertThat($apple->flavour(), equalTo("tasty"));
- * //Evaluating a boolean expression
- * assertThat("some error", $a > $b);
- *
- */
- function assertThat()
- {
- $args = func_get_args();
- call_user_func_array(
- array('Hamcrest\MatcherAssert', 'assertThat'),
- $args
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/functions_imports.txt b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/functions_imports.txt
deleted file mode 100644
index e69de29b..00000000
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/matchers_footer.txt b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/matchers_footer.txt
deleted file mode 100644
index 5c34318c..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/matchers_footer.txt
+++ /dev/null
@@ -1 +0,0 @@
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/matchers_header.txt b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/matchers_header.txt
deleted file mode 100644
index 4f8bb2b7..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/matchers_header.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-/**
- * A series of static factories for all hamcrest matchers.
- */
-class Matchers
-{
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/matchers_imports.txt b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/matchers_imports.txt
deleted file mode 100644
index 7dd68495..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/parts/matchers_imports.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-
-namespace Hamcrest;
\ No newline at end of file
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/run.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/run.php
deleted file mode 100644
index 924d752f..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/generator/run.php
+++ /dev/null
@@ -1,37 +0,0 @@
-addFactoryFile(new StaticMethodFile(STATIC_MATCHERS_FILE));
-$generator->addFactoryFile(new GlobalFunctionFile(GLOBAL_FUNCTIONS_FILE));
-$generator->generate();
-$generator->write();
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php
deleted file mode 100644
index 55a2dd8c..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php
+++ /dev/null
@@ -1,882 +0,0 @@
-
- * //With an identifier
- * assertThat("assertion identifier", $apple->flavour(), equalTo("tasty"));
- * //Without an identifier
- * assertThat($apple->flavour(), equalTo("tasty"));
- * //Evaluating a boolean expression
- * assertThat("some error", $a > $b);
- *
- */
- function assertThat()
- {
- $args = func_get_args();
- call_user_func_array(
- array('Hamcrest\MatcherAssert', 'assertThat'),
- $args
- );
- }
-}
-
-if (!function_exists('anArray')) {
- /**
- * Evaluates to true only if each $matcher[$i] is satisfied by $array[$i].
- */
- function anArray(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArray', 'anArray'), $args);
- }
-}
-
-if (!function_exists('hasItemInArray')) {
- /**
- * Evaluates to true if any item in an array satisfies the given matcher.
- *
- * @param mixed $item as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContaining
- */
- function hasItemInArray($item)
- {
- return \Hamcrest\Arrays\IsArrayContaining::hasItemInArray($item);
- }
-}
-
-if (!function_exists('hasValue')) {
- /**
- * Evaluates to true if any item in an array satisfies the given matcher.
- *
- * @param mixed $item as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContaining
- */
- function hasValue($item)
- {
- return \Hamcrest\Arrays\IsArrayContaining::hasItemInArray($item);
- }
-}
-
-if (!function_exists('arrayContainingInAnyOrder')) {
- /**
- * An array with elements that match the given matchers.
- */
- function arrayContainingInAnyOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInAnyOrder', 'arrayContainingInAnyOrder'), $args);
- }
-}
-
-if (!function_exists('containsInAnyOrder')) {
- /**
- * An array with elements that match the given matchers.
- */
- function containsInAnyOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInAnyOrder', 'arrayContainingInAnyOrder'), $args);
- }
-}
-
-if (!function_exists('arrayContaining')) {
- /**
- * An array with elements that match the given matchers in the same order.
- */
- function arrayContaining(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInOrder', 'arrayContaining'), $args);
- }
-}
-
-if (!function_exists('contains')) {
- /**
- * An array with elements that match the given matchers in the same order.
- */
- function contains(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInOrder', 'arrayContaining'), $args);
- }
-}
-
-if (!function_exists('hasKeyInArray')) {
- /**
- * Evaluates to true if any key in an array matches the given matcher.
- *
- * @param mixed $key as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContainingKey
- */
- function hasKeyInArray($key)
- {
- return \Hamcrest\Arrays\IsArrayContainingKey::hasKeyInArray($key);
- }
-}
-
-if (!function_exists('hasKey')) {
- /**
- * Evaluates to true if any key in an array matches the given matcher.
- *
- * @param mixed $key as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContainingKey
- */
- function hasKey($key)
- {
- return \Hamcrest\Arrays\IsArrayContainingKey::hasKeyInArray($key);
- }
-}
-
-if (!function_exists('hasKeyValuePair')) {
- /**
- * Test if an array has both an key and value in parity with each other.
- */
- function hasKeyValuePair($key, $value)
- {
- return \Hamcrest\Arrays\IsArrayContainingKeyValuePair::hasKeyValuePair($key, $value);
- }
-}
-
-if (!function_exists('hasEntry')) {
- /**
- * Test if an array has both an key and value in parity with each other.
- */
- function hasEntry($key, $value)
- {
- return \Hamcrest\Arrays\IsArrayContainingKeyValuePair::hasKeyValuePair($key, $value);
- }
-}
-
-if (!function_exists('arrayWithSize')) {
- /**
- * Does array size satisfy a given matcher?
- *
- * @param \Hamcrest\Matcher|int $size as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayWithSize
- */
- function arrayWithSize($size)
- {
- return \Hamcrest\Arrays\IsArrayWithSize::arrayWithSize($size);
- }
-}
-
-if (!function_exists('emptyArray')) {
- /**
- * Matches an empty array.
- */
- function emptyArray()
- {
- return \Hamcrest\Arrays\IsArrayWithSize::emptyArray();
- }
-}
-
-if (!function_exists('nonEmptyArray')) {
- /**
- * Matches an empty array.
- */
- function nonEmptyArray()
- {
- return \Hamcrest\Arrays\IsArrayWithSize::nonEmptyArray();
- }
-}
-
-if (!function_exists('emptyTraversable')) {
- /**
- * Returns true if traversable is empty.
- */
- function emptyTraversable()
- {
- return \Hamcrest\Collection\IsEmptyTraversable::emptyTraversable();
- }
-}
-
-if (!function_exists('nonEmptyTraversable')) {
- /**
- * Returns true if traversable is not empty.
- */
- function nonEmptyTraversable()
- {
- return \Hamcrest\Collection\IsEmptyTraversable::nonEmptyTraversable();
- }
-}
-
-if (!function_exists('traversableWithSize')) {
- /**
- * Does traversable size satisfy a given matcher?
- */
- function traversableWithSize($size)
- {
- return \Hamcrest\Collection\IsTraversableWithSize::traversableWithSize($size);
- }
-}
-
-if (!function_exists('allOf')) {
- /**
- * Evaluates to true only if ALL of the passed in matchers evaluate to true.
- */
- function allOf(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\AllOf', 'allOf'), $args);
- }
-}
-
-if (!function_exists('anyOf')) {
- /**
- * Evaluates to true if ANY of the passed in matchers evaluate to true.
- */
- function anyOf(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\AnyOf', 'anyOf'), $args);
- }
-}
-
-if (!function_exists('noneOf')) {
- /**
- * Evaluates to false if ANY of the passed in matchers evaluate to true.
- */
- function noneOf(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\AnyOf', 'noneOf'), $args);
- }
-}
-
-if (!function_exists('both')) {
- /**
- * This is useful for fluently combining matchers that must both pass.
- * For example:
- *
- * assertThat($string, both(containsString("a"))->andAlso(containsString("b")));
- *
- */
- function both(\Hamcrest\Matcher $matcher)
- {
- return \Hamcrest\Core\CombinableMatcher::both($matcher);
- }
-}
-
-if (!function_exists('either')) {
- /**
- * This is useful for fluently combining matchers where either may pass,
- * for example:
- *
- * assertThat($string, either(containsString("a"))->orElse(containsString("b")));
- *
- */
- function either(\Hamcrest\Matcher $matcher)
- {
- return \Hamcrest\Core\CombinableMatcher::either($matcher);
- }
-}
-
-if (!function_exists('describedAs')) {
- /**
- * Wraps an existing matcher and overrides the description when it fails.
- */
- function describedAs(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\DescribedAs', 'describedAs'), $args);
- }
-}
-
-if (!function_exists('everyItem')) {
- /**
- * @param Matcher $itemMatcher
- * A matcher to apply to every element in an array.
- *
- * @return \Hamcrest\Core\Every
- * Evaluates to TRUE for a collection in which every item matches $itemMatcher
- */
- function everyItem(\Hamcrest\Matcher $itemMatcher)
- {
- return \Hamcrest\Core\Every::everyItem($itemMatcher);
- }
-}
-
-if (!function_exists('hasToString')) {
- /**
- * Does array size satisfy a given matcher?
- */
- function hasToString($matcher)
- {
- return \Hamcrest\Core\HasToString::hasToString($matcher);
- }
-}
-
-if (!function_exists('is')) {
- /**
- * Decorates another Matcher, retaining the behavior but allowing tests
- * to be slightly more expressive.
- *
- * For example: assertThat($cheese, equalTo($smelly))
- * vs. assertThat($cheese, is(equalTo($smelly)))
- */
- function is($value)
- {
- return \Hamcrest\Core\Is::is($value);
- }
-}
-
-if (!function_exists('anything')) {
- /**
- * This matcher always evaluates to true.
- *
- * @param string $description A meaningful string used when describing itself.
- *
- * @return \Hamcrest\Core\IsAnything
- */
- function anything($description = 'ANYTHING')
- {
- return \Hamcrest\Core\IsAnything::anything($description);
- }
-}
-
-if (!function_exists('hasItem')) {
- /**
- * Test if the value is an array containing this matcher.
- *
- * Example:
- *
- * assertThat(array('a', 'b'), hasItem(equalTo('b')));
- * //Convenience defaults to equalTo()
- * assertThat(array('a', 'b'), hasItem('b'));
- *
- */
- function hasItem(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\IsCollectionContaining', 'hasItem'), $args);
- }
-}
-
-if (!function_exists('hasItems')) {
- /**
- * Test if the value is an array containing elements that match all of these
- * matchers.
- *
- * Example:
- *
- * assertThat(array('a', 'b', 'c'), hasItems(equalTo('a'), equalTo('b')));
- *
- */
- function hasItems(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\IsCollectionContaining', 'hasItems'), $args);
- }
-}
-
-if (!function_exists('equalTo')) {
- /**
- * Is the value equal to another value, as tested by the use of the "=="
- * comparison operator?
- */
- function equalTo($item)
- {
- return \Hamcrest\Core\IsEqual::equalTo($item);
- }
-}
-
-if (!function_exists('identicalTo')) {
- /**
- * Tests of the value is identical to $value as tested by the "===" operator.
- */
- function identicalTo($value)
- {
- return \Hamcrest\Core\IsIdentical::identicalTo($value);
- }
-}
-
-if (!function_exists('anInstanceOf')) {
- /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * assertThat($anObject, anInstanceOf('Thing'));
- */
- function anInstanceOf($theClass)
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf($theClass);
- }
-}
-
-if (!function_exists('any')) {
- /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * assertThat($anObject, anInstanceOf('Thing'));
- */
- function any($theClass)
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf($theClass);
- }
-}
-
-if (!function_exists('not')) {
- /**
- * Matches if value does not match $value.
- */
- function not($value)
- {
- return \Hamcrest\Core\IsNot::not($value);
- }
-}
-
-if (!function_exists('nullValue')) {
- /**
- * Matches if value is null.
- */
- function nullValue()
- {
- return \Hamcrest\Core\IsNull::nullValue();
- }
-}
-
-if (!function_exists('notNullValue')) {
- /**
- * Matches if value is not null.
- */
- function notNullValue()
- {
- return \Hamcrest\Core\IsNull::notNullValue();
- }
-}
-
-if (!function_exists('sameInstance')) {
- /**
- * Creates a new instance of IsSame.
- *
- * @param mixed $object
- * The predicate evaluates to true only when the argument is
- * this object.
- *
- * @return \Hamcrest\Core\IsSame
- */
- function sameInstance($object)
- {
- return \Hamcrest\Core\IsSame::sameInstance($object);
- }
-}
-
-if (!function_exists('typeOf')) {
- /**
- * Is the value a particular built-in type?
- */
- function typeOf($theType)
- {
- return \Hamcrest\Core\IsTypeOf::typeOf($theType);
- }
-}
-
-if (!function_exists('set')) {
- /**
- * Matches if value (class, object, or array) has named $property.
- */
- function set($property)
- {
- return \Hamcrest\Core\Set::set($property);
- }
-}
-
-if (!function_exists('notSet')) {
- /**
- * Matches if value (class, object, or array) does not have named $property.
- */
- function notSet($property)
- {
- return \Hamcrest\Core\Set::notSet($property);
- }
-}
-
-if (!function_exists('closeTo')) {
- /**
- * Matches if value is a number equal to $value within some range of
- * acceptable error $delta.
- */
- function closeTo($value, $delta)
- {
- return \Hamcrest\Number\IsCloseTo::closeTo($value, $delta);
- }
-}
-
-if (!function_exists('comparesEqualTo')) {
- /**
- * The value is not > $value, nor < $value.
- */
- function comparesEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::comparesEqualTo($value);
- }
-}
-
-if (!function_exists('greaterThan')) {
- /**
- * The value is > $value.
- */
- function greaterThan($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThan($value);
- }
-}
-
-if (!function_exists('greaterThanOrEqualTo')) {
- /**
- * The value is >= $value.
- */
- function greaterThanOrEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThanOrEqualTo($value);
- }
-}
-
-if (!function_exists('atLeast')) {
- /**
- * The value is >= $value.
- */
- function atLeast($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThanOrEqualTo($value);
- }
-}
-
-if (!function_exists('lessThan')) {
- /**
- * The value is < $value.
- */
- function lessThan($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThan($value);
- }
-}
-
-if (!function_exists('lessThanOrEqualTo')) {
- /**
- * The value is <= $value.
- */
- function lessThanOrEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThanOrEqualTo($value);
- }
-}
-
-if (!function_exists('atMost')) {
- /**
- * The value is <= $value.
- */
- function atMost($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThanOrEqualTo($value);
- }
-}
-
-if (!function_exists('isEmptyString')) {
- /**
- * Matches if value is a zero-length string.
- */
- function isEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyString();
- }
-}
-
-if (!function_exists('emptyString')) {
- /**
- * Matches if value is a zero-length string.
- */
- function emptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyString();
- }
-}
-
-if (!function_exists('isEmptyOrNullString')) {
- /**
- * Matches if value is null or a zero-length string.
- */
- function isEmptyOrNullString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyOrNullString();
- }
-}
-
-if (!function_exists('nullOrEmptyString')) {
- /**
- * Matches if value is null or a zero-length string.
- */
- function nullOrEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyOrNullString();
- }
-}
-
-if (!function_exists('isNonEmptyString')) {
- /**
- * Matches if value is a non-zero-length string.
- */
- function isNonEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isNonEmptyString();
- }
-}
-
-if (!function_exists('nonEmptyString')) {
- /**
- * Matches if value is a non-zero-length string.
- */
- function nonEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isNonEmptyString();
- }
-}
-
-if (!function_exists('equalToIgnoringCase')) {
- /**
- * Matches if value is a string equal to $string, regardless of the case.
- */
- function equalToIgnoringCase($string)
- {
- return \Hamcrest\Text\IsEqualIgnoringCase::equalToIgnoringCase($string);
- }
-}
-
-if (!function_exists('equalToIgnoringWhiteSpace')) {
- /**
- * Matches if value is a string equal to $string, regardless of whitespace.
- */
- function equalToIgnoringWhiteSpace($string)
- {
- return \Hamcrest\Text\IsEqualIgnoringWhiteSpace::equalToIgnoringWhiteSpace($string);
- }
-}
-
-if (!function_exists('matchesPattern')) {
- /**
- * Matches if value is a string that matches regular expression $pattern.
- */
- function matchesPattern($pattern)
- {
- return \Hamcrest\Text\MatchesPattern::matchesPattern($pattern);
- }
-}
-
-if (!function_exists('containsString')) {
- /**
- * Matches if value is a string that contains $substring.
- */
- function containsString($substring)
- {
- return \Hamcrest\Text\StringContains::containsString($substring);
- }
-}
-
-if (!function_exists('containsStringIgnoringCase')) {
- /**
- * Matches if value is a string that contains $substring regardless of the case.
- */
- function containsStringIgnoringCase($substring)
- {
- return \Hamcrest\Text\StringContainsIgnoringCase::containsStringIgnoringCase($substring);
- }
-}
-
-if (!function_exists('stringContainsInOrder')) {
- /**
- * Matches if value contains $substrings in a constrained order.
- */
- function stringContainsInOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Text\StringContainsInOrder', 'stringContainsInOrder'), $args);
- }
-}
-
-if (!function_exists('endsWith')) {
- /**
- * Matches if value is a string that ends with $substring.
- */
- function endsWith($substring)
- {
- return \Hamcrest\Text\StringEndsWith::endsWith($substring);
- }
-}
-
-if (!function_exists('startsWith')) {
- /**
- * Matches if value is a string that starts with $substring.
- */
- function startsWith($substring)
- {
- return \Hamcrest\Text\StringStartsWith::startsWith($substring);
- }
-}
-
-if (!function_exists('arrayValue')) {
- /**
- * Is the value an array?
- */
- function arrayValue()
- {
- return \Hamcrest\Type\IsArray::arrayValue();
- }
-}
-
-if (!function_exists('booleanValue')) {
- /**
- * Is the value a boolean?
- */
- function booleanValue()
- {
- return \Hamcrest\Type\IsBoolean::booleanValue();
- }
-}
-
-if (!function_exists('boolValue')) {
- /**
- * Is the value a boolean?
- */
- function boolValue()
- {
- return \Hamcrest\Type\IsBoolean::booleanValue();
- }
-}
-
-if (!function_exists('callableValue')) {
- /**
- * Is the value callable?
- */
- function callableValue()
- {
- return \Hamcrest\Type\IsCallable::callableValue();
- }
-}
-
-if (!function_exists('doubleValue')) {
- /**
- * Is the value a float/double?
- */
- function doubleValue()
- {
- return \Hamcrest\Type\IsDouble::doubleValue();
- }
-}
-
-if (!function_exists('floatValue')) {
- /**
- * Is the value a float/double?
- */
- function floatValue()
- {
- return \Hamcrest\Type\IsDouble::doubleValue();
- }
-}
-
-if (!function_exists('integerValue')) {
- /**
- * Is the value an integer?
- */
- function integerValue()
- {
- return \Hamcrest\Type\IsInteger::integerValue();
- }
-}
-
-if (!function_exists('intValue')) {
- /**
- * Is the value an integer?
- */
- function intValue()
- {
- return \Hamcrest\Type\IsInteger::integerValue();
- }
-}
-
-if (!function_exists('numericValue')) {
- /**
- * Is the value a numeric?
- */
- function numericValue()
- {
- return \Hamcrest\Type\IsNumeric::numericValue();
- }
-}
-
-if (!function_exists('objectValue')) {
- /**
- * Is the value an object?
- */
- function objectValue()
- {
- return \Hamcrest\Type\IsObject::objectValue();
- }
-}
-
-if (!function_exists('anObject')) {
- /**
- * Is the value an object?
- */
- function anObject()
- {
- return \Hamcrest\Type\IsObject::objectValue();
- }
-}
-
-if (!function_exists('resourceValue')) {
- /**
- * Is the value a resource?
- */
- function resourceValue()
- {
- return \Hamcrest\Type\IsResource::resourceValue();
- }
-}
-
-if (!function_exists('scalarValue')) {
- /**
- * Is the value a scalar (boolean, integer, double, or string)?
- */
- function scalarValue()
- {
- return \Hamcrest\Type\IsScalar::scalarValue();
- }
-}
-
-if (!function_exists('stringValue')) {
- /**
- * Is the value a string?
- */
- function stringValue()
- {
- return \Hamcrest\Type\IsString::stringValue();
- }
-}
-
-if (!function_exists('hasXPath')) {
- /**
- * Wraps $matcher with {@link Hamcrest\Core\IsEqual)
- * if it's not a matcher and the XPath in count()
- * if it's an integer.
- */
- function hasXPath($xpath, $matcher = null)
- {
- return \Hamcrest\Xml\HasXPath::hasXPath($xpath, $matcher);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php
deleted file mode 100644
index 9ea56970..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php
+++ /dev/null
@@ -1,118 +0,0 @@
-_elementMatchers = $elementMatchers;
- }
-
- protected function matchesSafely($array)
- {
- if (array_keys($array) != array_keys($this->_elementMatchers)) {
- return false;
- }
-
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_elementMatchers as $k => $matcher) {
- if (!$matcher->matches($array[$k])) {
- return false;
- }
- }
-
- return true;
- }
-
- protected function describeMismatchSafely($actual, Description $mismatchDescription)
- {
- if (count($actual) != count($this->_elementMatchers)) {
- $mismatchDescription->appendText('array length was ' . count($actual));
-
- return;
- } elseif (array_keys($actual) != array_keys($this->_elementMatchers)) {
- $mismatchDescription->appendText('array keys were ')
- ->appendValueList(
- $this->descriptionStart(),
- $this->descriptionSeparator(),
- $this->descriptionEnd(),
- array_keys($actual)
- )
- ;
-
- return;
- }
-
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_elementMatchers as $k => $matcher) {
- if (!$matcher->matches($actual[$k])) {
- $mismatchDescription->appendText('element ')->appendValue($k)
- ->appendText(' was ')->appendValue($actual[$k]);
-
- return;
- }
- }
- }
-
- public function describeTo(Description $description)
- {
- $description->appendList(
- $this->descriptionStart(),
- $this->descriptionSeparator(),
- $this->descriptionEnd(),
- $this->_elementMatchers
- );
- }
-
- /**
- * Evaluates to true only if each $matcher[$i] is satisfied by $array[$i].
- *
- * @factory ...
- */
- public static function anArray(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-
- // -- Protected Methods
-
- protected function descriptionStart()
- {
- return '[';
- }
-
- protected function descriptionSeparator()
- {
- return ', ';
- }
-
- protected function descriptionEnd()
- {
- return ']';
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php
deleted file mode 100644
index 0e4a1eda..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php
+++ /dev/null
@@ -1,63 +0,0 @@
-_elementMatcher = $elementMatcher;
- }
-
- protected function matchesSafely($array)
- {
- foreach ($array as $element) {
- if ($this->_elementMatcher->matches($element)) {
- return true;
- }
- }
-
- return false;
- }
-
- protected function describeMismatchSafely($array, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendValue($array);
- }
-
- public function describeTo(Description $description)
- {
- $description
- ->appendText('an array containing ')
- ->appendDescriptionOf($this->_elementMatcher)
- ;
- }
-
- /**
- * Evaluates to true if any item in an array satisfies the given matcher.
- *
- * @param mixed $item as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContaining
- * @factory hasValue
- */
- public static function hasItemInArray($item)
- {
- return new self(Util::wrapValueWithIsEqual($item));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php
deleted file mode 100644
index 9009026b..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php
+++ /dev/null
@@ -1,59 +0,0 @@
-_elementMatchers = $elementMatchers;
- }
-
- protected function matchesSafelyWithDiagnosticDescription($array, Description $mismatchDescription)
- {
- $matching = new MatchingOnce($this->_elementMatchers, $mismatchDescription);
-
- foreach ($array as $element) {
- if (!$matching->matches($element)) {
- return false;
- }
- }
-
- return $matching->isFinished($array);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendList('[', ', ', ']', $this->_elementMatchers)
- ->appendText(' in any order')
- ;
- }
-
- /**
- * An array with elements that match the given matchers.
- *
- * @factory containsInAnyOrder ...
- */
- public static function arrayContainingInAnyOrder(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php
deleted file mode 100644
index 61157404..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php
+++ /dev/null
@@ -1,57 +0,0 @@
-_elementMatchers = $elementMatchers;
- }
-
- protected function matchesSafelyWithDiagnosticDescription($array, Description $mismatchDescription)
- {
- $series = new SeriesMatchingOnce($this->_elementMatchers, $mismatchDescription);
-
- foreach ($array as $element) {
- if (!$series->matches($element)) {
- return false;
- }
- }
-
- return $series->isFinished();
- }
-
- public function describeTo(Description $description)
- {
- $description->appendList('[', ', ', ']', $this->_elementMatchers);
- }
-
- /**
- * An array with elements that match the given matchers in the same order.
- *
- * @factory contains ...
- */
- public static function arrayContaining(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php
deleted file mode 100644
index 523477e7..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php
+++ /dev/null
@@ -1,75 +0,0 @@
-_keyMatcher = $keyMatcher;
- }
-
- protected function matchesSafely($array)
- {
- foreach ($array as $key => $element) {
- if ($this->_keyMatcher->matches($key)) {
- return true;
- }
- }
-
- return false;
- }
-
- protected function describeMismatchSafely($array, Description $mismatchDescription)
- {
- //Not using appendValueList() so that keys can be shown
- $mismatchDescription->appendText('array was ')
- ->appendText('[')
- ;
- $loop = false;
- foreach ($array as $key => $value) {
- if ($loop) {
- $mismatchDescription->appendText(', ');
- }
- $mismatchDescription->appendValue($key)->appendText(' => ')->appendValue($value);
- $loop = true;
- }
- $mismatchDescription->appendText(']');
- }
-
- public function describeTo(Description $description)
- {
- $description
- ->appendText('array with key ')
- ->appendDescriptionOf($this->_keyMatcher)
- ;
- }
-
- /**
- * Evaluates to true if any key in an array matches the given matcher.
- *
- * @param mixed $key as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContainingKey
- * @factory hasKey
- */
- public static function hasKeyInArray($key)
- {
- return new self(Util::wrapValueWithIsEqual($key));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php
deleted file mode 100644
index 9ac3eba8..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php
+++ /dev/null
@@ -1,80 +0,0 @@
-_keyMatcher = $keyMatcher;
- $this->_valueMatcher = $valueMatcher;
- }
-
- protected function matchesSafely($array)
- {
- foreach ($array as $key => $value) {
- if ($this->_keyMatcher->matches($key) && $this->_valueMatcher->matches($value)) {
- return true;
- }
- }
-
- return false;
- }
-
- protected function describeMismatchSafely($array, Description $mismatchDescription)
- {
- //Not using appendValueList() so that keys can be shown
- $mismatchDescription->appendText('array was ')
- ->appendText('[')
- ;
- $loop = false;
- foreach ($array as $key => $value) {
- if ($loop) {
- $mismatchDescription->appendText(', ');
- }
- $mismatchDescription->appendValue($key)->appendText(' => ')->appendValue($value);
- $loop = true;
- }
- $mismatchDescription->appendText(']');
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('array containing [')
- ->appendDescriptionOf($this->_keyMatcher)
- ->appendText(' => ')
- ->appendDescriptionOf($this->_valueMatcher)
- ->appendText(']')
- ;
- }
-
- /**
- * Test if an array has both an key and value in parity with each other.
- *
- * @factory hasEntry
- */
- public static function hasKeyValuePair($key, $value)
- {
- return new self(
- Util::wrapValueWithIsEqual($key),
- Util::wrapValueWithIsEqual($value)
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php
deleted file mode 100644
index 074375ce..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php
+++ /dev/null
@@ -1,73 +0,0 @@
-_elementMatchers = $elementMatchers;
- $this->_mismatchDescription = $mismatchDescription;
- }
-
- public function matches($item)
- {
- return $this->_isNotSurplus($item) && $this->_isMatched($item);
- }
-
- public function isFinished($items)
- {
- if (empty($this->_elementMatchers)) {
- return true;
- }
-
- $this->_mismatchDescription
- ->appendText('No item matches: ')->appendList('', ', ', '', $this->_elementMatchers)
- ->appendText(' in ')->appendValueList('[', ', ', ']', $items)
- ;
-
- return false;
- }
-
- // -- Private Methods
-
- private function _isNotSurplus($item)
- {
- if (empty($this->_elementMatchers)) {
- $this->_mismatchDescription->appendText('Not matched: ')->appendValue($item);
-
- return false;
- }
-
- return true;
- }
-
- private function _isMatched($item)
- {
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_elementMatchers as $i => $matcher) {
- if ($matcher->matches($item)) {
- unset($this->_elementMatchers[$i]);
-
- return true;
- }
- }
-
- $this->_mismatchDescription->appendText('Not matched: ')->appendValue($item);
-
- return false;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php
deleted file mode 100644
index 12a912d8..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php
+++ /dev/null
@@ -1,75 +0,0 @@
-_elementMatchers = $elementMatchers;
- $this->_keys = array_keys($elementMatchers);
- $this->_mismatchDescription = $mismatchDescription;
- }
-
- public function matches($item)
- {
- return $this->_isNotSurplus($item) && $this->_isMatched($item);
- }
-
- public function isFinished()
- {
- if (!empty($this->_elementMatchers)) {
- $nextMatcher = current($this->_elementMatchers);
- $this->_mismatchDescription->appendText('No item matched: ')->appendDescriptionOf($nextMatcher);
-
- return false;
- }
-
- return true;
- }
-
- // -- Private Methods
-
- private function _isNotSurplus($item)
- {
- if (empty($this->_elementMatchers)) {
- $this->_mismatchDescription->appendText('Not matched: ')->appendValue($item);
-
- return false;
- }
-
- return true;
- }
-
- private function _isMatched($item)
- {
- $this->_nextMatchKey = array_shift($this->_keys);
- $nextMatcher = array_shift($this->_elementMatchers);
-
- if (!$nextMatcher->matches($item)) {
- $this->_describeMismatch($nextMatcher, $item);
-
- return false;
- }
-
- return true;
- }
-
- private function _describeMismatch(Matcher $matcher, $item)
- {
- $this->_mismatchDescription->appendText('item with key ' . $this->_nextMatchKey . ': ');
- $matcher->describeMismatch($item, $this->_mismatchDescription);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php
deleted file mode 100644
index 3a2a0e7c..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php
+++ /dev/null
@@ -1,10 +0,0 @@
-append($text);
-
- return $this;
- }
-
- public function appendDescriptionOf(SelfDescribing $value)
- {
- $value->describeTo($this);
-
- return $this;
- }
-
- public function appendValue($value)
- {
- if (is_null($value)) {
- $this->append('null');
- } elseif (is_string($value)) {
- $this->_toPhpSyntax($value);
- } elseif (is_float($value)) {
- $this->append('<');
- $this->append($value);
- $this->append('F>');
- } elseif (is_bool($value)) {
- $this->append('<');
- $this->append($value ? 'true' : 'false');
- $this->append('>');
- } elseif (is_array($value) || $value instanceof \Iterator || $value instanceof \IteratorAggregate) {
- $this->appendValueList('[', ', ', ']', $value);
- } elseif (is_object($value) && !method_exists($value, '__toString')) {
- $this->append('<');
- $this->append(get_class($value));
- $this->append('>');
- } else {
- $this->append('<');
- $this->append($value);
- $this->append('>');
- }
-
- return $this;
- }
-
- public function appendValueList($start, $separator, $end, $values)
- {
- $list = array();
- foreach ($values as $v) {
- $list[] = new SelfDescribingValue($v);
- }
-
- $this->appendList($start, $separator, $end, $list);
-
- return $this;
- }
-
- public function appendList($start, $separator, $end, $values)
- {
- $this->append($start);
-
- $separate = false;
-
- foreach ($values as $value) {
- /*if (!($value instanceof Hamcrest\SelfDescribing)) {
- $value = new Hamcrest\Internal\SelfDescribingValue($value);
- }*/
-
- if ($separate) {
- $this->append($separator);
- }
-
- $this->appendDescriptionOf($value);
-
- $separate = true;
- }
-
- $this->append($end);
-
- return $this;
- }
-
- // -- Protected Methods
-
- /**
- * Append the String $str to the description.
- */
- abstract protected function append($str);
-
- // -- Private Methods
-
- private function _toPhpSyntax($value)
- {
- $str = '"';
- for ($i = 0, $len = strlen($value); $i < $len; ++$i) {
- switch ($value[$i]) {
- case '"':
- $str .= '\\"';
- break;
-
- case "\t":
- $str .= '\\t';
- break;
-
- case "\r":
- $str .= '\\r';
- break;
-
- case "\n":
- $str .= '\\n';
- break;
-
- default:
- $str .= $value[$i];
- }
- }
- $str .= '"';
- $this->append($str);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php
deleted file mode 100644
index 06055698..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php
+++ /dev/null
@@ -1,30 +0,0 @@
-appendText('was ')->appendValue($item);
- }
-
- public function __toString()
- {
- return StringDescription::toString($this);
- }
-
- public function __invoke()
- {
- return call_user_func_array(array($this, 'matches'), func_get_args());
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php
deleted file mode 100644
index 8ab58ea5..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php
+++ /dev/null
@@ -1,71 +0,0 @@
-_empty = $empty;
- }
-
- public function matches($item)
- {
- if (!$item instanceof \Traversable) {
- return false;
- }
-
- foreach ($item as $value) {
- return !$this->_empty;
- }
-
- return $this->_empty;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText($this->_empty ? 'an empty traversable' : 'a non-empty traversable');
- }
-
- /**
- * Returns true if traversable is empty.
- *
- * @factory
- */
- public static function emptyTraversable()
- {
- if (!self::$_INSTANCE) {
- self::$_INSTANCE = new self;
- }
-
- return self::$_INSTANCE;
- }
-
- /**
- * Returns true if traversable is not empty.
- *
- * @factory
- */
- public static function nonEmptyTraversable()
- {
- if (!self::$_NOT_INSTANCE) {
- self::$_NOT_INSTANCE = new self(false);
- }
-
- return self::$_NOT_INSTANCE;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php
deleted file mode 100644
index c95edc5c..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php
+++ /dev/null
@@ -1,47 +0,0 @@
-false.
- */
-class AllOf extends DiagnosingMatcher
-{
-
- private $_matchers;
-
- public function __construct(array $matchers)
- {
- Util::checkAllAreMatchers($matchers);
-
- $this->_matchers = $matchers;
- }
-
- public function matchesWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_matchers as $matcher) {
- if (!$matcher->matches($item)) {
- $mismatchDescription->appendDescriptionOf($matcher)->appendText(' ');
- $matcher->describeMismatch($item, $mismatchDescription);
-
- return false;
- }
- }
-
- return true;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendList('(', ' and ', ')', $this->_matchers);
- }
-
- /**
- * Evaluates to true only if ALL of the passed in matchers evaluate to true.
- *
- * @factory ...
- */
- public static function allOf(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php
deleted file mode 100644
index 4504279f..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php
+++ /dev/null
@@ -1,58 +0,0 @@
-true.
- */
-class AnyOf extends ShortcutCombination
-{
-
- public function __construct(array $matchers)
- {
- parent::__construct($matchers);
- }
-
- public function matches($item)
- {
- return $this->matchesWithShortcut($item, true);
- }
-
- public function describeTo(Description $description)
- {
- $this->describeToWithOperator($description, 'or');
- }
-
- /**
- * Evaluates to true if ANY of the passed in matchers evaluate to true.
- *
- * @factory ...
- */
- public static function anyOf(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-
- /**
- * Evaluates to false if ANY of the passed in matchers evaluate to true.
- *
- * @factory ...
- */
- public static function noneOf(/* args... */)
- {
- $args = func_get_args();
-
- return IsNot::not(
- new self(Util::createMatcherArray($args))
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php
deleted file mode 100644
index e3b4aa78..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php
+++ /dev/null
@@ -1,78 +0,0 @@
-_matcher = $matcher;
- }
-
- public function matches($item)
- {
- return $this->_matcher->matches($item);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendDescriptionOf($this->_matcher);
- }
-
- /** Diversion from Hamcrest-Java... Logical "and" not permitted */
- public function andAlso(Matcher $other)
- {
- return new self(new AllOf($this->_templatedListWith($other)));
- }
-
- /** Diversion from Hamcrest-Java... Logical "or" not permitted */
- public function orElse(Matcher $other)
- {
- return new self(new AnyOf($this->_templatedListWith($other)));
- }
-
- /**
- * This is useful for fluently combining matchers that must both pass.
- * For example:
- *
- * assertThat($string, both(containsString("a"))->andAlso(containsString("b")));
- *
- *
- * @factory
- */
- public static function both(Matcher $matcher)
- {
- return new self($matcher);
- }
-
- /**
- * This is useful for fluently combining matchers where either may pass,
- * for example:
- *
- * assertThat($string, either(containsString("a"))->orElse(containsString("b")));
- *
- *
- * @factory
- */
- public static function either(Matcher $matcher)
- {
- return new self($matcher);
- }
-
- // -- Private Methods
-
- private function _templatedListWith(Matcher $other)
- {
- return array($this->_matcher, $other);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php
deleted file mode 100644
index 5b2583fa..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php
+++ /dev/null
@@ -1,68 +0,0 @@
-_descriptionTemplate = $descriptionTemplate;
- $this->_matcher = $matcher;
- $this->_values = $values;
- }
-
- public function matches($item)
- {
- return $this->_matcher->matches($item);
- }
-
- public function describeTo(Description $description)
- {
- $textStart = 0;
- while (preg_match(self::ARG_PATTERN, $this->_descriptionTemplate, $matches, PREG_OFFSET_CAPTURE, $textStart)) {
- $text = $matches[0][0];
- $index = $matches[1][0];
- $offset = $matches[0][1];
-
- $description->appendText(substr($this->_descriptionTemplate, $textStart, $offset - $textStart));
- $description->appendValue($this->_values[$index]);
-
- $textStart = $offset + strlen($text);
- }
-
- if ($textStart < strlen($this->_descriptionTemplate)) {
- $description->appendText(substr($this->_descriptionTemplate, $textStart));
- }
- }
-
- /**
- * Wraps an existing matcher and overrides the description when it fails.
- *
- * @factory ...
- */
- public static function describedAs(/* $description, Hamcrest\Matcher $matcher, $values... */)
- {
- $args = func_get_args();
- $description = array_shift($args);
- $matcher = array_shift($args);
- $values = $args;
-
- return new self($description, $matcher, $values);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php
deleted file mode 100644
index d686f8da..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php
+++ /dev/null
@@ -1,56 +0,0 @@
-_matcher = $matcher;
- }
-
- protected function matchesSafelyWithDiagnosticDescription($items, Description $mismatchDescription)
- {
- foreach ($items as $item) {
- if (!$this->_matcher->matches($item)) {
- $mismatchDescription->appendText('an item ');
- $this->_matcher->describeMismatch($item, $mismatchDescription);
-
- return false;
- }
- }
-
- return true;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('every item is ')->appendDescriptionOf($this->_matcher);
- }
-
- /**
- * @param Matcher $itemMatcher
- * A matcher to apply to every element in an array.
- *
- * @return \Hamcrest\Core\Every
- * Evaluates to TRUE for a collection in which every item matches $itemMatcher
- *
- * @factory
- */
- public static function everyItem(Matcher $itemMatcher)
- {
- return new self($itemMatcher);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php
deleted file mode 100644
index 45bd9102..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php
+++ /dev/null
@@ -1,56 +0,0 @@
-toString();
- }
-
- return (string) $actual;
- }
-
- /**
- * Does array size satisfy a given matcher?
- *
- * @factory
- */
- public static function hasToString($matcher)
- {
- return new self(Util::wrapValueWithIsEqual($matcher));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php
deleted file mode 100644
index 41266dc1..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php
+++ /dev/null
@@ -1,57 +0,0 @@
-_matcher = $matcher;
- }
-
- public function matches($arg)
- {
- return $this->_matcher->matches($arg);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('is ')->appendDescriptionOf($this->_matcher);
- }
-
- public function describeMismatch($item, Description $mismatchDescription)
- {
- $this->_matcher->describeMismatch($item, $mismatchDescription);
- }
-
- /**
- * Decorates another Matcher, retaining the behavior but allowing tests
- * to be slightly more expressive.
- *
- * For example: assertThat($cheese, equalTo($smelly))
- * vs. assertThat($cheese, is(equalTo($smelly)))
- *
- * @factory
- */
- public static function is($value)
- {
- return new self(Util::wrapValueWithIsEqual($value));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php
deleted file mode 100644
index f20e6c0d..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php
+++ /dev/null
@@ -1,45 +0,0 @@
-true.
- */
-class IsAnything extends BaseMatcher
-{
-
- private $_message;
-
- public function __construct($message = 'ANYTHING')
- {
- $this->_message = $message;
- }
-
- public function matches($item)
- {
- return true;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText($this->_message);
- }
-
- /**
- * This matcher always evaluates to true.
- *
- * @param string $description A meaningful string used when describing itself.
- *
- * @return \Hamcrest\Core\IsAnything
- * @factory
- */
- public static function anything($description = 'ANYTHING')
- {
- return new self($description);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php
deleted file mode 100644
index 5e60426d..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php
+++ /dev/null
@@ -1,93 +0,0 @@
-_elementMatcher = $elementMatcher;
- }
-
- protected function matchesSafely($items)
- {
- foreach ($items as $item) {
- if ($this->_elementMatcher->matches($item)) {
- return true;
- }
- }
-
- return false;
- }
-
- protected function describeMismatchSafely($items, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendValue($items);
- }
-
- public function describeTo(Description $description)
- {
- $description
- ->appendText('a collection containing ')
- ->appendDescriptionOf($this->_elementMatcher)
- ;
- }
-
- /**
- * Test if the value is an array containing this matcher.
- *
- * Example:
- *
- * assertThat(array('a', 'b'), hasItem(equalTo('b')));
- * //Convenience defaults to equalTo()
- * assertThat(array('a', 'b'), hasItem('b'));
- *
- *
- * @factory ...
- */
- public static function hasItem()
- {
- $args = func_get_args();
- $firstArg = array_shift($args);
-
- return new self(Util::wrapValueWithIsEqual($firstArg));
- }
-
- /**
- * Test if the value is an array containing elements that match all of these
- * matchers.
- *
- * Example:
- *
- * assertThat(array('a', 'b', 'c'), hasItems(equalTo('a'), equalTo('b')));
- *
- *
- * @factory ...
- */
- public static function hasItems(/* args... */)
- {
- $args = func_get_args();
- $matchers = array();
-
- foreach ($args as $arg) {
- $matchers[] = self::hasItem($arg);
- }
-
- return AllOf::allOf($matchers);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php
deleted file mode 100644
index 523fba0b..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php
+++ /dev/null
@@ -1,44 +0,0 @@
-_item = $item;
- }
-
- public function matches($arg)
- {
- return (($arg == $this->_item) && ($this->_item == $arg));
- }
-
- public function describeTo(Description $description)
- {
- $description->appendValue($this->_item);
- }
-
- /**
- * Is the value equal to another value, as tested by the use of the "=="
- * comparison operator?
- *
- * @factory
- */
- public static function equalTo($item)
- {
- return new self($item);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php
deleted file mode 100644
index 28f7b36e..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php
+++ /dev/null
@@ -1,38 +0,0 @@
-_value = $value;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendValue($this->_value);
- }
-
- /**
- * Tests of the value is identical to $value as tested by the "===" operator.
- *
- * @factory
- */
- public static function identicalTo($value)
- {
- return new self($value);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php
deleted file mode 100644
index 7a5c92a6..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php
+++ /dev/null
@@ -1,67 +0,0 @@
-_theClass = $theClass;
- }
-
- protected function matchesWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- if (!is_object($item)) {
- $mismatchDescription->appendText('was ')->appendValue($item);
-
- return false;
- }
-
- if (!($item instanceof $this->_theClass)) {
- $mismatchDescription->appendText('[' . get_class($item) . '] ')
- ->appendValue($item);
-
- return false;
- }
-
- return true;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('an instance of ')
- ->appendText($this->_theClass)
- ;
- }
-
- /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * assertThat($anObject, anInstanceOf('Thing'));
- *
- * @factory any
- */
- public static function anInstanceOf($theClass)
- {
- return new self($theClass);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php
deleted file mode 100644
index 167f0d06..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php
+++ /dev/null
@@ -1,44 +0,0 @@
-_matcher = $matcher;
- }
-
- public function matches($arg)
- {
- return !$this->_matcher->matches($arg);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('not ')->appendDescriptionOf($this->_matcher);
- }
-
- /**
- * Matches if value does not match $value.
- *
- * @factory
- */
- public static function not($value)
- {
- return new self(Util::wrapValueWithIsEqual($value));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php
deleted file mode 100644
index 91a454c1..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php
+++ /dev/null
@@ -1,56 +0,0 @@
-appendText('null');
- }
-
- /**
- * Matches if value is null.
- *
- * @factory
- */
- public static function nullValue()
- {
- if (!self::$_INSTANCE) {
- self::$_INSTANCE = new self();
- }
-
- return self::$_INSTANCE;
- }
-
- /**
- * Matches if value is not null.
- *
- * @factory
- */
- public static function notNullValue()
- {
- if (!self::$_NOT_INSTANCE) {
- self::$_NOT_INSTANCE = IsNot::not(self::nullValue());
- }
-
- return self::$_NOT_INSTANCE;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php
deleted file mode 100644
index 81078705..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php
+++ /dev/null
@@ -1,51 +0,0 @@
-_object = $object;
- }
-
- public function matches($object)
- {
- return ($object === $this->_object) && ($this->_object === $object);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('sameInstance(')
- ->appendValue($this->_object)
- ->appendText(')')
- ;
- }
-
- /**
- * Creates a new instance of IsSame.
- *
- * @param mixed $object
- * The predicate evaluates to true only when the argument is
- * this object.
- *
- * @return \Hamcrest\Core\IsSame
- * @factory
- */
- public static function sameInstance($object)
- {
- return new self($object);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php
deleted file mode 100644
index d24f0f94..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php
+++ /dev/null
@@ -1,71 +0,0 @@
-_theType = strtolower($theType);
- }
-
- public function matches($item)
- {
- return strtolower(gettype($item)) == $this->_theType;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText(self::getTypeDescription($this->_theType));
- }
-
- public function describeMismatch($item, Description $description)
- {
- if ($item === null) {
- $description->appendText('was null');
- } else {
- $description->appendText('was ')
- ->appendText(self::getTypeDescription(strtolower(gettype($item))))
- ->appendText(' ')
- ->appendValue($item)
- ;
- }
- }
-
- public static function getTypeDescription($type)
- {
- if ($type == 'null') {
- return 'null';
- }
-
- return (strpos('aeiou', substr($type, 0, 1)) === false ? 'a ' : 'an ')
- . $type;
- }
-
- /**
- * Is the value a particular built-in type?
- *
- * @factory
- */
- public static function typeOf($theType)
- {
- return new self($theType);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php
deleted file mode 100644
index cdc45d53..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php
+++ /dev/null
@@ -1,95 +0,0 @@
-
- * assertThat(array('a', 'b'), set('b'));
- * assertThat($foo, set('bar'));
- * assertThat('Server', notSet('defaultPort'));
- *
- *
- * @todo Replace $property with a matcher and iterate all property names.
- */
-class Set extends BaseMatcher
-{
-
- private $_property;
- private $_not;
-
- public function __construct($property, $not = false)
- {
- $this->_property = $property;
- $this->_not = $not;
- }
-
- public function matches($item)
- {
- if ($item === null) {
- return false;
- }
- $property = $this->_property;
- if (is_array($item)) {
- $result = isset($item[$property]);
- } elseif (is_object($item)) {
- $result = isset($item->$property);
- } elseif (is_string($item)) {
- $result = isset($item::$$property);
- } else {
- throw new \InvalidArgumentException('Must pass an object, array, or class name');
- }
-
- return $this->_not ? !$result : $result;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText($this->_not ? 'unset property ' : 'set property ')->appendText($this->_property);
- }
-
- public function describeMismatch($item, Description $description)
- {
- $value = '';
- if (!$this->_not) {
- $description->appendText('was not set');
- } else {
- $property = $this->_property;
- if (is_array($item)) {
- $value = $item[$property];
- } elseif (is_object($item)) {
- $value = $item->$property;
- } elseif (is_string($item)) {
- $value = $item::$$property;
- }
- parent::describeMismatch($value, $description);
- }
- }
-
- /**
- * Matches if value (class, object, or array) has named $property.
- *
- * @factory
- */
- public static function set($property)
- {
- return new self($property);
- }
-
- /**
- * Matches if value (class, object, or array) does not have named $property.
- *
- * @factory
- */
- public static function notSet($property)
- {
- return new self($property, true);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php
deleted file mode 100644
index d93db74f..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php
+++ /dev/null
@@ -1,43 +0,0 @@
-
- */
- private $_matchers;
-
- public function __construct(array $matchers)
- {
- Util::checkAllAreMatchers($matchers);
-
- $this->_matchers = $matchers;
- }
-
- protected function matchesWithShortcut($item, $shortcut)
- {
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_matchers as $matcher) {
- if ($matcher->matches($item) == $shortcut) {
- return $shortcut;
- }
- }
-
- return !$shortcut;
- }
-
- public function describeToWithOperator(Description $description, $operator)
- {
- $description->appendList('(', ' ' . $operator . ' ', ')', $this->_matchers);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php
deleted file mode 100644
index 9a482dbf..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php
+++ /dev/null
@@ -1,70 +0,0 @@
-matchesWithDiagnosticDescription($item, new NullDescription());
- }
-
- public function describeMismatch($item, Description $mismatchDescription)
- {
- $this->matchesWithDiagnosticDescription($item, $mismatchDescription);
- }
-
- abstract protected function matchesWithDiagnosticDescription($item, Description $mismatchDescription);
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php
deleted file mode 100644
index 59f6cc73..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php
+++ /dev/null
@@ -1,67 +0,0 @@
-featureValueOf() in a subclass to pull out the feature to be
- * matched against.
- */
-abstract class FeatureMatcher extends TypeSafeDiagnosingMatcher
-{
-
- private $_subMatcher;
- private $_featureDescription;
- private $_featureName;
-
- /**
- * Constructor.
- *
- * @param string $type
- * @param string $subtype
- * @param \Hamcrest\Matcher $subMatcher The matcher to apply to the feature
- * @param string $featureDescription Descriptive text to use in describeTo
- * @param string $featureName Identifying text for mismatch message
- */
- public function __construct($type, $subtype, Matcher $subMatcher, $featureDescription, $featureName)
- {
- parent::__construct($type, $subtype);
-
- $this->_subMatcher = $subMatcher;
- $this->_featureDescription = $featureDescription;
- $this->_featureName = $featureName;
- }
-
- /**
- * Implement this to extract the interesting feature.
- *
- * @param mixed $actual the target object
- *
- * @return mixed the feature to be matched
- */
- abstract protected function featureValueOf($actual);
-
- public function matchesSafelyWithDiagnosticDescription($actual, Description $mismatchDescription)
- {
- $featureValue = $this->featureValueOf($actual);
-
- if (!$this->_subMatcher->matches($featureValue)) {
- $mismatchDescription->appendText($this->_featureName)
- ->appendText(' was ')->appendValue($featureValue);
-
- return false;
- }
-
- return true;
- }
-
- final public function describeTo(Description $description)
- {
- $description->appendText($this->_featureDescription)->appendText(' ')
- ->appendDescriptionOf($this->_subMatcher)
- ;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php
deleted file mode 100644
index 995da71d..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php
+++ /dev/null
@@ -1,27 +0,0 @@
-_value = $value;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendValue($this->_value);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php
deleted file mode 100644
index e5dcf093..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php
+++ /dev/null
@@ -1,50 +0,0 @@
-
- * Matcher implementations should NOT directly implement this interface .
- * Instead, extend the {@link Hamcrest\BaseMatcher} abstract class,
- * which will ensure that the Matcher API can grow to support
- * new features and remain compatible with all Matcher implementations.
- *
- * For easy access to common Matcher implementations, use the static factory
- * methods in {@link Hamcrest\CoreMatchers}.
- *
- * @see Hamcrest\CoreMatchers
- * @see Hamcrest\BaseMatcher
- */
-interface Matcher extends SelfDescribing
-{
-
- /**
- * Evaluates the matcher for argument $item .
- *
- * @param mixed $item the object against which the matcher is evaluated.
- *
- * @return boolean true if $item matches,
- * otherwise false.
- *
- * @see Hamcrest\BaseMatcher
- */
- public function matches($item);
-
- /**
- * Generate a description of why the matcher has not accepted the item.
- * The description will be part of a larger description of why a matching
- * failed, so it should be concise.
- * This method assumes that matches($item) is false, but
- * will not check this.
- *
- * @param mixed $item The item that the Matcher has rejected.
- * @param Description $description
- * @return
- */
- public function describeMismatch($item, Description $description);
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php
deleted file mode 100644
index d546dbee..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php
+++ /dev/null
@@ -1,118 +0,0 @@
-
- * // With an identifier
- * assertThat("apple flavour", $apple->flavour(), equalTo("tasty"));
- * // Without an identifier
- * assertThat($apple->flavour(), equalTo("tasty"));
- * // Evaluating a boolean expression
- * assertThat("some error", $a > $b);
- * assertThat($a > $b);
- *
- */
- public static function assertThat(/* $args ... */)
- {
- $args = func_get_args();
- switch (count($args)) {
- case 1:
- self::$_count++;
- if (!$args[0]) {
- throw new AssertionError();
- }
- break;
-
- case 2:
- self::$_count++;
- if ($args[1] instanceof Matcher) {
- self::doAssert('', $args[0], $args[1]);
- } elseif (!$args[1]) {
- throw new AssertionError($args[0]);
- }
- break;
-
- case 3:
- self::$_count++;
- self::doAssert(
- $args[0],
- $args[1],
- Util::wrapValueWithIsEqual($args[2])
- );
- break;
-
- default:
- throw new \InvalidArgumentException('assertThat() requires one to three arguments');
- }
- }
-
- /**
- * Returns the number of assertions performed.
- *
- * @return int
- */
- public static function getCount()
- {
- return self::$_count;
- }
-
- /**
- * Resets the number of assertions performed to zero.
- */
- public static function resetCount()
- {
- self::$_count = 0;
- }
-
- /**
- * Performs the actual assertion logic.
- *
- * If $matcher doesn't match $actual,
- * throws a {@link Hamcrest\AssertionError} with a description
- * of the failure along with the optional $identifier.
- *
- * @param string $identifier added to the message upon failure
- * @param mixed $actual value to compare against $matcher
- * @param \Hamcrest\Matcher $matcher applied to $actual
- * @throws AssertionError
- */
- private static function doAssert($identifier, $actual, Matcher $matcher)
- {
- if (!$matcher->matches($actual)) {
- $description = new StringDescription();
- if (!empty($identifier)) {
- $description->appendText($identifier . PHP_EOL);
- }
- $description->appendText('Expected: ')
- ->appendDescriptionOf($matcher)
- ->appendText(PHP_EOL . ' but: ');
-
- $matcher->describeMismatch($actual, $description);
-
- throw new AssertionError((string) $description);
- }
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php
deleted file mode 100644
index 23232e45..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php
+++ /dev/null
@@ -1,713 +0,0 @@
-
- * assertThat($string, both(containsString("a"))->andAlso(containsString("b")));
- *
- */
- public static function both(\Hamcrest\Matcher $matcher)
- {
- return \Hamcrest\Core\CombinableMatcher::both($matcher);
- }
-
- /**
- * This is useful for fluently combining matchers where either may pass,
- * for example:
- *
- * assertThat($string, either(containsString("a"))->orElse(containsString("b")));
- *
- */
- public static function either(\Hamcrest\Matcher $matcher)
- {
- return \Hamcrest\Core\CombinableMatcher::either($matcher);
- }
-
- /**
- * Wraps an existing matcher and overrides the description when it fails.
- */
- public static function describedAs(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\DescribedAs', 'describedAs'), $args);
- }
-
- /**
- * @param Matcher $itemMatcher
- * A matcher to apply to every element in an array.
- *
- * @return \Hamcrest\Core\Every
- * Evaluates to TRUE for a collection in which every item matches $itemMatcher
- */
- public static function everyItem(\Hamcrest\Matcher $itemMatcher)
- {
- return \Hamcrest\Core\Every::everyItem($itemMatcher);
- }
-
- /**
- * Does array size satisfy a given matcher?
- */
- public static function hasToString($matcher)
- {
- return \Hamcrest\Core\HasToString::hasToString($matcher);
- }
-
- /**
- * Decorates another Matcher, retaining the behavior but allowing tests
- * to be slightly more expressive.
- *
- * For example: assertThat($cheese, equalTo($smelly))
- * vs. assertThat($cheese, is(equalTo($smelly)))
- */
- public static function is($value)
- {
- return \Hamcrest\Core\Is::is($value);
- }
-
- /**
- * This matcher always evaluates to true.
- *
- * @param string $description A meaningful string used when describing itself.
- *
- * @return \Hamcrest\Core\IsAnything
- */
- public static function anything($description = 'ANYTHING')
- {
- return \Hamcrest\Core\IsAnything::anything($description);
- }
-
- /**
- * Test if the value is an array containing this matcher.
- *
- * Example:
- *
- * assertThat(array('a', 'b'), hasItem(equalTo('b')));
- * //Convenience defaults to equalTo()
- * assertThat(array('a', 'b'), hasItem('b'));
- *
- */
- public static function hasItem(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\IsCollectionContaining', 'hasItem'), $args);
- }
-
- /**
- * Test if the value is an array containing elements that match all of these
- * matchers.
- *
- * Example:
- *
- * assertThat(array('a', 'b', 'c'), hasItems(equalTo('a'), equalTo('b')));
- *
- */
- public static function hasItems(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\IsCollectionContaining', 'hasItems'), $args);
- }
-
- /**
- * Is the value equal to another value, as tested by the use of the "=="
- * comparison operator?
- */
- public static function equalTo($item)
- {
- return \Hamcrest\Core\IsEqual::equalTo($item);
- }
-
- /**
- * Tests of the value is identical to $value as tested by the "===" operator.
- */
- public static function identicalTo($value)
- {
- return \Hamcrest\Core\IsIdentical::identicalTo($value);
- }
-
- /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * assertThat($anObject, anInstanceOf('Thing'));
- */
- public static function anInstanceOf($theClass)
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf($theClass);
- }
-
- /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * assertThat($anObject, anInstanceOf('Thing'));
- */
- public static function any($theClass)
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf($theClass);
- }
-
- /**
- * Matches if value does not match $value.
- */
- public static function not($value)
- {
- return \Hamcrest\Core\IsNot::not($value);
- }
-
- /**
- * Matches if value is null.
- */
- public static function nullValue()
- {
- return \Hamcrest\Core\IsNull::nullValue();
- }
-
- /**
- * Matches if value is not null.
- */
- public static function notNullValue()
- {
- return \Hamcrest\Core\IsNull::notNullValue();
- }
-
- /**
- * Creates a new instance of IsSame.
- *
- * @param mixed $object
- * The predicate evaluates to true only when the argument is
- * this object.
- *
- * @return \Hamcrest\Core\IsSame
- */
- public static function sameInstance($object)
- {
- return \Hamcrest\Core\IsSame::sameInstance($object);
- }
-
- /**
- * Is the value a particular built-in type?
- */
- public static function typeOf($theType)
- {
- return \Hamcrest\Core\IsTypeOf::typeOf($theType);
- }
-
- /**
- * Matches if value (class, object, or array) has named $property.
- */
- public static function set($property)
- {
- return \Hamcrest\Core\Set::set($property);
- }
-
- /**
- * Matches if value (class, object, or array) does not have named $property.
- */
- public static function notSet($property)
- {
- return \Hamcrest\Core\Set::notSet($property);
- }
-
- /**
- * Matches if value is a number equal to $value within some range of
- * acceptable error $delta.
- */
- public static function closeTo($value, $delta)
- {
- return \Hamcrest\Number\IsCloseTo::closeTo($value, $delta);
- }
-
- /**
- * The value is not > $value, nor < $value.
- */
- public static function comparesEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::comparesEqualTo($value);
- }
-
- /**
- * The value is > $value.
- */
- public static function greaterThan($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThan($value);
- }
-
- /**
- * The value is >= $value.
- */
- public static function greaterThanOrEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThanOrEqualTo($value);
- }
-
- /**
- * The value is >= $value.
- */
- public static function atLeast($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThanOrEqualTo($value);
- }
-
- /**
- * The value is < $value.
- */
- public static function lessThan($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThan($value);
- }
-
- /**
- * The value is <= $value.
- */
- public static function lessThanOrEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThanOrEqualTo($value);
- }
-
- /**
- * The value is <= $value.
- */
- public static function atMost($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThanOrEqualTo($value);
- }
-
- /**
- * Matches if value is a zero-length string.
- */
- public static function isEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyString();
- }
-
- /**
- * Matches if value is a zero-length string.
- */
- public static function emptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyString();
- }
-
- /**
- * Matches if value is null or a zero-length string.
- */
- public static function isEmptyOrNullString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyOrNullString();
- }
-
- /**
- * Matches if value is null or a zero-length string.
- */
- public static function nullOrEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyOrNullString();
- }
-
- /**
- * Matches if value is a non-zero-length string.
- */
- public static function isNonEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isNonEmptyString();
- }
-
- /**
- * Matches if value is a non-zero-length string.
- */
- public static function nonEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isNonEmptyString();
- }
-
- /**
- * Matches if value is a string equal to $string, regardless of the case.
- */
- public static function equalToIgnoringCase($string)
- {
- return \Hamcrest\Text\IsEqualIgnoringCase::equalToIgnoringCase($string);
- }
-
- /**
- * Matches if value is a string equal to $string, regardless of whitespace.
- */
- public static function equalToIgnoringWhiteSpace($string)
- {
- return \Hamcrest\Text\IsEqualIgnoringWhiteSpace::equalToIgnoringWhiteSpace($string);
- }
-
- /**
- * Matches if value is a string that matches regular expression $pattern.
- */
- public static function matchesPattern($pattern)
- {
- return \Hamcrest\Text\MatchesPattern::matchesPattern($pattern);
- }
-
- /**
- * Matches if value is a string that contains $substring.
- */
- public static function containsString($substring)
- {
- return \Hamcrest\Text\StringContains::containsString($substring);
- }
-
- /**
- * Matches if value is a string that contains $substring regardless of the case.
- */
- public static function containsStringIgnoringCase($substring)
- {
- return \Hamcrest\Text\StringContainsIgnoringCase::containsStringIgnoringCase($substring);
- }
-
- /**
- * Matches if value contains $substrings in a constrained order.
- */
- public static function stringContainsInOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Text\StringContainsInOrder', 'stringContainsInOrder'), $args);
- }
-
- /**
- * Matches if value is a string that ends with $substring.
- */
- public static function endsWith($substring)
- {
- return \Hamcrest\Text\StringEndsWith::endsWith($substring);
- }
-
- /**
- * Matches if value is a string that starts with $substring.
- */
- public static function startsWith($substring)
- {
- return \Hamcrest\Text\StringStartsWith::startsWith($substring);
- }
-
- /**
- * Is the value an array?
- */
- public static function arrayValue()
- {
- return \Hamcrest\Type\IsArray::arrayValue();
- }
-
- /**
- * Is the value a boolean?
- */
- public static function booleanValue()
- {
- return \Hamcrest\Type\IsBoolean::booleanValue();
- }
-
- /**
- * Is the value a boolean?
- */
- public static function boolValue()
- {
- return \Hamcrest\Type\IsBoolean::booleanValue();
- }
-
- /**
- * Is the value callable?
- */
- public static function callableValue()
- {
- return \Hamcrest\Type\IsCallable::callableValue();
- }
-
- /**
- * Is the value a float/double?
- */
- public static function doubleValue()
- {
- return \Hamcrest\Type\IsDouble::doubleValue();
- }
-
- /**
- * Is the value a float/double?
- */
- public static function floatValue()
- {
- return \Hamcrest\Type\IsDouble::doubleValue();
- }
-
- /**
- * Is the value an integer?
- */
- public static function integerValue()
- {
- return \Hamcrest\Type\IsInteger::integerValue();
- }
-
- /**
- * Is the value an integer?
- */
- public static function intValue()
- {
- return \Hamcrest\Type\IsInteger::integerValue();
- }
-
- /**
- * Is the value a numeric?
- */
- public static function numericValue()
- {
- return \Hamcrest\Type\IsNumeric::numericValue();
- }
-
- /**
- * Is the value an object?
- */
- public static function objectValue()
- {
- return \Hamcrest\Type\IsObject::objectValue();
- }
-
- /**
- * Is the value an object?
- */
- public static function anObject()
- {
- return \Hamcrest\Type\IsObject::objectValue();
- }
-
- /**
- * Is the value a resource?
- */
- public static function resourceValue()
- {
- return \Hamcrest\Type\IsResource::resourceValue();
- }
-
- /**
- * Is the value a scalar (boolean, integer, double, or string)?
- */
- public static function scalarValue()
- {
- return \Hamcrest\Type\IsScalar::scalarValue();
- }
-
- /**
- * Is the value a string?
- */
- public static function stringValue()
- {
- return \Hamcrest\Type\IsString::stringValue();
- }
-
- /**
- * Wraps $matcher with {@link Hamcrest\Core\IsEqual)
- * if it's not a matcher and the XPath in count()
- * if it's an integer.
- */
- public static function hasXPath($xpath, $matcher = null)
- {
- return \Hamcrest\Xml\HasXPath::hasXPath($xpath, $matcher);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php
deleted file mode 100644
index aae8e461..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php
+++ /dev/null
@@ -1,43 +0,0 @@
-_value = $value;
- $this->_delta = $delta;
- }
-
- protected function matchesSafely($item)
- {
- return $this->_actualDelta($item) <= 0.0;
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendValue($item)
- ->appendText(' differed by ')
- ->appendValue($this->_actualDelta($item))
- ;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('a numeric value within ')
- ->appendValue($this->_delta)
- ->appendText(' of ')
- ->appendValue($this->_value)
- ;
- }
-
- /**
- * Matches if value is a number equal to $value within some range of
- * acceptable error $delta.
- *
- * @factory
- */
- public static function closeTo($value, $delta)
- {
- return new self($value, $delta);
- }
-
- // -- Private Methods
-
- private function _actualDelta($item)
- {
- return (abs(($item - $this->_value)) - $this->_delta);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php
deleted file mode 100644
index 369d0cfa..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php
+++ /dev/null
@@ -1,132 +0,0 @@
-_value = $value;
- $this->_minCompare = $minCompare;
- $this->_maxCompare = $maxCompare;
- }
-
- protected function matchesSafely($other)
- {
- $compare = $this->_compare($this->_value, $other);
-
- return ($this->_minCompare <= $compare) && ($compare <= $this->_maxCompare);
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription
- ->appendValue($item)->appendText(' was ')
- ->appendText($this->_comparison($this->_compare($this->_value, $item)))
- ->appendText(' ')->appendValue($this->_value)
- ;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('a value ')
- ->appendText($this->_comparison($this->_minCompare))
- ;
- if ($this->_minCompare != $this->_maxCompare) {
- $description->appendText(' or ')
- ->appendText($this->_comparison($this->_maxCompare))
- ;
- }
- $description->appendText(' ')->appendValue($this->_value);
- }
-
- /**
- * The value is not > $value, nor < $value.
- *
- * @factory
- */
- public static function comparesEqualTo($value)
- {
- return new self($value, 0, 0);
- }
-
- /**
- * The value is > $value.
- *
- * @factory
- */
- public static function greaterThan($value)
- {
- return new self($value, -1, -1);
- }
-
- /**
- * The value is >= $value.
- *
- * @factory atLeast
- */
- public static function greaterThanOrEqualTo($value)
- {
- return new self($value, -1, 0);
- }
-
- /**
- * The value is < $value.
- *
- * @factory
- */
- public static function lessThan($value)
- {
- return new self($value, 1, 1);
- }
-
- /**
- * The value is <= $value.
- *
- * @factory atMost
- */
- public static function lessThanOrEqualTo($value)
- {
- return new self($value, 0, 1);
- }
-
- // -- Private Methods
-
- private function _compare($left, $right)
- {
- $a = $left;
- $b = $right;
-
- if ($a < $b) {
- return -1;
- } elseif ($a == $b) {
- return 0;
- } else {
- return 1;
- }
- }
-
- private function _comparison($compare)
- {
- if ($compare > 0) {
- return 'less than';
- } elseif ($compare == 0) {
- return 'equal to';
- } else {
- return 'greater than';
- }
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php
deleted file mode 100644
index 872fdf9c..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php
+++ /dev/null
@@ -1,23 +0,0 @@
-_out = (string) $out;
- }
-
- public function __toString()
- {
- return $this->_out;
- }
-
- /**
- * Return the description of a {@link Hamcrest\SelfDescribing} object as a
- * String.
- *
- * @param \Hamcrest\SelfDescribing $selfDescribing
- * The object to be described.
- *
- * @return string
- * The description of the object.
- */
- public static function toString(SelfDescribing $selfDescribing)
- {
- $self = new self();
-
- return (string) $self->appendDescriptionOf($selfDescribing);
- }
-
- /**
- * Alias for {@link toString()}.
- */
- public static function asString(SelfDescribing $selfDescribing)
- {
- return self::toString($selfDescribing);
- }
-
- // -- Protected Methods
-
- protected function append($str)
- {
- $this->_out .= $str;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php
deleted file mode 100644
index 2ae61b96..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php
+++ /dev/null
@@ -1,85 +0,0 @@
-_empty = $empty;
- }
-
- public function matches($item)
- {
- return $this->_empty
- ? ($item === '')
- : is_string($item) && $item !== '';
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText($this->_empty ? 'an empty string' : 'a non-empty string');
- }
-
- /**
- * Matches if value is a zero-length string.
- *
- * @factory emptyString
- */
- public static function isEmptyString()
- {
- if (!self::$_INSTANCE) {
- self::$_INSTANCE = new self(true);
- }
-
- return self::$_INSTANCE;
- }
-
- /**
- * Matches if value is null or a zero-length string.
- *
- * @factory nullOrEmptyString
- */
- public static function isEmptyOrNullString()
- {
- if (!self::$_NULL_OR_EMPTY_INSTANCE) {
- self::$_NULL_OR_EMPTY_INSTANCE = AnyOf::anyOf(
- IsNull::nullvalue(),
- self::isEmptyString()
- );
- }
-
- return self::$_NULL_OR_EMPTY_INSTANCE;
- }
-
- /**
- * Matches if value is a non-zero-length string.
- *
- * @factory nonEmptyString
- */
- public static function isNonEmptyString()
- {
- if (!self::$_NOT_INSTANCE) {
- self::$_NOT_INSTANCE = new self(false);
- }
-
- return self::$_NOT_INSTANCE;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php
deleted file mode 100644
index 3836a8c3..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php
+++ /dev/null
@@ -1,52 +0,0 @@
-_string = $string;
- }
-
- protected function matchesSafely($item)
- {
- return strtolower($this->_string) === strtolower($item);
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendText($item);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('equalToIgnoringCase(')
- ->appendValue($this->_string)
- ->appendText(')')
- ;
- }
-
- /**
- * Matches if value is a string equal to $string, regardless of the case.
- *
- * @factory
- */
- public static function equalToIgnoringCase($string)
- {
- return new self($string);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php
deleted file mode 100644
index 853692b0..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php
+++ /dev/null
@@ -1,66 +0,0 @@
-_string = $string;
- }
-
- protected function matchesSafely($item)
- {
- return (strtolower($this->_stripSpace($item))
- === strtolower($this->_stripSpace($this->_string)));
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendText($item);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('equalToIgnoringWhiteSpace(')
- ->appendValue($this->_string)
- ->appendText(')')
- ;
- }
-
- /**
- * Matches if value is a string equal to $string, regardless of whitespace.
- *
- * @factory
- */
- public static function equalToIgnoringWhiteSpace($string)
- {
- return new self($string);
- }
-
- // -- Private Methods
-
- private function _stripSpace($string)
- {
- $parts = preg_split("/[\r\n\t ]+/", $string);
- foreach ($parts as $i => $part) {
- $parts[$i] = trim($part, " \r\n\t");
- }
-
- return trim(implode(' ', $parts), " \r\n\t");
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php
deleted file mode 100644
index fa0d68ee..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php
+++ /dev/null
@@ -1,40 +0,0 @@
-_substring, (string) $item) >= 1;
- }
-
- protected function relationship()
- {
- return 'matching';
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php
deleted file mode 100644
index b92786b6..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php
+++ /dev/null
@@ -1,45 +0,0 @@
-_substring);
- }
-
- /**
- * Matches if value is a string that contains $substring.
- *
- * @factory
- */
- public static function containsString($substring)
- {
- return new self($substring);
- }
-
- // -- Protected Methods
-
- protected function evalSubstringOf($item)
- {
- return (false !== strpos((string) $item, $this->_substring));
- }
-
- protected function relationship()
- {
- return 'containing';
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php
deleted file mode 100644
index 69f37c25..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php
+++ /dev/null
@@ -1,40 +0,0 @@
-_substring));
- }
-
- protected function relationship()
- {
- return 'containing in any case';
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php
deleted file mode 100644
index e75de65d..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php
+++ /dev/null
@@ -1,66 +0,0 @@
-_substrings = $substrings;
- }
-
- protected function matchesSafely($item)
- {
- $fromIndex = 0;
-
- foreach ($this->_substrings as $substring) {
- if (false === $fromIndex = strpos($item, $substring, $fromIndex)) {
- return false;
- }
- }
-
- return true;
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendText($item);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('a string containing ')
- ->appendValueList('', ', ', '', $this->_substrings)
- ->appendText(' in order')
- ;
- }
-
- /**
- * Matches if value contains $substrings in a constrained order.
- *
- * @factory ...
- */
- public static function stringContainsInOrder(/* args... */)
- {
- $args = func_get_args();
-
- if (isset($args[0]) && is_array($args[0])) {
- $args = $args[0];
- }
-
- return new self($args);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php
deleted file mode 100644
index f802ee4d..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php
+++ /dev/null
@@ -1,40 +0,0 @@
-_substring))) === $this->_substring);
- }
-
- protected function relationship()
- {
- return 'ending with';
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php
deleted file mode 100644
index 79c95656..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php
+++ /dev/null
@@ -1,40 +0,0 @@
-_substring)) === $this->_substring);
- }
-
- protected function relationship()
- {
- return 'starting with';
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php
deleted file mode 100644
index e560ad62..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php
+++ /dev/null
@@ -1,45 +0,0 @@
-_substring = $substring;
- }
-
- protected function matchesSafely($item)
- {
- return $this->evalSubstringOf($item);
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was "')->appendText($item)->appendText('"');
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('a string ')
- ->appendText($this->relationship())
- ->appendText(' ')
- ->appendValue($this->_substring)
- ;
- }
-
- abstract protected function evalSubstringOf($string);
-
- abstract protected function relationship();
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php
deleted file mode 100644
index 9179102f..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php
+++ /dev/null
@@ -1,32 +0,0 @@
-isHexadecimal($item)) {
- return true;
- }
-
- return is_numeric($item);
- }
-
- /**
- * Return if the string passed is a valid hexadecimal number.
- * This check is necessary because PHP 7 doesn't recognize hexadecimal string as numeric anymore.
- *
- * @param mixed $item
- * @return boolean
- */
- private function isHexadecimal($item)
- {
- if (is_string($item) && preg_match('/^0x(.*)$/', $item, $matches)) {
- return ctype_xdigit($matches[1]);
- }
-
- return false;
- }
-
- /**
- * Is the value a numeric?
- *
- * @factory
- */
- public static function numericValue()
- {
- return new self;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php
deleted file mode 100644
index 65918fcf..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php
+++ /dev/null
@@ -1,32 +0,0 @@
-matchesSafelyWithDiagnosticDescription($item, new NullDescription());
- }
-
- final public function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $this->matchesSafelyWithDiagnosticDescription($item, $mismatchDescription);
- }
-
- // -- Protected Methods
-
- /**
- * Subclasses should implement these. The item will already have been checked for
- * the specific type.
- */
- abstract protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription);
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php
deleted file mode 100644
index 56e299a9..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php
+++ /dev/null
@@ -1,107 +0,0 @@
-_expectedType = $expectedType;
- $this->_expectedSubtype = $expectedSubtype;
- }
-
- final public function matches($item)
- {
- return $this->_isSafeType($item) && $this->matchesSafely($item);
- }
-
- final public function describeMismatch($item, Description $mismatchDescription)
- {
- if (!$this->_isSafeType($item)) {
- parent::describeMismatch($item, $mismatchDescription);
- } else {
- $this->describeMismatchSafely($item, $mismatchDescription);
- }
- }
-
- // -- Protected Methods
-
- /**
- * The item will already have been checked for the specific type and subtype.
- */
- abstract protected function matchesSafely($item);
-
- /**
- * The item will already have been checked for the specific type and subtype.
- */
- abstract protected function describeMismatchSafely($item, Description $mismatchDescription);
-
- // -- Private Methods
-
- private function _isSafeType($value)
- {
- switch ($this->_expectedType) {
-
- case self::TYPE_ANY:
- return true;
-
- case self::TYPE_STRING:
- return is_string($value) || is_numeric($value);
-
- case self::TYPE_NUMERIC:
- return is_numeric($value) || is_string($value);
-
- case self::TYPE_ARRAY:
- return is_array($value);
-
- case self::TYPE_OBJECT:
- return is_object($value)
- && ($this->_expectedSubtype === null
- || $value instanceof $this->_expectedSubtype);
-
- case self::TYPE_RESOURCE:
- return is_resource($value)
- && ($this->_expectedSubtype === null
- || get_resource_type($value) == $this->_expectedSubtype);
-
- case self::TYPE_BOOLEAN:
- return true;
-
- default:
- return true;
-
- }
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php
deleted file mode 100644
index 169b0366..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php
+++ /dev/null
@@ -1,76 +0,0 @@
- all items are
- */
- public static function createMatcherArray(array $items)
- {
- //Extract single array item
- if (count($items) == 1 && is_array($items[0])) {
- $items = $items[0];
- }
-
- //Replace non-matchers
- foreach ($items as &$item) {
- if (!($item instanceof Matcher)) {
- $item = Core\IsEqual::equalTo($item);
- }
- }
-
- return $items;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php
deleted file mode 100644
index d9764e45..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php
+++ /dev/null
@@ -1,195 +0,0 @@
-_xpath = $xpath;
- $this->_matcher = $matcher;
- }
-
- /**
- * Matches if the XPath matches against the DOM node and the matcher.
- *
- * @param string|\DOMNode $actual
- * @param Description $mismatchDescription
- * @return bool
- */
- protected function matchesWithDiagnosticDescription($actual, Description $mismatchDescription)
- {
- if (is_string($actual)) {
- $actual = $this->createDocument($actual);
- } elseif (!$actual instanceof \DOMNode) {
- $mismatchDescription->appendText('was ')->appendValue($actual);
-
- return false;
- }
- $result = $this->evaluate($actual);
- if ($result instanceof \DOMNodeList) {
- return $this->matchesContent($result, $mismatchDescription);
- } else {
- return $this->matchesExpression($result, $mismatchDescription);
- }
- }
-
- /**
- * Creates and returns a DOMDocument from the given
- * XML or HTML string.
- *
- * @param string $text
- * @return \DOMDocument built from $text
- * @throws \InvalidArgumentException if the document is not valid
- */
- protected function createDocument($text)
- {
- $document = new \DOMDocument();
- if (preg_match('/^\s*<\?xml/', $text)) {
- if (!@$document->loadXML($text)) {
- throw new \InvalidArgumentException('Must pass a valid XML document');
- }
- } else {
- if (!@$document->loadHTML($text)) {
- throw new \InvalidArgumentException('Must pass a valid HTML or XHTML document');
- }
- }
-
- return $document;
- }
-
- /**
- * Applies the configured XPath to the DOM node and returns either
- * the result if it's an expression or the node list if it's a query.
- *
- * @param \DOMNode $node context from which to issue query
- * @return mixed result of expression or DOMNodeList from query
- */
- protected function evaluate(\DOMNode $node)
- {
- if ($node instanceof \DOMDocument) {
- $xpathDocument = new \DOMXPath($node);
-
- return $xpathDocument->evaluate($this->_xpath);
- } else {
- $xpathDocument = new \DOMXPath($node->ownerDocument);
-
- return $xpathDocument->evaluate($this->_xpath, $node);
- }
- }
-
- /**
- * Matches if the list of nodes is not empty and the content of at least
- * one node matches the configured matcher, if supplied.
- *
- * @param \DOMNodeList $nodes selected by the XPath query
- * @param Description $mismatchDescription
- * @return bool
- */
- protected function matchesContent(\DOMNodeList $nodes, Description $mismatchDescription)
- {
- if ($nodes->length == 0) {
- $mismatchDescription->appendText('XPath returned no results');
- } elseif ($this->_matcher === null) {
- return true;
- } else {
- foreach ($nodes as $node) {
- if ($this->_matcher->matches($node->textContent)) {
- return true;
- }
- }
- $content = array();
- foreach ($nodes as $node) {
- $content[] = $node->textContent;
- }
- $mismatchDescription->appendText('XPath returned ')
- ->appendValue($content);
- }
-
- return false;
- }
-
- /**
- * Matches if the result of the XPath expression matches the configured
- * matcher or evaluates to true if there is none.
- *
- * @param mixed $result result of the XPath expression
- * @param Description $mismatchDescription
- * @return bool
- */
- protected function matchesExpression($result, Description $mismatchDescription)
- {
- if ($this->_matcher === null) {
- if ($result) {
- return true;
- }
- $mismatchDescription->appendText('XPath expression result was ')
- ->appendValue($result);
- } else {
- if ($this->_matcher->matches($result)) {
- return true;
- }
- $mismatchDescription->appendText('XPath expression result ');
- $this->_matcher->describeMismatch($result, $mismatchDescription);
- }
-
- return false;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('XML or HTML document with XPath "')
- ->appendText($this->_xpath)
- ->appendText('"');
- if ($this->_matcher !== null) {
- $description->appendText(' ');
- $this->_matcher->describeTo($description);
- }
- }
-
- /**
- * Wraps $matcher with {@link Hamcrest\Core\IsEqual)
- * if it's not a matcher and the XPath in count()
- * if it's an integer.
- *
- * @factory
- */
- public static function hasXPath($xpath, $matcher = null)
- {
- if ($matcher === null || $matcher instanceof Matcher) {
- return new self($xpath, $matcher);
- } elseif (is_int($matcher) && strpos($xpath, 'count(') !== 0) {
- $xpath = 'count(' . $xpath . ')';
- }
-
- return new self($xpath, IsEqual::equalTo($matcher));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php
deleted file mode 100644
index 8a1fb2a9..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-assertTrue($matcher->matches($arg), $message);
- }
-
- public function assertDoesNotMatch(\Hamcrest\Matcher $matcher, $arg, $message)
- {
- $this->assertFalse($matcher->matches($arg), $message);
- }
-
- public function assertDescription($expected, \Hamcrest\Matcher $matcher)
- {
- $description = new \Hamcrest\StringDescription();
- $description->appendDescriptionOf($matcher);
- $this->assertEquals($expected, (string) $description, 'Expected description');
- }
-
- public function assertMismatchDescription($expected, \Hamcrest\Matcher $matcher, $arg)
- {
- $description = new \Hamcrest\StringDescription();
- $this->assertFalse(
- $matcher->matches($arg),
- 'Precondtion: Matcher should not match item'
- );
- $matcher->describeMismatch($arg, $description);
- $this->assertEquals(
- $expected,
- (string) $description,
- 'Expected mismatch description'
- );
- }
-
- public function testIsNullSafe()
- {
- //Should not generate any notices
- $this->createMatcher()->matches(null);
- $this->createMatcher()->describeMismatch(
- null,
- new \Hamcrest\NullDescription()
- );
- }
-
- public function testCopesWithUnknownTypes()
- {
- //Should not generate any notices
- $this->createMatcher()->matches(new UnknownType());
- $this->createMatcher()->describeMismatch(
- new UnknownType(),
- new NullDescription()
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php
deleted file mode 100644
index 45d9f138..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-assertDescription('[<1>, <2>] in any order', containsInAnyOrder(array(1, 2)));
- }
-
- public function testMatchesItemsInAnyOrder()
- {
- $this->assertMatches(containsInAnyOrder(array(1, 2, 3)), array(1, 2, 3), 'in order');
- $this->assertMatches(containsInAnyOrder(array(1, 2, 3)), array(3, 2, 1), 'out of order');
- $this->assertMatches(containsInAnyOrder(array(1)), array(1), 'single');
- }
-
- public function testAppliesMatchersInAnyOrder()
- {
- $this->assertMatches(
- containsInAnyOrder(array(1, 2, 3)),
- array(1, 2, 3),
- 'in order'
- );
- $this->assertMatches(
- containsInAnyOrder(array(1, 2, 3)),
- array(3, 2, 1),
- 'out of order'
- );
- $this->assertMatches(
- containsInAnyOrder(array(1)),
- array(1),
- 'single'
- );
- }
-
- public function testMismatchesItemsInAnyOrder()
- {
- $matcher = containsInAnyOrder(array(1, 2, 3));
-
- $this->assertMismatchDescription('was null', $matcher, null);
- $this->assertMismatchDescription('No item matches: <1>, <2>, <3> in []', $matcher, array());
- $this->assertMismatchDescription('No item matches: <2>, <3> in [<1>]', $matcher, array(1));
- $this->assertMismatchDescription('Not matched: <4>', $matcher, array(4, 3, 2, 1));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php
deleted file mode 100644
index a9e4e5b0..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-assertDescription('[<1>, <2>]', arrayContaining(array(1, 2)));
- }
-
- public function testMatchesItemsInOrder()
- {
- $this->assertMatches(arrayContaining(array(1, 2, 3)), array(1, 2, 3), 'in order');
- $this->assertMatches(arrayContaining(array(1)), array(1), 'single');
- }
-
- public function testAppliesMatchersInOrder()
- {
- $this->assertMatches(
- arrayContaining(array(1, 2, 3)),
- array(1, 2, 3),
- 'in order'
- );
- $this->assertMatches(arrayContaining(array(1)), array(1), 'single');
- }
-
- public function testMismatchesItemsInAnyOrder()
- {
- if (defined('HHVM_VERSION')) {
- $this->markTestSkipped('Broken on HHVM.');
- }
-
- $matcher = arrayContaining(array(1, 2, 3));
- $this->assertMismatchDescription('was null', $matcher, null);
- $this->assertMismatchDescription('No item matched: <1>', $matcher, array());
- $this->assertMismatchDescription('No item matched: <2>', $matcher, array(1));
- $this->assertMismatchDescription('item with key 0: was <4>', $matcher, array(4, 3, 2, 1));
- $this->assertMismatchDescription('item with key 2: was <4>', $matcher, array(1, 2, 4));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyTest.php
deleted file mode 100644
index 31770d8d..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-1);
-
- $this->assertMatches(hasKey('a'), $array, 'Matches single key');
- }
-
- public function testMatchesArrayContainingKey()
- {
- $array = array('a'=>1, 'b'=>2, 'c'=>3);
-
- $this->assertMatches(hasKey('a'), $array, 'Matches a');
- $this->assertMatches(hasKey('c'), $array, 'Matches c');
- }
-
- public function testMatchesArrayContainingKeyWithIntegerKeys()
- {
- $array = array(1=>'A', 2=>'B');
-
- assertThat($array, hasKey(1));
- }
-
- public function testMatchesArrayContainingKeyWithNumberKeys()
- {
- $array = array(1=>'A', 2=>'B');
-
- assertThat($array, hasKey(1));
-
- // very ugly version!
- assertThat($array, IsArrayContainingKey::hasKeyInArray(2));
- }
-
- public function testHasReadableDescription()
- {
- $this->assertDescription('array with key "a"', hasKey('a'));
- }
-
- public function testDoesNotMatchEmptyArray()
- {
- $this->assertMismatchDescription('array was []', hasKey('Foo'), array());
- }
-
- public function testDoesNotMatchArrayMissingKey()
- {
- $array = array('a'=>1, 'b'=>2, 'c'=>3);
-
- $this->assertMismatchDescription('array was ["a" => <1>, "b" => <2>, "c" => <3>]', hasKey('d'), $array);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php
deleted file mode 100644
index a415f9f7..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-1, 'b'=>2);
-
- $this->assertMatches(hasKeyValuePair(equalTo('a'), equalTo(1)), $array, 'matcherA');
- $this->assertMatches(hasKeyValuePair(equalTo('b'), equalTo(2)), $array, 'matcherB');
- $this->assertMismatchDescription(
- 'array was ["a" => <1>, "b" => <2>]',
- hasKeyValuePair(equalTo('c'), equalTo(3)),
- $array
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertMismatchDescription('was null', hasKeyValuePair(anything(), anything()), null);
- }
-
- public function testHasReadableDescription()
- {
- $this->assertDescription('array containing ["a" => <2>]', hasKeyValuePair(equalTo('a'), equalTo(2)));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingTest.php
deleted file mode 100644
index 8d5bd810..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingTest.php
+++ /dev/null
@@ -1,50 +0,0 @@
-assertMatches(
- hasItemInArray('a'),
- array('a', 'b', 'c'),
- "should matches array that contains 'a'"
- );
- }
-
- public function testDoesNotMatchAnArrayThatDoesntContainAnElementMatchingTheGivenMatcher()
- {
- $this->assertDoesNotMatch(
- hasItemInArray('a'),
- array('b', 'c'),
- "should not matches array that doesn't contain 'a'"
- );
- $this->assertDoesNotMatch(
- hasItemInArray('a'),
- array(),
- 'should not match empty array'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- hasItemInArray('a'),
- null,
- 'should not match null'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('an array containing "a"', hasItemInArray('a'));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayTest.php
deleted file mode 100644
index e4db53e7..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayTest.php
+++ /dev/null
@@ -1,89 +0,0 @@
-assertMatches(
- anArray(array(equalTo('a'), equalTo('b'), equalTo('c'))),
- array('a', 'b', 'c'),
- 'should match array with matching elements'
- );
- }
-
- public function testDoesNotMatchAnArrayWhenElementsDoNotMatch()
- {
- $this->assertDoesNotMatch(
- anArray(array(equalTo('a'), equalTo('b'))),
- array('b', 'c'),
- 'should not match array with different elements'
- );
- }
-
- public function testDoesNotMatchAnArrayOfDifferentSize()
- {
- $this->assertDoesNotMatch(
- anArray(array(equalTo('a'), equalTo('b'))),
- array('a', 'b', 'c'),
- 'should not match larger array'
- );
- $this->assertDoesNotMatch(
- anArray(array(equalTo('a'), equalTo('b'))),
- array('a'),
- 'should not match smaller array'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- anArray(array(equalTo('a'))),
- null,
- 'should not match null'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- '["a", "b"]',
- anArray(array(equalTo('a'), equalTo('b')))
- );
- }
-
- public function testHasAReadableMismatchDescriptionWhenKeysDontMatch()
- {
- $this->assertMismatchDescription(
- 'array keys were [<1>, <2>]',
- anArray(array(equalTo('a'), equalTo('b'))),
- array(1 => 'a', 2 => 'b')
- );
- }
-
- public function testSupportsMatchesAssociativeArrays()
- {
- $this->assertMatches(
- anArray(array('x'=>equalTo('a'), 'y'=>equalTo('b'), 'z'=>equalTo('c'))),
- array('x'=>'a', 'y'=>'b', 'z'=>'c'),
- 'should match associative array with matching elements'
- );
- }
-
- public function testDoesNotMatchAnAssociativeArrayWhenKeysDoNotMatch()
- {
- $this->assertDoesNotMatch(
- anArray(array('x'=>equalTo('a'), 'y'=>equalTo('b'))),
- array('x'=>'b', 'z'=>'c'),
- 'should not match array with different keys'
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayWithSizeTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayWithSizeTest.php
deleted file mode 100644
index 8413c896..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayWithSizeTest.php
+++ /dev/null
@@ -1,37 +0,0 @@
-assertMatches(arrayWithSize(equalTo(3)), array(1, 2, 3), 'correct size');
- $this->assertDoesNotMatch(arrayWithSize(equalTo(2)), array(1, 2, 3), 'incorrect size');
- }
-
- public function testProvidesConvenientShortcutForArrayWithSizeEqualTo()
- {
- $this->assertMatches(arrayWithSize(3), array(1, 2, 3), 'correct size');
- $this->assertDoesNotMatch(arrayWithSize(2), array(1, 2, 3), 'incorrect size');
- }
-
- public function testEmptyArray()
- {
- $this->assertMatches(emptyArray(), array(), 'correct size');
- $this->assertDoesNotMatch(emptyArray(), array(1), 'incorrect size');
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('an array with size <3>', arrayWithSize(equalTo(3)));
- $this->assertDescription('an empty array', emptyArray());
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php
deleted file mode 100644
index 833e2c3e..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php
+++ /dev/null
@@ -1,23 +0,0 @@
-appendText('SOME DESCRIPTION');
- }
-
- public function testDescribesItselfWithToStringMethod()
- {
- $someMatcher = new \Hamcrest\SomeMatcher();
- $this->assertEquals('SOME DESCRIPTION', (string) $someMatcher);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsEmptyTraversableTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsEmptyTraversableTest.php
deleted file mode 100644
index 2f15fb49..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsEmptyTraversableTest.php
+++ /dev/null
@@ -1,77 +0,0 @@
-assertMatches(
- emptyTraversable(),
- new \ArrayObject(array()),
- 'an empty traversable'
- );
- }
-
- public function testEmptyMatcherDoesNotMatchWhenNotEmpty()
- {
- $this->assertDoesNotMatch(
- emptyTraversable(),
- new \ArrayObject(array(1, 2, 3)),
- 'a non-empty traversable'
- );
- }
-
- public function testEmptyMatcherDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- emptyTraversable(),
- null,
- 'should not match null'
- );
- }
-
- public function testEmptyMatcherHasAReadableDescription()
- {
- $this->assertDescription('an empty traversable', emptyTraversable());
- }
-
- public function testNonEmptyDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- nonEmptyTraversable(),
- null,
- 'should not match null'
- );
- }
-
- public function testNonEmptyDoesNotMatchWhenEmpty()
- {
- $this->assertDoesNotMatch(
- nonEmptyTraversable(),
- new \ArrayObject(array()),
- 'an empty traversable'
- );
- }
-
- public function testNonEmptyMatchesWhenNotEmpty()
- {
- $this->assertMatches(
- nonEmptyTraversable(),
- new \ArrayObject(array(1, 2, 3)),
- 'a non-empty traversable'
- );
- }
-
- public function testNonEmptyNonEmptyMatcherHasAReadableDescription()
- {
- $this->assertDescription('a non-empty traversable', nonEmptyTraversable());
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php
deleted file mode 100644
index c1c67a7a..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-assertMatches(
- traversableWithSize(equalTo(3)),
- new \ArrayObject(array(1, 2, 3)),
- 'correct size'
- );
- }
-
- public function testDoesNotMatchWhenSizeIsIncorrect()
- {
- $this->assertDoesNotMatch(
- traversableWithSize(equalTo(2)),
- new \ArrayObject(array(1, 2, 3)),
- 'incorrect size'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- traversableWithSize(3),
- null,
- 'should not match null'
- );
- }
-
- public function testProvidesConvenientShortcutForTraversableWithSizeEqualTo()
- {
- $this->assertMatches(
- traversableWithSize(3),
- new \ArrayObject(array(1, 2, 3)),
- 'correct size'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'a traversable with size <3>',
- traversableWithSize(equalTo(3))
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AllOfTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AllOfTest.php
deleted file mode 100644
index 86b8c277..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AllOfTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-assertDescription(
- '("good" and "bad" and "ugly")',
- allOf('good', 'bad', 'ugly')
- );
- }
-
- public function testMismatchDescriptionDescribesFirstFailingMatch()
- {
- $this->assertMismatchDescription(
- '"good" was "bad"',
- allOf('bad', 'good'),
- 'bad'
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AnyOfTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AnyOfTest.php
deleted file mode 100644
index 3d62b935..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AnyOfTest.php
+++ /dev/null
@@ -1,79 +0,0 @@
-assertDescription(
- '("good" or "bad" or "ugly")',
- anyOf('good', 'bad', 'ugly')
- );
- }
-
- public function testNoneOfEvaluatesToTheLogicalDisjunctionOfTwoOtherMatchers()
- {
- assertThat('good', not(noneOf('bad', 'good')));
- assertThat('good', not(noneOf('good', 'good')));
- assertThat('good', not(noneOf('good', 'bad')));
-
- assertThat('good', noneOf('bad', startsWith('b')));
- }
-
- public function testNoneOfEvaluatesToTheLogicalDisjunctionOfManyOtherMatchers()
- {
- assertThat('good', not(noneOf('bad', 'good', 'bad', 'bad', 'bad')));
- assertThat('good', noneOf('bad', 'bad', 'bad', 'bad', 'bad'));
- }
-
- public function testNoneOfSupportsMixedTypes()
- {
- $combined = noneOf(
- equalTo(new \Hamcrest\Core\SampleBaseClass('good')),
- equalTo(new \Hamcrest\Core\SampleBaseClass('ugly')),
- equalTo(new \Hamcrest\Core\SampleSubClass('good'))
- );
-
- assertThat(new \Hamcrest\Core\SampleSubClass('bad'), $combined);
- }
-
- public function testNoneOfHasAReadableDescription()
- {
- $this->assertDescription(
- 'not ("good" or "bad" or "ugly")',
- noneOf('good', 'bad', 'ugly')
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php
deleted file mode 100644
index 463c7543..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-_either_3_or_4 = \Hamcrest\Core\CombinableMatcher::either(equalTo(3))->orElse(equalTo(4));
- $this->_not_3_and_not_4 = \Hamcrest\Core\CombinableMatcher::both(not(equalTo(3)))->andAlso(not(equalTo(4)));
- }
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\CombinableMatcher::either(equalTo('irrelevant'))->orElse(equalTo('ignored'));
- }
-
- public function testBothAcceptsAndRejects()
- {
- assertThat(2, $this->_not_3_and_not_4);
- assertThat(3, not($this->_not_3_and_not_4));
- }
-
- public function testAcceptsAndRejectsThreeAnds()
- {
- $tripleAnd = $this->_not_3_and_not_4->andAlso(equalTo(2));
- assertThat(2, $tripleAnd);
- assertThat(3, not($tripleAnd));
- }
-
- public function testBothDescribesItself()
- {
- $this->assertEquals('(not <3> and not <4>)', (string) $this->_not_3_and_not_4);
- $this->assertMismatchDescription('was <3>', $this->_not_3_and_not_4, 3);
- }
-
- public function testEitherAcceptsAndRejects()
- {
- assertThat(3, $this->_either_3_or_4);
- assertThat(6, not($this->_either_3_or_4));
- }
-
- public function testAcceptsAndRejectsThreeOrs()
- {
- $orTriple = $this->_either_3_or_4->orElse(greaterThan(10));
-
- assertThat(11, $orTriple);
- assertThat(9, not($orTriple));
- }
-
- public function testEitherDescribesItself()
- {
- $this->assertEquals('(<3> or <4>)', (string) $this->_either_3_or_4);
- $this->assertMismatchDescription('was <6>', $this->_either_3_or_4, 6);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/DescribedAsTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/DescribedAsTest.php
deleted file mode 100644
index 673ab41e..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/DescribedAsTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-assertDescription('m1 description', $m1);
- $this->assertDescription('m2 description', $m2);
- }
-
- public function testAppendsValuesToDescription()
- {
- $m = describedAs('value 1 = %0, value 2 = %1', anything(), 33, 97);
-
- $this->assertDescription('value 1 = <33>, value 2 = <97>', $m);
- }
-
- public function testDelegatesMatchingToAnotherMatcher()
- {
- $m1 = describedAs('irrelevant', anything());
- $m2 = describedAs('irrelevant', not(anything()));
-
- $this->assertTrue($m1->matches(new \stdClass()));
- $this->assertFalse($m2->matches('hi'));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/EveryTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/EveryTest.php
deleted file mode 100644
index 5eb153c5..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/EveryTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-assertEquals('every item is a string containing "a"', (string) $each);
-
- $this->assertMismatchDescription('an item was "BbB"', $each, array('BbB'));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/HasToStringTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/HasToStringTest.php
deleted file mode 100644
index e2e136dc..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/HasToStringTest.php
+++ /dev/null
@@ -1,108 +0,0 @@
-assertMatches(
- hasToString(equalTo('php')),
- new \Hamcrest\Core\PhpForm(),
- 'correct __toString'
- );
- $this->assertMatches(
- hasToString(equalTo('java')),
- new \Hamcrest\Core\JavaForm(),
- 'correct toString'
- );
- }
-
- public function testPicksJavaOverPhpToString()
- {
- $this->assertMatches(
- hasToString(equalTo('java')),
- new \Hamcrest\Core\BothForms(),
- 'correct toString'
- );
- }
-
- public function testDoesNotMatchWhenToStringDoesNotMatch()
- {
- $this->assertDoesNotMatch(
- hasToString(equalTo('mismatch')),
- new \Hamcrest\Core\PhpForm(),
- 'incorrect __toString'
- );
- $this->assertDoesNotMatch(
- hasToString(equalTo('mismatch')),
- new \Hamcrest\Core\JavaForm(),
- 'incorrect toString'
- );
- $this->assertDoesNotMatch(
- hasToString(equalTo('mismatch')),
- new \Hamcrest\Core\BothForms(),
- 'incorrect __toString'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- hasToString(equalTo('a')),
- null,
- 'should not match null'
- );
- }
-
- public function testProvidesConvenientShortcutForTraversableWithSizeEqualTo()
- {
- $this->assertMatches(
- hasToString(equalTo('php')),
- new \Hamcrest\Core\PhpForm(),
- 'correct __toString'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'an object with toString() "php"',
- hasToString(equalTo('php'))
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsAnythingTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsAnythingTest.php
deleted file mode 100644
index f68032e5..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsAnythingTest.php
+++ /dev/null
@@ -1,29 +0,0 @@
-assertDescription('ANYTHING', anything());
- }
-
- public function testCanOverrideDescription()
- {
- $description = 'description';
- $this->assertDescription($description, anything($description));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsCollectionContainingTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsCollectionContainingTest.php
deleted file mode 100644
index a3929b54..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsCollectionContainingTest.php
+++ /dev/null
@@ -1,91 +0,0 @@
-assertMatches(
- $itemMatcher,
- array('a', 'b', 'c'),
- "should match list that contains 'a'"
- );
- }
-
- public function testDoesNotMatchCollectionThatDoesntContainAnElementMatchingTheGivenMatcher()
- {
- $matcher1 = hasItem(equalTo('a'));
- $this->assertDoesNotMatch(
- $matcher1,
- array('b', 'c'),
- "should not match list that doesn't contain 'a'"
- );
-
- $matcher2 = hasItem(equalTo('a'));
- $this->assertDoesNotMatch(
- $matcher2,
- array(),
- 'should not match the empty list'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- hasItem(equalTo('a')),
- null,
- 'should not match null'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a collection containing "a"', hasItem(equalTo('a')));
- }
-
- public function testMatchesAllItemsInCollection()
- {
- $matcher1 = hasItems(equalTo('a'), equalTo('b'), equalTo('c'));
- $this->assertMatches(
- $matcher1,
- array('a', 'b', 'c'),
- 'should match list containing all items'
- );
-
- $matcher2 = hasItems('a', 'b', 'c');
- $this->assertMatches(
- $matcher2,
- array('a', 'b', 'c'),
- 'should match list containing all items (without matchers)'
- );
-
- $matcher3 = hasItems(equalTo('a'), equalTo('b'), equalTo('c'));
- $this->assertMatches(
- $matcher3,
- array('c', 'b', 'a'),
- 'should match list containing all items in any order'
- );
-
- $matcher4 = hasItems(equalTo('a'), equalTo('b'), equalTo('c'));
- $this->assertMatches(
- $matcher4,
- array('e', 'c', 'b', 'a', 'd'),
- 'should match list containing all items plus others'
- );
-
- $matcher5 = hasItems(equalTo('a'), equalTo('b'), equalTo('c'));
- $this->assertDoesNotMatch(
- $matcher5,
- array('e', 'c', 'b', 'd'), // 'a' missing
- 'should not match list unless it contains all items'
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsEqualTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsEqualTest.php
deleted file mode 100644
index 73e3ff07..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsEqualTest.php
+++ /dev/null
@@ -1,102 +0,0 @@
-_arg = $arg;
- }
-
- public function __toString()
- {
- return $this->_arg;
- }
-}
-
-class IsEqualTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsEqual::equalTo('irrelevant');
- }
-
- public function testComparesObjectsUsingEqualityOperator()
- {
- assertThat("hi", equalTo("hi"));
- assertThat("bye", not(equalTo("hi")));
-
- assertThat(1, equalTo(1));
- assertThat(1, not(equalTo(2)));
-
- assertThat("2", equalTo(2));
- }
-
- public function testCanCompareNullValues()
- {
- assertThat(null, equalTo(null));
-
- assertThat(null, not(equalTo('hi')));
- assertThat('hi', not(equalTo(null)));
- }
-
- public function testComparesTheElementsOfAnArray()
- {
- $s1 = array('a', 'b');
- $s2 = array('a', 'b');
- $s3 = array('c', 'd');
- $s4 = array('a', 'b', 'c', 'd');
-
- assertThat($s1, equalTo($s1));
- assertThat($s2, equalTo($s1));
- assertThat($s3, not(equalTo($s1)));
- assertThat($s4, not(equalTo($s1)));
- }
-
- public function testComparesTheElementsOfAnArrayOfPrimitiveTypes()
- {
- $i1 = array(1, 2);
- $i2 = array(1, 2);
- $i3 = array(3, 4);
- $i4 = array(1, 2, 3, 4);
-
- assertThat($i1, equalTo($i1));
- assertThat($i2, equalTo($i1));
- assertThat($i3, not(equalTo($i1)));
- assertThat($i4, not(equalTo($i1)));
- }
-
- public function testRecursivelyTestsElementsOfArrays()
- {
- $i1 = array(array(1, 2), array(3, 4));
- $i2 = array(array(1, 2), array(3, 4));
- $i3 = array(array(5, 6), array(7, 8));
- $i4 = array(array(1, 2, 3, 4), array(3, 4));
-
- assertThat($i1, equalTo($i1));
- assertThat($i2, equalTo($i1));
- assertThat($i3, not(equalTo($i1)));
- assertThat($i4, not(equalTo($i1)));
- }
-
- public function testIncludesTheResultOfCallingToStringOnItsArgumentInTheDescription()
- {
- $argumentDescription = 'ARGUMENT DESCRIPTION';
- $argument = new \Hamcrest\Core\DummyToStringClass($argumentDescription);
- $this->assertDescription('<' . $argumentDescription . '>', equalTo($argument));
- }
-
- public function testReturnsAnObviousDescriptionIfCreatedWithANestedMatcherByMistake()
- {
- $innerMatcher = equalTo('NestedMatcher');
- $this->assertDescription('<' . (string) $innerMatcher . '>', equalTo($innerMatcher));
- }
-
- public function testReturnsGoodDescriptionIfCreatedWithNullReference()
- {
- $this->assertDescription('null', equalTo(null));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsIdenticalTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsIdenticalTest.php
deleted file mode 100644
index 9cc27946..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsIdenticalTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-assertDescription('"ARG"', identicalTo('ARG'));
- }
-
- public function testReturnsReadableDescriptionFromToStringWhenInitialisedWithNull()
- {
- $this->assertDescription('null', identicalTo(null));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php
deleted file mode 100644
index f74cfdb5..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-_baseClassInstance = new \Hamcrest\Core\SampleBaseClass('good');
- $this->_subClassInstance = new \Hamcrest\Core\SampleSubClass('good');
- }
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf('stdClass');
- }
-
- public function testEvaluatesToTrueIfArgumentIsInstanceOfASpecificClass()
- {
- assertThat($this->_baseClassInstance, anInstanceOf('Hamcrest\Core\SampleBaseClass'));
- assertThat($this->_subClassInstance, anInstanceOf('Hamcrest\Core\SampleSubClass'));
- assertThat(null, not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat(new \stdClass(), not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- }
-
- public function testEvaluatesToFalseIfArgumentIsNotAnObject()
- {
- assertThat(null, not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat(false, not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat(5, not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat('foo', not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat(array(1, 2, 3), not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('an instance of stdClass', anInstanceOf('stdClass'));
- }
-
- public function testDecribesActualClassInMismatchMessage()
- {
- $this->assertMismatchDescription(
- '[Hamcrest\Core\SampleBaseClass] ',
- anInstanceOf('Hamcrest\Core\SampleSubClass'),
- $this->_baseClassInstance
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNotTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNotTest.php
deleted file mode 100644
index 09d4a652..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNotTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-assertMatches(not(equalTo('A')), 'B', 'should match');
- $this->assertDoesNotMatch(not(equalTo('B')), 'B', 'should not match');
- }
-
- public function testProvidesConvenientShortcutForNotEqualTo()
- {
- $this->assertMatches(not('A'), 'B', 'should match');
- $this->assertMatches(not('B'), 'A', 'should match');
- $this->assertDoesNotMatch(not('A'), 'A', 'should not match');
- $this->assertDoesNotMatch(not('B'), 'B', 'should not match');
- }
-
- public function testUsesDescriptionOfNegatedMatcherWithPrefix()
- {
- $this->assertDescription('not a value greater than <2>', not(greaterThan(2)));
- $this->assertDescription('not "A"', not('A'));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNullTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNullTest.php
deleted file mode 100644
index bfa42554..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNullTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertDescription('sameInstance("ARG")', sameInstance('ARG'));
- }
-
- public function testReturnsReadableDescriptionFromToStringWhenInitialisedWithNull()
- {
- $this->assertDescription('sameInstance(null)', sameInstance(null));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTest.php
deleted file mode 100644
index bbd848b9..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-assertMatches(is(equalTo(true)), true, 'should match');
- $this->assertMatches(is(equalTo(false)), false, 'should match');
- $this->assertDoesNotMatch(is(equalTo(true)), false, 'should not match');
- $this->assertDoesNotMatch(is(equalTo(false)), true, 'should not match');
- }
-
- public function testGeneratesIsPrefixInDescription()
- {
- $this->assertDescription('is ', is(equalTo(true)));
- }
-
- public function testProvidesConvenientShortcutForIsEqualTo()
- {
- $this->assertMatches(is('A'), 'A', 'should match');
- $this->assertMatches(is('B'), 'B', 'should match');
- $this->assertDoesNotMatch(is('A'), 'B', 'should not match');
- $this->assertDoesNotMatch(is('B'), 'A', 'should not match');
- $this->assertDescription('is "A"', is('A'));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTypeOfTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTypeOfTest.php
deleted file mode 100644
index 3f48dea7..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTypeOfTest.php
+++ /dev/null
@@ -1,45 +0,0 @@
-assertDescription('a double', typeOf('double'));
- $this->assertDescription('an integer', typeOf('integer'));
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', typeOf('boolean'), null);
- $this->assertMismatchDescription('was an integer <5>', typeOf('float'), 5);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleBaseClass.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleBaseClass.php
deleted file mode 100644
index c953e7cd..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleBaseClass.php
+++ /dev/null
@@ -1,18 +0,0 @@
-_arg = $arg;
- }
-
- public function __toString()
- {
- return $this->_arg;
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleSubClass.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleSubClass.php
deleted file mode 100644
index 822f1b64..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleSubClass.php
+++ /dev/null
@@ -1,6 +0,0 @@
-_instanceProperty);
- }
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\Set::set('property_name');
- }
-
- public function testEvaluatesToTrueIfArrayPropertyIsSet()
- {
- assertThat(array('foo' => 'bar'), set('foo'));
- }
-
- public function testNegatedEvaluatesToFalseIfArrayPropertyIsSet()
- {
- assertThat(array('foo' => 'bar'), not(notSet('foo')));
- }
-
- public function testEvaluatesToTrueIfClassPropertyIsSet()
- {
- self::$_classProperty = 'bar';
- assertThat('Hamcrest\Core\SetTest', set('_classProperty'));
- }
-
- public function testNegatedEvaluatesToFalseIfClassPropertyIsSet()
- {
- self::$_classProperty = 'bar';
- assertThat('Hamcrest\Core\SetTest', not(notSet('_classProperty')));
- }
-
- public function testEvaluatesToTrueIfObjectPropertyIsSet()
- {
- $this->_instanceProperty = 'bar';
- assertThat($this, set('_instanceProperty'));
- }
-
- public function testNegatedEvaluatesToFalseIfObjectPropertyIsSet()
- {
- $this->_instanceProperty = 'bar';
- assertThat($this, not(notSet('_instanceProperty')));
- }
-
- public function testEvaluatesToFalseIfArrayPropertyIsNotSet()
- {
- assertThat(array('foo' => 'bar'), not(set('baz')));
- }
-
- public function testNegatedEvaluatesToTrueIfArrayPropertyIsNotSet()
- {
- assertThat(array('foo' => 'bar'), notSet('baz'));
- }
-
- public function testEvaluatesToFalseIfClassPropertyIsNotSet()
- {
- assertThat('Hamcrest\Core\SetTest', not(set('_classProperty')));
- }
-
- public function testNegatedEvaluatesToTrueIfClassPropertyIsNotSet()
- {
- assertThat('Hamcrest\Core\SetTest', notSet('_classProperty'));
- }
-
- public function testEvaluatesToFalseIfObjectPropertyIsNotSet()
- {
- assertThat($this, not(set('_instanceProperty')));
- }
-
- public function testNegatedEvaluatesToTrueIfObjectPropertyIsNotSet()
- {
- assertThat($this, notSet('_instanceProperty'));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('set property foo', set('foo'));
- $this->assertDescription('unset property bar', notSet('bar'));
- }
-
- public function testDecribesPropertySettingInMismatchMessage()
- {
- $this->assertMismatchDescription(
- 'was not set',
- set('bar'),
- array('foo' => 'bar')
- );
- $this->assertMismatchDescription(
- 'was "bar"',
- notSet('foo'),
- array('foo' => 'bar')
- );
- self::$_classProperty = 'bar';
- $this->assertMismatchDescription(
- 'was "bar"',
- notSet('_classProperty'),
- 'Hamcrest\Core\SetTest'
- );
- $this->_instanceProperty = 'bar';
- $this->assertMismatchDescription(
- 'was "bar"',
- notSet('_instanceProperty'),
- $this
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php
deleted file mode 100644
index 1b023049..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php
+++ /dev/null
@@ -1,73 +0,0 @@
-_result = $result;
- }
- public function getResult()
- {
- return $this->_result;
- }
-}
-
-/* Test-specific subclass only */
-class ResultMatcher extends \Hamcrest\FeatureMatcher
-{
- public function __construct()
- {
- parent::__construct(self::TYPE_ANY, null, equalTo('bar'), 'Thingy with result', 'result');
- }
- public function featureValueOf($actual)
- {
- if ($actual instanceof \Hamcrest\Thingy) {
- return $actual->getResult();
- }
- }
-}
-
-class FeatureMatcherTest extends \Hamcrest\AbstractMatcherTest
-{
-
- private $_resultMatcher;
-
- protected function setUp()
- {
- $this->_resultMatcher = $this->_resultMatcher();
- }
-
- protected function createMatcher()
- {
- return $this->_resultMatcher();
- }
-
- public function testMatchesPartOfAnObject()
- {
- $this->assertMatches($this->_resultMatcher, new \Hamcrest\Thingy('bar'), 'feature');
- $this->assertDescription('Thingy with result "bar"', $this->_resultMatcher);
- }
-
- public function testMismatchesPartOfAnObject()
- {
- $this->assertMismatchDescription(
- 'result was "foo"',
- $this->_resultMatcher,
- new \Hamcrest\Thingy('foo')
- );
- }
-
- public function testDoesNotGenerateNoticesForNull()
- {
- $this->assertMismatchDescription('result was null', $this->_resultMatcher, null);
- }
-
- // -- Creation Methods
-
- private function _resultMatcher()
- {
- return new \Hamcrest\ResultMatcher();
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/InvokedMatcherTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/InvokedMatcherTest.php
deleted file mode 100644
index dfa77006..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/InvokedMatcherTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-matchAgainst = $matchAgainst;
- }
-
- public function matches($item)
- {
- return $item == $this->matchAgainst;
- }
-
-}
-
-class InvokedMatcherTest extends TestCase
-{
- public function testInvokedMatchersCallMatches()
- {
- $sampleMatcher = new SampleInvokeMatcher('foo');
-
- $this->assertTrue($sampleMatcher('foo'));
- $this->assertFalse($sampleMatcher('bar'));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php
deleted file mode 100644
index dc12fba5..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php
+++ /dev/null
@@ -1,192 +0,0 @@
-getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat(null);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('');
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat(0);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat(0.0);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat(array());
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- self::assertEquals(6, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithIdentifierAndTrueArgPasses()
- {
- \Hamcrest\MatcherAssert::assertThat('identifier', true);
- \Hamcrest\MatcherAssert::assertThat('identifier', 'non-empty');
- \Hamcrest\MatcherAssert::assertThat('identifier', 1);
- \Hamcrest\MatcherAssert::assertThat('identifier', 3.14159);
- \Hamcrest\MatcherAssert::assertThat('identifier', array(true));
- self::assertEquals(5, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithIdentifierAndFalseArgFails()
- {
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', false);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', null);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', '');
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', 0);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', 0.0);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', array());
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- self::assertEquals(6, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithActualValueAndMatcherArgsThatMatchPasses()
- {
- \Hamcrest\MatcherAssert::assertThat(true, is(true));
- self::assertEquals(1, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithActualValueAndMatcherArgsThatDontMatchFails()
- {
- $expected = 'expected';
- $actual = 'actual';
-
- $expectedMessage =
- 'Expected: "expected"' . PHP_EOL .
- ' but: was "actual"';
-
- try {
- \Hamcrest\MatcherAssert::assertThat($actual, equalTo($expected));
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals($expectedMessage, $ex->getMessage());
- self::assertEquals(1, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
- }
-
- public function testAssertThatWithIdentifierAndActualValueAndMatcherArgsThatMatchPasses()
- {
- \Hamcrest\MatcherAssert::assertThat('identifier', true, is(true));
- self::assertEquals(1, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithIdentifierAndActualValueAndMatcherArgsThatDontMatchFails()
- {
- $expected = 'expected';
- $actual = 'actual';
-
- $expectedMessage =
- 'identifier' . PHP_EOL .
- 'Expected: "expected"' . PHP_EOL .
- ' but: was "actual"';
-
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', $actual, equalTo($expected));
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals($expectedMessage, $ex->getMessage());
- self::assertEquals(1, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
- }
-
- public function testAssertThatWithNoArgsThrowsErrorAndDoesntIncrementCount()
- {
- try {
- \Hamcrest\MatcherAssert::assertThat();
- self::fail('expected invalid argument exception');
- } catch (\InvalidArgumentException $ex) {
- self::assertEquals(0, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
- }
-
- public function testAssertThatWithFourArgsThrowsErrorAndDoesntIncrementCount()
- {
- try {
- \Hamcrest\MatcherAssert::assertThat(1, 2, 3, 4);
- self::fail('expected invalid argument exception');
- } catch (\InvalidArgumentException $ex) {
- self::assertEquals(0, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/IsCloseToTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/IsCloseToTest.php
deleted file mode 100644
index 987d5526..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/IsCloseToTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-assertTrue($p->matches(1.0));
- $this->assertTrue($p->matches(0.5));
- $this->assertTrue($p->matches(1.5));
-
- $this->assertDoesNotMatch($p, 2.0, 'too large');
- $this->assertMismatchDescription('<2F> differed by <0.5F>', $p, 2.0);
- $this->assertDoesNotMatch($p, 0.0, 'number too small');
- $this->assertMismatchDescription('<0F> differed by <0.5F>', $p, 0.0);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/OrderingComparisonTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/OrderingComparisonTest.php
deleted file mode 100644
index a4c94d37..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/OrderingComparisonTest.php
+++ /dev/null
@@ -1,41 +0,0 @@
-_text = $text;
- }
-
- public function describeTo(\Hamcrest\Description $description)
- {
- $description->appendText($this->_text);
- }
-}
-
-class StringDescriptionTest extends TestCase
-{
-
- private $_description;
-
- protected function setUp()
- {
- $this->_description = new \Hamcrest\StringDescription();
- }
-
- public function testAppendTextAppendsTextInformation()
- {
- $this->_description->appendText('foo')->appendText('bar');
- $this->assertEquals('foobar', (string) $this->_description);
- }
-
- public function testAppendValueCanAppendTextTypes()
- {
- $this->_description->appendValue('foo');
- $this->assertEquals('"foo"', (string) $this->_description);
- }
-
- public function testSpecialCharactersAreEscapedForStringTypes()
- {
- $this->_description->appendValue("foo\\bar\"zip\r\n");
- $this->assertEquals('"foo\\bar\\"zip\r\n"', (string) $this->_description);
- }
-
- public function testIntegerValuesCanBeAppended()
- {
- $this->_description->appendValue(42);
- $this->assertEquals('<42>', (string) $this->_description);
- }
-
- public function testFloatValuesCanBeAppended()
- {
- $this->_description->appendValue(42.78);
- $this->assertEquals('<42.78F>', (string) $this->_description);
- }
-
- public function testNullValuesCanBeAppended()
- {
- $this->_description->appendValue(null);
- $this->assertEquals('null', (string) $this->_description);
- }
-
- public function testArraysCanBeAppended()
- {
- $this->_description->appendValue(array('foo', 42.78));
- $this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
- }
-
- public function testObjectsCanBeAppended()
- {
- $this->_description->appendValue(new \stdClass());
- $this->assertEquals('', (string) $this->_description);
- }
-
- public function testBooleanValuesCanBeAppended()
- {
- $this->_description->appendValue(false);
- $this->assertEquals('', (string) $this->_description);
- }
-
- public function testListsOfvaluesCanBeAppended()
- {
- $this->_description->appendValue(array('foo', 42.78));
- $this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
- }
-
- public function testIterableOfvaluesCanBeAppended()
- {
- $items = new \ArrayObject(array('foo', 42.78));
- $this->_description->appendValue($items);
- $this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
- }
-
- public function testIteratorOfvaluesCanBeAppended()
- {
- $items = new \ArrayObject(array('foo', 42.78));
- $this->_description->appendValue($items->getIterator());
- $this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
- }
-
- public function testListsOfvaluesCanBeAppendedManually()
- {
- $this->_description->appendValueList('@start@', '@sep@ ', '@end@', array('foo', 42.78));
- $this->assertEquals('@start@"foo"@sep@ <42.78F>@end@', (string) $this->_description);
- }
-
- public function testIterableOfvaluesCanBeAppendedManually()
- {
- $items = new \ArrayObject(array('foo', 42.78));
- $this->_description->appendValueList('@start@', '@sep@ ', '@end@', $items);
- $this->assertEquals('@start@"foo"@sep@ <42.78F>@end@', (string) $this->_description);
- }
-
- public function testIteratorOfvaluesCanBeAppendedManually()
- {
- $items = new \ArrayObject(array('foo', 42.78));
- $this->_description->appendValueList('@start@', '@sep@ ', '@end@', $items->getIterator());
- $this->assertEquals('@start@"foo"@sep@ <42.78F>@end@', (string) $this->_description);
- }
-
- public function testSelfDescribingObjectsCanBeAppended()
- {
- $this->_description
- ->appendDescriptionOf(new \Hamcrest\SampleSelfDescriber('foo'))
- ->appendDescriptionOf(new \Hamcrest\SampleSelfDescriber('bar'))
- ;
- $this->assertEquals('foobar', (string) $this->_description);
- }
-
- public function testSelfDescribingObjectsCanBeAppendedAsLists()
- {
- $this->_description->appendList('@start@', '@sep@ ', '@end@', array(
- new \Hamcrest\SampleSelfDescriber('foo'),
- new \Hamcrest\SampleSelfDescriber('bar')
- ));
- $this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
- }
-
- public function testSelfDescribingObjectsCanBeAppendedAsIteratedLists()
- {
- $items = new \ArrayObject(array(
- new \Hamcrest\SampleSelfDescriber('foo'),
- new \Hamcrest\SampleSelfDescriber('bar')
- ));
- $this->_description->appendList('@start@', '@sep@ ', '@end@', $items);
- $this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
- }
-
- public function testSelfDescribingObjectsCanBeAppendedAsIterators()
- {
- $items = new \ArrayObject(array(
- new \Hamcrest\SampleSelfDescriber('foo'),
- new \Hamcrest\SampleSelfDescriber('bar')
- ));
- $this->_description->appendList('@start@', '@sep@ ', '@end@', $items->getIterator());
- $this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEmptyStringTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEmptyStringTest.php
deleted file mode 100644
index 8d5c56be..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEmptyStringTest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-assertDoesNotMatch(emptyString(), null, 'null');
- }
-
- public function testEmptyDoesNotMatchZero()
- {
- $this->assertDoesNotMatch(emptyString(), 0, 'zero');
- }
-
- public function testEmptyDoesNotMatchFalse()
- {
- $this->assertDoesNotMatch(emptyString(), false, 'false');
- }
-
- public function testEmptyDoesNotMatchEmptyArray()
- {
- $this->assertDoesNotMatch(emptyString(), array(), 'empty array');
- }
-
- public function testEmptyMatchesEmptyString()
- {
- $this->assertMatches(emptyString(), '', 'empty string');
- }
-
- public function testEmptyDoesNotMatchNonEmptyString()
- {
- $this->assertDoesNotMatch(emptyString(), 'foo', 'non-empty string');
- }
-
- public function testEmptyHasAReadableDescription()
- {
- $this->assertDescription('an empty string', emptyString());
- }
-
- public function testEmptyOrNullMatchesNull()
- {
- $this->assertMatches(nullOrEmptyString(), null, 'null');
- }
-
- public function testEmptyOrNullMatchesEmptyString()
- {
- $this->assertMatches(nullOrEmptyString(), '', 'empty string');
- }
-
- public function testEmptyOrNullDoesNotMatchNonEmptyString()
- {
- $this->assertDoesNotMatch(nullOrEmptyString(), 'foo', 'non-empty string');
- }
-
- public function testEmptyOrNullHasAReadableDescription()
- {
- $this->assertDescription('(null or an empty string)', nullOrEmptyString());
- }
-
- public function testNonEmptyDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(nonEmptyString(), null, 'null');
- }
-
- public function testNonEmptyDoesNotMatchEmptyString()
- {
- $this->assertDoesNotMatch(nonEmptyString(), '', 'empty string');
- }
-
- public function testNonEmptyMatchesNonEmptyString()
- {
- $this->assertMatches(nonEmptyString(), 'foo', 'non-empty string');
- }
-
- public function testNonEmptyHasAReadableDescription()
- {
- $this->assertDescription('a non-empty string', nonEmptyString());
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php
deleted file mode 100644
index 0539fd5c..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php
+++ /dev/null
@@ -1,40 +0,0 @@
-assertDescription(
- 'equalToIgnoringCase("heLLo")',
- equalToIgnoringCase('heLLo')
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
deleted file mode 100644
index 27ad338b..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-_matcher = \Hamcrest\Text\IsEqualIgnoringWhiteSpace::equalToIgnoringWhiteSpace(
- "Hello World how\n are we? "
- );
- }
-
- protected function createMatcher()
- {
- return $this->_matcher;
- }
-
- public function testPassesIfWordsAreSameButWhitespaceDiffers()
- {
- assertThat('Hello World how are we?', $this->_matcher);
- assertThat(" Hello \rWorld \t how are\nwe?", $this->_matcher);
- }
-
- public function testFailsIfTextOtherThanWhitespaceDiffers()
- {
- assertThat('Hello PLANET how are we?', not($this->_matcher));
- assertThat('Hello World how are we', not($this->_matcher));
- }
-
- public function testFailsIfWhitespaceIsAddedOrRemovedInMidWord()
- {
- assertThat('HelloWorld how are we?', not($this->_matcher));
- assertThat('Hello Wo rld how are we?', not($this->_matcher));
- }
-
- public function testFailsIfMatchingAgainstNull()
- {
- assertThat(null, not($this->_matcher));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- "equalToIgnoringWhiteSpace(\"Hello World how\\n are we? \")",
- $this->_matcher
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/MatchesPatternTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/MatchesPatternTest.php
deleted file mode 100644
index 4891598f..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/MatchesPatternTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-assertDescription('a string matching "pattern"', matchesPattern('pattern'));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
deleted file mode 100644
index 73023007..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-_stringContains = \Hamcrest\Text\StringContainsIgnoringCase::containsStringIgnoringCase(
- strtolower(self::EXCERPT)
- );
- }
-
- protected function createMatcher()
- {
- return $this->_stringContains;
- }
-
- public function testEvaluatesToTrueIfArgumentContainsSpecifiedSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT . 'END'),
- 'should be true if excerpt at beginning'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . self::EXCERPT),
- 'should be true if excerpt at end'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . self::EXCERPT . 'END'),
- 'should be true if excerpt in middle'
- );
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT . self::EXCERPT),
- 'should be true if excerpt is repeated'
- );
-
- $this->assertFalse(
- $this->_stringContains->matches('Something else'),
- 'should not be true if excerpt is not in string'
- );
- $this->assertFalse(
- $this->_stringContains->matches(substr(self::EXCERPT, 1)),
- 'should not be true if part of excerpt is in string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsEqualToSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT),
- 'should be true if excerpt is entire string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentContainsExactSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(strtolower(self::EXCERPT)),
- 'should be false if excerpt is entire string ignoring case'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . strtolower(self::EXCERPT) . 'END'),
- 'should be false if excerpt is contained in string ignoring case'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'a string containing in any case "'
- . strtolower(self::EXCERPT) . '"',
- $this->_stringContains
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php
deleted file mode 100644
index 4c465b29..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-_m = \Hamcrest\Text\StringContainsInOrder::stringContainsInOrder(array('a', 'b', 'c'));
- }
-
- protected function createMatcher()
- {
- return $this->_m;
- }
-
- public function testMatchesOnlyIfStringContainsGivenSubstringsInTheSameOrder()
- {
- $this->assertMatches($this->_m, 'abc', 'substrings in order');
- $this->assertMatches($this->_m, '1a2b3c4', 'substrings separated');
-
- $this->assertDoesNotMatch($this->_m, 'cab', 'substrings out of order');
- $this->assertDoesNotMatch($this->_m, 'xyz', 'no substrings in string');
- $this->assertDoesNotMatch($this->_m, 'ac', 'substring missing');
- $this->assertDoesNotMatch($this->_m, '', 'empty string');
- }
-
- public function testAcceptsVariableArguments()
- {
- $this->assertMatches(stringContainsInOrder('a', 'b', 'c'), 'abc', 'substrings as variable arguments');
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'a string containing "a", "b", "c" in order',
- $this->_m
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php
deleted file mode 100644
index bf4afa3c..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-_stringContains = \Hamcrest\Text\StringContains::containsString(self::EXCERPT);
- }
-
- protected function createMatcher()
- {
- return $this->_stringContains;
- }
-
- public function testEvaluatesToTrueIfArgumentContainsSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT . 'END'),
- 'should be true if excerpt at beginning'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . self::EXCERPT),
- 'should be true if excerpt at end'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . self::EXCERPT . 'END'),
- 'should be true if excerpt in middle'
- );
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT . self::EXCERPT),
- 'should be true if excerpt is repeated'
- );
-
- $this->assertFalse(
- $this->_stringContains->matches('Something else'),
- 'should not be true if excerpt is not in string'
- );
- $this->assertFalse(
- $this->_stringContains->matches(substr(self::EXCERPT, 1)),
- 'should not be true if part of excerpt is in string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsEqualToSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT),
- 'should be true if excerpt is entire string'
- );
- }
-
- public function testEvaluatesToFalseIfArgumentContainsSubstringIgnoringCase()
- {
- $this->assertFalse(
- $this->_stringContains->matches(strtolower(self::EXCERPT)),
- 'should be false if excerpt is entire string ignoring case'
- );
- $this->assertFalse(
- $this->_stringContains->matches('START' . strtolower(self::EXCERPT) . 'END'),
- 'should be false if excerpt is contained in string ignoring case'
- );
- }
-
- public function testIgnoringCaseReturnsCorrectMatcher()
- {
- $this->assertTrue(
- $this->_stringContains->ignoringCase()->matches('EXceRpT'),
- 'should be true if excerpt is entire string ignoring case'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'a string containing "'
- . self::EXCERPT . '"',
- $this->_stringContains
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php
deleted file mode 100644
index 9a30f952..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-_stringEndsWith = \Hamcrest\Text\StringEndsWith::endsWith(self::EXCERPT);
- }
-
- protected function createMatcher()
- {
- return $this->_stringEndsWith;
- }
-
- public function testEvaluatesToTrueIfArgumentContainsSpecifiedSubstring()
- {
- $this->assertFalse(
- $this->_stringEndsWith->matches(self::EXCERPT . 'END'),
- 'should be false if excerpt at beginning'
- );
- $this->assertTrue(
- $this->_stringEndsWith->matches('START' . self::EXCERPT),
- 'should be true if excerpt at end'
- );
- $this->assertFalse(
- $this->_stringEndsWith->matches('START' . self::EXCERPT . 'END'),
- 'should be false if excerpt in middle'
- );
- $this->assertTrue(
- $this->_stringEndsWith->matches(self::EXCERPT . self::EXCERPT),
- 'should be true if excerpt is at end and repeated'
- );
-
- $this->assertFalse(
- $this->_stringEndsWith->matches('Something else'),
- 'should be false if excerpt is not in string'
- );
- $this->assertFalse(
- $this->_stringEndsWith->matches(substr(self::EXCERPT, 0, strlen(self::EXCERPT) - 2)),
- 'should be false if part of excerpt is at end of string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsEqualToSubstring()
- {
- $this->assertTrue(
- $this->_stringEndsWith->matches(self::EXCERPT),
- 'should be true if excerpt is entire string'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a string ending with "EXCERPT"', $this->_stringEndsWith);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php
deleted file mode 100644
index 3be201f1..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-_stringStartsWith = \Hamcrest\Text\StringStartsWith::startsWith(self::EXCERPT);
- }
-
- protected function createMatcher()
- {
- return $this->_stringStartsWith;
- }
-
- public function testEvaluatesToTrueIfArgumentContainsSpecifiedSubstring()
- {
- $this->assertTrue(
- $this->_stringStartsWith->matches(self::EXCERPT . 'END'),
- 'should be true if excerpt at beginning'
- );
- $this->assertFalse(
- $this->_stringStartsWith->matches('START' . self::EXCERPT),
- 'should be false if excerpt at end'
- );
- $this->assertFalse(
- $this->_stringStartsWith->matches('START' . self::EXCERPT . 'END'),
- 'should be false if excerpt in middle'
- );
- $this->assertTrue(
- $this->_stringStartsWith->matches(self::EXCERPT . self::EXCERPT),
- 'should be true if excerpt is at beginning and repeated'
- );
-
- $this->assertFalse(
- $this->_stringStartsWith->matches('Something else'),
- 'should be false if excerpt is not in string'
- );
- $this->assertFalse(
- $this->_stringStartsWith->matches(substr(self::EXCERPT, 1)),
- 'should be false if part of excerpt is at start of string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsEqualToSubstring()
- {
- $this->assertTrue(
- $this->_stringStartsWith->matches(self::EXCERPT),
- 'should be true if excerpt is entire string'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a string starting with "EXCERPT"', $this->_stringStartsWith);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsArrayTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsArrayTest.php
deleted file mode 100644
index d13c24d2..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsArrayTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-assertDescription('an array', arrayValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', arrayValue(), null);
- $this->assertMismatchDescription('was a string "foo"', arrayValue(), 'foo');
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsBooleanTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsBooleanTest.php
deleted file mode 100644
index 24309fc0..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsBooleanTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-assertDescription('a boolean', booleanValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', booleanValue(), null);
- $this->assertMismatchDescription('was a string "foo"', booleanValue(), 'foo');
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsCallableTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsCallableTest.php
deleted file mode 100644
index 5098e21b..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsCallableTest.php
+++ /dev/null
@@ -1,103 +0,0 @@
-=')) {
- $this->markTestSkipped('Closures require php 5.3');
- }
- eval('assertThat(function () {}, callableValue());');
- }
-
- public function testEvaluatesToTrueIfArgumentImplementsInvoke()
- {
- if (!version_compare(PHP_VERSION, '5.3', '>=')) {
- $this->markTestSkipped('Magic method __invoke() requires php 5.3');
- }
- assertThat($this, callableValue());
- }
-
- public function testEvaluatesToFalseIfArgumentIsInvalidFunctionName()
- {
- if (function_exists('not_a_Hamcrest_function')) {
- $this->markTestSkipped('Function "not_a_Hamcrest_function" must not exist');
- }
-
- assertThat('not_a_Hamcrest_function', not(callableValue()));
- }
-
- public function testEvaluatesToFalseIfArgumentIsInvalidStaticMethodCallback()
- {
- assertThat(
- array('Hamcrest\Type\IsCallableTest', 'noMethod'),
- not(callableValue())
- );
- }
-
- public function testEvaluatesToFalseIfArgumentIsInvalidInstanceMethodCallback()
- {
- assertThat(array($this, 'noMethod'), not(callableValue()));
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntImplementInvoke()
- {
- assertThat(new \stdClass(), not(callableValue()));
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(callableValue()));
- assertThat(5.2, not(callableValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a callable', callableValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription(
- 'was a string "invalid-function"',
- callableValue(),
- 'invalid-function'
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsDoubleTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsDoubleTest.php
deleted file mode 100644
index 85c2a963..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsDoubleTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-assertDescription('a double', doubleValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', doubleValue(), null);
- $this->assertMismatchDescription('was a string "foo"', doubleValue(), 'foo');
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsIntegerTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsIntegerTest.php
deleted file mode 100644
index ce5a51a9..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsIntegerTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-assertDescription('an integer', integerValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', integerValue(), null);
- $this->assertMismatchDescription('was a string "foo"', integerValue(), 'foo');
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsNumericTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsNumericTest.php
deleted file mode 100644
index 1fd83efe..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsNumericTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-assertDescription('a number', numericValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', numericValue(), null);
- $this->assertMismatchDescription('was a string "foo"', numericValue(), 'foo');
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsObjectTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsObjectTest.php
deleted file mode 100644
index a3b617c2..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsObjectTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-assertDescription('an object', objectValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', objectValue(), null);
- $this->assertMismatchDescription('was a string "foo"', objectValue(), 'foo');
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsResourceTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsResourceTest.php
deleted file mode 100644
index d6ea5348..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsResourceTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-assertDescription('a resource', resourceValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', resourceValue(), null);
- $this->assertMismatchDescription('was a string "foo"', resourceValue(), 'foo');
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsScalarTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsScalarTest.php
deleted file mode 100644
index 72a188d6..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsScalarTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-assertDescription('a scalar', scalarValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', scalarValue(), null);
- $this->assertMismatchDescription('was an array ["foo"]', scalarValue(), array('foo'));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsStringTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsStringTest.php
deleted file mode 100644
index 557d5913..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsStringTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-assertDescription('a string', stringValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', stringValue(), null);
- $this->assertMismatchDescription('was a double <5.2F>', stringValue(), 5.2);
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php
deleted file mode 100644
index 7248978c..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php
+++ /dev/null
@@ -1,82 +0,0 @@
-assertSame($matcher, $newMatcher);
- }
-
- public function testWrapValueWithIsEqualWrapsPrimitive()
- {
- $matcher = \Hamcrest\Util::wrapValueWithIsEqual('foo');
- $this->assertInstanceOf('Hamcrest\Core\IsEqual', $matcher);
- $this->assertTrue($matcher->matches('foo'));
- }
-
- public function testCheckAllAreMatchersAcceptsMatchers()
- {
- \Hamcrest\Util::checkAllAreMatchers(array(
- new \Hamcrest\Text\MatchesPattern('/fo+/'),
- new \Hamcrest\Core\IsEqual('foo'),
- ));
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testCheckAllAreMatchersFailsForPrimitive()
- {
- \Hamcrest\Util::checkAllAreMatchers(array(
- new \Hamcrest\Text\MatchesPattern('/fo+/'),
- 'foo',
- ));
- }
-
- private function callAndAssertCreateMatcherArray($items)
- {
- $matchers = \Hamcrest\Util::createMatcherArray($items);
- $this->assertInternalType('array', $matchers);
- $this->assertSameSize($items, $matchers);
- foreach ($matchers as $matcher) {
- $this->assertInstanceOf('\Hamcrest\Matcher', $matcher);
- }
-
- return $matchers;
- }
-
- public function testCreateMatcherArrayLeavesMatchersUntouched()
- {
- $matcher = new \Hamcrest\Text\MatchesPattern('/fo+/');
- $items = array($matcher);
- $matchers = $this->callAndAssertCreateMatcherArray($items);
- $this->assertSame($matcher, $matchers[0]);
- }
-
- public function testCreateMatcherArrayWrapsPrimitiveWithIsEqualMatcher()
- {
- $matchers = $this->callAndAssertCreateMatcherArray(array('foo'));
- $this->assertInstanceOf('Hamcrest\Core\IsEqual', $matchers[0]);
- $this->assertTrue($matchers[0]->matches('foo'));
- }
-
- public function testCreateMatcherArrayDoesntModifyOriginalArray()
- {
- $items = array('foo');
- $this->callAndAssertCreateMatcherArray($items);
- $this->assertSame('foo', $items[0]);
- }
-
- public function testCreateMatcherArrayUnwrapsSingleArrayElement()
- {
- $matchers = $this->callAndAssertCreateMatcherArray(array(array('foo')));
- $this->assertInstanceOf('Hamcrest\Core\IsEqual', $matchers[0]);
- $this->assertTrue($matchers[0]->matches('foo'));
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Xml/HasXPathTest.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Xml/HasXPathTest.php
deleted file mode 100644
index 67748871..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Xml/HasXPathTest.php
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-
- alice
- Alice Frankel
- admin
-
-
- bob
- Bob Frankel
- user
-
-
- charlie
- Charlie Chan
- user
-
-
-XML;
- self::$doc = new \DOMDocument();
- self::$doc->loadXML(self::$xml);
-
- self::$html = <<
-
- Home Page
-
-
- Heading
- Some text
-
-
-HTML;
- }
-
- protected function createMatcher()
- {
- return \Hamcrest\Xml\HasXPath::hasXPath('/users/user');
- }
-
- public function testMatchesWhenXPathIsFound()
- {
- assertThat('one match', self::$doc, hasXPath('user[id = "bob"]'));
- assertThat('two matches', self::$doc, hasXPath('user[role = "user"]'));
- }
-
- public function testDoesNotMatchWhenXPathIsNotFound()
- {
- assertThat(
- 'no match',
- self::$doc,
- not(hasXPath('user[contains(id, "frank")]'))
- );
- }
-
- public function testMatchesWhenExpressionWithoutMatcherEvaluatesToTrue()
- {
- assertThat(
- 'one match',
- self::$doc,
- hasXPath('count(user[id = "bob"])')
- );
- }
-
- public function testDoesNotMatchWhenExpressionWithoutMatcherEvaluatesToFalse()
- {
- assertThat(
- 'no matches',
- self::$doc,
- not(hasXPath('count(user[id = "frank"])'))
- );
- }
-
- public function testMatchesWhenExpressionIsEqual()
- {
- assertThat(
- 'one match',
- self::$doc,
- hasXPath('count(user[id = "bob"])', 1)
- );
- assertThat(
- 'two matches',
- self::$doc,
- hasXPath('count(user[role = "user"])', 2)
- );
- }
-
- public function testDoesNotMatchWhenExpressionIsNotEqual()
- {
- assertThat(
- 'no match',
- self::$doc,
- not(hasXPath('count(user[id = "frank"])', 2))
- );
- assertThat(
- 'one match',
- self::$doc,
- not(hasXPath('count(user[role = "admin"])', 2))
- );
- }
-
- public function testMatchesWhenContentMatches()
- {
- assertThat(
- 'one match',
- self::$doc,
- hasXPath('user/name', containsString('ice'))
- );
- assertThat(
- 'two matches',
- self::$doc,
- hasXPath('user/role', equalTo('user'))
- );
- }
-
- public function testDoesNotMatchWhenContentDoesNotMatch()
- {
- assertThat(
- 'no match',
- self::$doc,
- not(hasXPath('user/name', containsString('Bobby')))
- );
- assertThat(
- 'no matches',
- self::$doc,
- not(hasXPath('user/role', equalTo('owner')))
- );
- }
-
- public function testProvidesConvenientShortcutForHasXPathEqualTo()
- {
- assertThat('matches', self::$doc, hasXPath('count(user)', 3));
- assertThat('matches', self::$doc, hasXPath('user[2]/id', 'bob'));
- }
-
- public function testProvidesConvenientShortcutForHasXPathCountEqualTo()
- {
- assertThat('matches', self::$doc, hasXPath('user[id = "charlie"]', 1));
- }
-
- public function testMatchesAcceptsXmlString()
- {
- assertThat('accepts XML string', self::$xml, hasXPath('user'));
- }
-
- public function testMatchesAcceptsHtmlString()
- {
- assertThat('accepts HTML string', self::$html, hasXPath('body/h1', 'Heading'));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'XML or HTML document with XPath "/users/user"',
- hasXPath('/users/user')
- );
- $this->assertDescription(
- 'XML or HTML document with XPath "count(/users/user)" <2>',
- hasXPath('/users/user', 2)
- );
- $this->assertDescription(
- 'XML or HTML document with XPath "/users/user/name"'
- . ' a string starting with "Alice"',
- hasXPath('/users/user/name', startsWith('Alice'))
- );
- }
-
- public function testHasAReadableMismatchDescription()
- {
- $this->assertMismatchDescription(
- 'XPath returned no results',
- hasXPath('/users/name'),
- self::$doc
- );
- $this->assertMismatchDescription(
- 'XPath expression result was <3F>',
- hasXPath('/users/user', 2),
- self::$doc
- );
- $this->assertMismatchDescription(
- 'XPath returned ["alice", "bob", "charlie"]',
- hasXPath('/users/user/id', 'Frank'),
- self::$doc
- );
- }
-}
diff --git a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/bootstrap.php b/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/bootstrap.php
deleted file mode 100644
index bc4958d1..00000000
--- a/wordpress-dev/vendor/hamcrest/hamcrest-php/tests/bootstrap.php
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- .
-
-
-
-
-
- ../hamcrest
-
-
-
diff --git a/wordpress-dev/vendor/mockery/mockery/.phpstorm.meta.php b/wordpress-dev/vendor/mockery/mockery/.phpstorm.meta.php
deleted file mode 100644
index bb7acee5..00000000
--- a/wordpress-dev/vendor/mockery/mockery/.phpstorm.meta.php
+++ /dev/null
@@ -1,11 +0,0 @@
- "@"]));
-override(\Mockery::spy(0), map(["" => "@"]));
-override(\Mockery::namedMock(0), map(["" => "@"]));
-override(\Mockery::instanceMock(0), map(["" => "@"]));
-override(\mock(0), map(["" => "@"]));
-override(\spy(0), map(["" => "@"]));
-override(\namedMock(0), map(["" => "@"]));
\ No newline at end of file
diff --git a/wordpress-dev/vendor/mockery/mockery/.readthedocs.yml b/wordpress-dev/vendor/mockery/mockery/.readthedocs.yml
deleted file mode 100644
index 7150d7b4..00000000
--- a/wordpress-dev/vendor/mockery/mockery/.readthedocs.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-# Read the Docs configuration file for Sphinx projects
-# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
-
-# Required
-version: 2
-
-# Set the OS, Python version and other tools we might need
-build:
- os: ubuntu-22.04
- tools:
- python: "3.12"
-
-# Build documentation in the "docs/" directory with Sphinx
-sphinx:
- configuration: docs/conf.py
-
-# Build documentation in additional formats such as PDF and ePub
-formats: all
-
-# Build requirements for our documentation
-# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
-python:
- install:
- - requirements: docs/requirements.txt
diff --git a/wordpress-dev/vendor/mockery/mockery/CHANGELOG.md b/wordpress-dev/vendor/mockery/mockery/CHANGELOG.md
deleted file mode 100644
index 2180be21..00000000
--- a/wordpress-dev/vendor/mockery/mockery/CHANGELOG.md
+++ /dev/null
@@ -1,419 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file.
-
-The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-## [Unreleased]
-
-## [1.6.12] - 2024-05-15
-
-### Changed
-
-- [1420: Update `psalm-baseline.xml` ](https://github.com/mockery/mockery/pull/1420)
-- [1419: Update e2e-test.sh](https://github.com/mockery/mockery/pull/1419)
-- [1413: Upgrade `phar` tools and `phive.xml` configuration](https://github.com/mockery/mockery/pull/1413)
-
-### Fixed
-
-- [1415: Fix mocking anonymous classes](https://github.com/mockery/mockery/pull/1415)
-- [1411: Mocking final classes reports unresolvable type by PHPStan](https://github.com/mockery/mockery/issues/1411)
-- [1410: Fix PHP Doc Comments](https://github.com/mockery/mockery/pull/1410)
-
-### Security
-
-- [1417: Bump `Jinja2` from `3.1.3` to `3.1.4` fix CVE-2024-34064](https://github.com/mockery/mockery/pull/1417)
-- [1412: Bump `idna` from `3.6` to `3.7` fix CVE-2024-3651](https://github.com/mockery/mockery/pull/1412)
-
-## [1.6.11] - 2024-03-21
-
-### Fixed
-
-- [1407: Fix constants map generics doc comments](https://github.com/mockery/mockery/pull/1407)
-- [1406: Fix reserved words used to name a class, interface or trait](https://github.com/mockery/mockery/pull/1406)
-- [1403: Fix regression - partial construction with trait methods](https://github.com/mockery/mockery/pull/1403)
-- [1401: Improve `Mockery::mock()` parameter type compatibility with array typehints](https://github.com/mockery/mockery/pull/1401)
-
-## [1.6.10] - 2024-03-19
-
-### Added
-
-- [1398: [PHP 8.4] Fixes for implicit nullability deprecation](https://github.com/mockery/mockery/pull/1398)
-
-### Fixed
-
-- [1397: Fix mock method $args parameter type](https://github.com/mockery/mockery/pull/1397)
-- [1396: Fix `1.6.8` release](https://github.com/mockery/mockery/pull/1396)
-
-## [1.6.9] - 2024-03-12
-
-- [1394: Revert v1.6.8 release](https://github.com/mockery/mockery/pull/1394)
-
-## [1.6.8] - 2024-03-12
-
-- [1393: Changelog v1.6.8](https://github.com/mockery/mockery/pull/1393)
-- [1392: Refactor remaining codebase](https://github.com/mockery/mockery/pull/1392)
-- [1391: Update actions to use Node 20](https://github.com/mockery/mockery/pull/1391)
-- [1390: Update `ReadTheDocs` dependencies](https://github.com/mockery/mockery/pull/1390)
-- [1389: Refactor `library/Mockery/Matcher/*`](https://github.com/mockery/mockery/pull/1389)
-- [1388: Refactor `library/Mockery/Loader/*`](https://github.com/mockery/mockery/pull/1388)
-- [1387: Refactor `library/Mockery/CountValidator/*`](https://github.com/mockery/mockery/pull/1387)
-- [1386: Add PHPUnit 10+ attributes](https://github.com/mockery/mockery/pull/1386)
-- [1385: Update composer dependencies and clean up](https://github.com/mockery/mockery/pull/1385)
-- [1384: Update `psalm-baseline.xml`](https://github.com/mockery/mockery/pull/1384)
-- [1383: Refactor `library/helpers.php`](https://github.com/mockery/mockery/pull/1383)
-- [1382: Refactor `library/Mockery/VerificationExpectation.php`](https://github.com/mockery/mockery/pull/1382)
-- [1381: Refactor `library/Mockery/VerificationDirector.php`](https://github.com/mockery/mockery/pull/1381)
-- [1380: Refactor `library/Mockery/QuickDefinitionsConfiguration.php`](https://github.com/mockery/mockery/pull/1380)
-- [1379: Refactor `library/Mockery/Undefined.php`](https://github.com/mockery/mockery/pull/1379)
-- [1378: Refactor `library/Mockery/Reflector.php`](https://github.com/mockery/mockery/pull/1378)
-- [1377: Refactor `library/Mockery/ReceivedMethodCalls.php`](https://github.com/mockery/mockery/pull/1377)
-- [1376: Refactor `library/Mockery.php`](https://github.com/mockery/mockery/pull/1376)
-- [1375: Refactor `library/Mockery/MockInterface.php`](https://github.com/mockery/mockery/pull/1375)
-- [1374: Refactor `library/Mockery/MethodCall.php`](https://github.com/mockery/mockery/pull/1374)
-- [1373: Refactor `library/Mockery/LegacyMockInterface.php`](https://github.com/mockery/mockery/pull/1373)
-- [1372: Refactor `library/Mockery/Instantiator.php`](https://github.com/mockery/mockery/pull/1372)
-- [1371: Refactor `library/Mockery/HigherOrderMessage.php`](https://github.com/mockery/mockery/pull/1371)
-- [1370: Refactor `library/Mockery/ExpectsHigherOrderMessage.php`](https://github.com/mockery/mockery/pull/1370)
-- [1369: Refactor `library/Mockery/ExpectationInterface.php`](https://github.com/mockery/mockery/pull/1369)
-- [1368: Refactor `library/Mockery/ExpectationDirector.php`](https://github.com/mockery/mockery/pull/1368)
-- [1367: Refactor `library/Mockery/Expectation.php`](https://github.com/mockery/mockery/pull/1367)
-- [1366: Refactor `library/Mockery/Exception.php`](https://github.com/mockery/mockery/pull/1366)
-- [1365: Refactor `library/Mockery/Container.php`](https://github.com/mockery/mockery/pull/1365)
-- [1364: Refactor `library/Mockery/Configuration.php`](https://github.com/mockery/mockery/pull/1364)
-- [1363: Refactor `library/Mockery/CompositeExpectation.php`](https://github.com/mockery/mockery/pull/1363)
-- [1362: Refactor `library/Mockery/ClosureWrapper.php`](https://github.com/mockery/mockery/pull/1362)
-- [1361: Refactor `library/Mockery.php`](https://github.com/mockery/mockery/pull/1361)
-- [1360: Refactor Container](https://github.com/mockery/mockery/pull/1360)
-- [1355: Fix the namespace in the SubsetTest class](https://github.com/mockery/mockery/pull/1355)
-- [1354: Add array-like objects support to hasKey/hasValue matchers](https://github.com/mockery/mockery/pull/1354)
-
-## [1.6.7] - 2023-12-09
-
-### Added
-
-- [#1338: Support PHPUnit constraints as matchers](https://github.com/mockery/mockery/pull/1338)
-- [#1336: Add factory methods for `IsEqual` and `IsSame` matchers](https://github.com/mockery/mockery/pull/1336)
-
-### Fixed
-
-- [#1346: Fix test namespaces](https://github.com/mockery/mockery/pull/1346)
-- [#1343: Update documentation default theme and build version](https://github.com/mockery/mockery/pull/1343)
-- [#1329: Prevent `shouldNotReceive` from getting overridden by invocation count methods](https://github.com/mockery/mockery/pull/1329)
-
-### Changed
-
-- [#1351: Update psalm-baseline.xml](https://github.com/mockery/mockery/pull/1351)
-- [#1350: Changelog v1.6.7](https://github.com/mockery/mockery/pull/1350)
-- [#1349: Cleanup](https://github.com/mockery/mockery/pull/1349)
-- [#1348: Update makefile](https://github.com/mockery/mockery/pull/1348)
-- [#1347: Bump phars dependencies](https://github.com/mockery/mockery/pull/1347)
-- [#1344: Disabled travis-ci and sensiolabs webhooks](https://github.com/mockery/mockery/issues/1344)
-- [#1342: Add `.readthedocs.yml` configuration](https://github.com/mockery/mockery/pull/1342)
-- [#1340: docs: Remove misplaced semicolumn from code snippet](https://github.com/mockery/mockery/pull/1340)
-
-## 1.6.6 (2023-08-08)
-
-- [#1327: Changelog v1.6.6](https://github.com/mockery/mockery/pull/1327)
-- [#1325: Keep the file that caused an error for inspection](https://github.com/mockery/mockery/pull/1325)
-- [#1324: Fix Regression - Replace `+` Array Union Operator with `array_merge`](https://github.com/mockery/mockery/pull/1324)
-
-## 1.6.5 (2023-08-05)
-
-- [#1322: Changelog v1.6.5](https://github.com/mockery/mockery/pull/1322)
-- [#1321: Autoload Test Fixtures Based on PHP Runtime Version](https://github.com/mockery/mockery/pull/1321)
-- [#1320: Clean up mocks on destruct](https://github.com/mockery/mockery/pull/1320)
-- [#1318: Fix misspelling in docs](https://github.com/mockery/mockery/pull/1318)
-- [#1316: Fix compatibility issues with PHP 7.3](https://github.com/mockery/mockery/pull/1316)
-- [#1315: Fix PHP 7.3 issues](https://github.com/mockery/mockery/issues/1315)
-- [#1314: Add Security Policy](https://github.com/mockery/mockery/pull/1314)
-- [#1313: Type declaration for `iterable|object`.](https://github.com/mockery/mockery/pull/1313)
-- [#1312: Mock disjunctive normal form types](https://github.com/mockery/mockery/pull/1312)
-- [#1299: Test PHP `8.3` language features](https://github.com/mockery/mockery/pull/1299)
-
-## 1.6.4 (2023-07-19)
-
-- [#1308: Changelog v1.6.4](https://github.com/mockery/mockery/pull/1308)
-- [#1307: Revert `src` to `library` for `1.6.x`](https://github.com/mockery/mockery/pull/1307)
-
-## 1.6.3 (2023-07-18)
-
-- [#1304: Remove `extra.branch-alias` and update composer information](https://github.com/mockery/mockery/pull/1304)
-- [#1303: Update `.gitattributes`](https://github.com/mockery/mockery/pull/1303)
-- [#1302: Changelog v1.6.3](https://github.com/mockery/mockery/pull/1302)
-- [#1301: Fix mocking classes with `new` initializers in method and attribute params on PHP 8.1](https://github.com/mockery/mockery/pull/1301)
-- [#1298: Update default repository branch to latest release branch](https://github.com/mockery/mockery/issues/1298)
-- [#1297: Update `Makefile` for contributors](https://github.com/mockery/mockery/pull/1297)
-- [#1294: Correct return types of Mock for phpstan](https://github.com/mockery/mockery/pull/1294)
-- [#1290: Rename directory `library` to `src`](https://github.com/mockery/mockery/pull/1290)
-- [#1288: Update codecov workflow](https://github.com/mockery/mockery/pull/1288)
-- [#1287: Update psalm configuration and workflow](https://github.com/mockery/mockery/pull/1287)
-- [#1286: Update phpunit workflow](https://github.com/mockery/mockery/pull/1286)
-- [#1285: Enforce the minimum required PHP version](https://github.com/mockery/mockery/pull/1285)
-- [#1283: Update license and copyright information](https://github.com/mockery/mockery/pull/1283)
-- [#1282: Create `COPYRIGHT.md` file](https://github.com/mockery/mockery/pull/1282)
-- [#1279: Bump `vimeo/psalm` from `5.9.0` to `5.12.0`](https://github.com/mockery/mockery/pull/1279)
-
-## 1.6.2 (2023-06-07)
-
-- [#1276: Add `IsEqual` Argument Matcher](https://github.com/mockery/mockery/pull/1276)
-- [#1275: Add `IsSame` Argument Matcher](https://github.com/mockery/mockery/pull/1275)
-- [#1274: Update composer branch alias](https://github.com/mockery/mockery/pull/1274)
-- [#1271: Support PHP 8.2 `true` Literal Type](https://github.com/mockery/mockery/pull/1271)
-- [#1270: Support PHP 8.0 `false` Literal Type](https://github.com/mockery/mockery/pull/1270)
-
-## 1.6.1 (2023-06-05)
-
-- [#1267 Drops support for PHP <7.4](https://github.com/mockery/mockery/pull/1267)
-- [#1192 Updated changelog for version 1.5.1 to include changes from #1180](https://github.com/mockery/mockery/pull/1192)
-- [#1196 Update example in README.md](https://github.com/mockery/mockery/pull/1196)
-- [#1199 Fix function parameter default enum value](https://github.com/mockery/mockery/pull/1199)
-- [#1205 Deal with null type in PHP8.2](https://github.com/mockery/mockery/pull/1205)
-- [#1208 Import MockeryTestCase fully qualified class name](https://github.com/mockery/mockery/pull/1208)
-- [#1210 Add support for target class attributes](https://github.com/mockery/mockery/pull/1210)
-- [#1212 docs: Add missing comma](https://github.com/mockery/mockery/pull/1212)
-- [#1216 Fixes code generation for intersection types](https://github.com/mockery/mockery/pull/1216)
-- [#1217 Add MockeryExceptionInterface](https://github.com/mockery/mockery/pull/1217)
-- [#1218 tidy: avoids require](https://github.com/mockery/mockery/pull/1218)
-- [#1222 Add .editorconfig](https://github.com/mockery/mockery/pull/1222)
-- [#1225 Switch to PSR-4 autoload](https://github.com/mockery/mockery/pull/1225)
-- [#1226 Refactoring risky tests](https://github.com/mockery/mockery/pull/1226)
-- [#1230 Add vimeo/psalm and psalm/plugin-phpunit](https://github.com/mockery/mockery/pull/1230)
-- [#1232 Split PHPUnit TestSuites for PHP 8.2](https://github.com/mockery/mockery/pull/1232)
-- [#1233 Bump actions/checkout to v3](https://github.com/mockery/mockery/pull/1233)
-- [#1234 Bump nick-invision/retry to v2](https://github.com/mockery/mockery/pull/1234)
-- [#1235 Setup Codecov for code coverage](https://github.com/mockery/mockery/pull/1235)
-- [#1236 Add Psalm CI Check](https://github.com/mockery/mockery/pull/1236)
-- [#1237 Unignore composer.lock file](https://github.com/mockery/mockery/pull/1237)
-- [#1239 Prevent CI run duplication](https://github.com/mockery/mockery/pull/1239)
-- [#1241 Add PHPUnit workflow for PHP 8.3](https://github.com/mockery/mockery/pull/1241)
-- [#1244 Improve ClassAttributesPass for Dynamic Properties](https://github.com/mockery/mockery/pull/1244)
-- [#1245 Deprecate hamcrest/hamcrest-php package](https://github.com/mockery/mockery/pull/1245)
-- [#1246 Add BUG_REPORT.yml Issue template](https://github.com/mockery/mockery/pull/1246)
-- [#1250 Deprecate PHP <=8.0](https://github.com/mockery/mockery/issues/1250)
-- [#1253 Prevent array to string conversion when serialising a Subset matcher](https://github.com/mockery/mockery/issues/1253)
-
-## 1.6.0 (2023-06-05) [DELETED]
-
-This tag was deleted due to a mistake with the composer.json PHP version
-constraint, see [#1266](https://github.com/mockery/mockery/issues/1266)
-
-## 1.3.6 (2022-09-07)
-
-- PHP 8.2 | Fix "Use of "parent" in callables is deprecated" notice #1169
-
-## 1.5.1 (2022-09-07)
-
-- [PHP 8.2] Various tests: explicitly declare properties #1170
-- [PHP 8.2] Fix "Use of "parent" in callables is deprecated" notice #1169
-- [PHP 8.1] Support intersection types #1164
-- Handle final `__toString` methods #1162
-- Only count assertions on expectations which can fail a test #1180
-
-## 1.5.0 (2022-01-20)
-
-- Override default call count expectations via expects() #1146
-- Mock methods with static return types #1157
-- Mock methods with mixed return type #1156
-- Mock classes with new in initializers on PHP 8.1 #1160
-- Removes redundant PHPUnitConstraint #1158
-
-## 1.4.4 (2021-09-13)
-
-- Fixes auto-generated return values #1144
-- Adds support for tentative types #1130
-- Fixes for PHP 8.1 Support (#1130 and #1140)
-- Add method that allows defining a set of arguments the mock should yield #1133
-- Added option to configure default matchers for objects `\Mockery::getConfiguration()->setDefaultMatcher($class, $matcherClass)` #1120
-
-## 1.3.5 (2021-09-13)
-
-- Fix auto-generated return values with union types #1143
-- Adds support for tentative types #1130
-- Fixes for PHP 8.1 Support (#1130 and #1140)
-- Add method that allows defining a set of arguments the mock should yield #1133
-- Added option to configure default matchers for objects `\Mockery::getConfiguration()->setDefaultMatcher($class, $matcherClass)` #1120
-
-## 1.4.3 (2021-02-24)
-
-- Fixes calls to fetchMock before initialisation #1113
-- Allow shouldIgnoreMissing() to behave in a recursive fashion #1097
-- Custom object formatters #766 (Needs Docs)
-- Fix crash on a union type including null #1106
-
-## 1.3.4 (2021-02-24)
-
-- Fixes calls to fetchMock before initialisation #1113
-- Fix crash on a union type including null #1106
-
-## 1.4.2 (2020-08-11)
-
-- Fix array to string conversion in ConstantsPass (#1086)
-- Fixed nullable PHP 8.0 union types (#1088, #1089)
-- Fixed support for PHP 8.0 parent type (#1088, #1089)
-- Fixed PHP 8.0 mixed type support (#1088, #1089)
-- Fixed PHP 8.0 union return types (#1088, #1089)
-
-## 1.4.1 (2020-07-09)
-
-- Allow quick definitions to use 'at least once' expectation
- `\Mockery::getConfiguration()->getQuickDefinitions()->shouldBeCalledAtLeastOnce(true)` (#1056)
-- Added provisional support for PHP 8.0 (#1068, #1072,#1079)
-- Fix mocking methods with iterable return type without specifying a return value (#1075)
-
-## 1.3.3 (2020-08-11)
-
-- Fix array to string conversion in ConstantsPass (#1086)
-- Fixed nullable PHP 8.0 union types (#1088)
-- Fixed support for PHP 8.0 parent type (#1088)
-- Fixed PHP 8.0 mixed type support (#1088)
-- Fixed PHP 8.0 union return types (#1088)
-
-## 1.3.2 (2020-07-09)
-
-- Fix mocking with anonymous classes (#1039)
-- Fix andAnyOthers() to properly match earlier expectations (#1051)
-- Added provisional support for PHP 8.0 (#1068, #1072,#1079)
-- Fix mocking methods with iterable return type without specifying a return value (#1075)
-
-## 1.4.0 (2020-05-19)
-
-- Fix mocking with anonymous classes (#1039)
-- Fix andAnyOthers() to properly match earlier expectations (#1051)
-- Drops support for PHP < 7.3 and PHPUnit < 8 (#1059)
-
-## 1.3.1 (2019-12-26)
-
-- Revert improved exception debugging due to BC breaks (#1032)
-
-## 1.3.0 (2019-11-24)
-
-- Added capture `Mockery::capture` convenience matcher (#1020)
-- Added `andReturnArg` to echo back an argument passed to a an expectation (#992)
-- Improved exception debugging (#1000)
-- Fixed `andSet` to not reuse properties between mock objects (#1012)
-
-## 1.2.4 (2019-09-30)
-
-- Fix a bug introduced with previous release, for empty method definition lists (#1009)
-
-## 1.2.3 (2019-08-07)
-
-- Allow mocking classes that have allows and expects methods (#868)
-- Allow passing thru __call method in all mock types (experimental) (#969)
-- Add support for `!` to blacklist methods (#959)
-- Added `withSomeOfArgs` to partial match a list of args (#967)
-- Fix chained demeter calls with type hint (#956)
-
-## 1.2.2 (2019-02-13)
-
-- Fix a BC breaking change for PHP 5.6/PHPUnit 5.7.27 (#947)
-
-## 1.2.1 (2019-02-07)
-
-- Support for PHPUnit 8 (#942)
-- Allow mocking static methods called on instance (#938)
-
-## 1.2.0 (2018-10-02)
-
-- Starts counting default expectations towards count (#910)
-- Adds workaround for some HHVM return types (#909)
-- Adds PhpStorm metadata support for autocomplete etc (#904)
-- Further attempts to support multiple PHPUnit versions (#903)
-- Allows setting constructor expectations on instance mocks (#900)
-- Adds workaround for HHVM memoization decorator (#893)
-- Adds experimental support for callable spys (#712)
-
-## 1.1.0 (2018-05-08)
-
-- Allows use of string method names in allows and expects (#794)
-- Finalises allows and expects syntax in API (#799)
-- Search for handlers in a case instensitive way (#801)
-- Deprecate allowMockingMethodsUnnecessarily (#808)
-- Fix risky tests (#769)
-- Fix namespace in TestListener (#812)
-- Fixed conflicting mock names (#813)
-- Clean elses (#819)
-- Updated protected method mocking exception message (#826)
-- Map of constants to mock (#829)
-- Simplify foreach with `in_array` function (#830)
-- Typehinted return value on Expectation#verify. (#832)
-- Fix shouldNotHaveReceived with HigherOrderMessage (#842)
-- Deprecates shouldDeferMissing (#839)
-- Adds support for return type hints in Demeter chains (#848)
-- Adds shouldNotReceive to composite expectation (#847)
-- Fix internal error when using --static-backup (#845)
-- Adds `andAnyOtherArgs` as an optional argument matcher (#860)
-- Fixes namespace qualifying with namespaced named mocks (#872)
-- Added possibility to add Constructor-Expections on hard dependencies, read: Mockery::mock('overload:...') (#781)
-
-## 1.0.0 (2017-09-06)
-
-- Destructors (`__destruct`) are stubbed out where it makes sense
-- Allow passing a closure argument to `withArgs()` to validate multiple arguments at once.
-- `Mockery\Adapter\Phpunit\TestListener` has been rewritten because it
- incorrectly marked some tests as risky. It will no longer verify mock
- expectations but instead check that tests do that themselves. PHPUnit 6 is
- required if you want to use this fail safe.
-- Removes SPL Class Loader
-- Removed object recorder feature
-- Bumped minimum PHP version to 5.6
-- `andThrow` will now throw anything `\Throwable`
-- Adds `allows` and `expects` syntax
-- Adds optional global helpers for `mock`, `namedMock` and `spy`
-- Adds ability to create objects using traits
-- `Mockery\Matcher\MustBe` was deprecated
-- Marked `Mockery\MockInterface` as internal
-- Subset matcher matches recursively
-- BC BREAK - Spies return `null` by default from ignored (non-mocked) methods with nullable return type
-- Removed extracting getter methods of object instances
-- BC BREAK - Remove implicit regex matching when trying to match string arguments, introduce `\Mockery::pattern()` when regex matching is needed
-- Fix Mockery not getting closed in cases of failing test cases
-- Fix Mockery not setting properties on overloaded instance mocks
-- BC BREAK - Fix Mockery not trying default expectations if there is any concrete expectation
-- BC BREAK - Mockery's PHPUnit integration will mark a test as risky if it
- thinks one it's exceptions has been swallowed in PHPUnit > 5.7.6. Use `$e->dismiss()` to dismiss.
-
-## 0.9.4 (XXXX-XX-XX)
-
-- `shouldIgnoreMissing` will respect global `allowMockingNonExistentMethods`
- config
-- Some support for variadic parameters
-- Hamcrest is now a required dependency
-- Instance mocks now respect `shouldIgnoreMissing` call on control instance
-- This will be the *last version to support PHP 5.3*
-- Added `Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration` trait
-- Added `makePartial` to `Mockery\MockInterface` as it was missing
-
-## 0.9.3 (2014-12-22)
-
-- Added a basic spy implementation
-- Added `Mockery\Adapter\Phpunit\MockeryTestCase` for more reliable PHPUnit
- integration
-
-## 0.9.2 (2014-09-03)
-
-- Some workarounds for the serialisation problems created by changes to PHP in 5.5.13, 5.4.29,
- 5.6.
-- Demeter chains attempt to reuse doubles as they see fit, so for foo->bar and
- foo->baz, we'll attempt to use the same foo
-
-## 0.9.1 (2014-05-02)
-
-- Allow specifying consecutive exceptions to be thrown with `andThrowExceptions`
-- Allow specifying methods which can be mocked when using
- `Mockery\Configuration::allowMockingNonExistentMethods(false)` with
- `Mockery\MockInterface::shouldAllowMockingMethod($methodName)`
-- Added andReturnSelf method: `$mock->shouldReceive("foo")->andReturnSelf()`
-- `shouldIgnoreMissing` now takes an optional value that will be return instead
- of null, e.g. `$mock->shouldIgnoreMissing($mock)`
-
-## 0.9.0 (2014-02-05)
-
-- Allow mocking classes with final __wakeup() method
-- Quick definitions are now always `byDefault`
-- Allow mocking of protected methods with `shouldAllowMockingProtectedMethods`
-- Support official Hamcrest package
-- Generator completely rewritten
-- Easily create named mocks with namedMock
diff --git a/wordpress-dev/vendor/mockery/mockery/CONTRIBUTING.md b/wordpress-dev/vendor/mockery/mockery/CONTRIBUTING.md
deleted file mode 100644
index d828fb30..00000000
--- a/wordpress-dev/vendor/mockery/mockery/CONTRIBUTING.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# Contributing
-
-
-We'd love you to help out with mockery and no contribution is too small.
-
-
-## Reporting Bugs
-
-Issues can be reported on the [issue tracker](https://github.com/mockery/mockery/issues).
-Please try and report any bugs with a minimal reproducible example, it will make things easier for other
-contributors and your problems will hopefully be resolved quickly.
-
-
-## Requesting Features
-
-We're always interested to hear about your ideas and you can request features by
-creating a ticket in the [issue tracker](https://github.com/mockery/mockery/issues). We can't always guarantee
-someone will jump on it straight away, but putting it out there to see if anyone
-else is interested is a good idea.
-
-Likewise, if a feature you would like is already listed in
-the issue tracker, add a :+1: so that other contributors know it's a feature
-that would help others.
-
-
-## Contributing code and documentation
-
-We loosely follow the
-[PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md)
-and
-[PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) coding standards,
-but we'll probably merge any code that looks close enough.
-
-* Fork the [repository](https://github.com/mockery/mockery) on GitHub
-* Add the code for your feature or bug
-* Add some tests for your feature or bug
-* Optionally, but preferably, write some documentation
-* Optionally, update the CHANGELOG.md file with your feature or
- [BC](http://en.wikipedia.org/wiki/Backward_compatibility) break
-* Send a [Pull Request](https://help.github.com/articles/creating-a-pull-request) to the
- correct target branch (see below)
-
-If you have a big change or would like to discuss something, create an issue in
-the [issue tracker](https://github.com/mockery/mockery/issues) or jump in to \#mockery on freenode
-
-
-Any code you contribute must be licensed under the [BSD 3-Clause License](http://opensource.org/licenses/BSD-3-Clause).
-
-## Target Branch
-
-Mockery may have several active branches at any one time and roughly follows a
-[Git Branching Model](https://igor.io/2013/10/21/git-branching-model.html).
-Generally, if you're developing a new feature, you want to be targeting the
-master branch, if it's a bug fix, you want to be targeting a release branch,
-e.g. 0.8.
-
-
-## Testing Mockery
-
-To run the unit tests for Mockery, clone the git repository, download Composer using
-the instructions at [http://getcomposer.org/download/](http://getcomposer.org/download/),
-then install the dependencies with `php /path/to/composer.phar install`.
-
-This will install the required dev dependencies and create the
-autoload files required by the unit tests. You may run the `vendor/bin/phpunit` command
-to run the unit tests. If everything goes to plan, there will be no failed tests!
-
-
-## Debugging Mockery
-
-Mockery and its code generation can be difficult to debug. A good start is to
-use the `RequireLoader`, which will dump the code generated by mockery to a file
-before requiring it, rather than using eval. This will help with stack traces,
-and you will be able to open the mock class in your editor.
-
-``` php
-
-// tests/bootstrap.php
-
-Mockery::setLoader(new Mockery\Loader\RequireLoader(sys_get_temp_dir()));
-
-```
diff --git a/wordpress-dev/vendor/mockery/mockery/COPYRIGHT.md b/wordpress-dev/vendor/mockery/mockery/COPYRIGHT.md
deleted file mode 100644
index b3b19bc4..00000000
--- a/wordpress-dev/vendor/mockery/mockery/COPYRIGHT.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright
-
-- Copyright (c) [2009](https://github.com/mockery/mockery/commit/1d96f88142abe804ab9e893a5f07933f63e9bff9), [Pádraic Brady](https://github.com/padraic)
-- Copyright (c) [2011](https://github.com/mockery/mockery/commit/94dbb63aab37c659f63ea6e34acc6958928b0f59), [Robert Basic](https://github.com/robertbasic)
-- Copyright (c) [2012](https://github.com/mockery/mockery/commit/64e3ad6960eb3202b5b91b91a4ef1cf6252f0fef), [Dave Marshall](https://github.com/davedevelopment)
-- Copyright (c) [2013](https://github.com/mockery/mockery/commit/270ddd0bd051251e36a5688c52fc2638a097b110), [Graham Campbell](https://github.com/GrahamCampbell)
-- Copyright (c) [2017](https://github.com/mockery/mockery/commit/ba28b84c416b95924886bbd64a6a2f68e863536a), [Nathanael Esayeas](https://github.com/ghostwriter)
diff --git a/wordpress-dev/vendor/mockery/mockery/LICENSE b/wordpress-dev/vendor/mockery/mockery/LICENSE
deleted file mode 100644
index 1a9030ce..00000000
--- a/wordpress-dev/vendor/mockery/mockery/LICENSE
+++ /dev/null
@@ -1,29 +0,0 @@
-BSD 3-Clause License
-
-Copyright (c) 2009-2023, Pádraic Brady
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-3. Neither the name of the copyright holder nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/wordpress-dev/vendor/mockery/mockery/README.md b/wordpress-dev/vendor/mockery/mockery/README.md
deleted file mode 100644
index 26977342..00000000
--- a/wordpress-dev/vendor/mockery/mockery/README.md
+++ /dev/null
@@ -1,294 +0,0 @@
-Mockery
-=======
-
-[](https://github.com/mockery/mockery/actions)
-[](https://www.php.net/supported-versions)
-[](https://codecov.io/gh/mockery/mockery)
-[](https://shepherd.dev/github/mockery/mockery)
-[](https://packagist.org/packages/mockery/mockery)
-[](https://packagist.org/packages/mockery/mockery)
-
-Mockery is a simple yet flexible PHP mock object framework for use in unit testing
-with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a
-test double framework with a succinct API capable of clearly defining all possible
-object operations and interactions using a human readable Domain Specific Language
-(DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library,
-Mockery is easy to integrate with PHPUnit and can operate alongside
-phpunit-mock-objects without the World ending.
-
-Mockery is released under a New BSD License.
-
-## Installation
-
-To install Mockery, run the command below and you will get the latest
-version
-
-```sh
-composer require --dev mockery/mockery
-```
-
-## Documentation
-
-In older versions, this README file was the documentation for Mockery. Over time
-we have improved this, and have created an extensive documentation for you. Please
-use this README file as a starting point for Mockery, but do read the documentation
-to learn how to use Mockery.
-
-The current version can be seen at [docs.mockery.io](http://docs.mockery.io).
-
-## PHPUnit Integration
-
-Mockery ships with some helpers if you are using PHPUnit. You can extend the
-[`Mockery\Adapter\Phpunit\MockeryTestCase`](library/Mockery/Adapter/Phpunit/MockeryTestCase.php)
-class instead of `PHPUnit\Framework\TestCase`, or if you are already using a
-custom base class for your tests, take a look at the traits available in the
-[`Mockery\Adapter\Phpunit`](library/Mockery/Adapter/Phpunit) namespace.
-
-## Test Doubles
-
-Test doubles (often called mocks) simulate the behaviour of real objects. They are
-commonly utilised to offer test isolation, to stand in for objects which do not
-yet exist, or to allow for the exploratory design of class APIs without
-requiring actual implementation up front.
-
-The benefits of a test double framework are to allow for the flexible generation
-and configuration of test doubles. They allow the setting of expected method calls
-and/or return values using a flexible API which is capable of capturing every
-possible real object behaviour in way that is stated as close as possible to a
-natural language description. Use the `Mockery::mock` method to create a test
-double.
-
-``` php
-$double = Mockery::mock();
-```
-
-If you need Mockery to create a test double to satisfy a particular type hint,
-you can pass the type to the `mock` method.
-
-``` php
-class Book {}
-
-interface BookRepository {
- function find($id): Book;
- function findAll(): array;
- function add(Book $book): void;
-}
-
-$double = Mockery::mock(BookRepository::class);
-```
-
-A detailed explanation of creating and working with test doubles is given in the
-documentation, [Creating test doubles](http://docs.mockery.io/en/latest/reference/creating_test_doubles.html)
-section.
-
-## Method Stubs 🎫
-
-A method stub is a mechanism for having your test double return canned responses
-to certain method calls. With stubs, you don't care how many times, if at all,
-the method is called. Stubs are used to provide indirect input to the system
-under test.
-
-``` php
-$double->allows()->find(123)->andReturns(new Book());
-
-$book = $double->find(123);
-```
-
-If you have used Mockery before, you might see something new in the example
-above — we created a method stub using `allows`, instead of the "old"
-`shouldReceive` syntax. This is a new feature of Mockery v1, but fear not,
-the trusty ol' `shouldReceive` is still here.
-
-For new users of Mockery, the above example can also be written as:
-
-``` php
-$double->shouldReceive('find')->with(123)->andReturn(new Book());
-$book = $double->find(123);
-```
-
-If your stub doesn't require specific arguments, you can also use this shortcut
-for setting up multiple calls at once:
-
-``` php
-$double->allows([
- "findAll" => [new Book(), new Book()],
-]);
-```
-
-or
-
-``` php
-$double->shouldReceive('findAll')
- ->andReturn([new Book(), new Book()]);
-```
-
-You can also use this shortcut, which creates a double and sets up some stubs in
-one call:
-
-``` php
-$double = Mockery::mock(BookRepository::class, [
- "findAll" => [new Book(), new Book()],
-]);
-```
-
-## Method Call Expectations 📲
-
-A Method call expectation is a mechanism to allow you to verify that a
-particular method has been called. You can specify the parameters and you can
-also specify how many times you expect it to be called. Method call expectations
-are used to verify indirect output of the system under test.
-
-``` php
-$book = new Book();
-
-$double = Mockery::mock(BookRepository::class);
-$double->expects()->add($book);
-```
-
-During the test, Mockery accept calls to the `add` method as prescribed.
-After you have finished exercising the system under test, you need to
-tell Mockery to check that the method was called as expected, using the
-`Mockery::close` method. One way to do that is to add it to your `tearDown`
-method in PHPUnit.
-
-``` php
-
-public function tearDown()
-{
- Mockery::close();
-}
-```
-
-The `expects()` method automatically sets up an expectation that the method call
-(and matching parameters) is called **once and once only**. You can choose to change
-this if you are expecting more calls.
-
-``` php
-$double->expects()->add($book)->twice();
-```
-
-If you have used Mockery before, you might see something new in the example
-above — we created a method expectation using `expects`, instead of the "old"
-`shouldReceive` syntax. This is a new feature of Mockery v1, but same as with
-`allows` in the previous section, it can be written in the "old" style.
-
-For new users of Mockery, the above example can also be written as:
-
-``` php
-$double->shouldReceive('find')
- ->with(123)
- ->once()
- ->andReturn(new Book());
-$book = $double->find(123);
-```
-
-A detailed explanation of declaring expectations on method calls, please
-read the documentation, the [Expectation declarations](http://docs.mockery.io/en/latest/reference/expectations.html)
-section. After that, you can also learn about the new `allows` and `expects` methods
-in the [Alternative shouldReceive syntax](http://docs.mockery.io/en/latest/reference/alternative_should_receive_syntax.html)
-section.
-
-It is worth mentioning that one way of setting up expectations is no better or worse
-than the other. Under the hood, `allows` and `expects` are doing the same thing as
-`shouldReceive`, at times in "less words", and as such it comes to a personal preference
-of the programmer which way to use.
-
-## Test Spies 🕵️
-
-By default, all test doubles created with the `Mockery::mock` method will only
-accept calls that they have been configured to `allow` or `expect` (or in other words,
-calls that they `shouldReceive`). Sometimes we don't necessarily care about all of the
-calls that are going to be made to an object. To facilitate this, we can tell Mockery
-to ignore any calls it has not been told to expect or allow. To do so, we can tell a
-test double `shouldIgnoreMissing`, or we can create the double using the `Mocker::spy`
-shortcut.
-
-``` php
-// $double = Mockery::mock()->shouldIgnoreMissing();
-$double = Mockery::spy();
-
-$double->foo(); // null
-$double->bar(); // null
-```
-
-Further to this, sometimes we want to have the object accept any call during the test execution
-and then verify the calls afterwards. For these purposes, we need our test
-double to act as a Spy. All mockery test doubles record the calls that are made
-to them for verification afterwards by default:
-
-``` php
-$double->baz(123);
-
-$double->shouldHaveReceived()->baz(123); // null
-$double->shouldHaveReceived()->baz(12345); // Uncaught Exception Mockery\Exception\InvalidCountException...
-```
-
-Please refer to the [Spies](http://docs.mockery.io/en/latest/reference/spies.html) section
-of the documentation to learn more about the spies.
-
-## Utilities 🔌
-
-### Global Helpers
-
-Mockery ships with a handful of global helper methods, you just need to ask
-Mockery to declare them.
-
-``` php
-Mockery::globalHelpers();
-
-$mock = mock(Some::class);
-$spy = spy(Some::class);
-
-$spy->shouldHaveReceived()
- ->foo(anyArgs());
-```
-
-All of the global helpers are wrapped in a `!function_exists` call to avoid
-conflicts. So if you already have a global function called `spy`, Mockery will
-silently skip the declaring its own `spy` function.
-
-### Testing Traits
-
-As Mockery ships with code generation capabilities, it was trivial to add
-functionality allowing users to create objects on the fly that use particular
-traits. Any abstract methods defined by the trait will be created and can have
-expectations or stubs configured like normal Test Doubles.
-
-``` php
-trait Foo {
- function foo() {
- return $this->doFoo();
- }
-
- abstract function doFoo();
-}
-
-$double = Mockery::mock(Foo::class);
-$double->allows()->doFoo()->andReturns(123);
-$double->foo(); // int(123)
-```
-
-## Versioning
-
-The Mockery team attempts to adhere to [Semantic Versioning](http://semver.org),
-however, some of Mockery's internals are considered private and will be open to
-change at any time. Just because a class isn't final, or a method isn't marked
-private, does not mean it constitutes part of the API we guarantee under the
-versioning scheme.
-
-### Alternative Runtimes
-
-Mockery 1.3 was the last version to support HHVM 3 and PHP 5. There is no support for HHVM 4+.
-
-## A new home for Mockery
-
-⚠️️ Update your remotes! Mockery has transferred to a new location. While it was once
-at `padraic/mockery`, it is now at `mockery/mockery`. While your
-existing repositories will redirect transparently for any operations, take some
-time to transition to the new URL.
-```sh
-$ git remote set-url upstream https://github.com/mockery/mockery.git
-```
-Replace `upstream` with the name of the remote you use locally; `upstream` is commonly
-used but you may be using something else. Run `git remote -v` to see what you're actually
-using.
diff --git a/wordpress-dev/vendor/mockery/mockery/SECURITY.md b/wordpress-dev/vendor/mockery/mockery/SECURITY.md
deleted file mode 100644
index cc8790e0..00000000
--- a/wordpress-dev/vendor/mockery/mockery/SECURITY.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Security Policy
-
-## Supported Versions
-
-| Version | Supported |
-| ------- | ------------------ |
-| `2.0.x` | `yes` |
-| `1.6.x` | `yes` |
-| `1.5.x` | `yes` |
-| `<1.5.x` | `no` |
-
-## Reporting a Vulnerability
-
-To report a security vulnerability, please [`Open a draft security advisory`](https://github.com/mockery/mockery/security/advisories/new) so we can coordinate the fix and disclosure.
diff --git a/wordpress-dev/vendor/mockery/mockery/composer.json b/wordpress-dev/vendor/mockery/mockery/composer.json
deleted file mode 100644
index 6f03cf2d..00000000
--- a/wordpress-dev/vendor/mockery/mockery/composer.json
+++ /dev/null
@@ -1,119 +0,0 @@
-{
- "name": "mockery/mockery",
- "description": "Mockery is a simple yet flexible PHP mock object framework",
- "license": "BSD-3-Clause",
- "type": "library",
- "keywords": [
- "bdd",
- "library",
- "mock",
- "mock objects",
- "mockery",
- "stub",
- "tdd",
- "test",
- "test double",
- "testing"
- ],
- "authors": [
- {
- "name": "Pádraic Brady",
- "email": "padraic.brady@gmail.com",
- "homepage": "https://github.com/padraic",
- "role": "Author"
- },
- {
- "name": "Dave Marshall",
- "email": "dave.marshall@atstsolutions.co.uk",
- "homepage": "https://davedevelopment.co.uk",
- "role": "Developer"
- },
- {
- "name": "Nathanael Esayeas",
- "email": "nathanael.esayeas@protonmail.com",
- "homepage": "https://github.com/ghostwriter",
- "role": "Lead Developer"
- }
- ],
- "homepage": "https://github.com/mockery/mockery",
- "support": {
- "issues": "https://github.com/mockery/mockery/issues",
- "source": "https://github.com/mockery/mockery",
- "docs": "https://docs.mockery.io/",
- "rss": "https://github.com/mockery/mockery/releases.atom",
- "security": "https://github.com/mockery/mockery/security/advisories"
- },
- "require": {
- "php": ">=7.3",
- "lib-pcre": ">=7.0",
- "hamcrest/hamcrest-php": "^2.0.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^8.5 || ^9.6.17",
- "symplify/easy-coding-standard": "^12.1.14"
- },
- "conflict": {
- "phpunit/phpunit": "<8.0"
- },
- "autoload": {
- "psr-4": {
- "Mockery\\": "library/Mockery"
- },
- "files": [
- "library/helpers.php",
- "library/Mockery.php"
- ]
- },
- "autoload-dev": {
- "psr-4": {
- "Fixture\\": "tests/Fixture/",
- "Mockery\\Tests\\Unit\\": "tests/Unit",
- "test\\": "tests/"
- },
- "files": [
- "fixtures/autoload.php",
- "vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php"
- ]
- },
- "config": {
- "optimize-autoloader": true,
- "platform": {
- "php": "7.3.999"
- },
- "preferred-install": "dist",
- "sort-packages": true
- },
- "scripts": {
- "check": [
- "@composer validate",
- "@ecs",
- "@test"
- ],
- "docs": "vendor/bin/phpdoc -d library -t docs/api",
- "ecs": [
- "@ecs:fix",
- "@ecs:check"
- ],
- "ecs:check": "ecs check --clear-cache || true",
- "ecs:fix": "ecs check --clear-cache --fix",
- "phive": [
- "tools/phive update --force-accept-unsigned",
- "tools/phive purge"
- ],
- "phpunit": "vendor/bin/phpunit --do-not-cache-result --colors=always",
- "phpunit:coverage": "@phpunit --coverage-clover=coverage.xml",
- "psalm": "tools/psalm --no-cache --show-info=true",
- "psalm:alter": "tools/psalm --no-cache --alter --allow-backwards-incompatible-changes=false --safe-types",
- "psalm:baseline": "@psalm --no-diff --set-baseline=psalm-baseline.xml",
- "psalm:dry-run": "@psalm:alter --issues=all --dry-run",
- "psalm:fix": "@psalm:alter --issues=UnnecessaryVarAnnotation,MissingPureAnnotation,MissingImmutableAnnotation",
- "psalm:security": "@psalm --no-diff --taint-analysis",
- "psalm:shepherd": "@psalm --no-diff --shepherd --stats --output-format=github",
- "test": [
- "@phpunit --stop-on-defect",
- "@psalm",
- "@psalm:security",
- "@psalm:dry-run"
- ]
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/composer.lock b/wordpress-dev/vendor/mockery/mockery/composer.lock
deleted file mode 100644
index 603f9697..00000000
--- a/wordpress-dev/vendor/mockery/mockery/composer.lock
+++ /dev/null
@@ -1,1867 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "e70f68192a56a148f93ad7a1c0779be3",
- "packages": [
- {
- "name": "hamcrest/hamcrest-php",
- "version": "v2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/hamcrest/hamcrest-php.git",
- "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
- "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
- "shasum": ""
- },
- "require": {
- "php": "^5.3|^7.0|^8.0"
- },
- "replace": {
- "cordoval/hamcrest-php": "*",
- "davedevelopment/hamcrest-php": "*",
- "kodova/hamcrest-php": "*"
- },
- "require-dev": {
- "phpunit/php-file-iterator": "^1.4 || ^2.0",
- "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "hamcrest"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "This is the PHP port of Hamcrest Matchers",
- "keywords": [
- "test"
- ],
- "support": {
- "issues": "https://github.com/hamcrest/hamcrest-php/issues",
- "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1"
- },
- "time": "2020-07-09T08:09:16+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b",
- "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b",
- "shasum": ""
- },
- "require": {
- "php": "^7.1 || ^8.0"
- },
- "require-dev": {
- "doctrine/coding-standard": "^9 || ^11",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpbench/phpbench": "^0.16 || ^1",
- "phpstan/phpstan": "^1.4",
- "phpstan/phpstan-phpunit": "^1",
- "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
- "vimeo/psalm": "^4.30 || ^5.4"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "https://ocramius.github.io/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://www.doctrine-project.org/projects/instantiator.html",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "support": {
- "issues": "https://github.com/doctrine/instantiator/issues",
- "source": "https://github.com/doctrine/instantiator/tree/1.5.0"
- },
- "funding": [
- {
- "url": "https://www.doctrine-project.org/sponsorship.html",
- "type": "custom"
- },
- {
- "url": "https://www.patreon.com/phpdoctrine",
- "type": "patreon"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
- "type": "tidelift"
- }
- ],
- "time": "2022-12-30T00:15:36+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.11.1",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
- "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
- "shasum": ""
- },
- "require": {
- "php": "^7.1 || ^8.0"
- },
- "conflict": {
- "doctrine/collections": "<1.6.8",
- "doctrine/common": "<2.13.3 || >=3,<3.2.2"
- },
- "require-dev": {
- "doctrine/collections": "^1.6.8",
- "doctrine/common": "^2.13.3 || ^3.2.2",
- "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13"
- },
- "type": "library",
- "autoload": {
- "files": [
- "src/DeepCopy/deep_copy.php"
- ],
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "support": {
- "issues": "https://github.com/myclabs/DeepCopy/issues",
- "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1"
- },
- "funding": [
- {
- "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
- "type": "tidelift"
- }
- ],
- "time": "2023-03-08T13:26:56+00:00"
- },
- {
- "name": "nikic/php-parser",
- "version": "v4.18.0",
- "source": {
- "type": "git",
- "url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999",
- "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=7.0"
- },
- "require-dev": {
- "ircmaxell/php-yacc": "^0.0.7",
- "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
- },
- "bin": [
- "bin/php-parse"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "PhpParser\\": "lib/PhpParser"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Nikita Popov"
- }
- ],
- "description": "A PHP parser written in PHP",
- "keywords": [
- "parser",
- "php"
- ],
- "support": {
- "issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v4.18.0"
- },
- "time": "2023-12-10T21:03:43+00:00"
- },
- {
- "name": "phar-io/manifest",
- "version": "2.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "97803eca37d319dfa7826cc2437fc020857acb53"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53",
- "reference": "97803eca37d319dfa7826cc2437fc020857acb53",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-phar": "*",
- "ext-xmlwriter": "*",
- "phar-io/version": "^3.0.1",
- "php": "^7.2 || ^8.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "support": {
- "issues": "https://github.com/phar-io/manifest/issues",
- "source": "https://github.com/phar-io/manifest/tree/2.0.3"
- },
- "time": "2021-07-20T11:28:43+00:00"
- },
- {
- "name": "phar-io/version",
- "version": "3.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/version.git",
- "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74",
- "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74",
- "shasum": ""
- },
- "require": {
- "php": "^7.2 || ^8.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Library for handling version information and constraints",
- "support": {
- "issues": "https://github.com/phar-io/version/issues",
- "source": "https://github.com/phar-io/version/tree/3.2.1"
- },
- "time": "2022-02-21T01:04:05+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "9.2.30",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ca2bd87d2f9215904682a9cb9bb37dda98e76089",
- "reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-libxml": "*",
- "ext-xmlwriter": "*",
- "nikic/php-parser": "^4.18 || ^5.0",
- "php": ">=7.3",
- "phpunit/php-file-iterator": "^3.0.3",
- "phpunit/php-text-template": "^2.0.2",
- "sebastian/code-unit-reverse-lookup": "^2.0.2",
- "sebastian/complexity": "^2.0",
- "sebastian/environment": "^5.1.2",
- "sebastian/lines-of-code": "^1.0.3",
- "sebastian/version": "^3.0.1",
- "theseer/tokenizer": "^1.2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "suggest": {
- "ext-pcov": "PHP extension that provides line coverage",
- "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "9.2-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
- "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.30"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2023-12-22T06:47:57+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "3.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf",
- "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
- "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2021-12-02T12:48:52+00:00"
- },
- {
- "name": "phpunit/php-invoker",
- "version": "3.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-invoker.git",
- "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
- "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "ext-pcntl": "*",
- "phpunit/phpunit": "^9.3"
- },
- "suggest": {
- "ext-pcntl": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Invoke callables with a timeout",
- "homepage": "https://github.com/sebastianbergmann/php-invoker/",
- "keywords": [
- "process"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
- "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-09-28T05:58:55+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "2.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
- "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
- "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-10-26T05:33:50+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "5.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
- "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-timer/issues",
- "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-10-26T13:16:10+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "9.6.17",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "1a156980d78a6666721b7e8e8502fe210b587fcd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1a156980d78a6666721b7e8e8502fe210b587fcd",
- "reference": "1a156980d78a6666721b7e8e8502fe210b587fcd",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.3.1 || ^2",
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "ext-xmlwriter": "*",
- "myclabs/deep-copy": "^1.10.1",
- "phar-io/manifest": "^2.0.3",
- "phar-io/version": "^3.0.2",
- "php": ">=7.3",
- "phpunit/php-code-coverage": "^9.2.28",
- "phpunit/php-file-iterator": "^3.0.5",
- "phpunit/php-invoker": "^3.1.1",
- "phpunit/php-text-template": "^2.0.3",
- "phpunit/php-timer": "^5.0.2",
- "sebastian/cli-parser": "^1.0.1",
- "sebastian/code-unit": "^1.0.6",
- "sebastian/comparator": "^4.0.8",
- "sebastian/diff": "^4.0.3",
- "sebastian/environment": "^5.1.3",
- "sebastian/exporter": "^4.0.5",
- "sebastian/global-state": "^5.0.1",
- "sebastian/object-enumerator": "^4.0.3",
- "sebastian/resource-operations": "^3.0.3",
- "sebastian/type": "^3.2",
- "sebastian/version": "^3.0.2"
- },
- "suggest": {
- "ext-soap": "To be able to generate mocks based on WSDL files",
- "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "9.6-dev"
- }
- },
- "autoload": {
- "files": [
- "src/Framework/Assert/Functions.php"
- ],
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/phpunit/issues",
- "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.17"
- },
- "funding": [
- {
- "url": "https://phpunit.de/sponsors.html",
- "type": "custom"
- },
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit",
- "type": "tidelift"
- }
- ],
- "time": "2024-02-23T13:14:51+00:00"
- },
- {
- "name": "sebastian/cli-parser",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/cli-parser.git",
- "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2",
- "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library for parsing CLI options",
- "homepage": "https://github.com/sebastianbergmann/cli-parser",
- "support": {
- "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
- "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-09-28T06:08:49+00:00"
- },
- {
- "name": "sebastian/code-unit",
- "version": "1.0.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit.git",
- "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120",
- "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Collection of value objects that represent the PHP code units",
- "homepage": "https://github.com/sebastianbergmann/code-unit",
- "support": {
- "issues": "https://github.com/sebastianbergmann/code-unit/issues",
- "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-10-26T13:08:54+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "2.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
- "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "support": {
- "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
- "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-09-28T05:30:19+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "4.0.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "fa0f136dd2334583309d32b62544682ee972b51a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a",
- "reference": "fa0f136dd2334583309d32b62544682ee972b51a",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3",
- "sebastian/diff": "^4.0",
- "sebastian/exporter": "^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "https://github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/comparator/issues",
- "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2022-09-14T12:41:17+00:00"
- },
- {
- "name": "sebastian/complexity",
- "version": "2.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/complexity.git",
- "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a",
- "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a",
- "shasum": ""
- },
- "require": {
- "nikic/php-parser": "^4.18 || ^5.0",
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library for calculating the complexity of PHP code units",
- "homepage": "https://github.com/sebastianbergmann/complexity",
- "support": {
- "issues": "https://github.com/sebastianbergmann/complexity/issues",
- "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2023-12-22T06:19:30+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "4.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
- "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3",
- "symfony/process": "^4.2 || ^5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff",
- "udiff",
- "unidiff",
- "unified diff"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/diff/issues",
- "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2023-05-07T05:35:17+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "5.1.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed",
- "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "suggest": {
- "ext-posix": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/environment/issues",
- "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2023-02-03T06:03:51+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "4.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d",
- "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3",
- "sebastian/recursion-context": "^4.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "https://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/exporter/issues",
- "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2022-09-14T06:03:37+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "5.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bde739e7565280bda77be70044ac1047bc007e34"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34",
- "reference": "bde739e7565280bda77be70044ac1047bc007e34",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3",
- "sebastian/object-reflector": "^2.0",
- "sebastian/recursion-context": "^4.0"
- },
- "require-dev": {
- "ext-dom": "*",
- "phpunit/phpunit": "^9.3"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/global-state/issues",
- "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.6"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2023-08-02T09:26:13+00:00"
- },
- {
- "name": "sebastian/lines-of-code",
- "version": "1.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/lines-of-code.git",
- "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5",
- "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5",
- "shasum": ""
- },
- "require": {
- "nikic/php-parser": "^4.18 || ^5.0",
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library for counting the lines of code in PHP source code",
- "homepage": "https://github.com/sebastianbergmann/lines-of-code",
- "support": {
- "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
- "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2023-12-22T06:20:34+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "4.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "5c9eeac41b290a3712d88851518825ad78f45c71"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71",
- "reference": "5c9eeac41b290a3712d88851518825ad78f45c71",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3",
- "sebastian/object-reflector": "^2.0",
- "sebastian/recursion-context": "^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "support": {
- "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
- "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-10-26T13:12:34+00:00"
- },
- {
- "name": "sebastian/object-reflector",
- "version": "2.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
- "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "support": {
- "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
- "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-10-26T13:14:26+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "4.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1",
- "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "https://github.com/sebastianbergmann/recursion-context",
- "support": {
- "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
- "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2023-02-03T06:07:39+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "3.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
- "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "support": {
- "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
- "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-09-28T06:45:17+00:00"
- },
- {
- "name": "sebastian/type",
- "version": "3.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/type.git",
- "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7",
- "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Collection of value objects that represent the types of the PHP type system",
- "homepage": "https://github.com/sebastianbergmann/type",
- "support": {
- "issues": "https://github.com/sebastianbergmann/type/issues",
- "source": "https://github.com/sebastianbergmann/type/tree/3.2.1"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2023-02-03T06:13:03+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "3.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "c6c1022351a901512170118436c764e473f6de8c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c",
- "reference": "c6c1022351a901512170118436c764e473f6de8c",
- "shasum": ""
- },
- "require": {
- "php": ">=7.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "support": {
- "issues": "https://github.com/sebastianbergmann/version/issues",
- "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
- },
- "funding": [
- {
- "url": "https://github.com/sebastianbergmann",
- "type": "github"
- }
- ],
- "time": "2020-09-28T06:39:44+00:00"
- },
- {
- "name": "symplify/easy-coding-standard",
- "version": "12.1.14",
- "source": {
- "type": "git",
- "url": "https://github.com/easy-coding-standard/easy-coding-standard.git",
- "reference": "e3c4a241ee36704f7cf920d5931f39693e64afd5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/easy-coding-standard/easy-coding-standard/zipball/e3c4a241ee36704f7cf920d5931f39693e64afd5",
- "reference": "e3c4a241ee36704f7cf920d5931f39693e64afd5",
- "shasum": ""
- },
- "require": {
- "php": ">=7.2"
- },
- "conflict": {
- "friendsofphp/php-cs-fixer": "<3.46",
- "phpcsstandards/php_codesniffer": "<3.8",
- "symplify/coding-standard": "<12.1"
- },
- "bin": [
- "bin/ecs"
- ],
- "type": "library",
- "autoload": {
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Use Coding Standard with 0-knowledge of PHP-CS-Fixer and PHP_CodeSniffer",
- "keywords": [
- "Code style",
- "automation",
- "fixer",
- "static analysis"
- ],
- "support": {
- "issues": "https://github.com/easy-coding-standard/easy-coding-standard/issues",
- "source": "https://github.com/easy-coding-standard/easy-coding-standard/tree/12.1.14"
- },
- "funding": [
- {
- "url": "https://www.paypal.me/rectorphp",
- "type": "custom"
- },
- {
- "url": "https://github.com/tomasvotruba",
- "type": "github"
- }
- ],
- "time": "2024-02-23T13:10:40+00:00"
- },
- {
- "name": "theseer/tokenizer",
- "version": "1.2.2",
- "source": {
- "type": "git",
- "url": "https://github.com/theseer/tokenizer.git",
- "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96",
- "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": "^7.2 || ^8.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- }
- ],
- "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "support": {
- "issues": "https://github.com/theseer/tokenizer/issues",
- "source": "https://github.com/theseer/tokenizer/tree/1.2.2"
- },
- "funding": [
- {
- "url": "https://github.com/theseer",
- "type": "github"
- }
- ],
- "time": "2023-11-20T00:12:19+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=7.3",
- "lib-pcre": ">=7.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "7.3.999"
- },
- "plugin-api-version": "2.6.0"
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/.gitignore b/wordpress-dev/vendor/mockery/mockery/docs/.gitignore
deleted file mode 100644
index e35d8850..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-_build
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/Makefile b/wordpress-dev/vendor/mockery/mockery/docs/Makefile
deleted file mode 100644
index 9a8c9408..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/Makefile
+++ /dev/null
@@ -1,177 +0,0 @@
-# Makefile for Sphinx documentation
-#
-
-# You can set these variables from the command line.
-SPHINXOPTS =
-SPHINXBUILD = sphinx-build
-PAPER =
-BUILDDIR = _build
-
-# User-friendly check for sphinx-build
-ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
-$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
-endif
-
-# Internal variables.
-PAPEROPT_a4 = -D latex_paper_size=a4
-PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
-# the i18n builder cannot share the environment and doctrees with the others
-I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
-
-.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
-
-help:
- @echo "Please use \`make ' where is one of"
- @echo " html to make standalone HTML files"
- @echo " dirhtml to make HTML files named index.html in directories"
- @echo " singlehtml to make a single large HTML file"
- @echo " pickle to make pickle files"
- @echo " json to make JSON files"
- @echo " htmlhelp to make HTML files and a HTML help project"
- @echo " qthelp to make HTML files and a qthelp project"
- @echo " devhelp to make HTML files and a Devhelp project"
- @echo " epub to make an epub"
- @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
- @echo " latexpdf to make LaTeX files and run them through pdflatex"
- @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
- @echo " text to make text files"
- @echo " man to make manual pages"
- @echo " texinfo to make Texinfo files"
- @echo " info to make Texinfo files and run them through makeinfo"
- @echo " gettext to make PO message catalogs"
- @echo " changes to make an overview of all changed/added/deprecated items"
- @echo " xml to make Docutils-native XML files"
- @echo " pseudoxml to make pseudoxml-XML files for display purposes"
- @echo " linkcheck to check all external links for integrity"
- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
-
-clean:
- rm -rf $(BUILDDIR)/*
-
-html:
- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
-
-dirhtml:
- $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
-
-singlehtml:
- $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
- @echo
- @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
-
-pickle:
- $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
- @echo
- @echo "Build finished; now you can process the pickle files."
-
-json:
- $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
- @echo
- @echo "Build finished; now you can process the JSON files."
-
-htmlhelp:
- $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
- @echo
- @echo "Build finished; now you can run HTML Help Workshop with the" \
- ".hhp project file in $(BUILDDIR)/htmlhelp."
-
-qthelp:
- $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
- @echo
- @echo "Build finished; now you can run "qcollectiongenerator" with the" \
- ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
- @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/MockeryDocs.qhcp"
- @echo "To view the help file:"
- @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/MockeryDocs.qhc"
-
-devhelp:
- $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
- @echo
- @echo "Build finished."
- @echo "To view the help file:"
- @echo "# mkdir -p $$HOME/.local/share/devhelp/MockeryDocs"
- @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/MockeryDocs"
- @echo "# devhelp"
-
-epub:
- $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
- @echo
- @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
-
-latex:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo
- @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
- @echo "Run \`make' in that directory to run these through (pdf)latex" \
- "(use \`make latexpdf' here to do that automatically)."
-
-latexpdf:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo "Running LaTeX files through pdflatex..."
- $(MAKE) -C $(BUILDDIR)/latex all-pdf
- @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
-
-latexpdfja:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo "Running LaTeX files through platex and dvipdfmx..."
- $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
- @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
-
-text:
- $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
- @echo
- @echo "Build finished. The text files are in $(BUILDDIR)/text."
-
-man:
- $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
- @echo
- @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
-
-texinfo:
- $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
- @echo
- @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
- @echo "Run \`make' in that directory to run these through makeinfo" \
- "(use \`make info' here to do that automatically)."
-
-info:
- $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
- @echo "Running Texinfo files through makeinfo..."
- make -C $(BUILDDIR)/texinfo info
- @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
-
-gettext:
- $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
- @echo
- @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
-
-changes:
- $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
- @echo
- @echo "The overview file is in $(BUILDDIR)/changes."
-
-linkcheck:
- $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
- @echo
- @echo "Link check complete; look for any errors in the above output " \
- "or in $(BUILDDIR)/linkcheck/output.txt."
-
-doctest:
- $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
- @echo "Testing of doctests in the sources finished, look at the " \
- "results in $(BUILDDIR)/doctest/output.txt."
-
-xml:
- $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
- @echo
- @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
-
-pseudoxml:
- $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
- @echo
- @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/README.md b/wordpress-dev/vendor/mockery/mockery/docs/README.md
deleted file mode 100644
index 63ca69db..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-mockery-docs
-============
-
-Document for the PHP Mockery framework on readthedocs.org
\ No newline at end of file
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/_static/.gitkeep b/wordpress-dev/vendor/mockery/mockery/docs/_static/.gitkeep
deleted file mode 100644
index e69de29b..00000000
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/conf.py b/wordpress-dev/vendor/mockery/mockery/docs/conf.py
deleted file mode 100644
index d0f69600..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/conf.py
+++ /dev/null
@@ -1,268 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Mockery Docs documentation build configuration file, created by
-# sphinx-quickstart on Mon Mar 3 14:04:26 2014.
-#
-# This file is execfile()d with the current directory set to its
-# containing dir.
-#
-# Note that not all possible configuration values are present in this
-# autogenerated file.
-#
-# All configuration values have a default; values that are commented out
-# serve to show the default.
-
-import sys
-import os
-
-# If extensions (or modules to document with autodoc) are in another directory,
-# add these directories to sys.path here. If the directory is relative to the
-# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
-
-# -- General configuration ------------------------------------------------
-
-# If your documentation needs a minimal Sphinx version, state it here.
-#needs_sphinx = '1.0'
-
-# Add any Sphinx extension module names here, as strings. They can be
-# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
-# ones.
-extensions = [
- 'sphinx.ext.todo',
- 'sphinx_rtd_theme',
-]
-
-# Add any paths that contain templates here, relative to this directory.
-templates_path = ['_templates']
-
-# The suffix of source filenames.
-source_suffix = '.rst'
-
-# The encoding of source files.
-#source_encoding = 'utf-8-sig'
-
-# The master toctree document.
-master_doc = 'index'
-
-# General information about the project.
-project = u'Mockery Docs'
-copyright = u'Pádraic Brady, Dave Marshall and contributors'
-
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-# The short X.Y version.
-version = '1.6'
-# The full version, including alpha/beta/rc tags.
-release = '1.6.x'
-
-# The language for content autogenerated by Sphinx. Refer to documentation
-# for a list of supported languages.
-#language = None
-
-# There are two options for replacing |today|: either, you set today to some
-# non-false value, then it is used:
-#today = ''
-# Else, today_fmt is used as the format for a strftime call.
-#today_fmt = '%B %d, %Y'
-
-# List of patterns, relative to source directory, that match files and
-# directories to ignore when looking for source files.
-exclude_patterns = ['_build']
-
-# The reST default role (used for this markup: `text`) to use for all
-# documents.
-#default_role = None
-
-# If true, '()' will be appended to :func: etc. cross-reference text.
-#add_function_parentheses = True
-
-# If true, the current module name will be prepended to all description
-# unit titles (such as .. function::).
-#add_module_names = True
-
-# If true, sectionauthor and moduleauthor directives will be shown in the
-# output. They are ignored by default.
-#show_authors = False
-
-# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'sphinx'
-
-# A list of ignored prefixes for module index sorting.
-#modindex_common_prefix = []
-
-# If true, keep warnings as "system message" paragraphs in the built documents.
-#keep_warnings = False
-
-
-# -- Options for HTML output ----------------------------------------------
-
-# The theme to use for HTML and HTML Help pages. See the documentation for
-# a list of builtin themes.
-html_theme = 'sphinx_rtd_theme'
-
-# Theme options are theme-specific and customize the look and feel of a theme
-# further. For a list of options available for each theme, see the
-# documentation.
-#html_theme_options = {}
-
-# Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
-
-# The name of an image file (within the static path) to use as favicon of the
-# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
-# pixels large.
-#html_favicon = None
-
-# Add any paths that contain custom static files (such as style sheets) here,
-# relative to this directory. They are copied after the builtin static files,
-# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
-
-# Add any extra paths that contain custom files (such as robots.txt or
-# .htaccess) here, relative to this directory. These files are copied
-# directly to the root of the documentation.
-#html_extra_path = []
-
-# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
-# using the given strftime format.
-#html_last_updated_fmt = '%b %d, %Y'
-
-# If true, SmartyPants will be used to convert quotes and dashes to
-# typographically correct entities.
-#html_use_smartypants = True
-
-# Custom sidebar templates, maps document names to template names.
-#html_sidebars = {}
-
-# Additional templates that should be rendered to pages, maps page names to
-# template names.
-#html_additional_pages = {}
-
-# If false, no module index is generated.
-#html_domain_indices = True
-
-# If false, no index is generated.
-#html_use_index = True
-
-# If true, the index is split into individual pages for each letter.
-#html_split_index = False
-
-# If true, links to the reST sources are added to the pages.
-#html_show_sourcelink = True
-
-# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
-#html_show_sphinx = True
-
-# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
-#html_show_copyright = True
-
-# If true, an OpenSearch description file will be output, and all pages will
-# contain a tag referring to it. The value of this option must be the
-# base URL from which the finished HTML is served.
-#html_use_opensearch = ''
-
-# This is the file name suffix for HTML files (e.g. ".xhtml").
-#html_file_suffix = None
-
-# Output file base name for HTML help builder.
-htmlhelp_basename = 'MockeryDocsdoc'
-
-
-# -- Options for LaTeX output ---------------------------------------------
-
-latex_elements = {
-# The paper size ('letterpaper' or 'a4paper').
-#'papersize': 'letterpaper',
-
-# The font size ('10pt', '11pt' or '12pt').
-#'pointsize': '10pt',
-
-# Additional stuff for the LaTeX preamble.
-#'preamble': '',
-}
-
-# Grouping the document tree into LaTeX files. List of tuples
-# (source start file, target name, title,
-# author, documentclass [howto, manual, or own class]).
-latex_documents = [
- ('index', 'MockeryDocs.tex', u'Mockery Docs Documentation',
- u'Pádraic Brady, Dave Marshall, Wouter, Graham Campbell', 'manual'),
-]
-
-# The name of an image file (relative to this directory) to place at the top of
-# the title page.
-#latex_logo = None
-
-# For "manual" documents, if this is true, then toplevel headings are parts,
-# not chapters.
-#latex_use_parts = False
-
-# If true, show page references after internal links.
-#latex_show_pagerefs = False
-
-# If true, show URL addresses after external links.
-#latex_show_urls = False
-
-# Documents to append as an appendix to all manuals.
-#latex_appendices = []
-
-# If false, no module index is generated.
-#latex_domain_indices = True
-
-
-# -- Options for manual page output ---------------------------------------
-
-# One entry per manual page. List of tuples
-# (source start file, name, description, authors, manual section).
-man_pages = [
- ('index', 'mockerydocs', u'Mockery Docs Documentation',
- [u'Pádraic Brady, Dave Marshall, Wouter, Graham Campbell'], 1)
-]
-
-# If true, show URL addresses after external links.
-#man_show_urls = False
-
-
-# -- Options for Texinfo output -------------------------------------------
-
-# Grouping the document tree into Texinfo files. List of tuples
-# (source start file, target name, title, author,
-# dir menu entry, description, category)
-texinfo_documents = [
- ('index', 'MockeryDocs', u'Mockery Docs Documentation',
- u'Pádraic Brady, Dave Marshall, Wouter, Graham Campbell', 'MockeryDocs', 'One line description of project.',
- 'Miscellaneous'),
-]
-
-# Documents to append as an appendix to all manuals.
-#texinfo_appendices = []
-
-# If false, no module index is generated.
-#texinfo_domain_indices = True
-
-# How to display URL addresses: 'footnote', 'no', or 'inline'.
-#texinfo_show_urls = 'footnote'
-
-# If true, do not generate a @detailmenu in the "Top" node's menu.
-#texinfo_no_detailmenu = False
-
-
-#on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
-on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
-
-if not on_rtd: # only import and set the theme if we're building docs locally
- import sphinx_rtd_theme
- html_theme = 'sphinx_rtd_theme'
- html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
- print(sphinx_rtd_theme.get_html_theme_path())
-
-# load PhpLexer
-from sphinx.highlighting import lexers
-from pygments.lexers.web import PhpLexer
-
-# enable highlighting for PHP code not between by default
-lexers['php'] = PhpLexer(startinline=True)
-lexers['php-annotations'] = PhpLexer(startinline=True)
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/big_parent_class.rst b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/big_parent_class.rst
deleted file mode 100644
index a27d5327..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/big_parent_class.rst
+++ /dev/null
@@ -1,52 +0,0 @@
-.. index::
- single: Cookbook; Big Parent Class
-
-Big Parent Class
-================
-
-In some application code, especially older legacy code, we can come across some
-classes that extend a "big parent class" - a parent class that knows and does
-too much:
-
-.. code-block:: php
-
- class BigParentClass
- {
- public function doesEverything()
- {
- // sets up database connections
- // writes to log files
- }
- }
-
- class ChildClass extends BigParentClass
- {
- public function doesOneThing()
- {
- // but calls on BigParentClass methods
- $result = $this->doesEverything();
- // does something with $result
- return $result;
- }
- }
-
-We want to test our ``ChildClass`` and its ``doesOneThing`` method, but the
-problem is that it calls on ``BigParentClass::doesEverything()``. One way to
-handle this would be to mock out **all** of the dependencies ``BigParentClass``
-has and needs, and then finally actually test our ``doesOneThing`` method. It's
-an awful lot of work to do that.
-
-What we can do, is to do something... unconventional. We can create a runtime
-partial test double of the ``ChildClass`` itself and mock only the parent's
-``doesEverything()`` method:
-
-.. code-block:: php
-
- $childClass = \Mockery::mock('ChildClass')->makePartial();
- $childClass->shouldReceive('doesEverything')
- ->andReturn('some result from parent');
-
- $childClass->doesOneThing(); // string("some result from parent");
-
-With this approach we mock out only the ``doesEverything()`` method, and all the
-unmocked methods are called on the actual ``ChildClass`` instance.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/class_constants.rst b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/class_constants.rst
deleted file mode 100644
index 0b925692..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/class_constants.rst
+++ /dev/null
@@ -1,183 +0,0 @@
-.. index::
- single: Cookbook; Class Constants
-
-Class Constants
-===============
-
-When creating a test double for a class, Mockery does not create stubs out of
-any class constants defined in the class we are mocking. Sometimes though, the
-non-existence of these class constants, setup of the test, and the application
-code itself, it can lead to undesired behavior, and even a PHP error:
-``PHP Fatal error: Uncaught Error: Undefined class constant 'FOO' in ...``
-
-While supporting class constants in Mockery would be possible, it does require
-an awful lot of work, for a small number of use cases.
-
-Named Mocks
------------
-
-We can, however, deal with these constants in a way supported by Mockery - by
-using :ref:`creating-test-doubles-named-mocks`.
-
-A named mock is a test double that has a name of the class we want to mock, but
-under it is a stubbed out class that mimics the real class with canned responses.
-
-Lets look at the following made up, but not impossible scenario:
-
-.. code-block:: php
-
- class Fetcher
- {
- const SUCCESS = 0;
- const FAILURE = 1;
-
- public static function fetch()
- {
- // Fetcher gets something for us from somewhere...
- return self::SUCCESS;
- }
- }
-
- class MyClass
- {
- public function doFetching()
- {
- $response = Fetcher::fetch();
-
- if ($response == Fetcher::SUCCESS) {
- echo "Thanks!" . PHP_EOL;
- } else {
- echo "Try again!" . PHP_EOL;
- }
- }
- }
-
-Our ``MyClass`` calls a ``Fetcher`` that fetches some resource from somewhere -
-maybe it downloads a file from a remote web service. Our ``MyClass`` prints out
-a response message depending on the response from the ``Fetcher::fetch()`` call.
-
-When testing ``MyClass`` we don't really want ``Fetcher`` to go and download
-random stuff from the internet every time we run our test suite. So we mock it
-out:
-
-.. code-block:: php
-
- // Using alias: because fetch is called statically!
- \Mockery::mock('alias:Fetcher')
- ->shouldReceive('fetch')
- ->andReturn(0);
-
- $myClass = new MyClass();
- $myClass->doFetching();
-
-If we run this, our test will error out with a nasty
-``PHP Fatal error: Uncaught Error: Undefined class constant 'SUCCESS' in ..``.
-
-Here's how a ``namedMock()`` can help us in a situation like this.
-
-We create a stub for the ``Fetcher`` class, stubbing out the class constants,
-and then use ``namedMock()`` to create a mock named ``Fetcher`` based on our
-stub:
-
-.. code-block:: php
-
- class FetcherStub
- {
- const SUCCESS = 0;
- const FAILURE = 1;
- }
-
- \Mockery::namedMock('Fetcher', 'FetcherStub')
- ->shouldReceive('fetch')
- ->andReturn(0);
-
- $myClass = new MyClass();
- $myClass->doFetching();
-
-This works because under the hood, Mockery creates a class called ``Fetcher``
-that extends ``FetcherStub``.
-
-The same approach will work even if ``Fetcher::fetch()`` is not a static
-dependency:
-
-.. code-block:: php
-
- class Fetcher
- {
- const SUCCESS = 0;
- const FAILURE = 1;
-
- public function fetch()
- {
- // Fetcher gets something for us from somewhere...
- return self::SUCCESS;
- }
- }
-
- class MyClass
- {
- public function doFetching($fetcher)
- {
- $response = $fetcher->fetch();
-
- if ($response == Fetcher::SUCCESS) {
- echo "Thanks!" . PHP_EOL;
- } else {
- echo "Try again!" . PHP_EOL;
- }
- }
- }
-
-And the test will have something like this:
-
-.. code-block:: php
-
- class FetcherStub
- {
- const SUCCESS = 0;
- const FAILURE = 1;
- }
-
- $mock = \Mockery::mock('Fetcher', 'FetcherStub')
- $mock->shouldReceive('fetch')
- ->andReturn(0);
-
- $myClass = new MyClass();
- $myClass->doFetching($mock);
-
-
-Constants Map
--------------
-
-Another way of mocking class constants can be with the use of the constants map configuration.
-
-Given a class with constants:
-
-.. code-block:: php
-
- class Fetcher
- {
- const SUCCESS = 0;
- const FAILURE = 1;
-
- public function fetch()
- {
- // Fetcher gets something for us from somewhere...
- return self::SUCCESS;
- }
- }
-
-It can be mocked with:
-
-.. code-block:: php
-
- \Mockery::getConfiguration()->setConstantsMap([
- 'Fetcher' => [
- 'SUCCESS' => 'success',
- 'FAILURE' => 'fail',
- ]
- ]);
-
- $mock = \Mockery::mock('Fetcher');
- var_dump($mock::SUCCESS); // (string) 'success'
- var_dump($mock::FAILURE); // (string) 'fail'
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/default_expectations.rst b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/default_expectations.rst
deleted file mode 100644
index 2c6fcae2..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/default_expectations.rst
+++ /dev/null
@@ -1,17 +0,0 @@
-.. index::
- single: Cookbook; Default Mock Expectations
-
-Default Mock Expectations
-=========================
-
-Often in unit testing, we end up with sets of tests which use the same object
-dependency over and over again. Rather than mocking this class/object within
-every single unit test (requiring a mountain of duplicate code), we can
-instead define reusable default mocks within the test case's ``setup()``
-method. This even works where unit tests use varying expectations on the same
-or similar mock object.
-
-How this works, is that you can define mocks with default expectations. Then,
-in a later unit test, you can add or fine-tune expectations for that specific
-test. Any expectation can be set as a default using the ``byDefault()``
-declaration.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/detecting_mock_objects.rst b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/detecting_mock_objects.rst
deleted file mode 100644
index 0210c692..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/detecting_mock_objects.rst
+++ /dev/null
@@ -1,13 +0,0 @@
-.. index::
- single: Cookbook; Detecting Mock Objects
-
-Detecting Mock Objects
-======================
-
-Users may find it useful to check whether a given object is a real object or a
-simulated Mock Object. All Mockery mocks implement the
-``\Mockery\MockInterface`` interface which can be used in a type check.
-
-.. code-block:: php
-
- assert($mightBeMocked instanceof \Mockery\MockInterface);
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/index.rst b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/index.rst
deleted file mode 100644
index 034e39de..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/index.rst
+++ /dev/null
@@ -1,16 +0,0 @@
-Cookbook
-========
-
-.. toctree::
- :hidden:
-
- default_expectations
- detecting_mock_objects
- not_calling_the_constructor
- mocking_hard_dependencies
- class_constants
- big_parent_class
- mockery_on
- mocking_class_within_class
-
-.. include:: map.rst.inc
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/map.rst.inc b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/map.rst.inc
deleted file mode 100644
index c9dd99ef..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/map.rst.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-* :doc:`/cookbook/default_expectations`
-* :doc:`/cookbook/detecting_mock_objects`
-* :doc:`/cookbook/not_calling_the_constructor`
-* :doc:`/cookbook/mocking_hard_dependencies`
-* :doc:`/cookbook/class_constants`
-* :doc:`/cookbook/big_parent_class`
-* :doc:`/cookbook/mockery_on`
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/mockery_on.rst b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/mockery_on.rst
deleted file mode 100644
index 631f1241..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/mockery_on.rst
+++ /dev/null
@@ -1,85 +0,0 @@
-.. index::
- single: Cookbook; Complex Argument Matching With Mockery::on
-
-Complex Argument Matching With Mockery::on
-==========================================
-
-When we need to do a more complex argument matching for an expected method call,
-the ``\Mockery::on()`` matcher comes in really handy. It accepts a closure as an
-argument and that closure in turn receives the argument passed in to the method,
-when called. If the closure returns ``true``, Mockery will consider that the
-argument has passed the expectation. If the closure returns ``false``, or a
-"falsey" value, the expectation will not pass.
-
-The ``\Mockery::on()`` matcher can be used in various scenarios — validating
-an array argument based on multiple keys and values, complex string matching...
-
-Say, for example, we have the following code. It doesn't do much; publishes a
-post by setting the ``published`` flag in the database to ``1`` and sets the
-``published_at`` to the current date and time:
-
-.. code-block:: php
-
- model = $model;
- }
-
- public function publishPost($id)
- {
- $saveData = [
- 'post_id' => $id,
- 'published' => 1,
- 'published_at' => gmdate('Y-m-d H:i:s'),
- ];
- $this->model->save($saveData);
- }
- }
-
-In a test we would mock the model and set some expectations on the call of the
-``save()`` method:
-
-.. code-block:: php
-
- shouldReceive('save')
- ->once()
- ->with(\Mockery::on(function ($argument) use ($postId) {
- $postIdIsSet = isset($argument['post_id']) && $argument['post_id'] === $postId;
- $publishedFlagIsSet = isset($argument['published']) && $argument['published'] === 1;
- $publishedAtIsSet = isset($argument['published_at']);
-
- return $postIdIsSet && $publishedFlagIsSet && $publishedAtIsSet;
- }));
-
- $service = new \Service\Post($modelMock);
- $service->publishPost($postId);
-
- \Mockery::close();
-
-The important part of the example is inside the closure we pass to the
-``\Mockery::on()`` matcher. The ``$argument`` is actually the ``$saveData`` argument
-the ``save()`` method gets when it is called. We check for a couple of things in
-this argument:
-
-* the post ID is set, and is same as the post ID we passed in to the
- ``publishPost()`` method,
-* the ``published`` flag is set, and is ``1``, and
-* the ``published_at`` key is present.
-
-If any of these requirements is not satisfied, the closure will return ``false``,
-the method call expectation will not be met, and Mockery will throw a
-``NoMatchingExpectationException``.
-
-.. note::
-
- This cookbook entry is an adaption of the blog post titled
- `"Complex argument matching in Mockery" `_,
- published by Robert Basic on his blog.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/mocking_class_within_class.rst b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/mocking_class_within_class.rst
deleted file mode 100644
index 51f030b9..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/mocking_class_within_class.rst
+++ /dev/null
@@ -1,146 +0,0 @@
-.. index::
- single: Cookbook; Mocking class within class
-
-.. _mocking-class-within-class:
-
-Mocking class within class
-==========================
-
-Imagine a case where you need to create an instance of a class and use it
-within the same method:
-
-.. code-block:: php
-
- // Point.php
- setPoint($x1, $y1);
-
- $b = new Point();
- $b->setPoint($x2, $y1);
-
- $c = new Point();
- $c->setPoint($x2, $y2);
-
- $d = new Point();
- $d->setPoint($x1, $y2);
-
- $this->draw([$a, $b, $c, $d]);
- }
-
- public function draw($points) {
- echo "Do something with the points";
- }
- }
-
-And that you want to test that a logic in ``Rectangle->create()`` calls
-properly each used thing - in this case calls ``Point->setPoint()``, but
-``Rectangle->draw()`` does some graphical stuff that you want to avoid calling.
-
-You set the mocks for ``App\Point`` and ``App\Rectangle``:
-
-.. code-block:: php
-
- shouldReceive("setPoint")->andThrow(Exception::class);
-
- $rect = Mockery::mock("App\Rectangle")->makePartial();
- $rect->shouldReceive("draw");
-
- $rect->create(0, 0, 100, 100); // does not throw exception
- Mockery::close();
- }
- }
-
-and the test does not work. Why? The mocking relies on the class not being
-present yet, but the class is autoloaded therefore the mock alone for
-``App\Point`` is useless which you can see with ``echo`` being executed.
-
-Mocks however work for the first class in the order of loading i.e.
-``App\Rectangle``, which loads the ``App\Point`` class. In more complex example
-that would be a single point that initiates the whole loading (``use Class``)
-such as::
-
- A // main loading initiator
- |- B // another loading initiator
- | |-E
- | +-G
- |
- |- C // another loading initiator
- | +-F
- |
- +- D
-
-That basically means that the loading prevents mocking and for each such
-a loading initiator there needs to be implemented a workaround.
-Overloading is one approach, however it pollutes the global state. In this case
-we try to completely avoid the global state pollution with custom
-``new Class()`` behavior per loading initiator and that can be mocked easily
-in few critical places.
-
-That being said, although we can't stop loading, we can return mocks. Let's
-look at ``Rectangle->create()`` method:
-
-.. code-block:: php
-
- class Rectangle {
- public function newPoint() {
- return new Point();
- }
-
- public function create($x1, $y1, $x2, $y2) {
- $a = $this->newPoint();
- $a->setPoint($x1, $y1);
- ...
- }
- ...
- }
-
-We create a custom function to encapsulate ``new`` keyword that would otherwise
-just use the autoloaded class ``App\Point`` and in our test we mock that function
-so that it returns our mock:
-
-.. code-block:: php
-
- shouldReceive("setPoint")->andThrow(Exception::class);
-
- $rect = Mockery::mock("App\Rectangle")->makePartial();
- $rect->shouldReceive("draw");
-
- // pass the App\Point mock into App\Rectangle as an alternative
- // to using new App\Point() in-place.
- $rect->shouldReceive("newPoint")->andReturn($point);
-
- $this->expectException(Exception::class);
- $rect->create(0, 0, 100, 100);
- Mockery::close();
- }
- }
-
-If we run this test now, it should pass. For more complex cases we'd find
-the next loader in the program flow and proceed with wrapping and passing
-mock instances with predefined behavior into already existing classes.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/mocking_hard_dependencies.rst b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/mocking_hard_dependencies.rst
deleted file mode 100644
index 3391d7b3..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/mocking_hard_dependencies.rst
+++ /dev/null
@@ -1,137 +0,0 @@
-.. index::
- single: Cookbook; Mocking Hard Dependencies
-
-Mocking Hard Dependencies (new Keyword)
-=======================================
-
-One prerequisite to mock hard dependencies is that the code we are trying to test uses autoloading.
-
-Let's take the following code for an example:
-
-.. code-block:: php
-
- sendSomething($param);
- return $externalService->getSomething();
- }
- }
-
-The way we can test this without doing any changes to the code itself is by creating :doc:`instance mocks ` by using the ``overload`` prefix.
-
-.. code-block:: php
-
- shouldReceive('sendSomething')
- ->once()
- ->with($param);
- $externalMock->shouldReceive('getSomething')
- ->once()
- ->andReturn('Tested!');
-
- $service = new \App\Service();
-
- $result = $service->callExternalService($param);
-
- $this->assertSame('Tested!', $result);
- }
- }
-
-If we run this test now, it should pass. Mockery does its job and our ``App\Service`` will use the mocked external service instead of the real one.
-
-The problem with this is when we want to, for example, test the ``App\Service\External`` itself, or if we use that class somewhere else in our tests.
-
-When Mockery overloads a class, because of how PHP works with files, that overloaded class file must not be included otherwise Mockery will throw a "class already exists" exception. This is where autoloading kicks in and makes our job a lot easier.
-
-To make this possible, we'll tell PHPUnit to run the tests that have overloaded classes in separate processes and to not preserve global state. That way we'll avoid having the overloaded class included more than once. Of course this has its downsides as these tests will run slower.
-
-Our test example from above now becomes:
-
-.. code-block:: php
-
- shouldReceive('sendSomething')
- ->once()
- ->with($param);
- $externalMock->shouldReceive('getSomething')
- ->once()
- ->andReturn('Tested!');
-
- $service = new \App\Service();
-
- $result = $service->callExternalService($param);
-
- $this->assertSame('Tested!', $result);
- }
- }
-
-
-
-Testing the constructor arguments of hard Dependencies
-------------------------------------------------------
-
-Sometimes we might want to ensure that the hard dependency is instantiated with
-particular arguments. With overloaded mocks, we can set up expectations on the
-constructor.
-
-.. code-block:: php
-
- allows('sendSomething');
- $externalMock->shouldReceive('__construct')
- ->once()
- ->with(5);
-
- $service = new \App\Service();
- $result = $service->callExternalService($param);
- }
- }
-
-
-.. note::
- For more straightforward and single-process tests oriented way check
- :ref:`mocking-class-within-class`.
-
-.. note::
-
- This cookbook entry is an adaption of the blog post titled
- `"Mocking hard dependencies with Mockery" `_,
- published by Robert Basic on his blog.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/not_calling_the_constructor.rst b/wordpress-dev/vendor/mockery/mockery/docs/cookbook/not_calling_the_constructor.rst
deleted file mode 100644
index b8157ae3..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/cookbook/not_calling_the_constructor.rst
+++ /dev/null
@@ -1,63 +0,0 @@
-.. index::
- single: Cookbook; Not Calling the Original Constructor
-
-Not Calling the Original Constructor
-====================================
-
-When creating generated partial test doubles, Mockery mocks out only the method
-which we specifically told it to. This means that the original constructor of
-the class we are mocking will be called.
-
-In some cases this is not a desired behavior, as the constructor might issue
-calls to other methods, or other object collaborators, and as such, can create
-undesired side-effects in the application's environment when running the tests.
-
-If this happens, we need to use runtime partial test doubles, as they don't
-call the original constructor.
-
-.. code-block:: php
-
- class MyClass
- {
- public function __construct()
- {
- echo "Original constructor called." . PHP_EOL;
- // Other side-effects can happen...
- }
- }
-
- // This will print "Original constructor called."
- $mock = \Mockery::mock('MyClass[foo]');
-
-A better approach is to use runtime partial doubles:
-
-.. code-block:: php
-
- class MyClass
- {
- public function __construct()
- {
- echo "Original constructor called." . PHP_EOL;
- // Other side-effects can happen...
- }
- }
-
- // This will not print anything
- $mock = \Mockery::mock('MyClass')->makePartial();
- $mock->shouldReceive('foo');
-
-This is one of the reason why we don't recommend using generated partial test
-doubles, but if possible, always use the runtime partials.
-
-Read more about :ref:`creating-test-doubles-partial-test-doubles`.
-
-.. note::
-
- The way generated partial test doubles work, is a BC break. If you use a
- really old version of Mockery, it might behave in a way that the constructor
- is not being called for these generated partials. In the case if you upgrade
- to a more recent version of Mockery, you'll probably have to change your
- tests to use runtime partials, instead of generated ones.
-
- This change was introduced in early 2013, so it is highly unlikely that you
- are using a Mockery from before that, so this should not be an issue.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/index.rst b/wordpress-dev/vendor/mockery/mockery/docs/getting_started/index.rst
deleted file mode 100644
index 434755c8..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/index.rst
+++ /dev/null
@@ -1,12 +0,0 @@
-Getting Started
-===============
-
-.. toctree::
- :hidden:
-
- installation
- upgrading
- simple_example
- quick_reference
-
-.. include:: map.rst.inc
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/installation.rst b/wordpress-dev/vendor/mockery/mockery/docs/getting_started/installation.rst
deleted file mode 100644
index f578adc9..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/installation.rst
+++ /dev/null
@@ -1,49 +0,0 @@
-.. index::
- single: Installation
-
-Installation
-============
-
-Mockery can be installed using Composer or by cloning it from its GitHub
-repository. These two options are outlined below.
-
-Composer
---------
-
-You can read more about Composer on `getcomposer.org `_.
-To install Mockery using Composer, first install Composer for your project
-using the instructions on the `Composer download page `_.
-You can then define your development dependency on Mockery using the suggested
-parameters below. While every effort is made to keep the master branch stable,
-you may prefer to use the current stable version tag instead (use the
-``@stable`` tag).
-
-.. code-block:: json
-
- {
- "require-dev": {
- "mockery/mockery": "dev-master"
- }
- }
-
-To install, you then may call:
-
-.. code-block:: bash
-
- php composer.phar update
-
-This will install Mockery as a development dependency, meaning it won't be
-installed when using ``php composer.phar update --no-dev`` in production.
-
-Other way to install is directly from composer command line, as below.
-
-.. code-block:: bash
-
- php composer.phar require --dev mockery/mockery
-
-Git
----
-
-The Git repository hosts the development version in its master branch. You can
-install this using Composer by referencing ``dev-master`` as your preferred
-version in your project's ``composer.json`` file as the earlier example shows.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/map.rst.inc b/wordpress-dev/vendor/mockery/mockery/docs/getting_started/map.rst.inc
deleted file mode 100644
index 1055945b..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/map.rst.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-* :doc:`/getting_started/installation`
-* :doc:`/getting_started/upgrading`
-* :doc:`/getting_started/simple_example`
-* :doc:`/getting_started/quick_reference`
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/quick_reference.rst b/wordpress-dev/vendor/mockery/mockery/docs/getting_started/quick_reference.rst
deleted file mode 100644
index e729a850..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/quick_reference.rst
+++ /dev/null
@@ -1,200 +0,0 @@
-.. index::
- single: Quick Reference
-
-Quick Reference
-===============
-
-The purpose of this page is to give a quick and short overview of some of the
-most common Mockery features.
-
-Do read the :doc:`../reference/index` to learn about all the Mockery features.
-
-Integrate Mockery with PHPUnit, either by extending the ``MockeryTestCase``:
-
-.. code-block:: php
-
- use \Mockery\Adapter\Phpunit\MockeryTestCase;
-
- class MyTest extends MockeryTestCase
- {
- }
-
-or by using the ``MockeryPHPUnitIntegration`` trait:
-
-.. code-block:: php
-
- use \PHPUnit\Framework\TestCase;
- use \Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
-
- class MyTest extends TestCase
- {
- use MockeryPHPUnitIntegration;
- }
-
-Creating a test double:
-
-.. code-block:: php
-
- $testDouble = \Mockery::mock('MyClass');
-
-Creating a test double that implements a certain interface:
-
-.. code-block:: php
-
- $testDouble = \Mockery::mock('MyClass, MyInterface');
-
-Expecting a method to be called on a test double:
-
-.. code-block:: php
-
- $testDouble = \Mockery::mock('MyClass');
- $testDouble->shouldReceive('foo');
-
-Expecting a method to **not** be called on a test double:
-
-.. code-block:: php
-
- $testDouble = \Mockery::mock('MyClass');
- $testDouble->shouldNotReceive('foo');
-
-Expecting a method to be called on a test double, once, with a certain argument,
-and to return a value:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->once()
- ->with($arg)
- ->andReturn($returnValue);
-
-Expecting a method to be called on a test double and to return a different value
-for each successive call:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->andReturn(1, 2, 3);
-
- $mock->foo(); // int(1);
- $mock->foo(); // int(2);
- $mock->foo(); // int(3);
- $mock->foo(); // int(3);
-
-Creating a runtime partial test double:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass')->makePartial();
-
-Creating a spy:
-
-.. code-block:: php
-
- $spy = \Mockery::spy('MyClass');
-
-Expecting that a spy should have received a method call:
-
-.. code-block:: php
-
- $spy = \Mockery::spy('MyClass');
-
- $spy->foo();
-
- $spy->shouldHaveReceived()->foo();
-
-Not so simple examples
-^^^^^^^^^^^^^^^^^^^^^^
-
-Creating a mock object to return a sequence of values from a set of method
-calls:
-
-.. code-block:: php
-
- use \Mockery\Adapter\Phpunit\MockeryTestCase;
-
- class SimpleTest extends MockeryTestCase
- {
- public function testSimpleMock()
- {
- $mock = \Mockery::mock(array('pi' => 3.1416, 'e' => 2.71));
- $this->assertEquals(3.1416, $mock->pi());
- $this->assertEquals(2.71, $mock->e());
- }
- }
-
-Creating a mock object which returns a self-chaining Undefined object for a
-method call:
-
-.. code-block:: php
-
- use \Mockery\Adapter\Phpunit\MockeryTestCase;
-
- class UndefinedTest extends MockeryTestCase
- {
- public function testUndefinedValues()
- {
- $mock = \Mockery::mock('mymock');
- $mock->shouldReceive('divideBy')->with(0)->andReturnUndefined();
- $this->assertTrue($mock->divideBy(0) instanceof \Mockery\Undefined);
- }
- }
-
-Creating a mock object with multiple query calls and a single update call:
-
-.. code-block:: php
-
- use \Mockery\Adapter\Phpunit\MockeryTestCase;
-
- class DbTest extends MockeryTestCase
- {
- public function testDbAdapter()
- {
- $mock = \Mockery::mock('db');
- $mock->shouldReceive('query')->andReturn(1, 2, 3);
- $mock->shouldReceive('update')->with(5)->andReturn(NULL)->once();
-
- // ... test code here using the mock
- }
- }
-
-Expecting all queries to be executed before any updates:
-
-.. code-block:: php
-
- use \Mockery\Adapter\Phpunit\MockeryTestCase;
-
- class DbTest extends MockeryTestCase
- {
- public function testQueryAndUpdateOrder()
- {
- $mock = \Mockery::mock('db');
- $mock->shouldReceive('query')->andReturn(1, 2, 3)->ordered();
- $mock->shouldReceive('update')->andReturn(NULL)->once()->ordered();
-
- // ... test code here using the mock
- }
- }
-
-Creating a mock object where all queries occur after startup, but before finish,
-and where queries are expected with several different params:
-
-.. code-block:: php
-
- use \Mockery\Adapter\Phpunit\MockeryTestCase;
-
- class DbTest extends MockeryTestCase
- {
- public function testOrderedQueries()
- {
- $db = \Mockery::mock('db');
- $db->shouldReceive('startup')->once()->ordered();
- $db->shouldReceive('query')->with('CPWR')->andReturn(12.3)->once()->ordered('queries');
- $db->shouldReceive('query')->with('MSFT')->andReturn(10.0)->once()->ordered('queries');
- $db->shouldReceive('query')->with(\Mockery::pattern("/^....$/"))->andReturn(3.3)->atLeast()->once()->ordered('queries');
- $db->shouldReceive('finish')->once()->ordered();
-
- // ... test code here using the mock
- }
- }
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/simple_example.rst b/wordpress-dev/vendor/mockery/mockery/docs/getting_started/simple_example.rst
deleted file mode 100644
index 32ee2691..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/simple_example.rst
+++ /dev/null
@@ -1,70 +0,0 @@
-.. index::
- single: Getting Started; Simple Example
-
-Simple Example
-==============
-
-Imagine we have a ``Temperature`` class which samples the temperature of a
-locale before reporting an average temperature. The data could come from a web
-service or any other data source, but we do not have such a class at present.
-We can, however, assume some basic interactions with such a class based on its
-interaction with the ``Temperature`` class:
-
-.. code-block:: php
-
- class Temperature
- {
- private $service;
-
- public function __construct($service)
- {
- $this->service = $service;
- }
-
- public function average()
- {
- $total = 0;
- for ($i=0; $i<3; $i++) {
- $total += $this->service->readTemp();
- }
- return $total/3;
- }
- }
-
-Even without an actual service class, we can see how we expect it to operate.
-When writing a test for the ``Temperature`` class, we can now substitute a
-mock object for the real service which allows us to test the behaviour of the
-``Temperature`` class without actually needing a concrete service instance.
-
-.. code-block:: php
-
- use \Mockery;
-
- class TemperatureTest extends \PHPUnit\Framework\TestCase
- {
- public function tearDown()
- {
- Mockery::close();
- }
-
- public function testGetsAverageTemperatureFromThreeServiceReadings()
- {
- $service = Mockery::mock('service');
- $service->shouldReceive('readTemp')
- ->times(3)
- ->andReturn(10, 12, 14);
-
- $temperature = new Temperature($service);
-
- $this->assertEquals(12, $temperature->average());
- }
- }
-
-We create a mock object which our ``Temperature`` class will use and set some
-expectations for that mock — that it should receive three calls to the ``readTemp``
-method, and these calls will return 10, 12, and 14 as results.
-
-.. note::
-
- PHPUnit integration can remove the need for a ``tearDown()`` method. See
- ":doc:`/reference/phpunit_integration`" for more information.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/upgrading.rst b/wordpress-dev/vendor/mockery/mockery/docs/getting_started/upgrading.rst
deleted file mode 100644
index 8a17dfda..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/getting_started/upgrading.rst
+++ /dev/null
@@ -1,82 +0,0 @@
-.. index::
- single: Upgrading
-
-Upgrading
-=========
-
-Upgrading to 1.0.0
-------------------
-
-Minimum PHP version
-+++++++++++++++++++
-
-As of Mockery 1.0.0 the minimum PHP version required is 5.6.
-
-Using Mockery with PHPUnit
-++++++++++++++++++++++++++
-
-In the "old days", 0.9.x and older, the way Mockery was integrated with PHPUnit was
-through a PHPUnit listener. That listener would in turn call the ``\Mockery::close()``
-method for us.
-
-As of 1.0.0, PHPUnit test cases where we want to use Mockery, should either use the
-``\Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration`` trait, or extend the
-``\Mockery\Adapter\Phpunit\MockeryTestCase`` test case. This will in turn call the
-``\Mockery::close()`` method for us.
-
-Read the documentation for a detailed overview of ":doc:`/reference/phpunit_integration`".
-
-``\Mockery\Matcher\MustBe`` is deprecated
-+++++++++++++++++++++++++++++++++++++++++
-
-As of 1.0.0 the ``\Mockery\Matcher\MustBe`` matcher is deprecated and will be removed in
-Mockery 2.0.0. We recommend instead to use the PHPUnit equivalents of the
-MustBe matcher.
-
-``allows`` and ``expects``
-++++++++++++++++++++++++++
-
-As of 1.0.0, Mockery has two new methods to set up expectations: ``allows`` and ``expects``.
-This means that these methods names are now "reserved" for Mockery, or in other words
-classes you want to mock with Mockery, can't have methods called ``allows`` or ``expects``.
-
-Read more in the documentation about this ":doc:`/reference/alternative_should_receive_syntax`".
-
-No more implicit regex matching for string arguments
-++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-When setting up string arguments in method expectations, Mockery 0.9.x and older, would try
-to match arguments using a regular expression in a "last attempt" scenario.
-
-As of 1.0.0, Mockery will no longer attempt to do this regex matching, but will only try
-first the identical operator ``===``, and failing that, the equals operator ``==``.
-
-If you want to match an argument using regular expressions, please use the new
-``\Mockery\Matcher\Pattern`` matcher. Read more in the documentation about this
-pattern matcher in the ":doc:`/reference/argument_validation`" section.
-
-``andThrow`` ``\Throwable``
-+++++++++++++++++++++++++++
-
-As of 1.0.0, the ``andThrow`` can now throw any ``\Throwable``.
-
-Upgrading to 0.9
-----------------
-
-The generator was completely rewritten, so any code with a deep integration to
-mockery will need evaluating.
-
-Upgrading to 0.8
-----------------
-
-Since the release of 0.8.0 the following behaviours were altered:
-
-1. The ``shouldIgnoreMissing()`` behaviour optionally applied to mock objects
- returned an instance of ``\Mockery\Undefined`` when methods called did not
- match a known expectation. Since 0.8.0, this behaviour was switched to
- returning ``null`` instead. You can restore the 0.7.2 behaviour by using the
- following:
-
- .. code-block:: php
-
- $mock = \Mockery::mock('stdClass')->shouldIgnoreMissing()->asUndefined();
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/index.rst b/wordpress-dev/vendor/mockery/mockery/docs/index.rst
deleted file mode 100644
index f8cbbd32..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/index.rst
+++ /dev/null
@@ -1,76 +0,0 @@
-Mockery
-=======
-
-Mockery is a simple yet flexible PHP mock object framework for use in unit
-testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is
-to offer a test double framework with a succinct API capable of clearly
-defining all possible object operations and interactions using a human
-readable Domain Specific Language (DSL). Designed as a drop in alternative to
-PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with
-PHPUnit and can operate alongside phpunit-mock-objects without the World
-ending.
-
-Mock Objects
-------------
-
-In unit tests, mock objects simulate the behaviour of real objects. They are
-commonly utilised to offer test isolation, to stand in for objects which do
-not yet exist, or to allow for the exploratory design of class APIs without
-requiring actual implementation up front.
-
-The benefits of a mock object framework are to allow for the flexible
-generation of such mock objects (and stubs). They allow the setting of
-expected method calls and return values using a flexible API which is capable
-of capturing every possible real object behaviour in way that is stated as
-close as possible to a natural language description.
-
-Getting Started
----------------
-
-Ready to dive into the Mockery framework? Then you can get started by reading
-the "Getting Started" section!
-
-.. toctree::
- :hidden:
-
- getting_started/index
-
-.. include:: getting_started/map.rst.inc
-
-Reference
----------
-
-The reference contains a complete overview of all features of the Mockery
-framework.
-
-.. toctree::
- :hidden:
-
- reference/index
-
-.. include:: reference/map.rst.inc
-
-Mockery
--------
-
-Learn about Mockery's configuration, reserved method names, exceptions...
-
-.. toctree::
- :hidden:
-
- mockery/index
-
-.. include:: mockery/map.rst.inc
-
-Cookbook
---------
-
-Want to learn some easy tips and tricks? Take a look at the cookbook articles!
-
-.. toctree::
- :hidden:
-
- cookbook/index
-
-.. include:: cookbook/map.rst.inc
-
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/mockery/configuration.rst b/wordpress-dev/vendor/mockery/mockery/docs/mockery/configuration.rst
deleted file mode 100644
index 00713367..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/mockery/configuration.rst
+++ /dev/null
@@ -1,94 +0,0 @@
-.. index::
- single: Mockery; Configuration
-
-Mockery Global Configuration
-============================
-
-To allow for a degree of fine-tuning, Mockery utilises a singleton
-configuration object to store a small subset of core behaviours. The three
-currently present include:
-
-* Option to allow/disallow the mocking of methods which do not actually exist
- fulfilled (i.e. unused)
-* Setter/Getter for added a parameter map for internal PHP class methods
- (``Reflection`` cannot detect these automatically)
-* Option to drive if quick definitions should define a stub or a mock with
- an 'at least once' expectation.
-
-By default, the first behaviour is enabled. Of course, there are
-situations where this can lead to unintended consequences. The mocking of
-non-existent methods may allow mocks based on real classes/objects to fall out
-of sync with the actual implementations, especially when some degree of
-integration testing (testing of object wiring) is not being performed.
-
-You may allow or disallow this behaviour (whether for whole test suites or
-just select tests) by using the following call:
-
-.. code-block:: php
-
- \Mockery::getConfiguration()->allowMockingNonExistentMethods(bool);
-
-Passing a true allows the behaviour, false disallows it. It takes effect
-immediately until switched back. If the behaviour is detected when not allowed,
-it will result in an Exception being thrown at that point. Note that disallowing
-this behaviour should be carefully considered since it necessarily removes at
-least some of Mockery's flexibility.
-
-The other two methods are:
-
-.. code-block:: php
-
- \Mockery::getConfiguration()->setInternalClassMethodParamMap($class, $method, array $paramMap)
- \Mockery::getConfiguration()->getInternalClassMethodParamMap($class, $method)
-
-These are used to define parameters (i.e. the signature string of each) for the
-methods of internal PHP classes (e.g. SPL, or PECL extension classes like
-ext/mongo's MongoCollection. Reflection cannot analyse the parameters of internal
-classes. Most of the time, you never need to do this. It's mainly needed where an
-internal class method uses pass-by-reference for a parameter - you MUST in such
-cases ensure the parameter signature includes the ``&`` symbol correctly as Mockery
-won't correctly add it automatically for internal classes. Note that internal class
-parameter overriding is not available in PHP 8. This is because incompatible
-signatures have been reclassified as fatal errors.
-
-Finally there is the possibility to change what a quick definition produces.
-By default quick definitions create stubs but you can change this behaviour
-by asking Mockery to use 'at least once' expectations.
-
-.. code-block:: php
-
- \Mockery::getConfiguration()->getQuickDefinitions()->shouldBeCalledAtLeastOnce(bool)
-
-Passing a true allows the behaviour, false disallows it. It takes effect
-immediately until switched back. By doing so you can avoid the proliferating of
-quick definitions that accumulate overtime in your code since the test would
-fail in case the 'at least once' expectation is not fulfilled.
-
-Disabling reflection caching
-----------------------------
-
-Mockery heavily uses `"reflection" `_
-to do it's job. To speed up things, Mockery caches internally the information it
-gathers via reflection. In some cases, this caching can cause problems.
-
-The **only** known situation when this occurs is when PHPUnit's ``--static-backup`` option
-is used. If you use ``--static-backup`` and you get an error that looks like the
-following:
-
-.. code-block:: php
-
- Error: Internal error: Failed to retrieve the reflection object
-
-We suggest turning off the reflection cache as so:
-
-.. code-block:: php
-
- \Mockery::getConfiguration()->disableReflectionCache();
-
-Turning it back on can be done like so:
-
-.. code-block:: php
-
- \Mockery::getConfiguration()->enableReflectionCache();
-
-In no other situation should you be required turn this reflection cache off.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/mockery/exceptions.rst b/wordpress-dev/vendor/mockery/mockery/docs/mockery/exceptions.rst
deleted file mode 100644
index 623b158e..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/mockery/exceptions.rst
+++ /dev/null
@@ -1,65 +0,0 @@
-.. index::
- single: Mockery; Exceptions
-
-Mockery Exceptions
-==================
-
-Mockery throws three types of exceptions when it cannot verify a mock object.
-
-#. ``\Mockery\Exception\InvalidCountException``
-#. ``\Mockery\Exception\InvalidOrderException``
-#. ``\Mockery\Exception\NoMatchingExpectationException``
-
-You can capture any of these exceptions in a try...catch block to query them
-for specific information which is also passed along in the exception message
-but is provided separately from getters should they be useful when logging or
-reformatting output.
-
-\Mockery\Exception\InvalidCountException
-----------------------------------------
-
-The exception class is used when a method is called too many (or too few)
-times and offers the following methods:
-
-* ``getMock()`` - return actual mock object
-* ``getMockName()`` - return the name of the mock object
-* ``getMethodName()`` - return the name of the method the failing expectation
- is attached to
-* ``getExpectedCount()`` - return expected calls
-* ``getExpectedCountComparative()`` - returns a string, e.g. ``<=`` used to
- compare to actual count
-* ``getActualCount()`` - return actual calls made with given argument
- constraints
-
-\Mockery\Exception\InvalidOrderException
-----------------------------------------
-
-The exception class is used when a method is called outside the expected order
-set using the ``ordered()`` and ``globally()`` expectation modifiers. It
-offers the following methods:
-
-* ``getMock()`` - return actual mock object
-* ``getMockName()`` - return the name of the mock object
-* ``getMethodName()`` - return the name of the method the failing expectation
- is attached to
-* ``getExpectedOrder()`` - returns an integer represented the expected index
- for which this call was expected
-* ``getActualOrder()`` - return the actual index at which this method call
- occurred.
-
-\Mockery\Exception\NoMatchingExpectationException
--------------------------------------------------
-
-The exception class is used when a method call does not match any known
-expectation. All expectations are uniquely identified in a mock object by the
-method name and the list of expected arguments. You can disable this exception
-and opt for returning NULL from all unexpected method calls by using the
-earlier mentioned shouldIgnoreMissing() behaviour modifier. This exception
-class offers the following methods:
-
-* ``getMock()`` - return actual mock object
-* ``getMockName()`` - return the name of the mock object
-* ``getMethodName()`` - return the name of the method the failing expectation
- is attached to
-* ``getActualArguments()`` - return actual arguments used to search for a
- matching expectation
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/mockery/gotchas.rst b/wordpress-dev/vendor/mockery/mockery/docs/mockery/gotchas.rst
deleted file mode 100644
index 92c566dd..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/mockery/gotchas.rst
+++ /dev/null
@@ -1,44 +0,0 @@
-.. index::
- single: Mockery; Gotchas
-
-Gotchas!
-========
-
-Mocking objects in PHP has its limitations and gotchas. Some functionality
-can't be mocked or can't be mocked YET! If you locate such a circumstance,
-please please (pretty please with sugar on top) create a new issue on GitHub
-so it can be documented and resolved where possible. Here is a list to note:
-
-1. Classes containing public ``__wakeup()`` methods can be mocked but the
- mocked ``__wakeup()`` method will perform no actions and cannot have
- expectations set for it. This is necessary since Mockery must serialize and
- unserialize objects to avoid some ``__construct()`` insanity and attempting
- to mock a ``__wakeup()`` method as normal leads to a
- ``BadMethodCallException`` being thrown.
-
-2. Mockery has two scenarios where real classes are replaced: Instance mocks
- and alias mocks. Both will generate PHP fatal errors if the real class is
- loaded, usually via a require or include statement. Only use these two mock
- types where autoloading is in place and where classes are not explicitly
- loaded on a per-file basis using ``require()``, ``require_once()``, etc.
-
-3. Internal PHP classes are not entirely capable of being fully analysed using
- ``Reflection``. For example, ``Reflection`` cannot reveal details of
- expected parameters to the methods of such internal classes. As a result,
- there will be problems where a method parameter is defined to accept a
- value by reference (Mockery cannot detect this condition and will assume a
- pass by value on scalars and arrays). If references as internal class
- method parameters are needed, you should use the
- ``\Mockery\Configuration::setInternalClassMethodParamMap()`` method.
- Note, however that internal class parameter overriding is not available in
- PHP 8 since incompatible signatures have been reclassified as fatal errors.
-
-4. Creating a mock implementing a certain interface with incorrect case in the
- interface name, and then creating a second mock implementing the same
- interface, but this time with the correct case, will have undefined behavior
- due to PHP's ``class_exists`` and related functions being case insensitive.
- Using the ``::class`` keyword in PHP can help you avoid these mistakes.
-
-The gotchas noted above are largely down to PHP's architecture and are assumed
-to be unavoidable. But - if you figure out a solution (or a better one than
-what may exist), let us know!
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/mockery/index.rst b/wordpress-dev/vendor/mockery/mockery/docs/mockery/index.rst
deleted file mode 100644
index b698d6cb..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/mockery/index.rst
+++ /dev/null
@@ -1,12 +0,0 @@
-Mockery
-=======
-
-.. toctree::
- :hidden:
-
- configuration
- exceptions
- reserved_method_names
- gotchas
-
-.. include:: map.rst.inc
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/mockery/map.rst.inc b/wordpress-dev/vendor/mockery/mockery/docs/mockery/map.rst.inc
deleted file mode 100644
index 46ffa975..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/mockery/map.rst.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-* :doc:`/mockery/configuration`
-* :doc:`/mockery/exceptions`
-* :doc:`/mockery/reserved_method_names`
-* :doc:`/mockery/gotchas`
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/mockery/reserved_method_names.rst b/wordpress-dev/vendor/mockery/mockery/docs/mockery/reserved_method_names.rst
deleted file mode 100644
index 5ad58d40..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/mockery/reserved_method_names.rst
+++ /dev/null
@@ -1,33 +0,0 @@
-.. index::
- single: Reserved Method Names
-
-Reserved Method Names
-=====================
-
-As you may have noticed, Mockery uses a number of methods called directly on
-all mock objects, for example ``shouldReceive()``. Such methods are necessary
-in order to setup expectations on the given mock, and so they cannot be
-implemented on the classes or objects being mocked without creating a method
-name collision (reported as a PHP fatal error). The methods reserved by
-Mockery are:
-
-* ``shouldReceive()``
-* ``shouldNotReceive()``
-* ``allows()``
-* ``expects()``
-* ``shouldAllowMockingMethod()``
-* ``shouldIgnoreMissing()``
-* ``asUndefined()``
-* ``shouldAllowMockingProtectedMethods()``
-* ``makePartial()``
-* ``byDefault()``
-* ``shouldHaveReceived()``
-* ``shouldHaveBeenCalled()``
-* ``shouldNotHaveReceived()``
-* ``shouldNotHaveBeenCalled()``
-
-
-In addition, all mocks utilise a set of added methods and protected properties
-which cannot exist on the class or object being mocked. These are far less
-likely to cause collisions. All properties are prefixed with ``_mockery`` and
-all method names with ``mockery_``.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/alternative_should_receive_syntax.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/alternative_should_receive_syntax.rst
deleted file mode 100644
index 78c1e83c..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/alternative_should_receive_syntax.rst
+++ /dev/null
@@ -1,91 +0,0 @@
-.. index::
- single: Alternative shouldReceive Syntax
-
-Alternative shouldReceive Syntax
-================================
-
-As of Mockery 1.0.0, we support calling methods as we would call any PHP method,
-and not as string arguments to Mockery ``should*`` methods.
-
-The two Mockery methods that enable this are ``allows()`` and ``expects()``.
-
-Allows
-------
-
-We use ``allows()`` when we create stubs for methods that return a predefined
-return value, but for these method stubs we don't care how many times, or if at
-all, were they called.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->allows([
- 'name_of_method_1' => 'return value',
- 'name_of_method_2' => 'return value',
- ]);
-
-This is equivalent with the following ``shouldReceive`` syntax:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive([
- 'name_of_method_1' => 'return value',
- 'name_of_method_2' => 'return value',
- ]);
-
-Note that with this format, we also tell Mockery that we don't care about the
-arguments to the stubbed methods.
-
-If we do care about the arguments, we would do it like so:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->allows()
- ->name_of_method_1($arg1)
- ->andReturn('return value');
-
-This is equivalent with the following ``shouldReceive`` syntax:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method_1')
- ->with($arg1)
- ->andReturn('return value');
-
-Expects
--------
-
-We use ``expects()`` when we want to verify that a particular method was called:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->expects()
- ->name_of_method_1($arg1)
- ->andReturn('return value');
-
-This is equivalent with the following ``shouldReceive`` syntax:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method_1')
- ->once()
- ->with($arg1)
- ->andReturn('return value');
-
-By default ``expects()`` sets up an expectation that the method should be called
-once and once only. If we expect more than one call to the method, we can change
-that expectation:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->expects()
- ->name_of_method_1($arg1)
- ->twice()
- ->andReturn('return value');
-
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/argument_validation.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/argument_validation.rst
deleted file mode 100644
index 9351ce40..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/argument_validation.rst
+++ /dev/null
@@ -1,338 +0,0 @@
-.. index::
- single: Argument Validation
-
-Argument Validation
-===================
-
-The arguments passed to the ``with()`` declaration when setting up an
-expectation determine the criteria for matching method calls to expectations.
-Thus, we can setup up many expectations for a single method, each
-differentiated by the expected arguments. Such argument matching is done on a
-"best fit" basis. This ensures explicit matches take precedence over
-generalised matches.
-
-An explicit match is merely where the expected argument and the actual
-argument are easily equated (i.e. using ``===`` or ``==``). More generalised
-matches are possible using regular expressions, class hinting and the
-available generic matchers. The purpose of generalised matchers is to allow
-arguments be defined in non-explicit terms, e.g. ``Mockery::any()`` passed to
-``with()`` will match **any** argument in that position.
-
-Mockery's generic matchers do not cover all possibilities but offers optional
-support for the Hamcrest library of matchers. Hamcrest is a PHP port of the
-similarly named Java library (which has been ported also to Python, Erlang,
-etc). By using Hamcrest, Mockery does not need to duplicate Hamcrest's already
-impressive utility which itself promotes a natural English DSL.
-
-The examples below show Mockery matchers and their Hamcrest equivalent, if there
-is one. Hamcrest uses functions (no namespacing).
-
-.. note::
-
- If you don't wish to use the global Hamcrest functions, they are all exposed
- through the ``\Hamcrest\Matchers`` class as well, as static methods. Thus,
- ``identicalTo($arg)`` is the same as ``\Hamcrest\Matchers::identicalTo($arg)``
-
-The most common matcher is the ``with()`` matcher:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(1):
-
-It tells mockery that it should receive a call to the ``foo`` method with the
-integer ``1`` as an argument. In cases like this, Mockery first tries to match
-the arguments using ``===`` (identical) comparison operator. If the argument is
-a primitive, and if it fails the identical comparison, Mockery does a fallback
-to the ``==`` (equals) comparison operator.
-
-When matching objects as arguments, Mockery only does the strict ``===``
-comparison, which means only the same ``$object`` will match:
-
-.. code-block:: php
-
- $object = new stdClass();
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive("foo")
- ->with($object);
-
- // Hamcrest equivalent
- $mock->shouldReceive("foo")
- ->with(identicalTo($object));
-
-A different instance of ``stdClass`` will **not** match.
-
-.. note::
-
- The ``Mockery\Matcher\MustBe`` matcher has been deprecated.
-
-If we need a loose comparison of objects, we can do that using Hamcrest's
-``equalTo`` matcher:
-
-.. code-block:: php
-
- $mock->shouldReceive("foo")
- ->with(equalTo(new stdClass));
-
-In cases when we don't care about the type, or the value of an argument, just
-that any argument is present, we use ``any()``:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive("foo")
- ->with(\Mockery::any());
-
- // Hamcrest equivalent
- $mock->shouldReceive("foo")
- ->with(anything())
-
-Anything and everything passed in this argument slot is passed unconstrained.
-
-Validating Types and Resources
-------------------------------
-
-The ``type()`` matcher accepts any string which can be attached to ``is_`` to
-form a valid type check.
-
-To match any PHP resource, we could do the following:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive("foo")
- ->with(\Mockery::type('resource'));
-
- // Hamcrest equivalents
- $mock->shouldReceive("foo")
- ->with(resourceValue());
- $mock->shouldReceive("foo")
- ->with(typeOf('resource'));
-
-It will return a ``true`` from an ``is_resource()`` call, if the provided
-argument to the method is a PHP resource. For example, ``\Mockery::type('float')``
-or Hamcrest's ``floatValue()`` and ``typeOf('float')`` checks use ``is_float()``,
-and ``\Mockery::type('callable')`` or Hamcrest's ``callable()`` uses
-``is_callable()``.
-
-The ``type()`` matcher also accepts a class or interface name to be used in an
-``instanceof`` evaluation of the actual argument. Hamcrest uses ``anInstanceOf()``.
-
-A full list of the type checkers is available at
-`php.net `_ or browse Hamcrest's function
-list in
-`the Hamcrest code `_.
-
-.. _argument-validation-complex-argument-validation:
-
-Complex Argument Validation
----------------------------
-
-If we want to perform a complex argument validation, the ``on()`` matcher is
-invaluable. It accepts a closure (anonymous function) to which the actual
-argument will be passed.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive("foo")
- ->with(\Mockery::on(closure));
-
-If the closure evaluates to (i.e. returns) boolean ``true`` then the argument is
-assumed to have matched the expectation.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
-
- $mock->shouldReceive('foo')
- ->with(\Mockery::on(function ($argument) {
- if ($argument % 2 == 0) {
- return true;
- }
- return false;
- }));
-
- $mock->foo(4); // matches the expectation
- $mock->foo(3); // throws a NoMatchingExpectationException
-
-.. note::
-
- There is no Hamcrest version of the ``on()`` matcher.
-
-We can also perform argument validation by passing a closure to ``withArgs()``
-method. The closure will receive all arguments passed in the call to the expected
-method and if it evaluates (i.e. returns) to boolean ``true``, then the list of
-arguments is assumed to have matched the expectation:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive("foo")
- ->withArgs(closure);
-
-The closure can also handle optional parameters, so if an optional parameter is
-missing in the call to the expected method, it doesn't necessary means that the
-list of arguments doesn't match the expectation.
-
-.. code-block:: php
-
- $closure = function ($odd, $even, $sum = null) {
- $result = ($odd % 2 != 0) && ($even % 2 == 0);
- if (!is_null($sum)) {
- return $result && ($odd + $even == $sum);
- }
- return $result;
- };
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')->withArgs($closure);
-
- $mock->foo(1, 2); // It matches the expectation: the optional argument is not needed
- $mock->foo(1, 2, 3); // It also matches the expectation: the optional argument pass the validation
- $mock->foo(1, 2, 4); // It doesn't match the expectation: the optional doesn't pass the validation
-
-.. note::
-
- In previous versions, Mockery's ``with()`` would attempt to do a pattern
- matching against the arguments, attempting to use the argument as a
- regular expression. Over time this proved to be not such a great idea, so
- we removed this functionality, and have introduced ``Mockery::pattern()``
- instead.
-
-If we would like to match an argument against a regular expression, we can use
-the ``\Mockery::pattern()``:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(\Mockery::pattern('/^foo/'));
-
- // Hamcrest equivalent
- $mock->shouldReceive('foo')
- ->with(matchesPattern('/^foo/'));
-
-The ``ducktype()`` matcher is an alternative to matching by class type:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(\Mockery::ducktype('foo', 'bar'));
-
-It matches any argument which is an object containing the provided list of
-methods to call.
-
-.. note::
-
- There is no Hamcrest version of the ``ducktype()`` matcher.
-
-Capturing Arguments
--------------------
-
-If we want to perform multiple validations on a single argument, the ``capture``
-matcher provides a streamlined alternative to using the ``on()`` matcher.
-It accepts a variable which the actual argument will be assigned.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive("foo")
- ->with(\Mockery::capture($bar));
-
-This will assign *any* argument passed to ``foo`` to the local ``$bar`` variable to
-then perform additional validation using assertions.
-
-.. note::
-
- The ``capture`` matcher always evaluates to ``true``. As such, we should always
- perform additional argument validation.
-
-Additional Argument Matchers
-----------------------------
-
-The ``not()`` matcher matches any argument which is not equal or identical to
-the matcher's parameter:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(\Mockery::not(2));
-
- // Hamcrest equivalent
- $mock->shouldReceive('foo')
- ->with(not(2));
-
-``anyOf()`` matches any argument which equals any one of the given parameters:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(\Mockery::anyOf(1, 2));
-
- // Hamcrest equivalent
- $mock->shouldReceive('foo')
- ->with(anyOf(1,2));
-
-``notAnyOf()`` matches any argument which is not equal or identical to any of
-the given parameters:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(\Mockery::notAnyOf(1, 2));
-
-.. note::
-
- There is no Hamcrest version of the ``notAnyOf()`` matcher.
-
-``subset()`` matches any argument which is any array containing the given array
-subset:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(\Mockery::subset(array(0 => 'foo')));
-
-This enforces both key naming and values, i.e. both the key and value of each
-actual element is compared.
-
-.. note::
-
- There is no Hamcrest version of this functionality, though Hamcrest can check
- a single entry using ``hasEntry()`` or ``hasKeyValuePair()``.
-
-``contains()`` matches any argument which is an array containing the listed
-values:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(\Mockery::contains(value1, value2));
-
-The naming of keys is ignored.
-
-``hasKey()`` matches any argument which is an array containing the given key
-name:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(\Mockery::hasKey(key));
-
-``hasValue()`` matches any argument which is an array containing the given
-value:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->with(\Mockery::hasValue(value));
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/creating_test_doubles.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/creating_test_doubles.rst
deleted file mode 100644
index b675514b..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/creating_test_doubles.rst
+++ /dev/null
@@ -1,435 +0,0 @@
-.. index::
- single: Reference; Creating Test Doubles
-
-Creating Test Doubles
-=====================
-
-Mockery's main goal is to help us create test doubles. It can create stubs,
-mocks, and spies.
-
-Stubs and mocks are created the same. The difference between the two is that a
-stub only returns a preset result when called, while a mock needs to have
-expectations set on the method calls it expects to receive.
-
-Spies are a type of test doubles that keep track of the calls they received, and
-allow us to inspect these calls after the fact.
-
-When creating a test double object, we can pass in an identifier as a name for
-our test double. If we pass it no identifier, the test double name will be
-unknown. Furthermore, the identifier does not have to be a class name. It is a
-good practice, and our recommendation, to always name the test doubles with the
-same name as the underlying class we are creating test doubles for.
-
-If the identifier we use for our test double is a name of an existing class,
-the test double will inherit the type of the class (via inheritance), i.e. the
-mock object will pass type hints or ``instanceof`` evaluations for the existing
-class. This is useful when a test double must be of a specific type, to satisfy
-the expectations our code has.
-
-Stubs and mocks
----------------
-
-Stubs and mocks are created by calling the ``\Mockery::mock()`` method. The
-following example shows how to create a stub, or a mock, object named "foo":
-
-.. code-block:: php
-
- $mock = \Mockery::mock('foo');
-
-The mock object created like this is the loosest form of mocks possible, and is
-an instance of ``\Mockery\MockInterface``.
-
-.. note::
-
- All test doubles created with Mockery are an instance of
- ``\Mockery\MockInterface``, regardless are they a stub, mock or a spy.
-
-To create a stub or a mock object with no name, we can call the ``mock()``
-method with no parameters:
-
-.. code-block:: php
-
- $mock = \Mockery::mock();
-
-As we stated earlier, we don't recommend creating stub or mock objects without
-a name.
-
-Classes, abstracts, interfaces
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-The recommended way to create a stub or a mock object is by using a name of
-an existing class we want to create a test double of:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
-
-This stub or mock object will have the type of ``MyClass``, through inheritance.
-
-Stub or mock objects can be based on any concrete class, abstract class or even
-an interface. The primary purpose is to ensure the mock object inherits a
-specific type for type hinting.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyInterface');
-
-This stub or mock object will implement the ``MyInterface`` interface.
-
-.. note::
-
- Classes marked final, or classes that have methods marked final cannot be
- mocked fully. Mockery supports creating partial mocks for these cases.
- Partial mocks will be explained later in the documentation.
-
-Mockery also supports creating stub or mock objects based on a single existing
-class, which must implement one or more interfaces. We can do this by providing
-a comma-separated list of the class and interfaces as the first argument to the
-``\Mockery::mock()`` method:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass, MyInterface, OtherInterface');
-
-This stub or mock object will now be of type ``MyClass`` and implement the
-``MyInterface`` and ``OtherInterface`` interfaces.
-
-.. note::
-
- The class name doesn't need to be the first member of the list but it's a
- friendly convention to use for readability.
-
-We can tell a mock to implement the desired interfaces by passing the list of
-interfaces as the second argument:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass', 'MyInterface, OtherInterface');
-
-For all intents and purposes, this is the same as the previous example.
-
-Spies
------
-
-The third type of test doubles Mockery supports are spies. The main difference
-between spies and mock objects is that with spies we verify the calls made
-against our test double after the calls were made. We would use a spy when we
-don't necessarily care about all of the calls that are going to be made to an
-object.
-
-A spy will return ``null`` for all method calls it receives. It is not possible
-to tell a spy what will be the return value of a method call. If we do that, then
-we would deal with a mock object, and not with a spy.
-
-We create a spy by calling the ``\Mockery::spy()`` method:
-
-.. code-block:: php
-
- $spy = \Mockery::spy('MyClass');
-
-Just as with stubs or mocks, we can tell Mockery to base a spy on any concrete
-or abstract class, or to implement any number of interfaces:
-
-.. code-block:: php
-
- $spy = \Mockery::spy('MyClass, MyInterface, OtherInterface');
-
-This spy will now be of type ``MyClass`` and implement the ``MyInterface`` and
-``OtherInterface`` interfaces.
-
-.. note::
-
- The ``\Mockery::spy()`` method call is actually a shorthand for calling
- ``\Mockery::mock()->shouldIgnoreMissing()``. The ``shouldIgnoreMissing``
- method is a "behaviour modifier". We'll discuss them a bit later.
-
-Mocks vs. Spies
----------------
-
-Let's try and illustrate the difference between mocks and spies with the
-following example:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $spy = \Mockery::spy('MyClass');
-
- $mock->shouldReceive('foo')->andReturn(42);
-
- $mockResult = $mock->foo();
- $spyResult = $spy->foo();
-
- $spy->shouldHaveReceived()->foo();
-
- var_dump($mockResult); // int(42)
- var_dump($spyResult); // null
-
-As we can see from this example, with a mock object we set the call expectations
-before the call itself, and we get the return result we expect it to return.
-With a spy object on the other hand, we verify the call has happened after the
-fact. The return result of a method call against a spy is always ``null``.
-
-We also have a dedicated chapter to :doc:`spies` only.
-
-.. _creating-test-doubles-partial-test-doubles:
-
-Partial Test Doubles
---------------------
-
-Partial doubles are useful when we want to stub out, set expectations for, or
-spy on *some* methods of a class, but run the actual code for other methods.
-
-We differentiate between three types of partial test doubles:
-
- * runtime partial test doubles,
- * generated partial test doubles, and
- * proxied partial test doubles.
-
-Runtime partial test doubles
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-What we call a runtime partial, involves creating a test double and then telling
-it to make itself partial. Any method calls that the double hasn't been told to
-allow or expect, will act as they would on a normal instance of the object.
-
-.. code-block:: php
-
- class Foo {
- function foo() { return 123; }
- function bar() { return $this->foo(); }
- }
-
- $foo = mock(Foo::class)->makePartial();
- $foo->foo(); // int(123);
-
-We can then tell the test double to allow or expect calls as with any other
-Mockery double.
-
-.. code-block:: php
-
- $foo->shouldReceive('foo')->andReturn(456);
- $foo->bar(); // int(456)
-
-See the cookbook entry on :doc:`../cookbook/big_parent_class` for an example
-usage of runtime partial test doubles.
-
-Generated partial test doubles
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-The second type of partial double we can create is what we call a generated
-partial. With generated partials, we specifically tell Mockery which methods
-we want to be able to allow or expect calls to. All other methods will run the
-actual code *directly*, so stubs and expectations on these methods will not
-work.
-
-.. code-block:: php
-
- class Foo {
- function foo() { return 123; }
- function bar() { return $this->foo(); }
- }
-
- $foo = mock("Foo[foo]");
-
- $foo->foo(); // error, no expectation set
-
- $foo->shouldReceive('foo')->andReturn(456);
- $foo->foo(); // int(456)
-
- // setting an expectation for this has no effect
- $foo->shouldReceive('bar')->andReturn(999);
- $foo->bar(); // int(456)
-
-It's also possible to specify explicitly which methods to run directly using
-the `!method` syntax:
-
-.. code-block:: php
-
- class Foo {
- function foo() { return 123; }
- function bar() { return $this->foo(); }
- }
-
- $foo = mock("Foo[!foo]");
-
- $foo->foo(); // int(123)
-
- $foo->bar(); // error, no expectation set
-
-.. note::
-
- Even though we support generated partial test doubles, we do not recommend
- using them.
-
- One of the reasons why is because a generated partial will call the original
- constructor of the mocked class. This can have unwanted side-effects during
- testing application code.
-
- See :doc:`../cookbook/not_calling_the_constructor` for more details.
-
-Proxied partial test doubles
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-A proxied partial mock is a partial of last resort. We may encounter a class
-which is simply not capable of being mocked because it has been marked as
-final. Similarly, we may find a class with methods marked as final. In such a
-scenario, we cannot simply extend the class and override methods to mock - we
-need to get creative.
-
-.. code-block:: php
-
- $mock = \Mockery::mock(new MyClass);
-
-Yes, the new mock is a Proxy. It intercepts calls and reroutes them to the
-proxied object (which we construct and pass in) for methods which are not
-subject to any expectations. Indirectly, this allows us to mock methods
-marked final since the Proxy is not subject to those limitations. The tradeoff
-should be obvious - a proxied partial will fail any typehint checks for the
-class being mocked since it cannot extend that class.
-
-.. _creating-test-doubles-aliasing:
-
-Aliasing
---------
-
-Prefixing the valid name of a class (which is NOT currently loaded) with
-"alias:" will generate an "alias mock". Alias mocks create a class alias with
-the given classname to stdClass and are generally used to enable the mocking
-of public static methods. Expectations set on the new mock object which refer
-to static methods will be used by all static calls to this class.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('alias:MyClass');
-
-
-.. note::
-
- Even though aliasing classes is supported, we do not recommend it.
-
-Overloading
------------
-
-Prefixing the valid name of a class (which is NOT currently loaded) with
-"overload:" will generate an alias mock (as with "alias:") except that created
-new instances of that class will import any expectations set on the origin
-mock (``$mock``). The origin mock is never verified since it's used an
-expectation store for new instances. For this purpose we use the term "instance
-mock" to differentiate it from the simpler "alias mock".
-
-In other words, an instance mock will "intercept" when a new instance of the
-mocked class is created, then the mock will be used instead. This is useful
-especially when mocking hard dependencies which will be discussed later.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('overload:MyClass');
-
-.. note::
-
- Using alias/instance mocks across more than one test will generate a fatal
- error since we can't have two classes of the same name. To avoid this,
- run each test of this kind in a separate PHP process (which is supported
- out of the box by both PHPUnit and PHPT).
-
-
-.. _creating-test-doubles-named-mocks:
-
-Named Mocks
------------
-
-The ``namedMock()`` method will generate a class called by the first argument,
-so in this example ``MyClassName``. The rest of the arguments are treated in the
-same way as the ``mock`` method:
-
-.. code-block:: php
-
- $mock = \Mockery::namedMock('MyClassName', 'DateTime');
-
-This example would create a class called ``MyClassName`` that extends
-``DateTime``.
-
-Named mocks are quite an edge case, but they can be useful when code depends
-on the ``__CLASS__`` magic constant, or when we need two derivatives of an
-abstract type, that are actually different classes.
-
-See the cookbook entry on :doc:`../cookbook/class_constants` for an example
-usage of named mocks.
-
-.. note::
-
- We can only create a named mock once, any subsequent calls to
- ``namedMock``, with different arguments are likely to cause exceptions.
-
-.. _creating-test-doubles-constructor-arguments:
-
-Constructor Arguments
----------------------
-
-Sometimes the mocked class has required constructor arguments. We can pass these
-to Mockery as an indexed array, as the 2nd argument:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass', [$constructorArg1, $constructorArg2]);
-
-or if we need the ``MyClass`` to implement an interface as well, as the 3rd
-argument:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass', 'MyInterface', [$constructorArg1, $constructorArg2]);
-
-Mockery now knows to pass in ``$constructorArg1`` and ``$constructorArg2`` as
-arguments to the constructor.
-
-.. _creating-test-doubles-behavior-modifiers:
-
-Behavior Modifiers
-------------------
-
-When creating a mock object, we may wish to use some commonly preferred
-behaviours that are not the default in Mockery.
-
-The use of the ``shouldIgnoreMissing()`` behaviour modifier will label this
-mock object as a Passive Mock:
-
-.. code-block:: php
-
- \Mockery::mock('MyClass')->shouldIgnoreMissing();
-
-In such a mock object, calls to methods which are not covered by expectations
-will return ``null`` instead of the usual error about there being no expectation
-matching the call.
-
-On PHP >= 7.0.0, methods with missing expectations that have a return type
-will return either a mock of the object (if return type is a class) or a
-"falsy" primitive value, e.g. empty string, empty array, zero for ints and
-floats, false for bools, or empty closures.
-
-On PHP >= 7.1.0, methods with missing expectations and nullable return type
-will return null.
-
-We can optionally prefer to return an object of type ``\Mockery\Undefined``
-(i.e. a ``null`` object) (which was the 0.7.2 behaviour) by using an
-additional modifier:
-
-.. code-block:: php
-
- \Mockery::mock('MyClass')->shouldIgnoreMissing()->asUndefined();
-
-The returned object is nothing more than a placeholder so if, by some act of
-fate, it's erroneously used somewhere it shouldn't, it will likely not pass a
-logic check.
-
-We have encountered the ``makePartial()`` method before, as it is the method we
-use to create runtime partial test doubles:
-
-.. code-block:: php
-
- \Mockery::mock('MyClass')->makePartial();
-
-This form of mock object will defer all methods not subject to an expectation to
-the parent class of the mock, i.e. ``MyClass``. Whereas the previous
-``shouldIgnoreMissing()`` returned ``null``, this behaviour simply calls the
-parent's matching method.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/demeter_chains.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/demeter_chains.rst
deleted file mode 100644
index 1dad5eff..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/demeter_chains.rst
+++ /dev/null
@@ -1,38 +0,0 @@
-.. index::
- single: Mocking; Demeter Chains
-
-Mocking Demeter Chains And Fluent Interfaces
-============================================
-
-Both of these terms refer to the growing practice of invoking statements
-similar to:
-
-.. code-block:: php
-
- $object->foo()->bar()->zebra()->alpha()->selfDestruct();
-
-The long chain of method calls isn't necessarily a bad thing, assuming they
-each link back to a local object the calling class knows. As a fun example,
-Mockery's long chains (after the first ``shouldReceive()`` method) all call to
-the same instance of ``\Mockery\Expectation``. However, sometimes this is not
-the case and the chain is constantly crossing object boundaries.
-
-In either case, mocking such a chain can be a horrible task. To make it easier
-Mockery supports demeter chain mocking. Essentially, we shortcut through the
-chain and return a defined value from the final call. For example, let's
-assume ``selfDestruct()`` returns the string "Ten!" to $object (an instance of
-``CaptainsConsole``). Here's how we could mock it.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('CaptainsConsole');
- $mock->shouldReceive('foo->bar->zebra->alpha->selfDestruct')->andReturn('Ten!');
-
-The above expectation can follow any previously seen format or expectation,
-except that the method name is simply the string of all expected chain calls
-separated by ``->``. Mockery will automatically setup the chain of expected
-calls with its final return values, regardless of whatever intermediary object
-might be used in the real implementation.
-
-Arguments to all members of the chain (except the final call) are ignored in
-this process.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/expectations.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/expectations.rst
deleted file mode 100644
index 4430e978..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/expectations.rst
+++ /dev/null
@@ -1,533 +0,0 @@
-.. index::
- single: Expectations
-
-Expectation Declarations
-========================
-
-.. note::
-
- In order for our expectations to work we MUST call ``Mockery::close()``,
- preferably in a callback method such as ``tearDown`` or ``_after``
- (depending on whether or not we're integrating Mockery with another
- framework). This static call cleans up the Mockery container used by the
- current test, and run any verification tasks needed for our expectations.
-
-Once we have created a mock object, we'll often want to start defining how
-exactly it should behave (and how it should be called). This is where the
-Mockery expectation declarations take over.
-
-Declaring Method Call Expectations
-----------------------------------
-
-To tell our test double to expect a call for a method with a given name, we use
-the ``shouldReceive`` method:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method');
-
-This is the starting expectation upon which all other expectations and
-constraints are appended.
-
-We can declare more than one method call to be expected:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method_1', 'name_of_method_2');
-
-All of these will adopt any chained expectations or constraints.
-
-It is possible to declare the expectations for the method calls, along with
-their return values:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive([
- 'name_of_method_1' => 'return value 1',
- 'name_of_method_2' => 'return value 2',
- ]);
-
-There's also a shorthand way of setting up method call expectations and their
-return values:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass', ['name_of_method_1' => 'return value 1', 'name_of_method_2' => 'return value 2']);
-
-All of these will adopt any additional chained expectations or constraints.
-
-We can declare that a test double should not expect a call to the given method
-name:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldNotReceive('name_of_method');
-
-This method is a convenience method for calling ``shouldReceive()->never()``.
-
-Declaring Method Argument Expectations
---------------------------------------
-
-For every method we declare expectation for, we can add constraints that the
-defined expectations apply only to the method calls that match the expected
-argument list:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->with($arg1, $arg2, ...);
- // or
- $mock->shouldReceive('name_of_method')
- ->withArgs([$arg1, $arg2, ...]);
-
-We can add a lot more flexibility to argument matching using the built in
-matcher classes (see later). For example, ``\Mockery::any()`` matches any
-argument passed to that position in the ``with()`` parameter list. Mockery also
-allows Hamcrest library matchers - for example, the Hamcrest function
-``anything()`` is equivalent to ``\Mockery::any()``.
-
-It's important to note that this means all expectations attached only apply to
-the given method when it is called with these exact arguments:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
-
- $mock->shouldReceive('foo')->with('Hello');
-
- $mock->foo('Goodbye'); // throws a NoMatchingExpectationException
-
-This allows for setting up differing expectations based on the arguments
-provided to expected calls.
-
-Argument matching with closures
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-Instead of providing a built-in matcher for each argument, we can provide a
-closure that matches all passed arguments at once:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->withArgs(closure);
-
-The given closure receives all the arguments passed in the call to the expected
-method. In this way, this expectation only applies to method calls where passed
-arguments make the closure evaluate to true:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
-
- $mock->shouldReceive('foo')->withArgs(function ($arg) {
- if ($arg % 2 == 0) {
- return true;
- }
- return false;
- });
-
- $mock->foo(4); // matches the expectation
- $mock->foo(3); // throws a NoMatchingExpectationException
-
-Argument matching with some of given values
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-We can provide expected arguments that match passed arguments when mocked method
-is called.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->withSomeOfArgs(arg1, arg2, arg3, ...);
-
-The given expected arguments order doesn't matter.
-Check if expected values are included or not, but type should be matched:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('foo')
- ->withSomeOfArgs(1, 2);
-
- $mock->foo(1, 2, 3); // matches the expectation
- $mock->foo(3, 2, 1); // matches the expectation (passed order doesn't matter)
- $mock->foo('1', '2'); // throws a NoMatchingExpectationException (type should be matched)
- $mock->foo(3); // throws a NoMatchingExpectationException
-
-Any, or no arguments
-^^^^^^^^^^^^^^^^^^^^
-
-We can declare that the expectation matches a method call regardless of what
-arguments are passed:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->withAnyArgs();
-
-This is set by default unless otherwise specified.
-
-We can declare that the expectation matches method calls with zero arguments:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->withNoArgs();
-
-Declaring Return Value Expectations
------------------------------------
-
-For mock objects, we can tell Mockery what return values to return from the
-expected method calls.
-
-For that we can use the ``andReturn()`` method:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andReturn($value);
-
-This sets a value to be returned from the expected method call.
-
-It is possible to set up expectation for multiple return values. By providing
-a sequence of return values, we tell Mockery what value to return on every
-subsequent call to the method:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andReturn($value1, $value2, ...)
-
-The first call will return ``$value1`` and the second call will return ``$value2``.
-
-If we call the method more times than the number of return values we declared,
-Mockery will return the final value for any subsequent method call:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
-
- $mock->shouldReceive('foo')->andReturn(1, 2, 3);
-
- $mock->foo(); // int(1)
- $mock->foo(); // int(2)
- $mock->foo(); // int(3)
- $mock->foo(); // int(3)
-
-The same can be achieved using the alternative syntax:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andReturnValues([$value1, $value2, ...])
-
-It accepts a simple array instead of a list of parameters. The order of return
-is determined by the numerical index of the given array with the last array
-member being returned on all calls once previous return values are exhausted.
-
-The following two options are primarily for communication with test readers:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andReturnNull();
- // or
- $mock->shouldReceive('name_of_method')
- ->andReturn([null]);
-
-They mark the mock object method call as returning ``null`` or nothing.
-
-Sometimes we want to calculate the return results of the method calls, based on
-the arguments passed to the method. We can do that with the ``andReturnUsing()``
-method which accepts one or more closure:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andReturnUsing(closure, ...);
-
-Closures can be queued by passing them as extra parameters as for ``andReturn()``.
-
-Occasionally, it can be useful to echo back one of the arguments that a method
-is called with. In this case we can use the ``andReturnArg()`` method; the
-argument to be returned is specified by its index in the arguments list:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andReturnArg(1);
-
-This returns the second argument (index #1) from the list of arguments when the
-method is called.
-
-.. note::
-
- We cannot currently mix ``andReturnUsing()`` or ``andReturnArg`` with
- ``andReturn()``.
-
-If we are mocking fluid interfaces, the following method will be helpful:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andReturnSelf();
-
-It sets the return value to the mocked class name.
-
-Throwing Exceptions
--------------------
-
-We can tell the method of mock objects to throw exceptions:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andThrow(new Exception);
-
-It will throw the given ``Exception`` object when called.
-
-Rather than an object, we can pass in the ``Exception`` class, message and/or code to
-use when throwing an ``Exception`` from the mocked method:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andThrow('exception_name', 'message', 123456789);
-
-.. _expectations-setting-public-properties:
-
-Setting Public Properties
--------------------------
-
-Used with an expectation so that when a matching method is called, we can cause
-a mock object's public property to be set to a specified value, by using
-``andSet()`` or ``set()``:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->andSet($property, $value);
- // or
- $mock->shouldReceive('name_of_method')
- ->set($property, $value);
-
-In cases where we want to call the real method of the class that was mocked and
-return its result, the ``passthru()`` method tells the expectation to bypass
-a return queue:
-
-.. code-block:: php
-
- passthru()
-
-It allows expectation matching and call count validation to be applied against
-real methods while still calling the real class method with the expected
-arguments.
-
-Declaring Call Count Expectations
----------------------------------
-
-Besides setting expectations on the arguments of the method calls, and the
-return values of those same calls, we can set expectations on how many times
-should any method be called.
-
-When a call count expectation is not met, a
-``\Mockery\Expectation\InvalidCountException`` will be thrown.
-
-.. note::
-
- It is absolutely required to call ``\Mockery::close()`` at the end of our
- tests, for example in the ``tearDown()`` method of PHPUnit. Otherwise
- Mockery will not verify the calls made against our mock objects.
-
-We can declare that the expected method may be called zero or more times:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->zeroOrMoreTimes();
-
-This is the default for all methods unless otherwise set.
-
-To tell Mockery to expect an exact number of calls to a method, we can use the
-following:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->times($n);
-
-where ``$n`` is the number of times the method should be called.
-
-A couple of most common cases got their shorthand methods.
-
-To declare that the expected method must be called one time only:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->once();
-
-To declare that the expected method must be called two times:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->twice();
-
-To declare that the expected method must never be called:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->never();
-
-Call count modifiers
-^^^^^^^^^^^^^^^^^^^^
-
-The call count expectations can have modifiers set.
-
-If we want to tell Mockery the minimum number of times a method should be called,
-we use ``atLeast()``:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->atLeast()
- ->times(3);
-
-``atLeast()->times(3)`` means the call must be called at least three times
-(given matching method args) but never less than three times.
-
-Similarly, we can tell Mockery the maximum number of times a method should be
-called, using ``atMost()``:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->atMost()
- ->times(3);
-
-``atMost()->times(3)`` means the call must be called no more than three times.
-If the method gets no calls at all, the expectation will still be met.
-
-We can also set a range of call counts, using ``between()``:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- $mock->shouldReceive('name_of_method')
- ->between($min, $max);
-
-This is actually identical to using ``atLeast()->times($min)->atMost()->times($max)``
-but is provided as a shorthand. It may be followed by a ``times()`` call with no
-parameter to preserve the APIs natural language readability.
-
-Multiple Calls with Different Expectations
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-If a method is expected to get called multiple times with different arguments
-and/or return values we can simply repeat the expectations. The same of course
-also works if we expect multiple calls to different methods.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass');
- // Expectations for the 1st call
- $mock->shouldReceive('name_of_method')
- ->once()
- ->with('arg1')
- ->andReturn($value1)
-
- // 2nd call to same method
- ->shouldReceive('name_of_method')
- ->once()
- ->with('arg2')
- ->andReturn($value2)
-
- // final call to another method
- ->shouldReceive('other_method')
- ->once()
- ->with('other')
- ->andReturn($value_other);
-
-Expectation Declaration Utilities
----------------------------------
-
-Declares that this method is expected to be called in a specific order in
-relation to similarly marked methods.
-
-.. code-block:: php
-
- ordered()
-
-The order is dictated by the order in which this modifier is actually used when
-setting up mocks.
-
-Declares the method as belonging to an order group (which can be named or
-numbered). Methods within a group can be called in any order, but the ordered
-calls from outside the group are ordered in relation to the group:
-
-.. code-block:: php
-
- ordered(group)
-
-We can set up so that method1 is called before group1 which is in turn called
-before method2.
-
-When called prior to ``ordered()`` or ``ordered(group)``, it declares this
-ordering to apply across all mock objects (not just the current mock):
-
-.. code-block:: php
-
- globally()
-
-This allows for dictating order expectations across multiple mocks.
-
-The ``byDefault()`` marks an expectation as a default. Default expectations are
-applied unless a non-default expectation is created:
-
-.. code-block:: php
-
- byDefault()
-
-These later expectations immediately replace the previously defined default.
-This is useful so we can setup default mocks in our unit test ``setup()`` and
-later tweak them in specific tests as needed.
-
-Returns the current mock object from an expectation chain:
-
-.. code-block:: php
-
- getMock()
-
-Useful where we prefer to keep mock setups as a single statement, e.g.:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('foo')->shouldReceive('foo')->andReturn(1)->getMock();
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/final_methods_classes.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/final_methods_classes.rst
deleted file mode 100644
index dd0fa5ba..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/final_methods_classes.rst
+++ /dev/null
@@ -1,29 +0,0 @@
-.. index::
- single: Mocking; Final Classes/Methods
-
-Dealing with Final Classes/Methods
-==================================
-
-One of the primary restrictions of mock objects in PHP, is that mocking
-classes or methods marked final is hard. The final keyword prevents methods so
-marked from being replaced in subclasses (subclassing is how mock objects can
-inherit the type of the class or object being mocked).
-
-The simplest solution is to implement an interface in your final class and
-typehint against / mock this.
-
-However this may not be possible in some third party libraries.
-Mockery does allow creating "proxy mocks" from classes marked final, or from
-classes with methods marked final. This offers all the usual mock object
-goodness but the resulting mock will not inherit the class type of the object
-being mocked, i.e. it will not pass any instanceof comparison. Methods marked
-as final will be proxied to the original method, i.e., final methods can't be
-mocked.
-
-We can create a proxy mock by passing the instantiated object we wish to
-mock into ``\Mockery::mock()``, i.e. Mockery will then generate a Proxy to the
-real object and selectively intercept method calls for the purposes of setting
-and meeting expectations.
-
-See the :ref:`creating-test-doubles-partial-test-doubles` chapter, the subsection
-about proxied partial test doubles.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/index.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/index.rst
deleted file mode 100644
index 7d6a0389..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/index.rst
+++ /dev/null
@@ -1,23 +0,0 @@
-Reference
-=========
-
-.. toctree::
- :hidden:
-
- creating_test_doubles
- expectations
- argument_validation
- alternative_should_receive_syntax
- spies
- instance_mocking
- partial_mocks
- protected_methods
- public_properties
- public_static_properties
- pass_by_reference_behaviours
- demeter_chains
- final_methods_classes
- magic_methods
- phpunit_integration
-
-.. include:: map.rst.inc
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/instance_mocking.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/instance_mocking.rst
deleted file mode 100644
index 9d1aa283..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/instance_mocking.rst
+++ /dev/null
@@ -1,22 +0,0 @@
-.. index::
- single: Mocking; Instance
-
-Instance Mocking
-================
-
-Instance mocking means that a statement like:
-
-.. code-block:: php
-
- $obj = new \MyNamespace\Foo;
-
-...will actually generate a mock object. This is done by replacing the real
-class with an instance mock (similar to an alias mock), as with mocking public
-methods. The alias will import its expectations from the original mock of
-that type (note that the original is never verified and should be ignored
-after its expectations are setup). This lets you intercept instantiation where
-you can't simply inject a replacement object.
-
-As before, this does not prevent a require statement from including the real
-class and triggering a fatal PHP error. It's intended for use where
-autoloading is the primary class loading mechanism.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/magic_methods.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/magic_methods.rst
deleted file mode 100644
index 39591cff..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/magic_methods.rst
+++ /dev/null
@@ -1,16 +0,0 @@
-.. index::
- single: Mocking; Magic Methods
-
-PHP Magic Methods
-=================
-
-PHP magic methods which are prefixed with a double underscore, e.g.
-``__set()``, pose a particular problem in mocking and unit testing in general.
-It is strongly recommended that unit tests and mock objects do not directly
-refer to magic methods. Instead, refer only to the virtual methods and
-properties these magic methods simulate.
-
-Following this piece of advice will ensure we are testing the real API of
-classes and also ensures there is no conflict should Mockery override these
-magic methods, which it will inevitably do in order to support its role in
-intercepting method calls and properties.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/map.rst.inc b/wordpress-dev/vendor/mockery/mockery/docs/reference/map.rst.inc
deleted file mode 100644
index 883bc3ca..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/map.rst.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-* :doc:`/reference/creating_test_doubles`
-* :doc:`/reference/expectations`
-* :doc:`/reference/argument_validation`
-* :doc:`/reference/alternative_should_receive_syntax`
-* :doc:`/reference/spies`
-* :doc:`/reference/partial_mocks`
-* :doc:`/reference/protected_methods`
-* :doc:`/reference/public_properties`
-* :doc:`/reference/public_static_properties`
-* :doc:`/reference/pass_by_reference_behaviours`
-* :doc:`/reference/demeter_chains`
-* :doc:`/reference/final_methods_classes`
-* :doc:`/reference/magic_methods`
-* :doc:`/reference/phpunit_integration`
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/partial_mocks.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/partial_mocks.rst
deleted file mode 100644
index 457eb8de..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/partial_mocks.rst
+++ /dev/null
@@ -1,108 +0,0 @@
-.. index::
- single: Mocking; Partial Mocks
-
-Creating Partial Mocks
-======================
-
-Partial mocks are useful when we only need to mock several methods of an
-object leaving the remainder free to respond to calls normally (i.e. as
-implemented). Mockery implements three distinct strategies for creating
-partials. Each has specific advantages and disadvantages so which strategy we
-use will depend on our own preferences and the source code in need of
-mocking.
-
-We have previously talked a bit about :ref:`creating-test-doubles-partial-test-doubles`,
-but we'd like to expand on the subject a bit here.
-
-#. Runtime partial test doubles
-#. Generated partial test doubles
-#. Proxied Partial Mock
-
-Runtime partial test doubles
-----------------------------
-
-A runtime partial test double, also known as a passive partial mock, is a kind
-of a default state of being for a mocked object.
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass')->makePartial();
-
-With a runtime partial, we assume that all methods will simply defer to the
-parent class (``MyClass``) original methods unless a method call matches a
-known expectation. If we have no matching expectation for a specific method
-call, that call is deferred to the class being mocked. Since the division
-between mocked and unmocked calls depends entirely on the expectations we
-define, there is no need to define which methods to mock in advance.
-
-See the cookbook entry on :doc:`../cookbook/big_parent_class` for an example
-usage of runtime partial test doubles.
-
-Generated Partial Test Doubles
-------------------------------
-
-A generated partial test double, also known as a traditional partial mock,
-defines ahead of time which methods of a class are to be mocked and which are
-to be left unmocked (i.e. callable as normal). The syntax for creating
-traditional mocks is:
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyClass[foo,bar]');
-
-In the above example, the ``foo()`` and ``bar()`` methods of MyClass will be
-mocked but no other MyClass methods are touched. We will need to define
-expectations for the ``foo()`` and ``bar()`` methods to dictate their mocked
-behaviour.
-
-Don't forget that we can pass in constructor arguments since unmocked methods
-may rely on those!
-
-.. code-block:: php
-
- $mock = \Mockery::mock('MyNamespace\MyClass[foo]', array($arg1, $arg2));
-
-See the :ref:`creating-test-doubles-constructor-arguments` section to read up
-on them.
-
-.. note::
-
- Even though we support generated partial test doubles, we do not recommend
- using them.
-
-Proxied Partial Mock
---------------------
-
-A proxied partial mock is a partial of last resort. We may encounter a class
-which is simply not capable of being mocked because it has been marked as
-final. Similarly, we may find a class with methods marked as final. In such a
-scenario, we cannot simply extend the class and override methods to mock - we
-need to get creative.
-
-.. code-block:: php
-
- $mock = \Mockery::mock(new MyClass);
-
-Yes, the new mock is a Proxy. It intercepts calls and reroutes them to the
-proxied object (which we construct and pass in) for methods which are not
-subject to any expectations. Indirectly, this allows us to mock methods
-marked final since the Proxy is not subject to those limitations. The tradeoff
-should be obvious - a proxied partial will fail any typehint checks for the
-class being mocked since it cannot extend that class.
-
-Special Internal Cases
-----------------------
-
-All mock objects, with the exception of Proxied Partials, allows us to make
-any expectation call to the underlying real class method using the ``passthru()``
-expectation call. This will return values from the real call and bypass any
-mocked return queue (which can simply be omitted obviously).
-
-There is a fourth kind of partial mock reserved for internal use. This is
-automatically generated when we attempt to mock a class containing methods
-marked final. Since we cannot override such methods, they are simply left
-unmocked. Typically, we don't need to worry about this but if we really
-really must mock a final method, the only possible means is through a Proxied
-Partial Mock. SplFileInfo, for example, is a common class subject to this form
-of automatic internal partial since it contains public final methods used
-internally.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/pass_by_reference_behaviours.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/pass_by_reference_behaviours.rst
deleted file mode 100644
index 5e2e457f..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/pass_by_reference_behaviours.rst
+++ /dev/null
@@ -1,130 +0,0 @@
-.. index::
- single: Pass-By-Reference Method Parameter Behaviour
-
-Preserving Pass-By-Reference Method Parameter Behaviour
-=======================================================
-
-PHP Class method may accept parameters by reference. In this case, changes
-made to the parameter (a reference to the original variable passed to the
-method) are reflected in the original variable. An example:
-
-.. code-block:: php
-
- class Foo
- {
-
- public function bar(&$a)
- {
- $a++;
- }
-
- }
-
- $baz = 1;
- $foo = new Foo;
- $foo->bar($baz);
-
- echo $baz; // will echo the integer 2
-
-In the example above, the variable ``$baz`` is passed by reference to
-``Foo::bar()`` (notice the ``&`` symbol in front of the parameter?). Any
-change ``bar()`` makes to the parameter reference is reflected in the original
-variable, ``$baz``.
-
-Mockery handles references correctly for all methods where it can analyse
-the parameter (using ``Reflection``) to see if it is passed by reference. To
-mock how a reference is manipulated by the class method, we can use a closure
-argument matcher to manipulate it, i.e. ``\Mockery::on()`` - see the
-:ref:`argument-validation-complex-argument-validation` chapter.
-
-There is an exception for internal PHP classes where Mockery cannot analyse
-method parameters using ``Reflection`` (a limitation in PHP). To work around
-this, we can explicitly declare method parameters for an internal class using
-``\Mockery\Configuration::setInternalClassMethodParamMap()``.
-
-Here's an example using ``MongoCollection::insert()``. ``MongoCollection`` is
-an internal class offered by the mongo extension from PECL. Its ``insert()``
-method accepts an array of data as the first parameter, and an optional
-options array as the second parameter. The original data array is updated
-(i.e. when a ``insert()`` pass-by-reference parameter) to include a new
-``_id`` field. We can mock this behaviour using a configured parameter map (to
-tell Mockery to expect a pass by reference parameter) and a ``Closure``
-attached to the expected method parameter to be updated.
-
-Here's a PHPUnit unit test verifying that this pass-by-reference behaviour is
-preserved:
-
-.. code-block:: php
-
- public function testCanOverrideExpectedParametersOfInternalPHPClassesToPreserveRefs()
- {
- \Mockery::getConfiguration()->setInternalClassMethodParamMap(
- 'MongoCollection',
- 'insert',
- array('&$data', '$options = array()')
- );
- $m = \Mockery::mock('MongoCollection');
- $m->shouldReceive('insert')->with(
- \Mockery::on(function(&$data) {
- if (!is_array($data)) return false;
- $data['_id'] = 123;
- return true;
- }),
- \Mockery::any()
- );
-
- $data = array('a'=>1,'b'=>2);
- $m->insert($data);
-
- $this->assertTrue(isset($data['_id']));
- $this->assertEquals(123, $data['_id']);
-
- \Mockery::resetContainer();
- }
-
-Protected Methods
------------------
-
-When dealing with protected methods, and trying to preserve pass by reference
-behavior for them, a different approach is required.
-
-.. code-block:: php
-
- class Model
- {
- public function test(&$data)
- {
- return $this->doTest($data);
- }
-
- protected function doTest(&$data)
- {
- $data['something'] = 'wrong';
- return $this;
- }
- }
-
- class Test extends \PHPUnit\Framework\TestCase
- {
- public function testModel()
- {
- $mock = \Mockery::mock('Model[test]')->shouldAllowMockingProtectedMethods();
-
- $mock->shouldReceive('test')
- ->with(\Mockery::on(function(&$data) {
- $data['something'] = 'wrong';
- return true;
- }));
-
- $data = array('foo' => 'bar');
-
- $mock->test($data);
- $this->assertTrue(isset($data['something']));
- $this->assertEquals('wrong', $data['something']);
- }
- }
-
-This is quite an edge case, so we need to change the original code a little bit,
-by creating a public method that will call our protected method, and then mock
-that, instead of the protected method. This new public method will act as a
-proxy to our protected method.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/phpunit_integration.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/phpunit_integration.rst
deleted file mode 100644
index 669a8ca9..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/phpunit_integration.rst
+++ /dev/null
@@ -1,145 +0,0 @@
-.. index::
- single: PHPUnit Integration
-
-PHPUnit Integration
-===================
-
-Mockery was designed as a simple-to-use *standalone* mock object framework, so
-its need for integration with any testing framework is entirely optional. To
-integrate Mockery, we need to define a ``tearDown()`` method for our tests
-containing the following (we may use a shorter ``\Mockery`` namespace
-alias):
-
-.. code-block:: php
-
- public function tearDown() {
- \Mockery::close();
- }
-
-This static call cleans up the Mockery container used by the current test, and
-run any verification tasks needed for our expectations.
-
-For some added brevity when it comes to using Mockery, we can also explicitly
-use the Mockery namespace with a shorter alias. For example:
-
-.. code-block:: php
-
- use \Mockery as m;
-
- class SimpleTest extends \PHPUnit\Framework\TestCase
- {
- public function testSimpleMock() {
- $mock = m::mock('simplemock');
- $mock->shouldReceive('foo')->with(5, m::any())->once()->andReturn(10);
-
- $this->assertEquals(10, $mock->foo(5));
- }
-
- public function tearDown() {
- m::close();
- }
- }
-
-Mockery ships with an autoloader so we don't need to litter our tests with
-``require_once()`` calls. To use it, ensure Mockery is on our
-``include_path`` and add the following to our test suite's ``Bootstrap.php``
-or ``TestHelper.php`` file:
-
-.. code-block:: php
-
- require_once 'Mockery/Loader.php';
- require_once 'Hamcrest/Hamcrest.php';
-
- $loader = new \Mockery\Loader;
- $loader->register();
-
-If we are using Composer, we can simplify this to including the Composer
-generated autoloader file:
-
-.. code-block:: php
-
- require __DIR__ . '/../vendor/autoload.php'; // assuming vendor is one directory up
-
-.. caution::
-
- Prior to Hamcrest 1.0.0, the ``Hamcrest.php`` file name had a small "h"
- (i.e. ``hamcrest.php``). If upgrading Hamcrest to 1.0.0 remember to check
- the file name is updated for all your projects.)
-
-To integrate Mockery into PHPUnit and avoid having to call the close method
-and have Mockery remove itself from code coverage reports, have your test case
-extends the ``\Mockery\Adapter\Phpunit\MockeryTestCase``:
-
-.. code-block:: php
-
- class MyTest extends \Mockery\Adapter\Phpunit\MockeryTestCase
- {
-
- }
-
-An alternative is to use the supplied trait:
-
-.. code-block:: php
-
- class MyTest extends \PHPUnit\Framework\TestCase
- {
- use \Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
- }
-
-Extending ``MockeryTestCase`` or using the ``MockeryPHPUnitIntegration``
-trait is **the recommended way** of integrating Mockery with PHPUnit,
-since Mockery 1.0.0.
-
-PHPUnit listener
-----------------
-
-Before the 1.0.0 release, Mockery provided a PHPUnit listener that would
-call ``Mockery::close()`` for us at the end of a test. This has changed
-significantly since the 1.0.0 version.
-
-Now, Mockery provides a PHPUnit listener that makes tests fail if
-``Mockery::close()`` has not been called. It can help identify tests where
-we've forgotten to include the trait or extend the ``MockeryTestCase``.
-
-If we are using PHPUnit's XML configuration approach, we can include the
-following to load the ``TestListener``:
-
-.. code-block:: xml
-
-
-
-
-
-Make sure Composer's or Mockery's autoloader is present in the bootstrap file
-or we will need to also define a "file" attribute pointing to the file of the
-``TestListener`` class.
-
-If we are creating the test suite programmatically we may add the listener
-like this:
-
-.. code-block:: php
-
- // Create the suite.
- $suite = new PHPUnit\Framework\TestSuite();
-
- // Create the listener and add it to the suite.
- $result = new PHPUnit\Framework\TestResult();
- $result->addListener(new \Mockery\Adapter\Phpunit\TestListener());
-
- // Run the tests.
- $suite->run($result);
-
-.. caution::
-
- PHPUnit provides a functionality that allows
- `tests to run in a separated process `_,
- to ensure better isolation. Mockery verifies the mocks expectations using the
- ``Mockery::close()`` method, and provides a PHPUnit listener, that automatically
- calls this method for us after every test.
-
- However, this listener is not called in the right process when using
- PHPUnit's process isolation, resulting in expectations that might not be
- respected, but without raising any ``Mockery\Exception``. To avoid this,
- we cannot rely on the supplied Mockery PHPUnit ``TestListener``, and we need
- to explicitly call ``Mockery::close``. The easiest solution to include this
- call in the ``tearDown()`` method, as explained previously.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/protected_methods.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/protected_methods.rst
deleted file mode 100644
index ec4a5bad..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/protected_methods.rst
+++ /dev/null
@@ -1,26 +0,0 @@
-.. index::
- single: Mocking; Protected Methods
-
-Mocking Protected Methods
-=========================
-
-By default, Mockery does not allow mocking protected methods. We do not recommend
-mocking protected methods, but there are cases when there is no other solution.
-
-For those cases we have the ``shouldAllowMockingProtectedMethods()`` method. It
-instructs Mockery to specifically allow mocking of protected methods, for that
-one class only:
-
-.. code-block:: php
-
- class MyClass
- {
- protected function foo()
- {
- }
- }
-
- $mock = \Mockery::mock('MyClass')
- ->shouldAllowMockingProtectedMethods();
- $mock->shouldReceive('foo');
-
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/public_properties.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/public_properties.rst
deleted file mode 100644
index 31656683..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/public_properties.rst
+++ /dev/null
@@ -1,20 +0,0 @@
-.. index::
- single: Mocking; Public Properties
-
-Mocking Public Properties
-=========================
-
-Mockery allows us to mock properties in several ways. One way is that we can set
-a public property and its value on any mock object. The second is that we can
-use the expectation methods ``set()`` and ``andSet()`` to set property values if
-that expectation is ever met.
-
-You can read more about :ref:`expectations-setting-public-properties`.
-
-.. note::
-
- In general, Mockery does not support mocking any magic methods since these
- are generally not considered a public API (and besides it is a bit difficult
- to differentiate them when you badly need them for mocking!). So please mock
- virtual properties (those relying on ``__get()`` and ``__set()``) as if they
- were actually declared on the class.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/public_static_properties.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/public_static_properties.rst
deleted file mode 100644
index 2396efc7..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/public_static_properties.rst
+++ /dev/null
@@ -1,15 +0,0 @@
-.. index::
- single: Mocking; Public Static Methods
-
-Mocking Public Static Methods
-=============================
-
-Static methods are not called on real objects, so normal mock objects can't
-mock them. Mockery supports class aliased mocks, mocks representing a class
-name which would normally be loaded (via autoloading or a require statement)
-in the system under test. These aliases block that loading (unless via a
-require statement - so please use autoloading!) and allow Mockery to intercept
-static method calls and add expectations for them.
-
-See the :ref:`creating-test-doubles-aliasing` section for more information on
-creating aliased mocks, for the purpose of mocking public static methods.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/reference/spies.rst b/wordpress-dev/vendor/mockery/mockery/docs/reference/spies.rst
deleted file mode 100644
index 16639186..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/reference/spies.rst
+++ /dev/null
@@ -1,154 +0,0 @@
-.. index::
- single: Reference; Spies
-
-Spies
-=====
-
-Spies are a type of test doubles, but they differ from stubs or mocks in that,
-that the spies record any interaction between the spy and the System Under Test
-(SUT), and allow us to make assertions against those interactions after the fact.
-
-Creating a spy means we don't have to set up expectations for every method call
-the double might receive during the test, some of which may not be relevant to
-the current test. A spy allows us to make assertions about the calls we care
-about for this test only, reducing the chances of over-specification and making
-our tests more clear.
-
-Spies also allow us to follow the more familiar Arrange-Act-Assert or
-Given-When-Then style within our tests. With mocks, we have to follow a less
-familiar style, something along the lines of Arrange-Expect-Act-Assert, where
-we have to tell our mocks what to expect before we act on the SUT, then assert
-that those expectations were met:
-
-.. code-block:: php
-
- // arrange
- $mock = \Mockery::mock('MyDependency');
- $sut = new MyClass($mock);
-
- // expect
- $mock->shouldReceive('foo')
- ->once()
- ->with('bar');
-
- // act
- $sut->callFoo();
-
- // assert
- \Mockery::close();
-
-Spies allow us to skip the expect part and move the assertion to after we have
-acted on the SUT, usually making our tests more readable:
-
-.. code-block:: php
-
- // arrange
- $spy = \Mockery::spy('MyDependency');
- $sut = new MyClass($spy);
-
- // act
- $sut->callFoo();
-
- // assert
- $spy->shouldHaveReceived()
- ->foo()
- ->with('bar');
-
-On the other hand, spies are far less restrictive than mocks, meaning tests are
-usually less precise, as they let us get away with more. This is usually a
-good thing, they should only be as precise as they need to be, but while spies
-make our tests more intent-revealing, they do tend to reveal less about the
-design of the SUT. If we're having to setup lots of expectations for a mock,
-in lots of different tests, our tests are trying to tell us something - the SUT
-is doing too much and probably should be refactored. We don't get this with
-spies, they simply ignore the calls that aren't relevant to them.
-
-Another downside to using spies is debugging. When a mock receives a call that
-it wasn't expecting, it immediately throws an exception (failing fast), giving
-us a nice stack trace or possibly even invoking our debugger. With spies, we're
-simply asserting calls were made after the fact, so if the wrong calls were made,
-we don't have quite the same just in time context we have with the mocks.
-
-Finally, if we need to define a return value for our test double, we can't do
-that with a spy, only with a mock object.
-
-.. note::
-
- This documentation page is an adaption of the blog post titled
- `"Mockery Spies" `_,
- published by Dave Marshall on his blog. Dave is the original author of spies
- in Mockery.
-
-Spies Reference
----------------
-
-To verify that a method was called on a spy, we use the ``shouldHaveReceived()``
-method:
-
-.. code-block:: php
-
- $spy->shouldHaveReceived('foo');
-
-To verify that a method was **not** called on a spy, we use the
-``shouldNotHaveReceived()`` method:
-
-.. code-block:: php
-
- $spy->shouldNotHaveReceived('foo');
-
-We can also do argument matching with spies:
-
-.. code-block:: php
-
- $spy->shouldHaveReceived('foo')
- ->with('bar');
-
-Argument matching is also possible by passing in an array of arguments to
-match:
-
-.. code-block:: php
-
- $spy->shouldHaveReceived('foo', ['bar']);
-
-Although when verifying a method was not called, the argument matching can only
-be done by supplying the array of arguments as the 2nd argument to the
-``shouldNotHaveReceived()`` method:
-
-.. code-block:: php
-
- $spy->shouldNotHaveReceived('foo', ['bar']);
-
-This is due to Mockery's internals.
-
-Finally, when expecting calls that should have been received, we can also verify
-the number of calls:
-
-.. code-block:: php
-
- $spy->shouldHaveReceived('foo')
- ->with('bar')
- ->twice();
-
-Alternative shouldReceive syntax
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-As of Mockery 1.0.0, we support calling methods as we would call any PHP method,
-and not as string arguments to Mockery ``should*`` methods.
-
-In cases of spies, this only applies to the ``shouldHaveReceived()`` method:
-
-.. code-block:: php
-
- $spy->shouldHaveReceived()
- ->foo('bar');
-
-We can set expectation on number of calls as well:
-
-.. code-block:: php
-
- $spy->shouldHaveReceived()
- ->foo('bar')
- ->twice();
-
-Unfortunately, due to limitations we can't support the same syntax for the
-``shouldNotHaveReceived()`` method.
diff --git a/wordpress-dev/vendor/mockery/mockery/docs/requirements.txt b/wordpress-dev/vendor/mockery/mockery/docs/requirements.txt
deleted file mode 100644
index 2f74b4c0..00000000
--- a/wordpress-dev/vendor/mockery/mockery/docs/requirements.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-alabaster==0.7.16
-Babel==2.14.0
-certifi==2024.2.2
-charset-normalizer==3.3.2
-docutils==0.20.1
-idna==3.7
-imagesize==1.4.1
-Jinja2==3.1.4
-MarkupSafe==2.1.5
-packaging==24.0
-Pygments==2.17.2
-requests==2.31.0
-setuptools==69.2.0
-snowballstemmer==2.2.0
-Sphinx==7.3.7
-sphinx-rtd-theme==2.0.0
-sphinxcontrib-applehelp==1.0.8
-sphinxcontrib-devhelp==1.0.6
-sphinxcontrib-htmlhelp==2.0.5
-sphinxcontrib-jquery==4.1
-sphinxcontrib-jsmath==1.0.1
-sphinxcontrib-qthelp==1.0.7
-sphinxcontrib-serializinghtml==1.1.10
-urllib3==2.2.1
-wheel==0.43.0
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery.php
deleted file mode 100644
index 1370cea0..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery.php
+++ /dev/null
@@ -1,1062 +0,0 @@
-
- */
- private static $_filesToCleanUp = [];
-
- /**
- * Return instance of AndAnyOtherArgs matcher.
- *
- * @return AndAnyOtherArgs
- */
- public static function andAnyOtherArgs()
- {
- return new AndAnyOtherArgs();
- }
-
- /**
- * Return instance of AndAnyOtherArgs matcher.
- *
- * An alternative name to `andAnyOtherArgs` so
- * the API stays closer to `any` as well.
- *
- * @return AndAnyOtherArgs
- */
- public static function andAnyOthers()
- {
- return new AndAnyOtherArgs();
- }
-
- /**
- * Return instance of ANY matcher.
- *
- * @return Any
- */
- public static function any()
- {
- return new Any();
- }
-
- /**
- * Return instance of ANYOF matcher.
- *
- * @template TAnyOf
- *
- * @param TAnyOf ...$args
- *
- * @return AnyOf
- */
- public static function anyOf(...$args)
- {
- return new AnyOf($args);
- }
-
- /**
- * @return array
- *
- * @deprecated since 1.3.2 and will be removed in 2.0.
- */
- public static function builtInTypes()
- {
- return ['array', 'bool', 'callable', 'float', 'int', 'iterable', 'object', 'self', 'string', 'void'];
- }
-
- /**
- * Return instance of CLOSURE matcher.
- *
- * @template TReference
- *
- * @param TReference $reference
- *
- * @return ClosureMatcher
- */
- public static function capture(&$reference)
- {
- $closure = static function ($argument) use (&$reference) {
- $reference = $argument;
- return true;
- };
-
- return new ClosureMatcher($closure);
- }
-
- /**
- * Static shortcut to closing up and verifying all mocks in the global
- * container, and resetting the container static variable to null.
- *
- * @return void
- */
- public static function close()
- {
- foreach (self::$_filesToCleanUp as $fileName) {
- @\unlink($fileName);
- }
-
- self::$_filesToCleanUp = [];
-
- if (self::$_container === null) {
- return;
- }
-
- $container = self::$_container;
-
- self::$_container = null;
-
- $container->mockery_teardown();
-
- $container->mockery_close();
- }
-
- /**
- * Return instance of CONTAINS matcher.
- *
- * @template TContains
- *
- * @param TContains $args
- *
- * @return Contains
- */
- public static function contains(...$args)
- {
- return new Contains($args);
- }
-
- /**
- * @param class-string $fqn
- *
- * @return void
- */
- public static function declareClass($fqn)
- {
- static::declareType($fqn, 'class');
- }
-
- /**
- * @param class-string $fqn
- *
- * @return void
- */
- public static function declareInterface($fqn)
- {
- static::declareType($fqn, 'interface');
- }
-
- /**
- * Return instance of DUCKTYPE matcher.
- *
- * @template TDucktype
- *
- * @param TDucktype ...$args
- *
- * @return Ducktype
- */
- public static function ducktype(...$args)
- {
- return new Ducktype($args);
- }
-
- /**
- * Static fetching of a mock associated with a name or explicit class poser.
- *
- * @template TFetchMock of object
- *
- * @param class-string $name
- *
- * @return null|(LegacyMockInterface&MockInterface&TFetchMock)
- */
- public static function fetchMock($name)
- {
- return self::getContainer()->fetchMock($name);
- }
-
- /**
- * Utility method to format method name and arguments into a string.
- *
- * @param string $method
- *
- * @return string
- */
- public static function formatArgs($method, ?array $arguments = null)
- {
- if ($arguments === null) {
- return $method . '()';
- }
-
- $formattedArguments = [];
- foreach ($arguments as $argument) {
- $formattedArguments[] = self::formatArgument($argument);
- }
-
- return $method . '(' . \implode(', ', $formattedArguments) . ')';
- }
-
- /**
- * Utility function to format objects to printable arrays.
- *
- * @return string
- */
- public static function formatObjects(?array $objects = null)
- {
- static $formatting;
-
- if ($formatting) {
- return '[Recursion]';
- }
-
- if ($objects === null) {
- return '';
- }
-
- $objects = \array_filter($objects, 'is_object');
- if ($objects === []) {
- return '';
- }
-
- $formatting = true;
- $parts = [];
-
- foreach ($objects as $object) {
- $parts[\get_class($object)] = self::objectToArray($object);
- }
-
- $formatting = false;
-
- return 'Objects: ( ' . \var_export($parts, true) . ')';
- }
-
- /**
- * Lazy loader and Getter for the global
- * configuration container.
- *
- * @return Configuration
- */
- public static function getConfiguration()
- {
- if (self::$_config === null) {
- self::$_config = new Configuration();
- }
-
- return self::$_config;
- }
-
- /**
- * Lazy loader and getter for the container property.
- *
- * @return Container
- */
- public static function getContainer()
- {
- if (self::$_container === null) {
- self::$_container = new Container(self::getGenerator(), self::getLoader());
- }
-
- return self::$_container;
- }
-
- /**
- * Creates and returns a default generator
- * used inside this class.
- *
- * @return CachingGenerator
- */
- public static function getDefaultGenerator()
- {
- return new CachingGenerator(StringManipulationGenerator::withDefaultPasses());
- }
-
- /**
- * Gets an EvalLoader to be used as default.
- *
- * @return EvalLoader
- */
- public static function getDefaultLoader()
- {
- return new EvalLoader();
- }
-
- /**
- * Lazy loader method and getter for
- * the generator property.
- *
- * @return Generator
- */
- public static function getGenerator()
- {
- if (self::$_generator === null) {
- self::$_generator = self::getDefaultGenerator();
- }
-
- return self::$_generator;
- }
-
- /**
- * Lazy loader method and getter for
- * the $_loader property.
- *
- * @return Loader
- */
- public static function getLoader()
- {
- if (self::$_loader === null) {
- self::$_loader = self::getDefaultLoader();
- }
-
- return self::$_loader;
- }
-
- /**
- * Defines the global helper functions
- *
- * @return void
- */
- public static function globalHelpers()
- {
- require_once __DIR__ . '/helpers.php';
- }
-
- /**
- * Return instance of HASKEY matcher.
- *
- * @template THasKey
- *
- * @param THasKey $key
- *
- * @return HasKey
- */
- public static function hasKey($key)
- {
- return new HasKey($key);
- }
-
- /**
- * Return instance of HASVALUE matcher.
- *
- * @template THasValue
- *
- * @param THasValue $val
- *
- * @return HasValue
- */
- public static function hasValue($val)
- {
- return new HasValue($val);
- }
-
- /**
- * Static and Semantic shortcut to Container::mock().
- *
- * @template TInstanceMock
- *
- * @param array|TInstanceMock|array> $args
- *
- * @return LegacyMockInterface&MockInterface&TInstanceMock
- */
- public static function instanceMock(...$args)
- {
- return self::getContainer()->mock(...$args);
- }
-
- /**
- * @param string $type
- *
- * @return bool
- *
- * @deprecated since 1.3.2 and will be removed in 2.0.
- */
- public static function isBuiltInType($type)
- {
- return \in_array($type, self::builtInTypes(), true);
- }
-
- /**
- * Return instance of IsEqual matcher.
- *
- * @template TExpected
- *
- * @param TExpected $expected
- */
- public static function isEqual($expected): IsEqual
- {
- return new IsEqual($expected);
- }
-
- /**
- * Return instance of IsSame matcher.
- *
- * @template TExpected
- *
- * @param TExpected $expected
- */
- public static function isSame($expected): IsSame
- {
- return new IsSame($expected);
- }
-
- /**
- * Static shortcut to Container::mock().
- *
- * @template TMock of object
- *
- * @param array|TMock|Closure(LegacyMockInterface&MockInterface&TMock):LegacyMockInterface&MockInterface&TMock|array> $args
- *
- * @return LegacyMockInterface&MockInterface&TMock
- */
- public static function mock(...$args)
- {
- return self::getContainer()->mock(...$args);
- }
-
- /**
- * Return instance of MUSTBE matcher.
- *
- * @template TExpected
- *
- * @param TExpected $expected
- *
- * @return MustBe
- */
- public static function mustBe($expected)
- {
- return new MustBe($expected);
- }
-
- /**
- * Static shortcut to Container::mock(), first argument names the mock.
- *
- * @template TNamedMock
- *
- * @param array|TNamedMock|array> $args
- *
- * @return LegacyMockInterface&MockInterface&TNamedMock
- */
- public static function namedMock(...$args)
- {
- $name = \array_shift($args);
-
- $builder = new MockConfigurationBuilder();
- $builder->setName($name);
-
- \array_unshift($args, $builder);
-
- return self::getContainer()->mock(...$args);
- }
-
- /**
- * Return instance of NOT matcher.
- *
- * @template TNotExpected
- *
- * @param TNotExpected $expected
- *
- * @return Not
- */
- public static function not($expected)
- {
- return new Not($expected);
- }
-
- /**
- * Return instance of NOTANYOF matcher.
- *
- * @template TNotAnyOf
- *
- * @param TNotAnyOf ...$args
- *
- * @return NotAnyOf
- */
- public static function notAnyOf(...$args)
- {
- return new NotAnyOf($args);
- }
-
- /**
- * Return instance of CLOSURE matcher.
- *
- * @template TClosure of Closure
- *
- * @param TClosure $closure
- *
- * @return ClosureMatcher
- */
- public static function on($closure)
- {
- return new ClosureMatcher($closure);
- }
-
- /**
- * Utility function to parse shouldReceive() arguments and generate
- * expectations from such as needed.
- *
- * @template TReturnArgs
- *
- * @param TReturnArgs ...$args
- * @param Closure $add
- *
- * @return CompositeExpectation
- */
- public static function parseShouldReturnArgs(LegacyMockInterface $mock, $args, $add)
- {
- $composite = new CompositeExpectation();
-
- foreach ($args as $arg) {
- if (\is_string($arg)) {
- $composite->add(self::buildDemeterChain($mock, $arg, $add));
-
- continue;
- }
-
- if (\is_array($arg)) {
- foreach ($arg as $k => $v) {
- $composite->add(self::buildDemeterChain($mock, $k, $add)->andReturn($v));
- }
- }
- }
-
- return $composite;
- }
-
- /**
- * Return instance of PATTERN matcher.
- *
- * @template TPatter
- *
- * @param TPatter $expected
- *
- * @return Pattern
- */
- public static function pattern($expected)
- {
- return new Pattern($expected);
- }
-
- /**
- * Register a file to be deleted on tearDown.
- *
- * @param string $fileName
- */
- public static function registerFileForCleanUp($fileName)
- {
- self::$_filesToCleanUp[] = $fileName;
- }
-
- /**
- * Reset the container to null.
- *
- * @return void
- */
- public static function resetContainer()
- {
- self::$_container = null;
- }
-
- /**
- * Static shortcut to Container::self().
- *
- * @throws LogicException
- *
- * @return LegacyMockInterface|MockInterface
- */
- public static function self()
- {
- if (self::$_container === null) {
- throw new LogicException('You have not declared any mocks yet');
- }
-
- return self::$_container->self();
- }
-
- /**
- * Set the container.
- *
- * @return Container
- */
- public static function setContainer(Container $container)
- {
- return self::$_container = $container;
- }
-
- /**
- * Setter for the $_generator static property.
- */
- public static function setGenerator(Generator $generator)
- {
- self::$_generator = $generator;
- }
-
- /**
- * Setter for the $_loader static property.
- */
- public static function setLoader(Loader $loader)
- {
- self::$_loader = $loader;
- }
-
- /**
- * Static and semantic shortcut for getting a mock from the container
- * and applying the spy's expected behavior into it.
- *
- * @template TSpy
- *
- * @param array|TSpy|Closure(LegacyMockInterface&MockInterface&TSpy):LegacyMockInterface&MockInterface&TSpy|array> $args
- *
- * @return LegacyMockInterface&MockInterface&TSpy
- */
- public static function spy(...$args)
- {
- if ($args !== [] && $args[0] instanceof Closure) {
- $args[0] = new ClosureWrapper($args[0]);
- }
-
- return self::getContainer()->mock(...$args)->shouldIgnoreMissing();
- }
-
- /**
- * Return instance of SUBSET matcher.
- *
- * @param bool $strict - (Optional) True for strict comparison, false for loose
- *
- * @return Subset
- */
- public static function subset(array $part, $strict = true)
- {
- return new Subset($part, $strict);
- }
-
- /**
- * Return instance of TYPE matcher.
- *
- * @template TExpectedType
- *
- * @param TExpectedType $expected
- *
- * @return Type
- */
- public static function type($expected)
- {
- return new Type($expected);
- }
-
- /**
- * Sets up expectations on the members of the CompositeExpectation and
- * builds up any demeter chain that was passed to shouldReceive.
- *
- * @param string $arg
- * @param Closure $add
- *
- * @throws MockeryException
- *
- * @return ExpectationInterface
- */
- protected static function buildDemeterChain(LegacyMockInterface $mock, $arg, $add)
- {
- $container = $mock->mockery_getContainer();
- $methodNames = \explode('->', $arg);
-
- \reset($methodNames);
-
- if (
- ! $mock->mockery_isAnonymous()
- && ! self::getConfiguration()->mockingNonExistentMethodsAllowed()
- && ! \in_array(\current($methodNames), $mock->mockery_getMockableMethods(), true)
- ) {
- throw new MockeryException(
- "Mockery's configuration currently forbids mocking the method "
- . \current($methodNames) . ' as it does not exist on the class or object '
- . 'being mocked'
- );
- }
-
- /** @var Closure $nextExp */
- $nextExp = static function ($method) use ($add) {
- return $add($method);
- };
-
- $parent = \get_class($mock);
-
- /** @var null|ExpectationInterface $expectations */
- $expectations = null;
- while (true) {
- $method = \array_shift($methodNames);
- $expectations = $mock->mockery_getExpectationsFor($method);
-
- if ($expectations === null || self::noMoreElementsInChain($methodNames)) {
- $expectations = $nextExp($method);
- if (self::noMoreElementsInChain($methodNames)) {
- break;
- }
-
- $mock = self::getNewDemeterMock($container, $parent, $method, $expectations);
- } else {
- $demeterMockKey = $container->getKeyOfDemeterMockFor($method, $parent);
- if ($demeterMockKey !== null) {
- $mock = self::getExistingDemeterMock($container, $demeterMockKey);
- }
- }
-
- $parent .= '->' . $method;
-
- $nextExp = static function ($n) use ($mock) {
- return $mock->allows($n);
- };
- }
-
- return $expectations;
- }
-
- /**
- * Utility method for recursively generating a representation of the given array.
- *
- * @template TArray or array
- *
- * @param TArray $argument
- * @param int $nesting
- *
- * @return TArray
- */
- private static function cleanupArray($argument, $nesting = 3)
- {
- if ($nesting === 0) {
- return '...';
- }
-
- foreach ($argument as $key => $value) {
- if (\is_array($value)) {
- $argument[$key] = self::cleanupArray($value, $nesting - 1);
-
- continue;
- }
-
- if (\is_object($value)) {
- $argument[$key] = self::objectToArray($value, $nesting - 1);
- }
- }
-
- return $argument;
- }
-
- /**
- * Utility method used for recursively generating
- * an object or array representation.
- *
- * @template TArgument
- *
- * @param TArgument $argument
- * @param int $nesting
- *
- * @return mixed
- */
- private static function cleanupNesting($argument, $nesting)
- {
- if (\is_object($argument)) {
- $object = self::objectToArray($argument, $nesting - 1);
- $object['class'] = \get_class($argument);
-
- return $object;
- }
-
- if (\is_array($argument)) {
- return self::cleanupArray($argument, $nesting - 1);
- }
-
- return $argument;
- }
-
- /**
- * @param string $fqn
- * @param string $type
- */
- private static function declareType($fqn, $type): void
- {
- $targetCode = '
- */
- private static function extractInstancePublicProperties($object, $nesting)
- {
- $reflection = new ReflectionClass($object);
- $properties = $reflection->getProperties(ReflectionProperty::IS_PUBLIC);
- $cleanedProperties = [];
-
- foreach ($properties as $publicProperty) {
- if (! $publicProperty->isStatic()) {
- $name = $publicProperty->getName();
- try {
- $cleanedProperties[$name] = self::cleanupNesting($object->{$name}, $nesting);
- } catch (Exception $exception) {
- $cleanedProperties[$name] = $exception->getMessage();
- }
- }
- }
-
- return $cleanedProperties;
- }
-
- /**
- * Gets the string representation
- * of any passed argument.
- *
- * @param mixed $argument
- * @param int $depth
- *
- * @return mixed
- */
- private static function formatArgument($argument, $depth = 0)
- {
- if ($argument instanceof MatcherInterface) {
- return (string) $argument;
- }
-
- if (\is_object($argument)) {
- return 'object(' . \get_class($argument) . ')';
- }
-
- if (\is_int($argument) || \is_float($argument)) {
- return $argument;
- }
-
- if (\is_array($argument)) {
- if ($depth === 1) {
- $argument = '[...]';
- } else {
- $sample = [];
- foreach ($argument as $key => $value) {
- $key = \is_int($key) ? $key : \sprintf("'%s'", $key);
- $value = self::formatArgument($value, $depth + 1);
- $sample[] = \sprintf('%s => %s', $key, $value);
- }
-
- $argument = '[' . \implode(', ', $sample) . ']';
- }
-
- return (\strlen($argument) > 1000) ? \substr($argument, 0, 1000) . '...]' : $argument;
- }
-
- if (\is_bool($argument)) {
- return $argument ? 'true' : 'false';
- }
-
- if (\is_resource($argument)) {
- return 'resource(...)';
- }
-
- if ($argument === null) {
- return 'NULL';
- }
-
- return "'" . $argument . "'";
- }
-
- /**
- * Gets a specific demeter mock from the ones kept by the container.
- *
- * @template TMock of object
- *
- * @param class-string $demeterMockKey
- *
- * @return null|(LegacyMockInterface&MockInterface&TMock)
- */
- private static function getExistingDemeterMock(Container $container, $demeterMockKey)
- {
- return $container->getMocks()[$demeterMockKey] ?? null;
- }
-
- /**
- * Gets a new demeter configured
- * mock from the container.
- *
- * @param string $parent
- * @param string $method
- *
- * @return LegacyMockInterface&MockInterface
- */
- private static function getNewDemeterMock(Container $container, $parent, $method, ExpectationInterface $exp)
- {
- $newMockName = 'demeter_' . \md5($parent) . '_' . $method;
-
- $parRef = null;
-
- $parentMock = $exp->getMock();
- if ($parentMock !== null) {
- $parRef = new ReflectionObject($parentMock);
- }
-
- if ($parRef instanceof ReflectionObject && $parRef->hasMethod($method)) {
- $parRefMethod = $parRef->getMethod($method);
- $parRefMethodRetType = Reflector::getReturnType($parRefMethod, true);
-
- if ($parRefMethodRetType !== null) {
- $returnTypes = \explode('|', $parRefMethodRetType);
-
- $filteredReturnTypes = array_filter($returnTypes, static function (string $type): bool {
- return ! Reflector::isReservedWord($type);
- });
-
- if ($filteredReturnTypes !== []) {
- $nameBuilder = new MockNameBuilder();
-
- $nameBuilder->addPart('\\' . $newMockName);
-
- $mock = self::namedMock(
- $nameBuilder->build(),
- ...$filteredReturnTypes
- );
-
- $exp->andReturn($mock);
-
- return $mock;
- }
- }
- }
-
- $mock = $container->mock($newMockName);
- $exp->andReturn($mock);
-
- return $mock;
- }
-
- /**
- * Checks if the passed array representing a demeter
- * chain with the method names is empty.
- *
- * @return bool
- */
- private static function noMoreElementsInChain(array $methodNames)
- {
- return $methodNames === [];
- }
-
- /**
- * Utility function to turn public properties and public get* and is* method values into an array.
- *
- * @param object $object
- * @param int $nesting
- *
- * @return array
- */
- private static function objectToArray($object, $nesting = 3)
- {
- if ($nesting === 0) {
- return ['...'];
- }
-
- $defaultFormatter = static function ($object, $nesting) {
- return [
- 'properties' => self::extractInstancePublicProperties($object, $nesting),
- ];
- };
-
- $class = \get_class($object);
-
- $formatter = self::getConfiguration()->getObjectFormatter($class, $defaultFormatter);
-
- $array = [
- 'class' => $class,
- 'identity' => '#' . \md5(\spl_object_hash($object)),
- ];
-
- return \array_merge($array, $formatter($object, $nesting));
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegration.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegration.php
deleted file mode 100644
index a6d5b8fe..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegration.php
+++ /dev/null
@@ -1,86 +0,0 @@
-addToAssertionCount(Mockery::getContainer()->mockery_getExpectationCount());
- }
-
- protected function checkMockeryExceptions()
- {
- if (! method_exists($this, 'markAsRisky')) {
- return;
- }
-
- foreach (Mockery::getContainer()->mockery_thrownExceptions() as $e) {
- if (! $e->dismissed()) {
- $this->markAsRisky();
- }
- }
- }
-
- protected function closeMockery()
- {
- Mockery::close();
- $this->mockeryOpen = false;
- }
-
- /**
- * Performs assertions shared by all tests of a test case. This method is
- * called before execution of a test ends and before the tearDown method.
- */
- protected function mockeryAssertPostConditions()
- {
- $this->addMockeryExpectationsToAssertionCount();
- $this->checkMockeryExceptions();
- $this->closeMockery();
-
- parent::assertPostConditions();
- }
-
- /**
- * @after
- */
- #[After]
- protected function purgeMockeryContainer()
- {
- if ($this->mockeryOpen) {
- // post conditions wasn't called, so test probably failed
- Mockery::close();
- }
- }
-
- /**
- * @before
- */
- #[Before]
- protected function startMockery()
- {
- $this->mockeryOpen = true;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegrationAssertPostConditions.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegrationAssertPostConditions.php
deleted file mode 100644
index e4a80b5f..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegrationAssertPostConditions.php
+++ /dev/null
@@ -1,21 +0,0 @@
-mockeryAssertPostConditions();
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/MockeryTestCase.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/MockeryTestCase.php
deleted file mode 100644
index 942f1c08..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/MockeryTestCase.php
+++ /dev/null
@@ -1,27 +0,0 @@
-mockeryTestSetUp();
- }
-
- protected function tearDown(): void
- {
- $this->mockeryTestTearDown();
- parent::tearDown();
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php
deleted file mode 100644
index 1ae84583..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php
+++ /dev/null
@@ -1,38 +0,0 @@
-trait = new TestListenerTrait();
- }
-
- public function endTest(Test $test, float $time): void
- {
- $this->trait->endTest($test, $time);
- }
-
- public function startTestSuite(TestSuite $suite): void
- {
- $this->trait->startTestSuite();
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListenerTrait.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListenerTrait.php
deleted file mode 100644
index 45c6b3f1..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListenerTrait.php
+++ /dev/null
@@ -1,84 +0,0 @@
-getStatus() !== BaseTestRunner::STATUS_PASSED) {
- // If the test didn't pass there is no guarantee that
- // verifyMockObjects and assertPostConditions have been called.
- // And even if it did, the point here is to prevent false
- // negatives, not to make failing tests fail for more reasons.
- return;
- }
-
- try {
- // The self() call is used as a sentinel. Anything that throws if
- // the container is closed already will do.
- Mockery::self();
- } catch (LogicException $logicException) {
- return;
- }
-
- $e = new ExpectationFailedException(
- sprintf(
- "Mockery's expectations have not been verified. Make sure that \Mockery::close() is called at the end of the test. Consider using %s\MockeryPHPUnitIntegration or extending %s\MockeryTestCase.",
- __NAMESPACE__,
- __NAMESPACE__
- )
- );
-
- /** @var \PHPUnit\Framework\TestResult $result */
- $result = $test->getTestResultObject();
-
- if ($result !== null) {
- $result->addFailure($test, $e, $time);
- }
- }
-
- public function startTestSuite()
- {
- if (method_exists(Blacklist::class, 'addDirectory')) {
- (new Blacklist())->getBlacklistedDirectories();
- Blacklist::addDirectory(dirname((new ReflectionClass(Mockery::class))->getFileName()));
- } else {
- Blacklist::$blacklistedClassNames[Mockery::class] = 1;
- }
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/ClosureWrapper.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/ClosureWrapper.php
deleted file mode 100644
index fae88712..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/ClosureWrapper.php
+++ /dev/null
@@ -1,36 +0,0 @@
-closure = $closure;
- }
-
- /**
- * @return mixed
- */
- public function __invoke()
- {
- return ($this->closure)(...func_get_args());
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CompositeExpectation.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/CompositeExpectation.php
deleted file mode 100644
index fa03c399..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CompositeExpectation.php
+++ /dev/null
@@ -1,150 +0,0 @@
-
- */
- protected $_expectations = [];
-
- /**
- * Intercept any expectation calls and direct against all expectations
- *
- * @param string $method
- *
- * @return self
- */
- public function __call($method, array $args)
- {
- foreach ($this->_expectations as $expectation) {
- $expectation->{$method}(...$args);
- }
-
- return $this;
- }
-
- /**
- * Return the string summary of this composite expectation
- *
- * @return string
- */
- public function __toString()
- {
- $parts = array_map(static function (ExpectationInterface $expectation): string {
- return (string) $expectation;
- }, $this->_expectations);
-
- return '[' . implode(', ', $parts) . ']';
- }
-
- /**
- * Add an expectation to the composite
- *
- * @param ExpectationInterface|HigherOrderMessage $expectation
- *
- * @return void
- */
- public function add($expectation)
- {
- $this->_expectations[] = $expectation;
- }
-
- /**
- * @param mixed ...$args
- */
- public function andReturn(...$args)
- {
- return $this->__call(__FUNCTION__, $args);
- }
-
- /**
- * Set a return value, or sequential queue of return values
- *
- * @param mixed ...$args
- *
- * @return self
- */
- public function andReturns(...$args)
- {
- return $this->andReturn(...$args);
- }
-
- /**
- * Return the parent mock of the first expectation
- *
- * @return LegacyMockInterface&MockInterface
- */
- public function getMock()
- {
- reset($this->_expectations);
- $first = current($this->_expectations);
- return $first->getMock();
- }
-
- /**
- * Return order number of the first expectation
- *
- * @return int
- */
- public function getOrderNumber()
- {
- reset($this->_expectations);
- $first = current($this->_expectations);
- return $first->getOrderNumber();
- }
-
- /**
- * Mockery API alias to getMock
- *
- * @return LegacyMockInterface&MockInterface
- */
- public function mock()
- {
- return $this->getMock();
- }
-
- /**
- * Starts a new expectation addition on the first mock which is the primary target outside of a demeter chain
- *
- * @param mixed ...$args
- *
- * @return Expectation
- */
- public function shouldNotReceive(...$args)
- {
- reset($this->_expectations);
- $first = current($this->_expectations);
- return $first->getMock()->shouldNotReceive(...$args);
- }
-
- /**
- * Starts a new expectation addition on the first mock which is the primary target, outside of a demeter chain
- *
- * @param mixed ...$args
- *
- * @return Expectation
- */
- public function shouldReceive(...$args)
- {
- reset($this->_expectations);
- $first = current($this->_expectations);
- return $first->getMock()->shouldReceive(...$args);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Configuration.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Configuration.php
deleted file mode 100644
index d415d9e0..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Configuration.php
+++ /dev/null
@@ -1,406 +0,0 @@
- ['MY_CONST' => 123, 'OTHER_CONST' => 'foo']]
- *
- * @var array|scalar>>
- */
- protected $_constantsMap = [];
-
- /**
- * Default argument matchers
- *
- * e.g. ['class' => 'matcher']
- *
- * @var array
- */
- protected $_defaultMatchers = [];
-
- /**
- * Parameter map for use with PHP internal classes.
- *
- * e.g. ['class' => ['method' => ['param1', 'param2']]]
- *
- * @var array>>
- */
- protected $_internalClassParamMap = [];
-
- /**
- * Custom object formatters
- *
- * e.g. ['class' => static fn($object) => 'formatted']
- *
- * @var array
- */
- protected $_objectFormatters = [];
-
- /**
- * @var QuickDefinitionsConfiguration
- */
- protected $_quickDefinitionsConfiguration;
-
- /**
- * Boolean assertion is reflection caching enabled or not. It should be
- * always enabled, except when using PHPUnit's --static-backup option.
- *
- * @see https://github.com/mockery/mockery/issues/268
- */
- protected $_reflectionCacheEnabled = true;
-
- public function __construct()
- {
- $this->_quickDefinitionsConfiguration = new QuickDefinitionsConfiguration();
- }
-
- /**
- * Set boolean to allow/prevent unnecessary mocking of methods
- *
- * @param bool $flag
- *
- * @return void
- *
- * @deprecated since 1.4.0
- */
- public function allowMockingMethodsUnnecessarily($flag = true)
- {
- @trigger_error(
- sprintf('The %s method is deprecated and will be removed in a future version of Mockery', __METHOD__),
- E_USER_DEPRECATED
- );
-
- $this->_allowMockingMethodsUnnecessarily = (bool) $flag;
- }
-
- /**
- * Set boolean to allow/prevent mocking of non-existent methods
- *
- * @param bool $flag
- *
- * @return void
- */
- public function allowMockingNonExistentMethods($flag = true)
- {
- $this->_allowMockingNonExistentMethod = (bool) $flag;
- }
-
- /**
- * Disable reflection caching
- *
- * It should be always enabled, except when using
- * PHPUnit's --static-backup option.
- *
- * @see https://github.com/mockery/mockery/issues/268
- *
- * @return void
- */
- public function disableReflectionCache()
- {
- $this->_reflectionCacheEnabled = false;
- }
-
- /**
- * Enable reflection caching
- *
- * It should be always enabled, except when using
- * PHPUnit's --static-backup option.
- *
- * @see https://github.com/mockery/mockery/issues/268
- *
- * @return void
- */
- public function enableReflectionCache()
- {
- $this->_reflectionCacheEnabled = true;
- }
-
- /**
- * Get the map of constants to be used in the mock generator
- *
- * @return array|scalar>>
- */
- public function getConstantsMap()
- {
- return $this->_constantsMap;
- }
-
- /**
- * Get the default matcher for a given class
- *
- * @param class-string $class
- *
- * @return null|class-string
- */
- public function getDefaultMatcher($class)
- {
- $classes = [];
-
- $parentClass = $class;
-
- do {
- $classes[] = $parentClass;
-
- $parentClass = get_parent_class($parentClass);
- } while ($parentClass !== false);
-
- $classesAndInterfaces = array_merge($classes, class_implements($class));
-
- foreach ($classesAndInterfaces as $type) {
- if (array_key_exists($type, $this->_defaultMatchers)) {
- return $this->_defaultMatchers[$type];
- }
- }
-
- return null;
- }
-
- /**
- * Get the parameter map of an internal PHP class method
- *
- * @param class-string $class
- * @param string $method
- *
- * @return null|array
- */
- public function getInternalClassMethodParamMap($class, $method)
- {
- $class = strtolower($class);
- $method = strtolower($method);
- if (! array_key_exists($class, $this->_internalClassParamMap)) {
- return null;
- }
-
- if (! array_key_exists($method, $this->_internalClassParamMap[$class])) {
- return null;
- }
-
- return $this->_internalClassParamMap[$class][$method];
- }
-
- /**
- * Get the parameter maps of internal PHP classes
- *
- * @return array>>
- */
- public function getInternalClassMethodParamMaps()
- {
- return $this->_internalClassParamMap;
- }
-
- /**
- * Get the object formatter for a class
- *
- * @param class-string $class
- * @param Closure $defaultFormatter
- *
- * @return Closure
- */
- public function getObjectFormatter($class, $defaultFormatter)
- {
- $parentClass = $class;
-
- do {
- $classes[] = $parentClass;
-
- $parentClass = get_parent_class($parentClass);
- } while ($parentClass !== false);
-
- $classesAndInterfaces = array_merge($classes, class_implements($class));
-
- foreach ($classesAndInterfaces as $type) {
- if (array_key_exists($type, $this->_objectFormatters)) {
- return $this->_objectFormatters[$type];
- }
- }
-
- return $defaultFormatter;
- }
-
- /**
- * Returns the quick definitions configuration
- */
- public function getQuickDefinitions(): QuickDefinitionsConfiguration
- {
- return $this->_quickDefinitionsConfiguration;
- }
-
- /**
- * Return flag indicating whether mocking non-existent methods allowed
- *
- * @return bool
- *
- * @deprecated since 1.4.0
- */
- public function mockingMethodsUnnecessarilyAllowed()
- {
- @trigger_error(
- sprintf('The %s method is deprecated and will be removed in a future version of Mockery', __METHOD__),
- E_USER_DEPRECATED
- );
-
- return $this->_allowMockingMethodsUnnecessarily;
- }
-
- /**
- * Return flag indicating whether mocking non-existent methods allowed
- *
- * @return bool
- */
- public function mockingNonExistentMethodsAllowed()
- {
- return $this->_allowMockingNonExistentMethod;
- }
-
- /**
- * Is reflection cache enabled?
- *
- * @return bool
- */
- public function reflectionCacheEnabled()
- {
- return $this->_reflectionCacheEnabled;
- }
-
- /**
- * Remove all overridden parameter maps from internal PHP classes.
- *
- * @return void
- */
- public function resetInternalClassMethodParamMaps()
- {
- $this->_internalClassParamMap = [];
- }
-
- /**
- * Set a map of constants to be used in the mock generator
- *
- * e.g. ['MyClass' => ['MY_CONST' => 123, 'ARRAY_CONST' => ['foo', 'bar']]]
- *
- * @param array|scalar>> $map
- *
- * @return void
- */
- public function setConstantsMap(array $map)
- {
- $this->_constantsMap = $map;
- }
-
- /**
- * @param class-string $class
- * @param class-string $matcherClass
- *
- * @throws InvalidArgumentException
- *
- * @return void
- */
- public function setDefaultMatcher($class, $matcherClass)
- {
- $isHamcrest = is_a($matcherClass, Matcher::class, true)
- || is_a($matcherClass, Hamcrest_Matcher::class, true);
-
- if ($isHamcrest) {
- @trigger_error('Hamcrest package has been deprecated and will be removed in 2.0', E_USER_DEPRECATED);
- }
-
- if (! $isHamcrest && ! is_a($matcherClass, MatcherInterface::class, true)) {
- throw new InvalidArgumentException(sprintf(
- "Matcher class must implement %s, '%s' given.",
- MatcherInterface::class,
- $matcherClass
- ));
- }
-
- $this->_defaultMatchers[$class] = $matcherClass;
- }
-
- /**
- * Set a parameter map (array of param signature strings) for the method of an internal PHP class.
- *
- * @param class-string $class
- * @param string $method
- * @param list $map
- *
- * @throws LogicException
- *
- * @return void
- */
- public function setInternalClassMethodParamMap($class, $method, array $map)
- {
- if (PHP_MAJOR_VERSION > 7) {
- throw new LogicException(
- 'Internal class parameter overriding is not available in PHP 8. Incompatible signatures have been reclassified as fatal errors.'
- );
- }
-
- $class = strtolower($class);
-
- if (! array_key_exists($class, $this->_internalClassParamMap)) {
- $this->_internalClassParamMap[$class] = [];
- }
-
- $this->_internalClassParamMap[$class][strtolower($method)] = $map;
- }
-
- /**
- * Set a custom object formatter for a class
- *
- * @param class-string $class
- * @param Closure $formatterCallback
- *
- * @return void
- */
- public function setObjectFormatter($class, $formatterCallback)
- {
- $this->_objectFormatters[$class] = $formatterCallback;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Container.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Container.php
deleted file mode 100644
index ddba8884..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Container.php
+++ /dev/null
@@ -1,678 +0,0 @@
-
- */
- protected $_groups = [];
-
- /**
- * @var LoaderInterface
- */
- protected $_loader;
-
- /**
- * Store of mock objects
- *
- * @var array|array-key,LegacyMockInterface&MockInterface&TMockObject>
- */
- protected $_mocks = [];
-
- /**
- * @var array
- */
- protected $_namedMocks = [];
-
- /**
- * @var Instantiator
- */
- protected $instantiator;
-
- public function __construct(?Generator $generator = null, ?LoaderInterface $loader = null, ?Instantiator $instantiator = null)
- {
- $this->_generator = $generator instanceof Generator ? $generator : Mockery::getDefaultGenerator();
- $this->_loader = $loader instanceof LoaderInterface ? $loader : Mockery::getDefaultLoader();
- $this->instantiator = $instantiator instanceof Instantiator ? $instantiator : new Instantiator();
- }
-
- /**
- * Return a specific remembered mock according to the array index it
- * was stored to in this container instance
- *
- * @template TMock of object
- *
- * @param class-string $reference
- *
- * @return null|(LegacyMockInterface&MockInterface&TMock)
- */
- public function fetchMock($reference)
- {
- return $this->_mocks[$reference] ?? null;
- }
-
- /**
- * @return Generator
- */
- public function getGenerator()
- {
- return $this->_generator;
- }
-
- /**
- * @param string $method
- * @param string $parent
- *
- * @return null|string
- */
- public function getKeyOfDemeterMockFor($method, $parent)
- {
- $keys = array_keys($this->_mocks);
-
- $match = preg_grep('/__demeter_' . md5($parent) . sprintf('_%s$/', $method), $keys);
- if ($match === false) {
- return null;
- }
-
- if ($match === []) {
- return null;
- }
-
- return array_values($match)[0];
- }
-
- /**
- * @return LoaderInterface
- */
- public function getLoader()
- {
- return $this->_loader;
- }
-
- /**
- * @template TMock of object
- * @return array|array-key,LegacyMockInterface&MockInterface&TMockObject>
- */
- public function getMocks()
- {
- return $this->_mocks;
- }
-
- /**
- * @return void
- */
- public function instanceMock()
- {
- }
-
- /**
- * see http://php.net/manual/en/language.oop5.basic.php
- *
- * @param string $className
- *
- * @return bool
- */
- public function isValidClassName($className)
- {
- if ($className[0] === '\\') {
- $className = substr($className, 1); // remove the first backslash
- }
-
- // all the namespaces and class name should match the regex
- return array_filter(
- explode('\\', $className),
- static function ($name): bool {
- return ! preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name);
- }
- ) === [];
- }
-
- /**
- * Generates a new mock object for this container
- *
- * I apologies in advance for this. A God Method just fits the API which
- * doesn't require differentiating between classes, interfaces, abstracts,
- * names or partials - just so long as it's something that can be mocked.
- * I'll refactor it one day so it's easier to follow.
- *
- * @template TMock of object
- *
- * @param array|TMock|Closure(LegacyMockInterface&MockInterface&TMock):LegacyMockInterface&MockInterface&TMock|array> $args
- *
- * @throws ReflectionException|RuntimeException
- *
- * @return LegacyMockInterface&MockInterface&TMock
- */
- public function mock(...$args)
- {
- /** @var null|MockConfigurationBuilder $builder */
- $builder = null;
- /** @var null|callable $expectationClosure */
- $expectationClosure = null;
- $partialMethods = null;
- $quickDefinitions = [];
- $constructorArgs = null;
- $blocks = [];
-
- if (count($args) > 1) {
- $finalArg = array_pop($args);
-
- if (is_callable($finalArg) && is_object($finalArg)) {
- $expectationClosure = $finalArg;
- } else {
- $args[] = $finalArg;
- }
- }
-
- foreach ($args as $k => $arg) {
- if ($arg instanceof MockConfigurationBuilder) {
- $builder = $arg;
-
- unset($args[$k]);
- }
- }
-
- reset($args);
-
- $builder = $builder ?? new MockConfigurationBuilder();
- $mockeryConfiguration = Mockery::getConfiguration();
- $builder->setParameterOverrides($mockeryConfiguration->getInternalClassMethodParamMaps());
- $builder->setConstantsMap($mockeryConfiguration->getConstantsMap());
-
- while ($args !== []) {
- $arg = array_shift($args);
-
- // check for multiple interfaces
- if (is_string($arg)) {
- foreach (explode('|', $arg) as $type) {
- if ($arg === 'null') {
- // skip PHP 8 'null's
- continue;
- }
-
- if (strpos($type, ',') && !strpos($type, ']')) {
- $interfaces = explode(',', str_replace(' ', '', $type));
-
- $builder->addTargets($interfaces);
-
- continue;
- }
-
- if (strpos($type, 'alias:') === 0) {
- $type = str_replace('alias:', '', $type);
-
- $builder->addTarget('stdClass');
- $builder->setName($type);
-
- continue;
- }
-
- if (strpos($type, 'overload:') === 0) {
- $type = str_replace('overload:', '', $type);
-
- $builder->setInstanceMock(true);
- $builder->addTarget('stdClass');
- $builder->setName($type);
-
- continue;
- }
-
- if ($type[strlen($type) - 1] === ']') {
- $parts = explode('[', $type);
-
- $class = $parts[0];
-
- if (! class_exists($class, true) && ! interface_exists($class, true)) {
- throw new Exception('Can only create a partial mock from an existing class or interface');
- }
-
- $builder->addTarget($class);
-
- $partialMethods = array_filter(
- explode(',', strtolower(rtrim(str_replace(' ', '', $parts[1]), ']')))
- );
-
- foreach ($partialMethods as $partialMethod) {
- if ($partialMethod[0] === '!') {
- $builder->addBlackListedMethod(substr($partialMethod, 1));
-
- continue;
- }
-
- $builder->addWhiteListedMethod($partialMethod);
- }
-
- continue;
- }
-
- if (class_exists($type, true) || interface_exists($type, true) || trait_exists($type, true)) {
- $builder->addTarget($type);
-
- continue;
- }
-
- if (! $mockeryConfiguration->mockingNonExistentMethodsAllowed()) {
- throw new Exception(sprintf("Mockery can't find '%s' so can't mock it", $type));
- }
-
- if (! $this->isValidClassName($type)) {
- throw new Exception('Class name contains invalid characters');
- }
-
- $builder->addTarget($type);
-
- // unions are "sum" types and not "intersections", and so we must only process the first part
- break;
- }
-
- continue;
- }
-
- if (is_object($arg)) {
- $builder->addTarget($arg);
-
- continue;
- }
-
- if (is_array($arg)) {
- if ([] !== $arg && array_keys($arg) !== range(0, count($arg) - 1)) {
- // if associative array
- if (array_key_exists(self::BLOCKS, $arg)) {
- $blocks = $arg[self::BLOCKS];
- }
-
- unset($arg[self::BLOCKS]);
-
- $quickDefinitions = $arg;
-
- continue;
- }
-
- $constructorArgs = $arg;
-
- continue;
- }
-
- throw new Exception(sprintf(
- 'Unable to parse arguments sent to %s::mock()', get_class($this)
- ));
- }
-
- $builder->addBlackListedMethods($blocks);
-
- if ($constructorArgs !== null) {
- $builder->addBlackListedMethod('__construct'); // we need to pass through
- } else {
- $builder->setMockOriginalDestructor(true);
- }
-
- if ($partialMethods !== null && $constructorArgs === null) {
- $constructorArgs = [];
- }
-
- $config = $builder->getMockConfiguration();
-
- $this->checkForNamedMockClashes($config);
-
- $def = $this->getGenerator()->generate($config);
-
- $className = $def->getClassName();
- if (class_exists($className, $attemptAutoload = false)) {
- $rfc = new ReflectionClass($className);
- if (! $rfc->implementsInterface(LegacyMockInterface::class)) {
- throw new RuntimeException(sprintf('Could not load mock %s, class already exists', $className));
- }
- }
-
- $this->getLoader()->load($def);
-
- $mock = $this->_getInstance($className, $constructorArgs);
- $mock->mockery_init($this, $config->getTargetObject(), $config->isInstanceMock());
-
- if ($quickDefinitions !== []) {
- if ($mockeryConfiguration->getQuickDefinitions()->shouldBeCalledAtLeastOnce()) {
- $mock->shouldReceive($quickDefinitions)->atLeast()->once();
- } else {
- $mock->shouldReceive($quickDefinitions)->byDefault();
- }
- }
-
- // if the last parameter passed to mock() is a closure,
- if ($expectationClosure instanceof Closure) {
- // call the closure with the mock object
- $expectationClosure($mock);
- }
-
- return $this->rememberMock($mock);
- }
-
- /**
- * Fetch the next available allocation order number
- *
- * @return int
- */
- public function mockery_allocateOrder()
- {
- return ++$this->_allocatedOrder;
- }
-
- /**
- * Reset the container to its original state
- *
- * @return void
- */
- public function mockery_close()
- {
- foreach ($this->_mocks as $mock) {
- $mock->mockery_teardown();
- }
-
- $this->_mocks = [];
- }
-
- /**
- * Get current ordered number
- *
- * @return int
- */
- public function mockery_getCurrentOrder()
- {
- return $this->_currentOrder;
- }
-
- /**
- * Gets the count of expectations on the mocks
- *
- * @return int
- */
- public function mockery_getExpectationCount()
- {
- $count = 0;
- foreach ($this->_mocks as $mock) {
- $count += $mock->mockery_getExpectationCount();
- }
-
- return $count;
- }
-
- /**
- * Fetch array of ordered groups
- *
- * @return array
- */
- public function mockery_getGroups()
- {
- return $this->_groups;
- }
-
- /**
- * Set current ordered number
- *
- * @param int $order
- *
- * @return int The current order number that was set
- */
- public function mockery_setCurrentOrder($order)
- {
- return $this->_currentOrder = $order;
- }
-
- /**
- * Set ordering for a group
- *
- * @param string $group
- * @param int $order
- *
- * @return void
- */
- public function mockery_setGroup($group, $order)
- {
- $this->_groups[$group] = $order;
- }
-
- /**
- * Tear down tasks for this container
- *
- * @throws PHPException
- */
- public function mockery_teardown()
- {
- try {
- $this->mockery_verify();
- } catch (PHPException $phpException) {
- $this->mockery_close();
-
- throw $phpException;
- }
- }
-
- /**
- * Retrieves all exceptions thrown by mocks
- *
- * @return array
- */
- public function mockery_thrownExceptions()
- {
- /** @var array $exceptions */
- $exceptions = [];
-
- foreach ($this->_mocks as $mock) {
- foreach ($mock->mockery_thrownExceptions() as $exception) {
- $exceptions[] = $exception;
- }
- }
-
- return $exceptions;
- }
-
- /**
- * Validate the current mock's ordering
- *
- * @param string $method
- * @param int $order
- *
- * @throws Exception
- */
- public function mockery_validateOrder($method, $order, LegacyMockInterface $mock)
- {
- if ($order < $this->_currentOrder) {
- $exception = new InvalidOrderException(
- sprintf(
- 'Method %s called out of order: expected order %d, was %d',
- $method,
- $order,
- $this->_currentOrder
- )
- );
-
- $exception->setMock($mock)
- ->setMethodName($method)
- ->setExpectedOrder($order)
- ->setActualOrder($this->_currentOrder);
-
- throw $exception;
- }
-
- $this->mockery_setCurrentOrder($order);
- }
-
- /**
- * Verify the container mocks
- */
- public function mockery_verify()
- {
- foreach ($this->_mocks as $mock) {
- $mock->mockery_verify();
- }
- }
-
- /**
- * Store a mock and set its container reference
- *
- * @template TRememberMock of object
- *
- * @param LegacyMockInterface&MockInterface&TRememberMock $mock
- *
- * @return LegacyMockInterface&MockInterface&TRememberMock
- */
- public function rememberMock(LegacyMockInterface $mock)
- {
- $class = get_class($mock);
-
- if (! array_key_exists($class, $this->_mocks)) {
- return $this->_mocks[$class] = $mock;
- }
-
- /**
- * This condition triggers for an instance mock where origin mock
- * is already remembered
- */
- return $this->_mocks[] = $mock;
- }
-
- /**
- * Retrieve the last remembered mock object,
- * which is the same as saying retrieve the current mock being programmed where you have yet to call mock()
- * to change it thus why the method name is "self" since it will be used during the programming of the same mock.
- *
- * @return LegacyMockInterface|MockInterface
- */
- public function self()
- {
- $mocks = array_values($this->_mocks);
- $index = count($mocks) - 1;
- return $mocks[$index];
- }
-
- /**
- * @template TMock of object
- * @template TMixed
- *
- * @param class-string $mockName
- * @param null|array $constructorArgs
- *
- * @return TMock
- */
- protected function _getInstance($mockName, $constructorArgs = null)
- {
- if ($constructorArgs !== null) {
- return (new ReflectionClass($mockName))->newInstanceArgs($constructorArgs);
- }
-
- try {
- $instance = $this->instantiator->instantiate($mockName);
- } catch (PHPException $phpException) {
- /** @var class-string $internalMockName */
- $internalMockName = $mockName . '_Internal';
-
- if (! class_exists($internalMockName)) {
- eval(sprintf(
- 'class %s extends %s { public function __construct() {} }',
- $internalMockName,
- $mockName
- ));
- }
-
- $instance = new $internalMockName();
- }
-
- return $instance;
- }
-
- protected function checkForNamedMockClashes($config)
- {
- $name = $config->getName();
-
- if ($name === null) {
- return;
- }
-
- $hash = $config->getHash();
-
- if (array_key_exists($name, $this->_namedMocks) && $hash !== $this->_namedMocks[$name]) {
- throw new Exception(
- sprintf("The mock named '%s' has been already defined with a different mock configuration", $name)
- );
- }
-
- $this->_namedMocks[$name] = $hash;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/AtLeast.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/AtLeast.php
deleted file mode 100644
index f250d755..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/AtLeast.php
+++ /dev/null
@@ -1,58 +0,0 @@
-_limit > $n) {
- $exception = new InvalidCountException(
- 'Method ' . (string) $this->_expectation
- . ' from ' . $this->_expectation->getMock()->mockery_getName()
- . ' should be called' . PHP_EOL
- . ' at least ' . $this->_limit . ' times but called ' . $n
- . ' times.'
- );
-
- $exception->setMock($this->_expectation->getMock())
- ->setMethodName((string) $this->_expectation)
- ->setExpectedCountComparative('>=')
- ->setExpectedCount($this->_limit)
- ->setActualCount($n);
- throw $exception;
- }
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/AtMost.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/AtMost.php
deleted file mode 100644
index 11bbe37c..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/AtMost.php
+++ /dev/null
@@ -1,45 +0,0 @@
-_limit < $n) {
- $exception = new InvalidCountException(
- 'Method ' . (string) $this->_expectation
- . ' from ' . $this->_expectation->getMock()->mockery_getName()
- . ' should be called' . PHP_EOL
- . ' at most ' . $this->_limit . ' times but called ' . $n
- . ' times.'
- );
- $exception->setMock($this->_expectation->getMock())
- ->setMethodName((string) $this->_expectation)
- ->setExpectedCountComparative('<=')
- ->setExpectedCount($this->_limit)
- ->setActualCount($n);
- throw $exception;
- }
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/CountValidatorAbstract.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/CountValidatorAbstract.php
deleted file mode 100644
index 3ecfde3a..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/CountValidatorAbstract.php
+++ /dev/null
@@ -1,62 +0,0 @@
-_expectation = $expectation;
- $this->_limit = $limit;
- }
-
- /**
- * Checks if the validator can accept an additional nth call
- *
- * @param int $n
- *
- * @return bool
- */
- public function isEligible($n)
- {
- return $n < $this->_limit;
- }
-
- /**
- * Validate the call count against this validator
- *
- * @param int $n
- *
- * @return bool
- */
- abstract public function validate($n);
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/CountValidatorInterface.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/CountValidatorInterface.php
deleted file mode 100644
index 1cbf4cc3..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/CountValidatorInterface.php
+++ /dev/null
@@ -1,24 +0,0 @@
-_limit !== $n) {
- $because = $this->_expectation->getExceptionMessage();
-
- $exception = new InvalidCountException(
- 'Method ' . (string) $this->_expectation
- . ' from ' . $this->_expectation->getMock()->mockery_getName()
- . ' should be called' . PHP_EOL
- . ' exactly ' . $this->_limit . ' times but called ' . $n
- . ' times.'
- . ($because ? ' Because ' . $this->_expectation->getExceptionMessage() : '')
- );
- $exception->setMock($this->_expectation->getMock())
- ->setMethodName((string) $this->_expectation)
- ->setExpectedCountComparative('=')
- ->setExpectedCount($this->_limit)
- ->setActualCount($n);
- throw $exception;
- }
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/Exception.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/Exception.php
deleted file mode 100644
index b1c20cd4..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/CountValidator/Exception.php
+++ /dev/null
@@ -1,18 +0,0 @@
-dismissed = true;
- // we sometimes stack them
- $previous = $this->getPrevious();
- if (! $previous instanceof self) {
- return;
- }
-
- $previous->dismiss();
- }
-
- /**
- * @return bool
- */
- public function dismissed()
- {
- return $this->dismissed;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/InvalidArgumentException.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/InvalidArgumentException.php
deleted file mode 100644
index d76e275e..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/InvalidArgumentException.php
+++ /dev/null
@@ -1,15 +0,0 @@
-actual;
- }
-
- /**
- * @return int
- */
- public function getExpectedCount()
- {
- return $this->expected;
- }
-
- /**
- * @return string
- */
- public function getExpectedCountComparative()
- {
- return $this->expectedComparative;
- }
-
- /**
- * @return string|null
- */
- public function getMethodName()
- {
- return $this->method;
- }
-
- /**
- * @return LegacyMockInterface|null
- */
- public function getMock()
- {
- return $this->mockObject;
- }
-
- /**
- * @throws RuntimeException
- * @return string|null
- */
- public function getMockName()
- {
- $mock = $this->getMock();
-
- if ($mock === null) {
- return '';
- }
-
- return $mock->mockery_getName();
- }
-
- /**
- * @param int $count
- * @return self
- */
- public function setActualCount($count)
- {
- $this->actual = $count;
- return $this;
- }
-
- /**
- * @param int $count
- * @return self
- */
- public function setExpectedCount($count)
- {
- $this->expected = $count;
- return $this;
- }
-
- /**
- * @param string $comp
- * @return self
- */
- public function setExpectedCountComparative($comp)
- {
- if (! in_array($comp, ['=', '>', '<', '>=', '<='], true)) {
- throw new RuntimeException('Illegal comparative for expected call counts set: ' . $comp);
- }
-
- $this->expectedComparative = $comp;
- return $this;
- }
-
- /**
- * @param string $name
- * @return self
- */
- public function setMethodName($name)
- {
- $this->method = $name;
- return $this;
- }
-
- /**
- * @return self
- */
- public function setMock(LegacyMockInterface $mock)
- {
- $this->mockObject = $mock;
- return $this;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/InvalidOrderException.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/InvalidOrderException.php
deleted file mode 100644
index cf5bb70d..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/InvalidOrderException.php
+++ /dev/null
@@ -1,125 +0,0 @@
-actual;
- }
-
- /**
- * @return int
- */
- public function getExpectedOrder()
- {
- return $this->expected;
- }
-
- /**
- * @return string|null
- */
- public function getMethodName()
- {
- return $this->method;
- }
-
- /**
- * @return LegacyMockInterface|null
- */
- public function getMock()
- {
- return $this->mockObject;
- }
-
- /**
- * @return string|null
- */
- public function getMockName()
- {
- $mock = $this->getMock();
-
- if ($mock === null) {
- return $mock;
- }
-
- return $mock->mockery_getName();
- }
-
- /**
- * @param int $count
- *
- * @return self
- */
- public function setActualOrder($count)
- {
- $this->actual = $count;
- return $this;
- }
-
- /**
- * @param int $count
- *
- * @return self
- */
- public function setExpectedOrder($count)
- {
- $this->expected = $count;
- return $this;
- }
-
- /**
- * @param string $name
- *
- * @return self
- */
- public function setMethodName($name)
- {
- $this->method = $name;
- return $this;
- }
-
- /**
- * @return self
- */
- public function setMock(LegacyMockInterface $mock)
- {
- $this->mockObject = $mock;
- return $this;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/MockeryExceptionInterface.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/MockeryExceptionInterface.php
deleted file mode 100644
index 5ce07eee..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/MockeryExceptionInterface.php
+++ /dev/null
@@ -1,19 +0,0 @@
-
- */
- protected $actual = [];
-
- /**
- * @var string|null
- */
- protected $method = null;
-
- /**
- * @var LegacyMockInterface|null
- */
- protected $mockObject = null;
-
- /**
- * @return array
- */
- public function getActualArguments()
- {
- return $this->actual;
- }
-
- /**
- * @return string|null
- */
- public function getMethodName()
- {
- return $this->method;
- }
-
- /**
- * @return LegacyMockInterface|null
- */
- public function getMock()
- {
- return $this->mockObject;
- }
-
- /**
- * @return string|null
- */
- public function getMockName()
- {
- $mock = $this->getMock();
-
- if ($mock === null) {
- return $mock;
- }
-
- return $mock->mockery_getName();
- }
-
- /**
- * @todo Rename param `count` to `args`
- * @template TMixed
- *
- * @param array $count
- * @return self
- */
- public function setActualArguments($count)
- {
- $this->actual = $count;
- return $this;
- }
-
- /**
- * @param string $name
- * @return self
- */
- public function setMethodName($name)
- {
- $this->method = $name;
- return $this;
- }
-
- /**
- * @return self
- */
- public function setMock(LegacyMockInterface $mock)
- {
- $this->mockObject = $mock;
- return $this;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/RuntimeException.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/RuntimeException.php
deleted file mode 100644
index 5d4f643d..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Exception/RuntimeException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-_mock = $mock;
- $this->_name = $name;
- $this->withAnyArgs();
- }
-
- /**
- * Cloning logic
- */
- public function __clone()
- {
- $newValidators = [];
-
- $countValidators = $this->_countValidators;
-
- foreach ($countValidators as $validator) {
- $newValidators[] = clone $validator;
- }
-
- $this->_countValidators = $newValidators;
- }
-
- /**
- * Return a string with the method name and arguments formatted
- *
- * @return string
- */
- public function __toString()
- {
- return Mockery::formatArgs($this->_name, $this->_expectedArgs);
- }
-
- /**
- * Set a return value, or sequential queue of return values
- *
- * @param mixed ...$args
- *
- * @return self
- */
- public function andReturn(...$args)
- {
- $this->_returnQueue = $args;
-
- return $this;
- }
-
- /**
- * Sets up a closure to return the nth argument from the expected method call
- *
- * @param int $index
- *
- * @return self
- */
- public function andReturnArg($index)
- {
- if (! is_int($index) || $index < 0) {
- throw new InvalidArgumentException(
- 'Invalid argument index supplied. Index must be a non-negative integer.'
- );
- }
-
- $closure = static function (...$args) use ($index) {
- if (array_key_exists($index, $args)) {
- return $args[$index];
- }
-
- throw new OutOfBoundsException(
- 'Cannot return an argument value. No argument exists for the index ' . $index
- );
- };
-
- $this->_closureQueue = [$closure];
-
- return $this;
- }
-
- /**
- * @return self
- */
- public function andReturnFalse()
- {
- return $this->andReturn(false);
- }
-
- /**
- * Return null. This is merely a language construct for Mock describing.
- *
- * @return self
- */
- public function andReturnNull()
- {
- return $this->andReturn(null);
- }
-
- /**
- * Set a return value, or sequential queue of return values
- *
- * @param mixed ...$args
- *
- * @return self
- */
- public function andReturns(...$args)
- {
- return $this->andReturn(...$args);
- }
-
- /**
- * Return this mock, like a fluent interface
- *
- * @return self
- */
- public function andReturnSelf()
- {
- return $this->andReturn($this->_mock);
- }
-
- /**
- * @return self
- */
- public function andReturnTrue()
- {
- return $this->andReturn(true);
- }
-
- /**
- * Return a self-returning black hole object.
- *
- * @return self
- */
- public function andReturnUndefined()
- {
- return $this->andReturn(new Undefined());
- }
-
- /**
- * Set a closure or sequence of closures with which to generate return
- * values. The arguments passed to the expected method are passed to the
- * closures as parameters.
- *
- * @param callable ...$args
- *
- * @return self
- */
- public function andReturnUsing(...$args)
- {
- $this->_closureQueue = $args;
-
- return $this;
- }
-
- /**
- * Set a sequential queue of return values with an array
- *
- * @return self
- */
- public function andReturnValues(array $values)
- {
- return $this->andReturn(...$values);
- }
-
- /**
- * Register values to be set to a public property each time this expectation occurs
- *
- * @param string $name
- * @param array ...$values
- *
- * @return self
- */
- public function andSet($name, ...$values)
- {
- $this->_setQueue[$name] = $values;
-
- return $this;
- }
-
- /**
- * Set Exception class and arguments to that class to be thrown
- *
- * @param string|Throwable $exception
- * @param string $message
- * @param int $code
- *
- * @return self
- */
- public function andThrow($exception, $message = '', $code = 0, ?\Exception $previous = null)
- {
- $this->_throw = true;
-
- if (is_object($exception)) {
- return $this->andReturn($exception);
- }
-
- return $this->andReturn(new $exception($message, $code, $previous));
- }
-
- /**
- * Set Exception classes to be thrown
- *
- * @return self
- */
- public function andThrowExceptions(array $exceptions)
- {
- $this->_throw = true;
-
- foreach ($exceptions as $exception) {
- if (! is_object($exception)) {
- throw new Exception('You must pass an array of exception objects to andThrowExceptions');
- }
- }
-
- return $this->andReturnValues($exceptions);
- }
-
- public function andThrows($exception, $message = '', $code = 0, ?\Exception $previous = null)
- {
- return $this->andThrow($exception, $message, $code, $previous);
- }
-
- /**
- * Sets up a closure that will yield each of the provided args
- *
- * @param mixed ...$args
- *
- * @return self
- */
- public function andYield(...$args)
- {
- $closure = static function () use ($args) {
- foreach ($args as $arg) {
- yield $arg;
- }
- };
-
- $this->_closureQueue = [$closure];
-
- return $this;
- }
-
- /**
- * Sets next count validator to the AtLeast instance
- *
- * @return self
- */
- public function atLeast()
- {
- $this->_countValidatorClass = AtLeast::class;
-
- return $this;
- }
-
- /**
- * Sets next count validator to the AtMost instance
- *
- * @return self
- */
- public function atMost()
- {
- $this->_countValidatorClass = AtMost::class;
-
- return $this;
- }
-
- /**
- * Set the exception message
- *
- * @param string $message
- *
- * @return $this
- */
- public function because($message)
- {
- $this->_because = $message;
-
- return $this;
- }
-
- /**
- * Shorthand for setting minimum and maximum constraints on call counts
- *
- * @param int $minimum
- * @param int $maximum
- */
- public function between($minimum, $maximum)
- {
- return $this->atLeast()->times($minimum)->atMost()->times($maximum);
- }
-
- /**
- * Mark this expectation as being a default
- *
- * @return self
- */
- public function byDefault()
- {
- $director = $this->_mock->mockery_getExpectationsFor($this->_name);
-
- if ($director instanceof ExpectationDirector) {
- $director->makeExpectationDefault($this);
- }
-
- return $this;
- }
-
- /**
- * @return null|string
- */
- public function getExceptionMessage()
- {
- return $this->_because;
- }
-
- /**
- * Return the parent mock of the expectation
- *
- * @return LegacyMockInterface|MockInterface
- */
- public function getMock()
- {
- return $this->_mock;
- }
-
- public function getName()
- {
- return $this->_name;
- }
-
- /**
- * Return order number
- *
- * @return int
- */
- public function getOrderNumber()
- {
- return $this->_orderNumber;
- }
-
- /**
- * Indicates call order should apply globally
- *
- * @return self
- */
- public function globally()
- {
- $this->_globally = true;
-
- return $this;
- }
-
- /**
- * Check if there is a constraint on call count
- *
- * @return bool
- */
- public function isCallCountConstrained()
- {
- return $this->_countValidators !== [];
- }
-
- /**
- * Checks if this expectation is eligible for additional calls
- *
- * @return bool
- */
- public function isEligible()
- {
- foreach ($this->_countValidators as $validator) {
- if (! $validator->isEligible($this->_actualCount)) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * Check if passed arguments match an argument expectation
- *
- * @return bool
- */
- public function matchArgs(array $args)
- {
- if ($this->isArgumentListMatcher()) {
- return $this->_matchArg($this->_expectedArgs[0], $args);
- }
-
- $argCount = count($args);
-
- $expectedArgsCount = count($this->_expectedArgs);
-
- if ($argCount === $expectedArgsCount) {
- return $this->_matchArgs($args);
- }
-
- $lastExpectedArgument = $this->_expectedArgs[$expectedArgsCount - 1];
-
- if ($lastExpectedArgument instanceof AndAnyOtherArgs) {
- $firstCorrespondingKey = array_search($lastExpectedArgument, $this->_expectedArgs, true);
-
- $args = array_slice($args, 0, $firstCorrespondingKey);
-
- return $this->_matchArgs($args);
- }
-
- return false;
- }
-
- /**
- * Indicates that this expectation is never expected to be called
- *
- * @return self
- */
- public function never()
- {
- return $this->times(0);
- }
-
- /**
- * Indicates that this expectation is expected exactly once
- *
- * @return self
- */
- public function once()
- {
- return $this->times(1);
- }
-
- /**
- * Indicates that this expectation must be called in a specific given order
- *
- * @param string $group Name of the ordered group
- *
- * @return self
- */
- public function ordered($group = null)
- {
- if ($this->_globally) {
- $this->_globalOrderNumber = $this->_defineOrdered($group, $this->_mock->mockery_getContainer());
- } else {
- $this->_orderNumber = $this->_defineOrdered($group, $this->_mock);
- }
-
- $this->_globally = false;
-
- return $this;
- }
-
- /**
- * Flag this expectation as calling the original class method with
- * the provided arguments instead of using a return value queue.
- *
- * @return self
- */
- public function passthru()
- {
- if ($this->_mock instanceof Mock) {
- throw new Exception(
- 'Mock Objects not created from a loaded/existing class are incapable of passing method calls through to a parent class'
- );
- }
-
- $this->_passthru = true;
-
- return $this;
- }
-
- /**
- * Alias to andSet(). Allows the natural English construct
- * - set('foo', 'bar')->andReturn('bar')
- *
- * @param string $name
- * @param mixed $value
- *
- * @return self
- */
- public function set($name, $value)
- {
- return $this->andSet(...func_get_args());
- }
-
- /**
- * Indicates the number of times this expectation should occur
- *
- * @param int $limit
- *
- * @throws InvalidArgumentException
- *
- * @return self
- */
- public function times($limit = null)
- {
- if ($limit === null) {
- return $this;
- }
-
- if (! is_int($limit)) {
- throw new InvalidArgumentException('The passed Times limit should be an integer value');
- }
-
- if ($this->_expectedCount === 0) {
- @trigger_error(self::ERROR_ZERO_INVOCATION, E_USER_DEPRECATED);
- // throw new \InvalidArgumentException(self::ERROR_ZERO_INVOCATION);
- }
-
- if ($limit === 0) {
- $this->_countValidators = [];
- }
-
- $this->_expectedCount = $limit;
-
- $this->_countValidators[$this->_countValidatorClass] = new $this->_countValidatorClass($this, $limit);
-
- if ($this->_countValidatorClass !== Exact::class) {
- $this->_countValidatorClass = Exact::class;
-
- unset($this->_countValidators[$this->_countValidatorClass]);
- }
-
- return $this;
- }
-
- /**
- * Indicates that this expectation is expected exactly twice
- *
- * @return self
- */
- public function twice()
- {
- return $this->times(2);
- }
-
- /**
- * Verify call order
- *
- * @return void
- */
- public function validateOrder()
- {
- if ($this->_orderNumber) {
- $this->_mock->mockery_validateOrder((string) $this, $this->_orderNumber, $this->_mock);
- }
-
- if ($this->_globalOrderNumber) {
- $this->_mock->mockery_getContainer()->mockery_validateOrder(
- (string) $this,
- $this->_globalOrderNumber,
- $this->_mock
- );
- }
- }
-
- /**
- * Verify this expectation
- *
- * @return void
- */
- public function verify()
- {
- foreach ($this->_countValidators as $validator) {
- $validator->validate($this->_actualCount);
- }
- }
-
- /**
- * Verify the current call, i.e. that the given arguments match those
- * of this expectation
- *
- * @throws Throwable
- *
- * @return mixed
- */
- public function verifyCall(array $args)
- {
- $this->validateOrder();
-
- ++$this->_actualCount;
-
- if ($this->_passthru === true) {
- return $this->_mock->mockery_callSubjectMethod($this->_name, $args);
- }
-
- $return = $this->_getReturnValue($args);
-
- $this->throwAsNecessary($return);
-
- $this->_setValues();
-
- return $return;
- }
-
- /**
- * Expected argument setter for the expectation
- *
- * @param mixed ...$args
- *
- * @return self
- */
- public function with(...$args)
- {
- return $this->withArgs($args);
- }
-
- /**
- * Set expectation that any arguments are acceptable
- *
- * @return self
- */
- public function withAnyArgs()
- {
- $this->_expectedArgs = [new AnyArgs()];
-
- return $this;
- }
-
- /**
- * Expected arguments for the expectation passed as an array or a closure that matches each passed argument on
- * each function call.
- *
- * @param array|Closure $argsOrClosure
- *
- * @return self
- */
- public function withArgs($argsOrClosure)
- {
- if (is_array($argsOrClosure)) {
- return $this->withArgsInArray($argsOrClosure);
- }
-
- if ($argsOrClosure instanceof Closure) {
- return $this->withArgsMatchedByClosure($argsOrClosure);
- }
-
- throw new InvalidArgumentException(sprintf(
- 'Call to %s with an invalid argument (%s), only array and closure are allowed',
- __METHOD__,
- $argsOrClosure
- ));
- }
-
- /**
- * Set with() as no arguments expected
- *
- * @return self
- */
- public function withNoArgs()
- {
- $this->_expectedArgs = [new NoArgs()];
-
- return $this;
- }
-
- /**
- * Expected arguments should partially match the real arguments
- *
- * @param mixed ...$expectedArgs
- *
- * @return self
- */
- public function withSomeOfArgs(...$expectedArgs)
- {
- return $this->withArgs(static function (...$args) use ($expectedArgs): bool {
- foreach ($expectedArgs as $expectedArg) {
- if (! in_array($expectedArg, $args, true)) {
- return false;
- }
- }
-
- return true;
- });
- }
-
- /**
- * Indicates this expectation should occur zero or more times
- *
- * @return self
- */
- public function zeroOrMoreTimes()
- {
- return $this->atLeast()->never();
- }
-
- /**
- * Setup the ordering tracking on the mock or mock container
- *
- * @param string $group
- * @param object $ordering
- *
- * @return int
- */
- protected function _defineOrdered($group, $ordering)
- {
- $groups = $ordering->mockery_getGroups();
- if ($group === null) {
- return $ordering->mockery_allocateOrder();
- }
-
- if (array_key_exists($group, $groups)) {
- return $groups[$group];
- }
-
- $result = $ordering->mockery_allocateOrder();
-
- $ordering->mockery_setGroup($group, $result);
-
- return $result;
- }
-
- /**
- * Fetch the return value for the matching args
- *
- * @return mixed
- */
- protected function _getReturnValue(array $args)
- {
- $closureQueueCount = count($this->_closureQueue);
-
- if ($closureQueueCount > 1) {
- return array_shift($this->_closureQueue)(...$args);
- }
-
- if ($closureQueueCount > 0) {
- return current($this->_closureQueue)(...$args);
- }
-
- $returnQueueCount = count($this->_returnQueue);
-
- if ($returnQueueCount > 1) {
- return array_shift($this->_returnQueue);
- }
-
- if ($returnQueueCount > 0) {
- return current($this->_returnQueue);
- }
-
- return $this->_mock->mockery_returnValueForMethod($this->_name);
- }
-
- /**
- * Check if passed argument matches an argument expectation
- *
- * @param mixed $expected
- * @param mixed $actual
- *
- * @return bool
- */
- protected function _matchArg($expected, &$actual)
- {
- if ($expected === $actual) {
- return true;
- }
-
- if ($expected instanceof MatcherInterface) {
- return $expected->match($actual);
- }
-
- if ($expected instanceof Constraint) {
- return (bool) $expected->evaluate($actual, '', true);
- }
-
- if ($expected instanceof Matcher || $expected instanceof Hamcrest_Matcher) {
- @trigger_error('Hamcrest package has been deprecated and will be removed in 2.0', E_USER_DEPRECATED);
-
- return $expected->matches($actual);
- }
-
- if (is_object($expected)) {
- $matcher = Mockery::getConfiguration()->getDefaultMatcher(get_class($expected));
-
- return $matcher === null ? false : $this->_matchArg(new $matcher($expected), $actual);
- }
-
- if (is_object($actual) && is_string($expected) && $actual instanceof $expected) {
- return true;
- }
-
- return $expected == $actual;
- }
-
- /**
- * Check if the passed arguments match the expectations, one by one.
- *
- * @param array $args
- *
- * @return bool
- */
- protected function _matchArgs($args)
- {
- for ($index = 0, $argCount = count($args); $index < $argCount; ++$index) {
- $param = &$args[$index];
-
- if (! $this->_matchArg($this->_expectedArgs[$index], $param)) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * Sets public properties with queued values to the mock object
- *
- * @return void
- */
- protected function _setValues()
- {
- $mockClass = get_class($this->_mock);
-
- $container = $this->_mock->mockery_getContainer();
-
- $mocks = $container->getMocks();
-
- foreach ($this->_setQueue as $name => &$values) {
- if ($values === []) {
- continue;
- }
-
- $value = array_shift($values);
-
- $this->_mock->{$name} = $value;
-
- foreach ($mocks as $mock) {
- if (! $mock instanceof $mockClass) {
- continue;
- }
-
- if (! $mock->mockery_isInstance()) {
- continue;
- }
-
- $mock->{$name} = $value;
- }
- }
- }
-
- /**
- * @template TExpectedArg
- *
- * @param TExpectedArg $expectedArg
- *
- * @return bool
- */
- private function isAndAnyOtherArgumentsMatcher($expectedArg)
- {
- return $expectedArg instanceof AndAnyOtherArgs;
- }
-
- /**
- * Check if the registered expectation is an ArgumentListMatcher
- *
- * @return bool
- */
- private function isArgumentListMatcher()
- {
- return $this->_expectedArgs !== [] && $this->_expectedArgs[0] instanceof ArgumentListMatcher;
- }
-
- /**
- * Throws an exception if the expectation has been configured to do so
- *
- * @param Throwable $return
- *
- * @throws Throwable
- *
- * @return void
- */
- private function throwAsNecessary($return)
- {
- if (! $this->_throw) {
- return;
- }
-
- if (! $return instanceof Throwable) {
- return;
- }
-
- throw $return;
- }
-
- /**
- * Expected arguments for the expectation passed as an array
- *
- * @return self
- */
- private function withArgsInArray(array $arguments)
- {
- if ($arguments === []) {
- return $this->withNoArgs();
- }
-
- $this->_expectedArgs = $arguments;
-
- return $this;
- }
-
- /**
- * Expected arguments have to be matched by the given closure.
- *
- * @return self
- */
- private function withArgsMatchedByClosure(Closure $closure)
- {
- $this->_expectedArgs = [new MultiArgumentClosure($closure)];
-
- return $this;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/ExpectationDirector.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/ExpectationDirector.php
deleted file mode 100644
index 286268b8..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/ExpectationDirector.php
+++ /dev/null
@@ -1,242 +0,0 @@
-
- */
- protected $_defaults = [];
-
- /**
- * Stores an array of all expectations for this mock
- *
- * @var list
- */
- protected $_expectations = [];
-
- /**
- * The expected order of next call
- *
- * @var int
- */
- protected $_expectedOrder = null;
-
- /**
- * Mock object the director is attached to
- *
- * @var LegacyMockInterface|MockInterface
- */
- protected $_mock = null;
-
- /**
- * Method name the director is directing
- *
- * @var string
- */
- protected $_name = null;
-
- /**
- * Constructor
- *
- * @param string $name
- */
- public function __construct($name, LegacyMockInterface $mock)
- {
- $this->_name = $name;
- $this->_mock = $mock;
- }
-
- /**
- * Add a new expectation to the director
- */
- public function addExpectation(Expectation $expectation)
- {
- $this->_expectations[] = $expectation;
- }
-
- /**
- * Handle a method call being directed by this instance
- *
- * @return mixed
- */
- public function call(array $args)
- {
- $expectation = $this->findExpectation($args);
- if ($expectation !== null) {
- return $expectation->verifyCall($args);
- }
-
- $exception = new NoMatchingExpectationException(
- 'No matching handler found for '
- . $this->_mock->mockery_getName() . '::'
- . Mockery::formatArgs($this->_name, $args)
- . '. Either the method was unexpected or its arguments matched'
- . ' no expected argument list for this method'
- . PHP_EOL . PHP_EOL
- . Mockery::formatObjects($args)
- );
-
- $exception->setMock($this->_mock)
- ->setMethodName($this->_name)
- ->setActualArguments($args);
-
- throw $exception;
- }
-
- /**
- * Attempt to locate an expectation matching the provided args
- *
- * @return mixed
- */
- public function findExpectation(array $args)
- {
- $expectation = null;
-
- if ($this->_expectations !== []) {
- $expectation = $this->_findExpectationIn($this->_expectations, $args);
- }
-
- if ($expectation === null && $this->_defaults !== []) {
- return $this->_findExpectationIn($this->_defaults, $args);
- }
-
- return $expectation;
- }
-
- /**
- * Return all expectations assigned to this director
- *
- * @return array
- */
- public function getDefaultExpectations()
- {
- return $this->_defaults;
- }
-
- /**
- * Return the number of expectations assigned to this director.
- *
- * @return int
- */
- public function getExpectationCount()
- {
- $count = 0;
-
- $expectations = $this->getExpectations();
-
- if ($expectations === []) {
- $expectations = $this->getDefaultExpectations();
- }
-
- foreach ($expectations as $expectation) {
- if ($expectation->isCallCountConstrained()) {
- ++$count;
- }
- }
-
- return $count;
- }
-
- /**
- * Return all expectations assigned to this director
- *
- * @return array
- */
- public function getExpectations()
- {
- return $this->_expectations;
- }
-
- /**
- * Make the given expectation a default for all others assuming it was correctly created last
- *
- * @throws Exception
- *
- * @return void
- */
- public function makeExpectationDefault(Expectation $expectation)
- {
- if (end($this->_expectations) === $expectation) {
- array_pop($this->_expectations);
-
- array_unshift($this->_defaults, $expectation);
-
- return;
- }
-
- throw new Exception('Cannot turn a previously defined expectation into a default');
- }
-
- /**
- * Verify all expectations of the director
- *
- * @throws Exception
- *
- * @return void
- */
- public function verify()
- {
- if ($this->_expectations !== []) {
- foreach ($this->_expectations as $expectation) {
- $expectation->verify();
- }
-
- return;
- }
-
- foreach ($this->_defaults as $expectation) {
- $expectation->verify();
- }
- }
-
- /**
- * Search current array of expectations for a match
- *
- * @param array $expectations
- *
- * @return null|ExpectationInterface
- */
- protected function _findExpectationIn(array $expectations, array $args)
- {
- foreach ($expectations as $expectation) {
- if (! $expectation->isEligible()) {
- continue;
- }
-
- if (! $expectation->matchArgs($args)) {
- continue;
- }
-
- return $expectation;
- }
-
- foreach ($expectations as $expectation) {
- if ($expectation->matchArgs($args)) {
- return $expectation;
- }
- }
-
- return null;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/ExpectationInterface.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/ExpectationInterface.php
deleted file mode 100644
index 29c27d3a..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/ExpectationInterface.php
+++ /dev/null
@@ -1,38 +0,0 @@
-once();
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/CachingGenerator.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/CachingGenerator.php
deleted file mode 100644
index deff12e2..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/CachingGenerator.php
+++ /dev/null
@@ -1,43 +0,0 @@
-
- */
- protected $cache = [];
-
- /**
- * @var Generator
- */
- protected $generator;
-
- public function __construct(Generator $generator)
- {
- $this->generator = $generator;
- }
-
- /**
- * @return string
- */
- public function generate(MockConfiguration $config)
- {
- $hash = $config->getHash();
-
- if (array_key_exists($hash, $this->cache)) {
- return $this->cache[$hash];
- }
-
- return $this->cache[$hash] = $this->generator->generate($config);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/DefinedTargetClass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/DefinedTargetClass.php
deleted file mode 100644
index f2a3f327..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/DefinedTargetClass.php
+++ /dev/null
@@ -1,188 +0,0 @@
-rfc = $rfc;
- $this->name = $alias ?? $rfc->getName();
- }
-
- /**
- * @return class-string
- */
- public function __toString()
- {
- return $this->name;
- }
-
- /**
- * @param class-string $name
- * @param class-string|null $alias
- * @return self
- */
- public static function factory($name, $alias = null)
- {
- return new self(new ReflectionClass($name), $alias);
- }
-
- /**
- * @return list
- */
- public function getAttributes()
- {
- if (PHP_VERSION_ID < 80000) {
- return [];
- }
-
- return array_unique(
- array_merge(
- ['\AllowDynamicProperties'],
- array_map(
- static function (ReflectionAttribute $attribute): string {
- return '\\' . $attribute->getName();
- },
- $this->rfc->getAttributes()
- )
- )
- );
- }
-
- /**
- * @return array
- */
- public function getInterfaces()
- {
- return array_map(
- static function (ReflectionClass $interface): self {
- return new self($interface);
- },
- $this->rfc->getInterfaces()
- );
- }
-
- /**
- * @return list
- */
- public function getMethods()
- {
- return array_map(
- static function (ReflectionMethod $method): Method {
- return new Method($method);
- },
- $this->rfc->getMethods()
- );
- }
-
- /**
- * @return class-string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * @return string
- */
- public function getNamespaceName()
- {
- return $this->rfc->getNamespaceName();
- }
-
- /**
- * @return string
- */
- public function getShortName()
- {
- return $this->rfc->getShortName();
- }
-
- /**
- * @return bool
- */
- public function hasInternalAncestor()
- {
- if ($this->rfc->isInternal()) {
- return true;
- }
-
- $child = $this->rfc;
- while ($parent = $child->getParentClass()) {
- if ($parent->isInternal()) {
- return true;
- }
-
- $child = $parent;
- }
-
- return false;
- }
-
- /**
- * @param class-string $interface
- * @return bool
- */
- public function implementsInterface($interface)
- {
- return $this->rfc->implementsInterface($interface);
- }
-
- /**
- * @return bool
- */
- public function inNamespace()
- {
- return $this->rfc->inNamespace();
- }
-
- /**
- * @return bool
- */
- public function isAbstract()
- {
- return $this->rfc->isAbstract();
- }
-
- /**
- * @return bool
- */
- public function isFinal()
- {
- return $this->rfc->isFinal();
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/Generator.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/Generator.php
deleted file mode 100644
index 9dc59c83..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/Generator.php
+++ /dev/null
@@ -1,19 +0,0 @@
-method = $method;
- }
-
- /**
- * @template TArgs
- * @template TMixed
- *
- * @param string $method
- * @param array $args
- *
- * @return TMixed
- */
- public function __call($method, $args)
- {
- /** @var TMixed */
- return $this->method->{$method}(...$args);
- }
-
- /**
- * @return list
- */
- public function getParameters()
- {
- return array_map(static function (ReflectionParameter $parameter) {
- return new Parameter($parameter);
- }, $this->method->getParameters());
- }
-
- /**
- * @return null|string
- */
- public function getReturnType()
- {
- return Reflector::getReturnType($this->method);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockConfiguration.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockConfiguration.php
deleted file mode 100644
index 1849c3e2..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockConfiguration.php
+++ /dev/null
@@ -1,709 +0,0 @@
-
- */
- protected $allMethods = [];
-
- /**
- * Methods that should specifically not be mocked
- *
- * This is currently populated with stuff we don't know how to deal with, should really be somewhere else
- */
- protected $blackListedMethods = [];
-
- protected $constantsMap = [];
-
- /**
- * An instance mock is where we override the original class before it's autoloaded
- *
- * @var bool
- */
- protected $instanceMock = false;
-
- /**
- * If true, overrides original class destructor
- *
- * @var bool
- */
- protected $mockOriginalDestructor = false;
-
- /**
- * The class name we'd like to use for a generated mock
- *
- * @var string|null
- */
- protected $name;
-
- /**
- * Param overrides
- *
- * @var array
- */
- protected $parameterOverrides = [];
-
- /**
- * A class that we'd like to mock
- * @var TargetClassInterface|null
- */
- protected $targetClass;
-
- /**
- * @var class-string|null
- */
- protected $targetClassName;
-
- /**
- * @var array
- */
- protected $targetInterfaceNames = [];
-
- /**
- * A number of interfaces we'd like to mock, keyed by name to attempt to keep unique
- *
- * @var array
- */
- protected $targetInterfaces = [];
-
- /**
- * An object we'd like our mock to proxy to
- *
- * @var object|null
- */
- protected $targetObject;
-
- /**
- * @var array
- */
- protected $targetTraitNames = [];
-
- /**
- * A number of traits we'd like to mock, keyed by name to attempt to keep unique
- *
- * @var array
- */
- protected $targetTraits = [];
-
- /**
- * If not empty, only these methods will be mocked
- *
- * @var array
- */
- protected $whiteListedMethods = [];
-
- /**
- * @param array $targets
- * @param array $blackListedMethods
- * @param array $whiteListedMethods
- * @param string|null $name
- * @param bool $instanceMock
- * @param array $parameterOverrides
- * @param bool $mockOriginalDestructor
- * @param array|scalar> $constantsMap
- */
- public function __construct(
- array $targets = [],
- array $blackListedMethods = [],
- array $whiteListedMethods = [],
- $name = null,
- $instanceMock = false,
- array $parameterOverrides = [],
- $mockOriginalDestructor = false,
- array $constantsMap = []
- ) {
- $this->addTargets($targets);
- $this->blackListedMethods = $blackListedMethods;
- $this->whiteListedMethods = $whiteListedMethods;
- $this->name = $name;
- $this->instanceMock = $instanceMock;
- $this->parameterOverrides = $parameterOverrides;
- $this->mockOriginalDestructor = $mockOriginalDestructor;
- $this->constantsMap = $constantsMap;
- }
-
- /**
- * Generate a suitable name based on the config
- *
- * @return string
- */
- public function generateName()
- {
- $nameBuilder = new MockNameBuilder();
-
- $targetObject = $this->getTargetObject();
- if ($targetObject !== null) {
- $className = get_class($targetObject);
-
- $nameBuilder->addPart(strpos($className, '@') !== false ? md5($className) : $className);
- }
-
- $targetClass = $this->getTargetClass();
- if ($targetClass instanceof TargetClassInterface) {
- $className = $targetClass->getName();
-
- $nameBuilder->addPart(strpos($className, '@') !== false ? md5($className) : $className);
- }
-
- foreach ($this->getTargetInterfaces() as $targetInterface) {
- $nameBuilder->addPart($targetInterface->getName());
- }
-
- return $nameBuilder->build();
- }
-
- /**
- * @return array
- */
- public function getBlackListedMethods()
- {
- return $this->blackListedMethods;
- }
-
- /**
- * @return array>
- */
- public function getConstantsMap()
- {
- return $this->constantsMap;
- }
-
- /**
- * Attempt to create a hash of the configuration, in order to allow caching
- *
- * @TODO workout if this will work
- *
- * @return string
- */
- public function getHash()
- {
- $vars = [
- 'targetClassName' => $this->targetClassName,
- 'targetInterfaceNames' => $this->targetInterfaceNames,
- 'targetTraitNames' => $this->targetTraitNames,
- 'name' => $this->name,
- 'blackListedMethods' => $this->blackListedMethods,
- 'whiteListedMethod' => $this->whiteListedMethods,
- 'instanceMock' => $this->instanceMock,
- 'parameterOverrides' => $this->parameterOverrides,
- 'mockOriginalDestructor' => $this->mockOriginalDestructor,
- ];
-
- return md5(serialize($vars));
- }
-
- /**
- * Gets a list of methods from the classes, interfaces and objects and filters them appropriately.
- * Lot's of filtering going on, perhaps we could have filter classes to iterate through
- *
- * @return list
- */
- public function getMethodsToMock()
- {
- $methods = $this->getAllMethods();
-
- foreach ($methods as $key => $method) {
- if ($method->isFinal()) {
- unset($methods[$key]);
- }
- }
-
- /**
- * Whitelist trumps everything else
- */
- $whiteListedMethods = $this->getWhiteListedMethods();
- if ($whiteListedMethods !== []) {
- $whitelist = array_map('strtolower', $whiteListedMethods);
-
- return array_filter($methods, static function ($method) use ($whitelist) {
- if ($method->isAbstract()) {
- return true;
- }
-
- return in_array(strtolower($method->getName()), $whitelist, true);
- });
- }
-
- /**
- * Remove blacklisted methods
- */
- $blackListedMethods = $this->getBlackListedMethods();
- if ($blackListedMethods !== []) {
- $blacklist = array_map('strtolower', $blackListedMethods);
-
- $methods = array_filter($methods, static function ($method) use ($blacklist) {
- return ! in_array(strtolower($method->getName()), $blacklist, true);
- });
- }
-
- /**
- * Internal objects can not be instantiated with newInstanceArgs and if
- * they implement Serializable, unserialize will have to be called. As
- * such, we can't mock it and will need a pass to add a dummy
- * implementation
- */
- $targetClass = $this->getTargetClass();
-
- if (
- $targetClass !== null
- && $targetClass->implementsInterface(Serializable::class)
- && $targetClass->hasInternalAncestor()
- ) {
- $methods = array_filter($methods, static function ($method) {
- return $method->getName() !== 'unserialize';
- });
- }
-
- return array_values($methods);
- }
-
- /**
- * @return string|null
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * @return string
- */
- public function getNamespaceName()
- {
- $parts = explode('\\', $this->getName());
- array_pop($parts);
-
- if ($parts !== []) {
- return implode('\\', $parts);
- }
-
- return '';
- }
-
- /**
- * @return array
- */
- public function getParameterOverrides()
- {
- return $this->parameterOverrides;
- }
-
- /**
- * @return string
- */
- public function getShortName()
- {
- $parts = explode('\\', $this->getName());
- return array_pop($parts);
- }
-
- /**
- * @return null|TargetClassInterface
- */
- public function getTargetClass()
- {
- if ($this->targetClass) {
- return $this->targetClass;
- }
-
- if (! $this->targetClassName) {
- return null;
- }
-
- if (class_exists($this->targetClassName)) {
- $alias = null;
- if (strpos($this->targetClassName, '@') !== false) {
- $alias = (new MockNameBuilder())
- ->addPart('anonymous_class')
- ->addPart(md5($this->targetClassName))
- ->build();
- class_alias($this->targetClassName, $alias);
- }
-
- $dtc = DefinedTargetClass::factory($this->targetClassName, $alias);
-
- if ($this->getTargetObject() === null && $dtc->isFinal()) {
- throw new Exception(
- 'The class ' . $this->targetClassName . ' is marked final and its methods'
- . ' cannot be replaced. Classes marked final can be passed in'
- . ' to \Mockery::mock() as instantiated objects to create a'
- . ' partial mock, but only if the mock is not subject to type'
- . ' hinting checks.'
- );
- }
-
- $this->targetClass = $dtc;
- } else {
- $this->targetClass = UndefinedTargetClass::factory($this->targetClassName);
- }
-
- return $this->targetClass;
- }
-
- /**
- * @return class-string|null
- */
- public function getTargetClassName()
- {
- return $this->targetClassName;
- }
-
- /**
- * @return list
- */
- public function getTargetInterfaces()
- {
- if ($this->targetInterfaces !== []) {
- return $this->targetInterfaces;
- }
-
- foreach ($this->targetInterfaceNames as $targetInterface) {
- if (! interface_exists($targetInterface)) {
- $this->targetInterfaces[] = UndefinedTargetClass::factory($targetInterface);
- continue;
- }
-
- $dtc = DefinedTargetClass::factory($targetInterface);
- $extendedInterfaces = array_keys($dtc->getInterfaces());
- $extendedInterfaces[] = $targetInterface;
-
- $traversableFound = false;
- $iteratorShiftedToFront = false;
- foreach ($extendedInterfaces as $interface) {
- if (! $traversableFound && preg_match('/^\\?Iterator(|Aggregate)$/i', $interface)) {
- break;
- }
-
- if (preg_match('/^\\\\?IteratorAggregate$/i', $interface)) {
- $this->targetInterfaces[] = DefinedTargetClass::factory('\\IteratorAggregate');
- $iteratorShiftedToFront = true;
-
- continue;
- }
-
- if (preg_match('/^\\\\?Iterator$/i', $interface)) {
- $this->targetInterfaces[] = DefinedTargetClass::factory('\\Iterator');
- $iteratorShiftedToFront = true;
-
- continue;
- }
-
- if (preg_match('/^\\\\?Traversable$/i', $interface)) {
- $traversableFound = true;
- }
- }
-
- if ($traversableFound && ! $iteratorShiftedToFront) {
- $this->targetInterfaces[] = DefinedTargetClass::factory('\\IteratorAggregate');
- }
-
- /**
- * We never straight up implement Traversable
- */
- $isTraversable = preg_match('/^\\\\?Traversable$/i', $targetInterface);
- if ($isTraversable === 0 || $isTraversable === false) {
- $this->targetInterfaces[] = $dtc;
- }
- }
-
- return $this->targetInterfaces = array_unique($this->targetInterfaces);
- }
-
- /**
- * @return object|null
- */
- public function getTargetObject()
- {
- return $this->targetObject;
- }
-
- /**
- * @return list
- */
- public function getTargetTraits()
- {
- if ($this->targetTraits !== []) {
- return $this->targetTraits;
- }
-
- foreach ($this->targetTraitNames as $targetTrait) {
- $this->targetTraits[] = DefinedTargetClass::factory($targetTrait);
- }
-
- $this->targetTraits = array_unique($this->targetTraits); // just in case
- return $this->targetTraits;
- }
-
- /**
- * @return array
- */
- public function getWhiteListedMethods()
- {
- return $this->whiteListedMethods;
- }
-
- /**
- * @return bool
- */
- public function isInstanceMock()
- {
- return $this->instanceMock;
- }
-
- /**
- * @return bool
- */
- public function isMockOriginalDestructor()
- {
- return $this->mockOriginalDestructor;
- }
-
- /**
- * @param class-string $className
- * @return self
- */
- public function rename($className)
- {
- $targets = [];
-
- if ($this->targetClassName) {
- $targets[] = $this->targetClassName;
- }
-
- if ($this->targetInterfaceNames) {
- $targets = array_merge($targets, $this->targetInterfaceNames);
- }
-
- if ($this->targetTraitNames) {
- $targets = array_merge($targets, $this->targetTraitNames);
- }
-
- if ($this->targetObject) {
- $targets[] = $this->targetObject;
- }
-
- return new self(
- $targets,
- $this->blackListedMethods,
- $this->whiteListedMethods,
- $className,
- $this->instanceMock,
- $this->parameterOverrides,
- $this->mockOriginalDestructor,
- $this->constantsMap
- );
- }
-
- /**
- * We declare the __callStatic method to handle undefined stuff, if the class
- * we're mocking has also defined it, we need to comply with their interface
- *
- * @return bool
- */
- public function requiresCallStaticTypeHintRemoval()
- {
- foreach ($this->getAllMethods() as $method) {
- if ($method->getName() === '__callStatic') {
- $params = $method->getParameters();
-
- if (! array_key_exists(1, $params)) {
- return false;
- }
-
- return ! $params[1]->isArray();
- }
- }
-
- return false;
- }
-
- /**
- * We declare the __call method to handle undefined stuff, if the class
- * we're mocking has also defined it, we need to comply with their interface
- *
- * @return bool
- */
- public function requiresCallTypeHintRemoval()
- {
- foreach ($this->getAllMethods() as $method) {
- if ($method->getName() === '__call') {
- $params = $method->getParameters();
- return ! $params[1]->isArray();
- }
- }
-
- return false;
- }
-
- /**
- * @param class-string|object $target
- */
- protected function addTarget($target)
- {
- if (is_object($target)) {
- $this->setTargetObject($target);
- $this->setTargetClassName(get_class($target));
- return;
- }
-
- if ($target[0] !== '\\') {
- $target = '\\' . $target;
- }
-
- if (class_exists($target)) {
- $this->setTargetClassName($target);
- return;
- }
-
- if (interface_exists($target)) {
- $this->addTargetInterfaceName($target);
- return;
- }
-
- if (trait_exists($target)) {
- $this->addTargetTraitName($target);
- return;
- }
-
- /**
- * Default is to set as class, or interface if class already set
- *
- * Don't like this condition, can't remember what the default
- * targetClass is for
- */
- if ($this->getTargetClassName()) {
- $this->addTargetInterfaceName($target);
- return;
- }
-
- $this->setTargetClassName($target);
- }
-
- /**
- * If we attempt to implement Traversable,
- * we must ensure we are also implementing either Iterator or IteratorAggregate,
- * and that whichever one it is comes before Traversable in the list of implements.
- *
- * @param class-string $targetInterface
- */
- protected function addTargetInterfaceName($targetInterface)
- {
- $this->targetInterfaceNames[] = $targetInterface;
- }
-
- /**
- * @param array $interfaces
- */
- protected function addTargets($interfaces)
- {
- foreach ($interfaces as $interface) {
- $this->addTarget($interface);
- }
- }
-
- /**
- * @param class-string $targetTraitName
- */
- protected function addTargetTraitName($targetTraitName)
- {
- $this->targetTraitNames[] = $targetTraitName;
- }
-
- /**
- * @return list
- */
- protected function getAllMethods()
- {
- if ($this->allMethods) {
- return $this->allMethods;
- }
-
- $classes = $this->getTargetInterfaces();
-
- if ($this->getTargetClass()) {
- $classes[] = $this->getTargetClass();
- }
-
- $methods = [];
- foreach ($classes as $class) {
- $methods = array_merge($methods, $class->getMethods());
- }
-
- foreach ($this->getTargetTraits() as $trait) {
- foreach ($trait->getMethods() as $method) {
- if ($method->isAbstract()) {
- $methods[] = $method;
- }
- }
- }
-
- $names = [];
- $methods = array_filter($methods, static function ($method) use (&$names) {
- if (in_array($method->getName(), $names, true)) {
- return false;
- }
-
- $names[] = $method->getName();
- return true;
- });
-
- return $this->allMethods = $methods;
- }
-
- /**
- * @param class-string $targetClassName
- */
- protected function setTargetClassName($targetClassName)
- {
- $this->targetClassName = $targetClassName;
- }
-
- /**
- * @param object $object
- */
- protected function setTargetObject($object)
- {
- $this->targetObject = $object;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockConfigurationBuilder.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockConfigurationBuilder.php
deleted file mode 100644
index 989325e3..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockConfigurationBuilder.php
+++ /dev/null
@@ -1,252 +0,0 @@
-
- */
- protected $blackListedMethods = [
- '__call',
- '__callStatic',
- '__clone',
- '__wakeup',
- '__set',
- '__get',
- '__toString',
- '__isset',
- '__destruct',
- '__debugInfo', ## mocking this makes it difficult to debug with xdebug
-
- // below are reserved words in PHP
- '__halt_compiler', 'abstract', 'and', 'array', 'as',
- 'break', 'callable', 'case', 'catch', 'class',
- 'clone', 'const', 'continue', 'declare', 'default',
- 'die', 'do', 'echo', 'else', 'elseif',
- 'empty', 'enddeclare', 'endfor', 'endforeach', 'endif',
- 'endswitch', 'endwhile', 'eval', 'exit', 'extends',
- 'final', 'for', 'foreach', 'function', 'global',
- 'goto', 'if', 'implements', 'include', 'include_once',
- 'instanceof', 'insteadof', 'interface', 'isset', 'list',
- 'namespace', 'new', 'or', 'print', 'private',
- 'protected', 'public', 'require', 'require_once', 'return',
- 'static', 'switch', 'throw', 'trait', 'try',
- 'unset', 'use', 'var', 'while', 'xor',
- ];
-
- /**
- * @var array
- */
- protected $constantsMap = [];
-
- /**
- * @var bool
- */
- protected $instanceMock = false;
-
- /**
- * @var bool
- */
- protected $mockOriginalDestructor = false;
-
- /**
- * @var string
- */
- protected $name;
-
- /**
- * @var array
- */
- protected $parameterOverrides = [];
-
- /**
- * @var list
- */
- protected $php7SemiReservedKeywords = [
- 'callable', 'class', 'trait', 'extends', 'implements', 'static', 'abstract', 'final',
- 'public', 'protected', 'private', 'const', 'enddeclare', 'endfor', 'endforeach', 'endif',
- 'endwhile', 'and', 'global', 'goto', 'instanceof', 'insteadof', 'interface', 'namespace', 'new',
- 'or', 'xor', 'try', 'use', 'var', 'exit', 'list', 'clone', 'include', 'include_once', 'throw',
- 'array', 'print', 'echo', 'require', 'require_once', 'return', 'else', 'elseif', 'default',
- 'break', 'continue', 'switch', 'yield', 'function', 'if', 'endswitch', 'finally', 'for', 'foreach',
- 'declare', 'case', 'do', 'while', 'as', 'catch', 'die', 'self', 'parent',
- ];
-
- /**
- * @var array
- */
- protected $targets = [];
-
- /**
- * @var array
- */
- protected $whiteListedMethods = [];
-
- public function __construct()
- {
- $this->blackListedMethods = array_diff($this->blackListedMethods, $this->php7SemiReservedKeywords);
- }
-
- /**
- * @param string $blackListedMethod
- * @return self
- */
- public function addBlackListedMethod($blackListedMethod)
- {
- $this->blackListedMethods[] = $blackListedMethod;
- return $this;
- }
-
- /**
- * @param list $blackListedMethods
- * @return self
- */
- public function addBlackListedMethods(array $blackListedMethods)
- {
- foreach ($blackListedMethods as $method) {
- $this->addBlackListedMethod($method);
- }
-
- return $this;
- }
-
- /**
- * @param class-string $target
- * @return self
- */
- public function addTarget($target)
- {
- $this->targets[] = $target;
-
- return $this;
- }
-
- /**
- * @param list $targets
- * @return self
- */
- public function addTargets($targets)
- {
- foreach ($targets as $target) {
- $this->addTarget($target);
- }
-
- return $this;
- }
-
- /**
- * @return self
- */
- public function addWhiteListedMethod($whiteListedMethod)
- {
- $this->whiteListedMethods[] = $whiteListedMethod;
- return $this;
- }
-
- /**
- * @return self
- */
- public function addWhiteListedMethods(array $whiteListedMethods)
- {
- foreach ($whiteListedMethods as $method) {
- $this->addWhiteListedMethod($method);
- }
-
- return $this;
- }
-
- /**
- * @return MockConfiguration
- */
- public function getMockConfiguration()
- {
- return new MockConfiguration(
- $this->targets,
- $this->blackListedMethods,
- $this->whiteListedMethods,
- $this->name,
- $this->instanceMock,
- $this->parameterOverrides,
- $this->mockOriginalDestructor,
- $this->constantsMap
- );
- }
-
- /**
- * @param list $blackListedMethods
- * @return self
- */
- public function setBlackListedMethods(array $blackListedMethods)
- {
- $this->blackListedMethods = $blackListedMethods;
- return $this;
- }
-
- /**
- * @return self
- */
- public function setConstantsMap(array $map)
- {
- $this->constantsMap = $map;
-
- return $this;
- }
-
- /**
- * @param bool $instanceMock
- */
- public function setInstanceMock($instanceMock)
- {
- $this->instanceMock = (bool) $instanceMock;
-
- return $this;
- }
-
- /**
- * @param bool $mockDestructor
- */
- public function setMockOriginalDestructor($mockDestructor)
- {
- $this->mockOriginalDestructor = (bool) $mockDestructor;
- return $this;
- }
-
- /**
- * @param string $name
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
-
- /**
- * @return self
- */
- public function setParameterOverrides(array $overrides)
- {
- $this->parameterOverrides = $overrides;
- return $this;
- }
-
- /**
- * @param list $whiteListedMethods
- * @return self
- */
- public function setWhiteListedMethods(array $whiteListedMethods)
- {
- $this->whiteListedMethods = $whiteListedMethods;
- return $this;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockDefinition.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockDefinition.php
deleted file mode 100644
index 337c31f6..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockDefinition.php
+++ /dev/null
@@ -1,64 +0,0 @@
-getName()) {
- throw new InvalidArgumentException('MockConfiguration must contain a name');
- }
-
- $this->config = $config;
- $this->code = $code;
- }
-
- /**
- * @return string
- */
- public function getClassName()
- {
- return $this->config->getName();
- }
-
- /**
- * @return string
- */
- public function getCode()
- {
- return $this->code;
- }
-
- /**
- * @return MockConfiguration
- */
- public function getConfig()
- {
- return $this->config;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockNameBuilder.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockNameBuilder.php
deleted file mode 100644
index 424cdc59..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/MockNameBuilder.php
+++ /dev/null
@@ -1,51 +0,0 @@
-
- */
- protected $parts = [];
-
- /**
- * @param string $part
- */
- public function addPart($part)
- {
- $this->parts[] = $part;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function build()
- {
- $parts = ['Mockery', static::$mockCounter++];
-
- foreach ($this->parts as $part) {
- $parts[] = str_replace('\\', '_', $part);
- }
-
- return implode('_', $parts);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/Parameter.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/Parameter.php
deleted file mode 100644
index 442a713c..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/Parameter.php
+++ /dev/null
@@ -1,130 +0,0 @@
-rfp = $rfp;
- }
-
- /**
- * Proxy all method calls to the reflection parameter.
- *
- * @template TMixed
- * @template TResult
- *
- * @param string $method
- * @param array $args
- *
- * @return TResult
- */
- public function __call($method, array $args)
- {
- /** @var TResult */
- return $this->rfp->{$method}(...$args);
- }
-
- /**
- * Get the reflection class for the parameter type, if it exists.
- *
- * This will be null if there was no type, or it was a scalar or a union.
- *
- * @return null|ReflectionClass
- *
- * @deprecated since 1.3.3 and will be removed in 2.0.
- */
- public function getClass()
- {
- $typeHint = Reflector::getTypeHint($this->rfp, true);
-
- return class_exists($typeHint) ? DefinedTargetClass::factory($typeHint, false) : null;
- }
-
- /**
- * Get the name of the parameter.
- *
- * Some internal classes have funny looking definitions!
- *
- * @return string
- */
- public function getName()
- {
- $name = $this->rfp->getName();
-
- if (! $name || $name === '...') {
- return 'arg' . self::$parameterCounter++;
- }
-
- return $name;
- }
-
- /**
- * Get the string representation for the paramater type.
- *
- * @return null|string
- */
- public function getTypeHint()
- {
- return Reflector::getTypeHint($this->rfp);
- }
-
- /**
- * Get the string representation for the paramater type.
- *
- * @return string
- *
- * @deprecated since 1.3.2 and will be removed in 2.0. Use getTypeHint() instead.
- */
- public function getTypeHintAsString()
- {
- return (string) Reflector::getTypeHint($this->rfp, true);
- }
-
- /**
- * Determine if the parameter is an array.
- *
- * @return bool
- */
- public function isArray()
- {
- return Reflector::isArray($this->rfp);
- }
-
- /**
- * Determine if the parameter is variadic.
- *
- * @return bool
- */
- public function isVariadic()
- {
- return $this->rfp->isVariadic();
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/AvoidMethodClashPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/AvoidMethodClashPass.php
deleted file mode 100644
index 4a7e2a57..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/AvoidMethodClashPass.php
+++ /dev/null
@@ -1,42 +0,0 @@
-getName();
- }, $config->getMethodsToMock());
-
- foreach (['allows', 'expects'] as $method) {
- if (in_array($method, $names, true)) {
- $code = preg_replace(sprintf('#// start method %s.*// end method %s#ms', $method, $method), '', $code);
-
- $code = str_replace(' implements MockInterface', ' implements LegacyMockInterface', $code);
- }
- }
-
- return $code;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/CallTypeHintPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/CallTypeHintPass.php
deleted file mode 100644
index 747fdeee..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/CallTypeHintPass.php
+++ /dev/null
@@ -1,42 +0,0 @@
-requiresCallTypeHintRemoval()) {
- $code = str_replace(
- 'public function __call($method, array $args)',
- 'public function __call($method, $args)',
- $code
- );
- }
-
- if ($config->requiresCallStaticTypeHintRemoval()) {
- return str_replace(
- 'public static function __callStatic($method, array $args)',
- 'public static function __callStatic($method, $args)',
- $code
- );
- }
-
- return $code;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ClassAttributesPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ClassAttributesPass.php
deleted file mode 100644
index 86b157ea..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ClassAttributesPass.php
+++ /dev/null
@@ -1,40 +0,0 @@
-getTargetClass();
-
- if (! $class) {
- return $code;
- }
-
- /** @var array $attributes */
- $attributes = $class->getAttributes();
-
- if ($attributes !== []) {
- return str_replace('#[\AllowDynamicProperties]', '#[' . implode(',', $attributes) . ']', $code);
- }
-
- return $code;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ClassNamePass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ClassNamePass.php
deleted file mode 100644
index 0280a064..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ClassNamePass.php
+++ /dev/null
@@ -1,35 +0,0 @@
-getNamespaceName();
-
- $namespace = ltrim($namespace, '\\');
-
- $className = $config->getShortName();
-
- $code = str_replace('namespace Mockery;', $namespace !== '' ? 'namespace ' . $namespace . ';' : '', $code);
-
- return str_replace('class Mock', 'class ' . $className, $code);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ClassPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ClassPass.php
deleted file mode 100644
index ba4826c6..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ClassPass.php
+++ /dev/null
@@ -1,49 +0,0 @@
-getTargetClass();
-
- if (! $target) {
- return $code;
- }
-
- if ($target->isFinal()) {
- return $code;
- }
-
- $className = ltrim($target->getName(), '\\');
-
- if (! class_exists($className)) {
- Mockery::declareClass($className);
- }
-
- return str_replace(
- 'implements MockInterface',
- 'extends \\' . $className . ' implements MockInterface',
- $code
- );
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ConstantsPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ConstantsPass.php
deleted file mode 100644
index 1088a0de..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/ConstantsPass.php
+++ /dev/null
@@ -1,51 +0,0 @@
-getConstantsMap();
- if ($cm === []) {
- return $code;
- }
-
- $name = $config->getName();
- if (! array_key_exists($name, $cm)) {
- return $code;
- }
-
- $constantsCode = '';
- foreach ($cm[$name] as $constant => $value) {
- $constantsCode .= sprintf("\n const %s = %s;\n", $constant, var_export($value, true));
- }
-
- $offset = strrpos($code, '}');
- if ($offset === false) {
- return $code;
- }
-
- return substr_replace($code, $constantsCode, $offset) . '}' . PHP_EOL;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/InstanceMockPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/InstanceMockPass.php
deleted file mode 100644
index 78adba48..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/InstanceMockPass.php
+++ /dev/null
@@ -1,78 +0,0 @@
-_mockery_ignoreVerification = false;
- \$associatedRealObject = \Mockery::fetchMock(__CLASS__);
-
- foreach (get_object_vars(\$this) as \$attr => \$val) {
- if (\$attr !== "_mockery_ignoreVerification" && \$attr !== "_mockery_expectations") {
- \$this->\$attr = \$associatedRealObject->\$attr;
- }
- }
-
- \$directors = \$associatedRealObject->mockery_getExpectations();
- foreach (\$directors as \$method=>\$director) {
- // get the director method needed
- \$existingDirector = \$this->mockery_getExpectationsFor(\$method);
- if (!\$existingDirector) {
- \$existingDirector = new \Mockery\ExpectationDirector(\$method, \$this);
- \$this->mockery_setExpectationsFor(\$method, \$existingDirector);
- }
- \$expectations = \$director->getExpectations();
- foreach (\$expectations as \$expectation) {
- \$clonedExpectation = clone \$expectation;
- \$existingDirector->addExpectation(\$clonedExpectation);
- }
- \$defaultExpectations = \$director->getDefaultExpectations();
- foreach (array_reverse(\$defaultExpectations) as \$expectation) {
- \$clonedExpectation = clone \$expectation;
- \$existingDirector->addExpectation(\$clonedExpectation);
- \$existingDirector->makeExpectationDefault(\$clonedExpectation);
- }
- }
- \Mockery::getContainer()->rememberMock(\$this);
-
- \$this->_mockery_constructorCalled(func_get_args());
- }
-MOCK;
-
- /**
- * @param string $code
- * @return string
- */
- public function apply($code, MockConfiguration $config)
- {
- if ($config->isInstanceMock()) {
- return $this->appendToClass($code, static::INSTANCE_MOCK_CODE);
- }
-
- return $code;
- }
-
- protected function appendToClass($class, $code)
- {
- $lastBrace = strrpos($class, '}');
- return substr($class, 0, $lastBrace) . $code . "\n }\n";
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/InterfacePass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/InterfacePass.php
deleted file mode 100644
index 4eabcb08..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/InterfacePass.php
+++ /dev/null
@@ -1,41 +0,0 @@
-getTargetInterfaces() as $i) {
- $name = ltrim($i->getName(), '\\');
- if (! interface_exists($name)) {
- Mockery::declareInterface($name);
- }
- }
-
- $interfaces = array_reduce($config->getTargetInterfaces(), static function ($code, $i) {
- return $code . ', \\' . ltrim($i->getName(), '\\');
- }, '');
-
- return str_replace('implements MockInterface', 'implements MockInterface' . $interfaces, $code);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/MagicMethodTypeHintsPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/MagicMethodTypeHintsPass.php
deleted file mode 100644
index f4191fd8..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/MagicMethodTypeHintsPass.php
+++ /dev/null
@@ -1,197 +0,0 @@
-getMagicMethods($config->getTargetClass());
- foreach ($config->getTargetInterfaces() as $interface) {
- $magicMethods = array_merge($magicMethods, $this->getMagicMethods($interface));
- }
-
- foreach ($magicMethods as $method) {
- $code = $this->applyMagicTypeHints($code, $method);
- }
-
- return $code;
- }
-
- /**
- * Returns the magic methods within the
- * passed DefinedTargetClass.
- *
- * @return array
- */
- public function getMagicMethods(?TargetClassInterface $class = null)
- {
- if (! $class instanceof TargetClassInterface) {
- return [];
- }
-
- return array_filter($class->getMethods(), function (Method $method) {
- return in_array($method->getName(), $this->mockMagicMethods, true);
- });
- }
-
- protected function renderTypeHint(Parameter $param)
- {
- $typeHint = $param->getTypeHint();
-
- return $typeHint === null ? '' : sprintf('%s ', $typeHint);
- }
-
- /**
- * Applies type hints of magic methods from
- * class to the passed code.
- *
- * @param int $code
- *
- * @return string
- */
- private function applyMagicTypeHints($code, Method $method)
- {
- if ($this->isMethodWithinCode($code, $method)) {
- $namedParameters = $this->getOriginalParameters($code, $method);
- $code = preg_replace(
- $this->getDeclarationRegex($method->getName()),
- $this->getMethodDeclaration($method, $namedParameters),
- $code
- );
- }
-
- return $code;
- }
-
- /**
- * Returns a regex string used to match the
- * declaration of some method.
- *
- * @param string $methodName
- *
- * @return string
- */
- private function getDeclarationRegex($methodName)
- {
- return sprintf('/public\s+(?:static\s+)?function\s+%s\s*\(.*\)\s*(?=\{)/i', $methodName);
- }
-
- /**
- * Gets the declaration code, as a string, for the passed method.
- *
- * @param array $namedParameters
- *
- * @return string
- */
- private function getMethodDeclaration(Method $method, array $namedParameters)
- {
- $declaration = 'public';
- $declaration .= $method->isStatic() ? ' static' : '';
- $declaration .= ' function ' . $method->getName() . '(';
-
- foreach ($method->getParameters() as $index => $parameter) {
- $declaration .= $this->renderTypeHint($parameter);
- $name = $namedParameters[$index] ?? $parameter->getName();
- $declaration .= '$' . $name;
- $declaration .= ',';
- }
-
- $declaration = rtrim($declaration, ',');
- $declaration .= ') ';
-
- $returnType = $method->getReturnType();
- if ($returnType !== null) {
- $declaration .= sprintf(': %s', $returnType);
- }
-
- return $declaration;
- }
-
- /**
- * Returns the method original parameters, as they're
- * described in the $code string.
- *
- * @param int $code
- *
- * @return array
- */
- private function getOriginalParameters($code, Method $method)
- {
- $matches = [];
- $parameterMatches = [];
-
- preg_match($this->getDeclarationRegex($method->getName()), $code, $matches);
-
- if ($matches !== []) {
- preg_match_all('/(?<=\$)(\w+)+/i', $matches[0], $parameterMatches);
- }
-
- $groupMatches = end($parameterMatches);
-
- return is_array($groupMatches) ? $groupMatches : [$groupMatches];
- }
-
- /**
- * Checks if the method is declared within code.
- *
- * @param int $code
- *
- * @return bool
- */
- private function isMethodWithinCode($code, Method $method)
- {
- return preg_match($this->getDeclarationRegex($method->getName()), $code) === 1;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/MethodDefinitionPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/MethodDefinitionPass.php
deleted file mode 100644
index 68d37f9d..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/MethodDefinitionPass.php
+++ /dev/null
@@ -1,199 +0,0 @@
-getMethodsToMock() as $method) {
- if ($method->isPublic()) {
- $methodDef = 'public';
- } elseif ($method->isProtected()) {
- $methodDef = 'protected';
- } else {
- $methodDef = 'private';
- }
-
- if ($method->isStatic()) {
- $methodDef .= ' static';
- }
-
- $methodDef .= ' function ';
- $methodDef .= $method->returnsReference() ? ' & ' : '';
- $methodDef .= $method->getName();
- $methodDef .= $this->renderParams($method, $config);
- $methodDef .= $this->renderReturnType($method);
- $methodDef .= $this->renderMethodBody($method, $config);
-
- $code = $this->appendToClass($code, $methodDef);
- }
-
- return $code;
- }
-
- protected function appendToClass($class, $code)
- {
- $lastBrace = strrpos($class, '}');
- return substr($class, 0, $lastBrace) . $code . "\n }\n";
- }
-
- protected function renderParams(Method $method, $config)
- {
- $class = $method->getDeclaringClass();
- if ($class->isInternal()) {
- $overrides = $config->getParameterOverrides();
-
- if (isset($overrides[strtolower($class->getName())][$method->getName()])) {
- return '(' . implode(',', $overrides[strtolower($class->getName())][$method->getName()]) . ')';
- }
- }
-
- $methodParams = [];
- $params = $method->getParameters();
- $isPhp81 = PHP_VERSION_ID >= 80100;
- foreach ($params as $param) {
- $paramDef = $this->renderTypeHint($param);
- $paramDef .= $param->isPassedByReference() ? '&' : '';
- $paramDef .= $param->isVariadic() ? '...' : '';
- $paramDef .= '$' . $param->getName();
-
- if (! $param->isVariadic()) {
- if ($param->isDefaultValueAvailable() !== false) {
- $defaultValue = $param->getDefaultValue();
-
- if (is_object($defaultValue)) {
- $prefix = get_class($defaultValue);
- if ($isPhp81) {
- if (enum_exists($prefix)) {
- $prefix = var_export($defaultValue, true);
- } elseif (
- ! $param->isDefaultValueConstant() &&
- // "Parameter #1 [ F\Q\CN $a = new \F\Q\CN(param1, param2: 2) ]
- preg_match(
- '#\s.*?\s=\snew\s(.*?)\s]$#',
- $param->__toString(),
- $matches
- ) === 1
- ) {
- $prefix = 'new ' . $matches[1];
- }
- }
- } else {
- $prefix = var_export($defaultValue, true);
- }
-
- $paramDef .= ' = ' . $prefix;
- } elseif ($param->isOptional()) {
- $paramDef .= ' = null';
- }
- }
-
- $methodParams[] = $paramDef;
- }
-
- return '(' . implode(', ', $methodParams) . ')';
- }
-
- protected function renderReturnType(Method $method)
- {
- $type = $method->getReturnType();
-
- return $type ? sprintf(': %s', $type) : '';
- }
-
- protected function renderTypeHint(Parameter $param)
- {
- $typeHint = $param->getTypeHint();
-
- return $typeHint === null ? '' : sprintf('%s ', $typeHint);
- }
-
- private function renderMethodBody($method, $config)
- {
- $invoke = $method->isStatic() ? 'static::_mockery_handleStaticMethodCall' : '$this->_mockery_handleMethodCall';
- $body = <<getDeclaringClass();
- $class_name = strtolower($class->getName());
- $overrides = $config->getParameterOverrides();
- if (isset($overrides[$class_name][$method->getName()])) {
- $params = array_values($overrides[$class_name][$method->getName()]);
- $paramCount = count($params);
- for ($i = 0; $i < $paramCount; ++$i) {
- $param = $params[$i];
- if (strpos($param, '&') !== false) {
- $body .= << {$i}) {
- \$argv[{$i}] = {$param};
-}
-
-BODY;
- }
- }
- } else {
- $params = array_values($method->getParameters());
- $paramCount = count($params);
- for ($i = 0; $i < $paramCount; ++$i) {
- $param = $params[$i];
- if (! $param->isPassedByReference()) {
- continue;
- }
-
- $body .= << {$i}) {
- \$argv[{$i}] =& \${$param->getName()};
-}
-
-BODY;
- }
- }
-
- $body .= "\$ret = {$invoke}(__FUNCTION__, \$argv);\n";
-
- if (! in_array($method->getReturnType(), ['never', 'void'], true)) {
- $body .= "return \$ret;\n";
- }
-
- return $body . "}\n";
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/Pass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/Pass.php
deleted file mode 100644
index 9200873b..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/Pass.php
+++ /dev/null
@@ -1,22 +0,0 @@
- '/public function __wakeup\(\)\s+\{.*?\}/sm',
- '__toString' => '/public function __toString\(\)\s+(:\s+string)?\s*\{.*?\}/sm',
- ];
-
- /**
- * @param string $code
- * @return string
- */
- public function apply($code, MockConfiguration $config)
- {
- $target = $config->getTargetClass();
-
- if (! $target instanceof TargetClassInterface) {
- return $code;
- }
-
- foreach ($target->getMethods() as $method) {
- if (! $method->isFinal()) {
- continue;
- }
-
- if (! isset($this->methods[$method->getName()])) {
- continue;
- }
-
- $code = preg_replace($this->methods[$method->getName()], '', $code);
- }
-
- return $code;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/RemoveDestructorPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/RemoveDestructorPass.php
deleted file mode 100644
index 7fd86e7b..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/RemoveDestructorPass.php
+++ /dev/null
@@ -1,39 +0,0 @@
-getTargetClass();
-
- if (! $target) {
- return $code;
- }
-
- if (! $config->isMockOriginalDestructor()) {
- return preg_replace('/public function __destruct\(\)\s+\{.*?\}/sm', '', $code);
- }
-
- return $code;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/RemoveUnserializeForInternalSerializableClassesPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/RemoveUnserializeForInternalSerializableClassesPass.php
deleted file mode 100644
index 5bbb578e..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/RemoveUnserializeForInternalSerializableClassesPass.php
+++ /dev/null
@@ -1,57 +0,0 @@
-getTargetClass();
-
- if (! $target) {
- return $code;
- }
-
- if (! $target->hasInternalAncestor() || ! $target->implementsInterface('Serializable')) {
- return $code;
- }
-
- return $this->appendToClass(
- $code,
- PHP_VERSION_ID < 80100 ? self::DUMMY_METHOD_DEFINITION_LEGACY : self::DUMMY_METHOD_DEFINITION
- );
- }
-
- protected function appendToClass($class, $code)
- {
- $lastBrace = strrpos($class, '}');
- return substr($class, 0, $lastBrace) . $code . "\n }\n";
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/TraitPass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/TraitPass.php
deleted file mode 100644
index faf2a90f..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulation/Pass/TraitPass.php
+++ /dev/null
@@ -1,39 +0,0 @@
-getTargetTraits();
-
- if ($traits === []) {
- return $code;
- }
-
- $useStatements = array_map(static function ($trait) {
- return 'use \\\\' . ltrim($trait->getName(), '\\') . ';';
- }, $traits);
-
- return preg_replace('/^{$/m', "{\n " . implode("\n ", $useStatements) . "\n", $code);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulationGenerator.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulationGenerator.php
deleted file mode 100644
index 5cb14217..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/StringManipulationGenerator.php
+++ /dev/null
@@ -1,102 +0,0 @@
-
- */
- protected $passes = [];
-
- /**
- * @var string
- */
- private $code;
-
- /**
- * @param list $passes
- */
- public function __construct(array $passes)
- {
- $this->passes = $passes;
-
- $this->code = file_get_contents(__DIR__ . '/../Mock.php');
- }
-
- /**
- * @param Pass $pass
- * @return void
- */
- public function addPass(Pass $pass)
- {
- $this->passes[] = $pass;
- }
-
- /**
- * @return MockDefinition
- */
- public function generate(MockConfiguration $config)
- {
- $className = $config->getName() ?: $config->generateName();
-
- $namedConfig = $config->rename($className);
-
- $code = $this->code;
- foreach ($this->passes as $pass) {
- $code = $pass->apply($code, $namedConfig);
- }
-
- return new MockDefinition($namedConfig, $code);
- }
-
- /**
- * Creates a new StringManipulationGenerator with the default passes
- *
- * @return StringManipulationGenerator
- */
- public static function withDefaultPasses()
- {
- return new static([
- new CallTypeHintPass(),
- new MagicMethodTypeHintsPass(),
- new ClassPass(),
- new TraitPass(),
- new ClassNamePass(),
- new InstanceMockPass(),
- new InterfacePass(),
- new AvoidMethodClashPass(),
- new MethodDefinitionPass(),
- new RemoveUnserializeForInternalSerializableClassesPass(),
- new RemoveBuiltinMethodsThatAreFinalPass(),
- new RemoveDestructorPass(),
- new ConstantsPass(),
- new ClassAttributesPass(),
- ]);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/TargetClassInterface.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/TargetClassInterface.php
deleted file mode 100644
index 730ae1b5..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/TargetClassInterface.php
+++ /dev/null
@@ -1,104 +0,0 @@
-
- */
- public function getAttributes();
-
- /**
- * Returns the targetClass's interfaces.
- *
- * @return array
- */
- public function getInterfaces();
-
- /**
- * Returns the targetClass's methods.
- *
- * @return array
- */
- public function getMethods();
-
- /**
- * Returns the targetClass's name.
- *
- * @return class-string
- */
- public function getName();
-
- /**
- * Returns the targetClass's namespace name.
- *
- * @return string
- */
- public function getNamespaceName();
-
- /**
- * Returns the targetClass's short name.
- *
- * @return string
- */
- public function getShortName();
-
- /**
- * Returns whether the targetClass has
- * an internal ancestor.
- *
- * @return bool
- */
- public function hasInternalAncestor();
-
- /**
- * Returns whether the targetClass is in
- * the passed interface.
- *
- * @param class-string|string $interface
- *
- * @return bool
- */
- public function implementsInterface($interface);
-
- /**
- * Returns whether the targetClass is in namespace.
- *
- * @return bool
- */
- public function inNamespace();
-
- /**
- * Returns whether the targetClass is abstract.
- *
- * @return bool
- */
- public function isAbstract();
-
- /**
- * Returns whether the targetClass is final.
- *
- * @return bool
- */
- public function isFinal();
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/UndefinedTargetClass.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/UndefinedTargetClass.php
deleted file mode 100644
index ea722025..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Generator/UndefinedTargetClass.php
+++ /dev/null
@@ -1,141 +0,0 @@
-name = $name;
- }
-
- /**
- * @return class-string
- */
- public function __toString()
- {
- return $this->name;
- }
-
- /**
- * @param class-string $name
- * @return self
- */
- public static function factory($name)
- {
- return new self($name);
- }
-
- /**
- * @return list
- */
- public function getAttributes()
- {
- return [];
- }
-
- /**
- * @return list
- */
- public function getInterfaces()
- {
- return [];
- }
-
- /**
- * @return list
- */
- public function getMethods()
- {
- return [];
- }
-
- /**
- * @return class-string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * @return string
- */
- public function getNamespaceName()
- {
- $parts = explode('\\', ltrim($this->getName(), '\\'));
- array_pop($parts);
- return implode('\\', $parts);
- }
-
- /**
- * @return string
- */
- public function getShortName()
- {
- $parts = explode('\\', $this->getName());
- return array_pop($parts);
- }
-
- /**
- * @return bool
- */
- public function hasInternalAncestor()
- {
- return false;
- }
-
- /**
- * @param class-string $interface
- * @return bool
- */
- public function implementsInterface($interface)
- {
- return false;
- }
-
- /**
- * @return bool
- */
- public function inNamespace()
- {
- return $this->getNamespaceName() !== '';
- }
-
- /**
- * @return bool
- */
- public function isAbstract()
- {
- return false;
- }
-
- /**
- * @return bool
- */
- public function isFinal()
- {
- return false;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/HigherOrderMessage.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/HigherOrderMessage.php
deleted file mode 100644
index 42df34be..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/HigherOrderMessage.php
+++ /dev/null
@@ -1,52 +0,0 @@
-mock = $mock;
- $this->method = $method;
- }
-
- /**
- * @param string $method
- * @param array $args
- *
- * @return Expectation|ExpectationInterface|HigherOrderMessage
- */
- public function __call($method, $args)
- {
- if ($this->method === 'shouldNotHaveReceived') {
- return $this->mock->{$this->method}($method, $args);
- }
-
- $expectation = $this->mock->{$this->method}($method);
-
- return $expectation->withArgs($args);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Instantiator.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Instantiator.php
deleted file mode 100644
index 11b8e5ba..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Instantiator.php
+++ /dev/null
@@ -1,147 +0,0 @@
- $className
- *
- * @throws InvalidArgumentException
- * @throws UnexpectedValueException
- *
- * @return TClass
- */
- public function instantiate($className): object
- {
- return $this->buildFactory($className)();
- }
-
- /**
- * @throws UnexpectedValueException
- */
- private function attemptInstantiationViaUnSerialization(
- ReflectionClass $reflectionClass,
- string $serializedString
- ): void {
- set_error_handler(static function ($code, $message, $file, $line) use ($reflectionClass, &$error): void {
- $msg = sprintf(
- 'Could not produce an instance of "%s" via un-serialization, since an error was triggered in file "%s" at line "%d"',
- $reflectionClass->getName(),
- $file,
- $line
- );
-
- $error = new UnexpectedValueException($msg, 0, new Exception($message, $code));
- });
-
- try {
- unserialize($serializedString);
- } catch (Exception $exception) {
- restore_error_handler();
-
- throw new UnexpectedValueException(
- sprintf(
- 'An exception was raised while trying to instantiate an instance of "%s" via un-serialization',
- $reflectionClass->getName()
- ),
- 0,
- $exception
- );
- }
-
- restore_error_handler();
-
- if ($error instanceof UnexpectedValueException) {
- throw $error;
- }
- }
-
- /**
- * Builds a {@see Closure} capable of instantiating the given $className without invoking its constructor.
- */
- private function buildFactory(string $className): Closure
- {
- $reflectionClass = $this->getReflectionClass($className);
-
- if ($this->isInstantiableViaReflection($reflectionClass)) {
- return static function () use ($reflectionClass) {
- return $reflectionClass->newInstanceWithoutConstructor();
- };
- }
-
- $serializedString = sprintf('O:%d:"%s":0:{}', strlen($className), $className);
-
- $this->attemptInstantiationViaUnSerialization($reflectionClass, $serializedString);
-
- return static function () use ($serializedString) {
- return unserialize($serializedString);
- };
- }
-
- /**
- * @throws InvalidArgumentException
- */
- private function getReflectionClass(string $className): ReflectionClass
- {
- if (! class_exists($className)) {
- throw new InvalidArgumentException(sprintf('Class:%s does not exist', $className));
- }
-
- $reflection = new ReflectionClass($className);
-
- if ($reflection->isAbstract()) {
- throw new InvalidArgumentException(sprintf('Class:%s is an abstract class', $className));
- }
-
- return $reflection;
- }
-
- /**
- * Verifies whether the given class is to be considered internal
- */
- private function hasInternalAncestors(ReflectionClass $reflectionClass): bool
- {
- do {
- if ($reflectionClass->isInternal()) {
- return true;
- }
- } while ($reflectionClass = $reflectionClass->getParentClass());
-
- return false;
- }
-
- /**
- * Verifies if the class is instantiable via reflection
- */
- private function isInstantiableViaReflection(ReflectionClass $reflectionClass): bool
- {
- return ! ($reflectionClass->isInternal() && $reflectionClass->isFinal());
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/LegacyMockInterface.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/LegacyMockInterface.php
deleted file mode 100644
index 5c904e13..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/LegacyMockInterface.php
+++ /dev/null
@@ -1,258 +0,0 @@
- $args
- *
- * @return null|Expectation
- */
- public function mockery_findExpectation($method, array $args);
-
- /**
- * Return the container for this mock
- *
- * @return Container
- */
- public function mockery_getContainer();
-
- /**
- * Get current ordered number
- *
- * @return int
- */
- public function mockery_getCurrentOrder();
-
- /**
- * Gets the count of expectations for this mock
- *
- * @return int
- */
- public function mockery_getExpectationCount();
-
- /**
- * Return the expectations director for the given method
- *
- * @param string $method
- *
- * @return null|ExpectationDirector
- */
- public function mockery_getExpectationsFor($method);
-
- /**
- * Fetch array of ordered groups
- *
- * @return array
- */
- public function mockery_getGroups();
-
- /**
- * @return string[]
- */
- public function mockery_getMockableMethods();
-
- /**
- * @return array
- */
- public function mockery_getMockableProperties();
-
- /**
- * Return the name for this mock
- *
- * @return string
- */
- public function mockery_getName();
-
- /**
- * Alternative setup method to constructor
- *
- * @param object $partialObject
- *
- * @return void
- */
- public function mockery_init(?Container $container = null, $partialObject = null);
-
- /**
- * @return bool
- */
- public function mockery_isAnonymous();
-
- /**
- * Set current ordered number
- *
- * @param int $order
- *
- * @return int
- */
- public function mockery_setCurrentOrder($order);
-
- /**
- * Return the expectations director for the given method
- *
- * @param string $method
- *
- * @return null|ExpectationDirector
- */
- public function mockery_setExpectationsFor($method, ExpectationDirector $director);
-
- /**
- * Set ordering for a group
- *
- * @param string $group
- * @param int $order
- *
- * @return void
- */
- public function mockery_setGroup($group, $order);
-
- /**
- * Tear down tasks for this mock
- *
- * @return void
- */
- public function mockery_teardown();
-
- /**
- * Validate the current mock's ordering
- *
- * @param string $method
- * @param int $order
- *
- * @throws Exception
- *
- * @return void
- */
- public function mockery_validateOrder($method, $order);
-
- /**
- * Iterate across all expectation directors and validate each
- *
- * @throws Throwable
- *
- * @return void
- */
- public function mockery_verify();
-
- /**
- * Allows additional methods to be mocked that do not explicitly exist on mocked class
- *
- * @param string $method the method name to be mocked
- * @return self
- */
- public function shouldAllowMockingMethod($method);
-
- /**
- * @return self
- */
- public function shouldAllowMockingProtectedMethods();
-
- /**
- * Set mock to defer unexpected methods to its parent if possible
- *
- * @deprecated since 1.4.0. Please use makePartial() instead.
- *
- * @return self
- */
- public function shouldDeferMissing();
-
- /**
- * @return self
- */
- public function shouldHaveBeenCalled();
-
- /**
- * @template TMixed
- * @param string $method
- * @param null|array|Closure $args
- *
- * @return self
- */
- public function shouldHaveReceived($method, $args = null);
-
- /**
- * Set mock to ignore unexpected methods and return Undefined class
- *
- * @template TReturnValue
- *
- * @param null|TReturnValue $returnValue the default return value for calls to missing functions on this mock
- *
- * @return self
- */
- public function shouldIgnoreMissing($returnValue = null);
-
- /**
- * @template TMixed
- * @param null|array $args (optional)
- *
- * @return self
- */
- public function shouldNotHaveBeenCalled(?array $args = null);
-
- /**
- * @template TMixed
- * @param string $method
- * @param null|array|Closure $args
- *
- * @return self
- */
- public function shouldNotHaveReceived($method, $args = null);
-
- /**
- * Shortcut method for setting an expectation that a method should not be called.
- *
- * @param string ...$methodNames one or many methods that are expected not to be called in this mock
- *
- * @return Expectation|ExpectationInterface|HigherOrderMessage
- */
- public function shouldNotReceive(...$methodNames);
-
- /**
- * Set expected method calls
- *
- * @param string ...$methodNames one or many methods that are expected to be called in this mock
- *
- * @return Expectation|ExpectationInterface|HigherOrderMessage
- */
- public function shouldReceive(...$methodNames);
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Loader/EvalLoader.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Loader/EvalLoader.php
deleted file mode 100644
index 63247e87..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Loader/EvalLoader.php
+++ /dev/null
@@ -1,32 +0,0 @@
-getClassName(), false)) {
- return;
- }
-
- eval('?>' . $definition->getCode());
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Loader/Loader.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Loader/Loader.php
deleted file mode 100644
index 90d56890..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Loader/Loader.php
+++ /dev/null
@@ -1,23 +0,0 @@
-path = realpath($path);
- }
-
- public function __destruct()
- {
- $files = array_diff(glob($this->path . DIRECTORY_SEPARATOR . 'Mockery_*.php') ?: [], [$this->lastPath]);
-
- foreach ($files as $file) {
- @unlink($file);
- }
- }
-
- /**
- * Load the given mock definition
- *
- * @return void
- */
- public function load(MockDefinition $definition)
- {
- if (class_exists($definition->getClassName(), false)) {
- return;
- }
-
- $this->lastPath = sprintf('%s%s%s.php', $this->path, DIRECTORY_SEPARATOR, uniqid('Mockery_', false));
-
- file_put_contents($this->lastPath, $definition->getCode());
-
- if (file_exists($this->lastPath)) {
- require $this->lastPath;
- }
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/AndAnyOtherArgs.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/AndAnyOtherArgs.php
deleted file mode 100644
index f4a698e2..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/AndAnyOtherArgs.php
+++ /dev/null
@@ -1,38 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return true;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Any.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Any.php
deleted file mode 100644
index 5bb4b2f0..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Any.php
+++ /dev/null
@@ -1,38 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return true;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/AnyArgs.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/AnyArgs.php
deleted file mode 100644
index 0e1ce8c6..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/AnyArgs.php
+++ /dev/null
@@ -1,31 +0,0 @@
-';
- }
-
- /**
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return true;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/AnyOf.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/AnyOf.php
deleted file mode 100644
index 425dcae3..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/AnyOf.php
+++ /dev/null
@@ -1,41 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value does not match the expected (in this
- * case it's specifically NOT expected).
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return in_array($actual, $this->_expected, true);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/ArgumentListMatcher.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/ArgumentListMatcher.php
deleted file mode 100644
index 56e58f69..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/ArgumentListMatcher.php
+++ /dev/null
@@ -1,15 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return ($this->_expected)($actual) === true;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Contains.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Contains.php
deleted file mode 100644
index 9fdeb831..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Contains.php
+++ /dev/null
@@ -1,61 +0,0 @@
-_expected as $v) {
- $elements[] = (string) $v;
- }
-
- return '';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- $values = array_values($actual);
- foreach ($this->_expected as $exp) {
- $match = false;
- foreach ($values as $val) {
- if ($exp === $val || $exp == $val) {
- $match = true;
- break;
- }
- }
-
- if ($match === false) {
- return false;
- }
- }
-
- return true;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Ducktype.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Ducktype.php
deleted file mode 100644
index 3f3a9ef7..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Ducktype.php
+++ /dev/null
@@ -1,52 +0,0 @@
-_expected) . ']>';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- if (! is_object($actual)) {
- return false;
- }
-
- foreach ($this->_expected as $method) {
- if (! method_exists($actual, $method)) {
- return false;
- }
- }
-
- return true;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/HasKey.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/HasKey.php
deleted file mode 100644
index 15ef915a..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/HasKey.php
+++ /dev/null
@@ -1,48 +0,0 @@
-', $this->_expected);
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- if (! is_array($actual) && ! $actual instanceof ArrayAccess) {
- return false;
- }
-
- return array_key_exists($this->_expected, (array) $actual);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/HasValue.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/HasValue.php
deleted file mode 100644
index 8d37a5f7..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/HasValue.php
+++ /dev/null
@@ -1,47 +0,0 @@
-_expected . ']>';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- if (! is_array($actual) && ! $actual instanceof ArrayAccess) {
- return false;
- }
-
- return in_array($this->_expected, (array) $actual, true);
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/IsEqual.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/IsEqual.php
deleted file mode 100644
index 72d1a02f..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/IsEqual.php
+++ /dev/null
@@ -1,38 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return $this->_expected == $actual;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/IsSame.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/IsSame.php
deleted file mode 100644
index 7671448e..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/IsSame.php
+++ /dev/null
@@ -1,38 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return $this->_expected === $actual;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/MatcherAbstract.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/MatcherAbstract.php
deleted file mode 100644
index 813950a5..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/MatcherAbstract.php
+++ /dev/null
@@ -1,39 +0,0 @@
-_expected = $expected;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/MatcherInterface.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/MatcherInterface.php
deleted file mode 100644
index 19154eab..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/MatcherInterface.php
+++ /dev/null
@@ -1,36 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value matches the expected.
- * Actual passed by reference to preserve reference trail (where applicable)
- * back to the original method parameter.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return ($this->_expected)(...$actual) === true;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/MustBe.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/MustBe.php
deleted file mode 100644
index d365bc70..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/MustBe.php
+++ /dev/null
@@ -1,47 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- if (! is_object($actual)) {
- return $this->_expected === $actual;
- }
-
- return $this->_expected == $actual;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/NoArgs.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/NoArgs.php
deleted file mode 100644
index 37438f13..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/NoArgs.php
+++ /dev/null
@@ -1,33 +0,0 @@
-';
- }
-
- /**
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return count($actual) === 0;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Not.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Not.php
deleted file mode 100644
index 133007eb..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Not.php
+++ /dev/null
@@ -1,39 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value does not match the expected (in this
- * case it's specifically NOT expected).
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return $actual !== $this->_expected;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/NotAnyOf.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/NotAnyOf.php
deleted file mode 100644
index 567b24e0..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/NotAnyOf.php
+++ /dev/null
@@ -1,45 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value does not match the expected (in this
- * case it's specifically NOT expected).
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- foreach ($this->_expected as $exp) {
- if ($actual === $exp || $actual == $exp) {
- return false;
- }
- }
-
- return true;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Pattern.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Pattern.php
deleted file mode 100644
index b2e84dfa..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Pattern.php
+++ /dev/null
@@ -1,40 +0,0 @@
-';
- }
-
- /**
- * Check if the actual value matches the expected pattern.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- return preg_match($this->_expected, (string) $actual) >= 1;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Subset.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Subset.php
deleted file mode 100644
index 96893fb9..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Subset.php
+++ /dev/null
@@ -1,99 +0,0 @@
-expected = $expected;
- $this->strict = $strict;
- }
-
- /**
- * Return a string representation of this Matcher
- *
- * @return string
- */
- public function __toString()
- {
- return 'formatArray($this->expected) . '>';
- }
-
- /**
- * @param array $expected Expected subset of data
- *
- * @return Subset
- */
- public static function loose(array $expected)
- {
- return new static($expected, false);
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- if (! is_array($actual)) {
- return false;
- }
-
- if ($this->strict) {
- return $actual === array_replace_recursive($actual, $this->expected);
- }
-
- return $actual == array_replace_recursive($actual, $this->expected);
- }
-
- /**
- * @param array $expected Expected subset of data
- *
- * @return Subset
- */
- public static function strict(array $expected)
- {
- return new static($expected, true);
- }
-
- /**
- * Recursively format an array into the string representation for this matcher
- *
- * @return string
- */
- protected function formatArray(array $array)
- {
- $elements = [];
- foreach ($array as $k => $v) {
- $elements[] = $k . '=' . (is_array($v) ? $this->formatArray($v) : (string) $v);
- }
-
- return '[' . implode(', ', $elements) . ']';
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Type.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Type.php
deleted file mode 100644
index 8265b602..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Matcher/Type.php
+++ /dev/null
@@ -1,59 +0,0 @@
-_expected) . '>';
- }
-
- /**
- * Check if the actual value matches the expected.
- *
- * @template TMixed
- *
- * @param TMixed $actual
- *
- * @return bool
- */
- public function match(&$actual)
- {
- $function = $this->_expected === 'real' ? 'is_float' : 'is_' . strtolower($this->_expected);
-
- if (function_exists($function)) {
- return $function($actual);
- }
-
- if (! is_string($this->_expected)) {
- return false;
- }
-
- if (class_exists($this->_expected) || interface_exists($this->_expected)) {
- return $actual instanceof $this->_expected;
- }
-
- return false;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/MethodCall.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/MethodCall.php
deleted file mode 100644
index f331514f..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/MethodCall.php
+++ /dev/null
@@ -1,50 +0,0 @@
-method = $method;
- $this->args = $args;
- }
-
- /**
- * @return array
- */
- public function getArgs()
- {
- return $this->args;
- }
-
- /**
- * @return string
- */
- public function getMethod()
- {
- return $this->method;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Mock.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Mock.php
deleted file mode 100644
index 068cce35..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Mock.php
+++ /dev/null
@@ -1,1020 +0,0 @@
-_mockery_container = $container;
- if (!is_null($partialObject)) {
- $this->_mockery_partial = $partialObject;
- }
-
- if (!\Mockery::getConfiguration()->mockingNonExistentMethodsAllowed()) {
- foreach ($this->mockery_getMethods() as $method) {
- if ($method->isPublic()) {
- $this->_mockery_mockableMethods[] = $method->getName();
- }
- }
- }
-
- $this->_mockery_instanceMock = $instanceMock;
-
- $this->_mockery_parentClass = get_parent_class($this);
- }
-
- /**
- * Set expected method calls
- *
- * @param string ...$methodNames one or many methods that are expected to be called in this mock
- *
- * @return ExpectationInterface|Expectation|HigherOrderMessage
- */
- public function shouldReceive(...$methodNames)
- {
- if ($methodNames === []) {
- return new HigherOrderMessage($this, 'shouldReceive');
- }
-
- foreach ($methodNames as $method) {
- if ('' === $method) {
- throw new \InvalidArgumentException('Received empty method name');
- }
- }
-
- $self = $this;
- $allowMockingProtectedMethods = $this->_mockery_allowMockingProtectedMethods;
- return \Mockery::parseShouldReturnArgs(
- $this,
- $methodNames,
- static function ($method) use ($self, $allowMockingProtectedMethods) {
- $rm = $self->mockery_getMethod($method);
- if ($rm) {
- if ($rm->isPrivate()) {
- throw new \InvalidArgumentException($method . '() cannot be mocked as it is a private method');
- }
-
- if (!$allowMockingProtectedMethods && $rm->isProtected()) {
- throw new \InvalidArgumentException($method . '() cannot be mocked as it is a protected method and mocking protected methods is not enabled for the currently used mock object. Use shouldAllowMockingProtectedMethods() to enable mocking of protected methods.');
- }
- }
-
- $director = $self->mockery_getExpectationsFor($method);
- if (!$director) {
- $director = new ExpectationDirector($method, $self);
- $self->mockery_setExpectationsFor($method, $director);
- }
-
- $expectation = new Expectation($self, $method);
- $director->addExpectation($expectation);
- return $expectation;
- }
- );
- }
-
- // start method allows
- /**
- * @param mixed $something String method name or map of method => return
- * @return self|ExpectationInterface|Expectation|HigherOrderMessage
- */
- public function allows($something = [])
- {
- if (is_string($something)) {
- return $this->shouldReceive($something);
- }
-
- if (empty($something)) {
- return $this->shouldReceive();
- }
-
- foreach ($something as $method => $returnValue) {
- $this->shouldReceive($method)->andReturn($returnValue);
- }
-
- return $this;
- }
-
- // end method allows
- // start method expects
- /**
- /**
- * @param mixed $something String method name (optional)
- * @return ExpectationInterface|Expectation|ExpectsHigherOrderMessage
- */
- public function expects($something = null)
- {
- if (is_string($something)) {
- return $this->shouldReceive($something)->once();
- }
-
- return new ExpectsHigherOrderMessage($this);
- }
-
- // end method expects
- /**
- * Shortcut method for setting an expectation that a method should not be called.
- *
- * @param string ...$methodNames one or many methods that are expected not to be called in this mock
- * @return ExpectationInterface|Expectation|HigherOrderMessage
- */
- public function shouldNotReceive(...$methodNames)
- {
- if ($methodNames === []) {
- return new HigherOrderMessage($this, 'shouldNotReceive');
- }
-
- $expectation = call_user_func_array(function (string $methodNames) {
- return $this->shouldReceive($methodNames);
- }, $methodNames);
- $expectation->never();
- return $expectation;
- }
-
- /**
- * Allows additional methods to be mocked that do not explicitly exist on mocked class
- *
- * @param string $method name of the method to be mocked
- * @return Mock|MockInterface|LegacyMockInterface
- */
- public function shouldAllowMockingMethod($method)
- {
- $this->_mockery_mockableMethods[] = $method;
- return $this;
- }
-
- /**
- * Set mock to ignore unexpected methods and return Undefined class
- * @param mixed $returnValue the default return value for calls to missing functions on this mock
- * @param bool $recursive Specify if returned mocks should also have shouldIgnoreMissing set
- * @return static
- */
- public function shouldIgnoreMissing($returnValue = null, $recursive = false)
- {
- $this->_mockery_ignoreMissing = true;
- $this->_mockery_ignoreMissingRecursive = $recursive;
- $this->_mockery_defaultReturnValue = $returnValue;
- return $this;
- }
-
- public function asUndefined()
- {
- $this->_mockery_ignoreMissing = true;
- $this->_mockery_defaultReturnValue = new Undefined();
- return $this;
- }
-
- /**
- * @return static
- */
- public function shouldAllowMockingProtectedMethods()
- {
- if (!\Mockery::getConfiguration()->mockingNonExistentMethodsAllowed()) {
- foreach ($this->mockery_getMethods() as $method) {
- if ($method->isProtected()) {
- $this->_mockery_mockableMethods[] = $method->getName();
- }
- }
- }
-
- $this->_mockery_allowMockingProtectedMethods = true;
- return $this;
- }
-
-
- /**
- * Set mock to defer unexpected methods to it's parent
- *
- * This is particularly useless for this class, as it doesn't have a parent,
- * but included for completeness
- *
- * @deprecated 2.0.0 Please use makePartial() instead
- *
- * @return static
- */
- public function shouldDeferMissing()
- {
- return $this->makePartial();
- }
-
- /**
- * Set mock to defer unexpected methods to it's parent
- *
- * It was an alias for shouldDeferMissing(), which will be removed
- * in 2.0.0.
- *
- * @return static
- */
- public function makePartial()
- {
- $this->_mockery_deferMissing = true;
- return $this;
- }
-
- /**
- * In the event shouldReceive() accepting one or more methods/returns,
- * this method will switch them from normal expectations to default
- * expectations
- *
- * @return self
- */
- public function byDefault()
- {
- foreach ($this->_mockery_expectations as $director) {
- $exps = $director->getExpectations();
- foreach ($exps as $exp) {
- $exp->byDefault();
- }
- }
-
- return $this;
- }
-
- /**
- * Capture calls to this mock
- */
- public function __call($method, array $args)
- {
- return $this->_mockery_handleMethodCall($method, $args);
- }
-
- public static function __callStatic($method, array $args)
- {
- return self::_mockery_handleStaticMethodCall($method, $args);
- }
-
- /**
- * Forward calls to this magic method to the __call method
- */
- #[\ReturnTypeWillChange]
- public function __toString()
- {
- return $this->__call('__toString', []);
- }
-
- /**
- * Iterate across all expectation directors and validate each
- *
- * @throws Exception
- * @return void
- */
- public function mockery_verify()
- {
- if ($this->_mockery_verified) {
- return;
- }
-
- if (property_exists($this, '_mockery_ignoreVerification') && $this->_mockery_ignoreVerification !== null
- && $this->_mockery_ignoreVerification == true) {
- return;
- }
-
- $this->_mockery_verified = true;
- foreach ($this->_mockery_expectations as $director) {
- $director->verify();
- }
- }
-
- /**
- * Gets a list of exceptions thrown by this mock
- *
- * @return array
- */
- public function mockery_thrownExceptions()
- {
- return $this->_mockery_thrownExceptions;
- }
-
- /**
- * Tear down tasks for this mock
- *
- * @return void
- */
- public function mockery_teardown()
- {
- }
-
- /**
- * Fetch the next available allocation order number
- *
- * @return int
- */
- public function mockery_allocateOrder()
- {
- ++$this->_mockery_allocatedOrder;
- return $this->_mockery_allocatedOrder;
- }
-
- /**
- * Set ordering for a group
- *
- * @param mixed $group
- * @param int $order
- */
- public function mockery_setGroup($group, $order)
- {
- $this->_mockery_groups[$group] = $order;
- }
-
- /**
- * Fetch array of ordered groups
- *
- * @return array
- */
- public function mockery_getGroups()
- {
- return $this->_mockery_groups;
- }
-
- /**
- * Set current ordered number
- *
- * @param int $order
- */
- public function mockery_setCurrentOrder($order)
- {
- $this->_mockery_currentOrder = $order;
- return $this->_mockery_currentOrder;
- }
-
- /**
- * Get current ordered number
- *
- * @return int
- */
- public function mockery_getCurrentOrder()
- {
- return $this->_mockery_currentOrder;
- }
-
- /**
- * Validate the current mock's ordering
- *
- * @param string $method
- * @param int $order
- * @throws \Mockery\Exception
- * @return void
- */
- public function mockery_validateOrder($method, $order)
- {
- if ($order < $this->_mockery_currentOrder) {
- $exception = new InvalidOrderException(
- 'Method ' . self::class . '::' . $method . '()'
- . ' called out of order: expected order '
- . $order . ', was ' . $this->_mockery_currentOrder
- );
- $exception->setMock($this)
- ->setMethodName($method)
- ->setExpectedOrder($order)
- ->setActualOrder($this->_mockery_currentOrder);
- throw $exception;
- }
-
- $this->mockery_setCurrentOrder($order);
- }
-
- /**
- * Gets the count of expectations for this mock
- *
- * @return int
- */
- public function mockery_getExpectationCount()
- {
- $count = $this->_mockery_expectations_count;
- foreach ($this->_mockery_expectations as $director) {
- $count += $director->getExpectationCount();
- }
-
- return $count;
- }
-
- /**
- * Return the expectations director for the given method
- *
- * @var string $method
- * @return ExpectationDirector|null
- */
- public function mockery_setExpectationsFor($method, ExpectationDirector $director)
- {
- $this->_mockery_expectations[$method] = $director;
- }
-
- /**
- * Return the expectations director for the given method
- *
- * @var string $method
- * @return ExpectationDirector|null
- */
- public function mockery_getExpectationsFor($method)
- {
- if (isset($this->_mockery_expectations[$method])) {
- return $this->_mockery_expectations[$method];
- }
- }
-
- /**
- * Find an expectation matching the given method and arguments
- *
- * @var string $method
- * @var array $args
- * @return Expectation|null
- */
- public function mockery_findExpectation($method, array $args)
- {
- if (!isset($this->_mockery_expectations[$method])) {
- return null;
- }
-
- $director = $this->_mockery_expectations[$method];
-
- return $director->findExpectation($args);
- }
-
- /**
- * Return the container for this mock
- *
- * @return Container
- */
- public function mockery_getContainer()
- {
- return $this->_mockery_container;
- }
-
- /**
- * Return the name for this mock
- *
- * @return string
- */
- public function mockery_getName()
- {
- return self::class;
- }
-
- /**
- * @return array
- */
- public function mockery_getMockableProperties()
- {
- return $this->_mockery_mockableProperties;
- }
-
- public function __isset($name)
- {
- if (false !== stripos($name, '_mockery_')) {
- return false;
- }
-
- if (!$this->_mockery_parentClass) {
- return false;
- }
-
- if (!method_exists($this->_mockery_parentClass, '__isset')) {
- return false;
- }
-
- return call_user_func($this->_mockery_parentClass . '::__isset', $name);
- }
-
- public function mockery_getExpectations()
- {
- return $this->_mockery_expectations;
- }
-
- /**
- * Calls a parent class method and returns the result. Used in a passthru
- * expectation where a real return value is required while still taking
- * advantage of expectation matching and call count verification.
- *
- * @param string $name
- * @param array $args
- * @return mixed
- */
- public function mockery_callSubjectMethod($name, array $args)
- {
- if (!method_exists($this, $name) && $this->_mockery_parentClass && method_exists($this->_mockery_parentClass, '__call')) {
- return call_user_func($this->_mockery_parentClass . '::__call', $name, $args);
- }
-
- return call_user_func_array($this->_mockery_parentClass . '::' . $name, $args);
- }
-
- /**
- * @return string[]
- */
- public function mockery_getMockableMethods()
- {
- return $this->_mockery_mockableMethods;
- }
-
- /**
- * @return bool
- */
- public function mockery_isAnonymous()
- {
- $rfc = new \ReflectionClass($this);
-
- // PHP 8 has Stringable interface
- $interfaces = array_filter($rfc->getInterfaces(), static function ($i) {
- return $i->getName() !== 'Stringable';
- });
-
- return false === $rfc->getParentClass() && 2 === count($interfaces);
- }
-
- public function mockery_isInstance()
- {
- return $this->_mockery_instanceMock;
- }
-
- public function __wakeup()
- {
- /**
- * This does not add __wakeup method support. It's a blind method and any
- * expected __wakeup work will NOT be performed. It merely cuts off
- * annoying errors where a __wakeup exists but is not essential when
- * mocking
- */
- }
-
- public function __destruct()
- {
- /**
- * Overrides real class destructor in case if class was created without original constructor
- */
- }
-
- public function mockery_getMethod($name)
- {
- foreach ($this->mockery_getMethods() as $method) {
- if ($method->getName() == $name) {
- return $method;
- }
- }
-
- return null;
- }
-
- /**
- * @param string $name Method name.
- *
- * @return mixed Generated return value based on the declared return value of the named method.
- */
- public function mockery_returnValueForMethod($name)
- {
- $rm = $this->mockery_getMethod($name);
-
- if ($rm === null) {
- return null;
- }
-
- $returnType = Reflector::getSimplestReturnType($rm);
-
- switch ($returnType) {
- case null: return null;
- case 'string': return '';
- case 'int': return 0;
- case 'float': return 0.0;
- case 'bool': return false;
- case 'true': return true;
- case 'false': return false;
-
- case 'array':
- case 'iterable':
- return [];
-
- case 'callable':
- case '\Closure':
- return static function () : void {
- };
-
- case '\Traversable':
- case '\Generator':
- $generator = static function () {
- yield;
- };
- return $generator();
-
- case 'void':
- return null;
-
- case 'static':
- return $this;
-
- case 'object':
- $mock = \Mockery::mock();
- if ($this->_mockery_ignoreMissingRecursive) {
- $mock->shouldIgnoreMissing($this->_mockery_defaultReturnValue, true);
- }
-
- return $mock;
-
- default:
- $mock = \Mockery::mock($returnType);
- if ($this->_mockery_ignoreMissingRecursive) {
- $mock->shouldIgnoreMissing($this->_mockery_defaultReturnValue, true);
- }
-
- return $mock;
- }
- }
-
- public function shouldHaveReceived($method = null, $args = null)
- {
- if ($method === null) {
- return new HigherOrderMessage($this, 'shouldHaveReceived');
- }
-
- $expectation = new VerificationExpectation($this, $method);
- if (null !== $args) {
- $expectation->withArgs($args);
- }
-
- $expectation->atLeast()->once();
- $director = new VerificationDirector($this->_mockery_getReceivedMethodCalls(), $expectation);
- ++$this->_mockery_expectations_count;
- $director->verify();
- return $director;
- }
-
- public function shouldHaveBeenCalled()
- {
- return $this->shouldHaveReceived('__invoke');
- }
-
- public function shouldNotHaveReceived($method = null, $args = null)
- {
- if ($method === null) {
- return new HigherOrderMessage($this, 'shouldNotHaveReceived');
- }
-
- $expectation = new VerificationExpectation($this, $method);
- if (null !== $args) {
- $expectation->withArgs($args);
- }
-
- $expectation->never();
- $director = new VerificationDirector($this->_mockery_getReceivedMethodCalls(), $expectation);
- ++$this->_mockery_expectations_count;
- $director->verify();
- return null;
- }
-
- public function shouldNotHaveBeenCalled(?array $args = null)
- {
- return $this->shouldNotHaveReceived('__invoke', $args);
- }
-
- protected static function _mockery_handleStaticMethodCall($method, array $args)
- {
- $associatedRealObject = \Mockery::fetchMock(self::class);
- try {
- return $associatedRealObject->__call($method, $args);
- } catch (BadMethodCallException $badMethodCallException) {
- throw new BadMethodCallException(
- 'Static method ' . $associatedRealObject->mockery_getName() . '::' . $method
- . '() does not exist on this mock object',
- 0,
- $badMethodCallException
- );
- }
- }
-
- protected function _mockery_getReceivedMethodCalls()
- {
- return $this->_mockery_receivedMethodCalls ?: $this->_mockery_receivedMethodCalls = new ReceivedMethodCalls();
- }
-
- /**
- * Called when an instance Mock was created and its constructor is getting called
- *
- * @see \Mockery\Generator\StringManipulation\Pass\InstanceMockPass
- * @param array $args
- */
- protected function _mockery_constructorCalled(array $args)
- {
- if (!isset($this->_mockery_expectations['__construct']) /* _mockery_handleMethodCall runs the other checks */) {
- return;
- }
-
- $this->_mockery_handleMethodCall('__construct', $args);
- }
-
- protected function _mockery_findExpectedMethodHandler($method)
- {
- if (isset($this->_mockery_expectations[$method])) {
- return $this->_mockery_expectations[$method];
- }
-
- $lowerCasedMockeryExpectations = array_change_key_case($this->_mockery_expectations, CASE_LOWER);
- $lowerCasedMethod = strtolower($method);
-
- return $lowerCasedMockeryExpectations[$lowerCasedMethod] ?? null;
- }
-
- protected function _mockery_handleMethodCall($method, array $args)
- {
- $this->_mockery_getReceivedMethodCalls()->push(new MethodCall($method, $args));
-
- $rm = $this->mockery_getMethod($method);
- if ($rm && $rm->isProtected() && !$this->_mockery_allowMockingProtectedMethods) {
- if ($rm->isAbstract()) {
- return;
- }
-
- try {
- $prototype = $rm->getPrototype();
- if ($prototype->isAbstract()) {
- return;
- }
- } catch (\ReflectionException $re) {
- // noop - there is no hasPrototype method
- }
-
- if (null === $this->_mockery_parentClass) {
- $this->_mockery_parentClass = get_parent_class($this);
- }
-
- return call_user_func_array($this->_mockery_parentClass . '::' . $method, $args);
- }
-
- $handler = $this->_mockery_findExpectedMethodHandler($method);
-
- if ($handler !== null && !$this->_mockery_disableExpectationMatching) {
- try {
- return $handler->call($args);
- } catch (NoMatchingExpectationException $e) {
- if (!$this->_mockery_ignoreMissing && !$this->_mockery_deferMissing) {
- throw $e;
- }
- }
- }
-
- if (!is_null($this->_mockery_partial) &&
- (method_exists($this->_mockery_partial, $method) || method_exists($this->_mockery_partial, '__call'))) {
- return $this->_mockery_partial->{$method}(...$args);
- }
-
- if ($this->_mockery_deferMissing && is_callable($this->_mockery_parentClass . '::' . $method)
- && (!$this->hasMethodOverloadingInParentClass() || ($this->_mockery_parentClass && method_exists($this->_mockery_parentClass, $method)))) {
- return call_user_func_array($this->_mockery_parentClass . '::' . $method, $args);
- }
-
- if ($this->_mockery_deferMissing && $this->_mockery_parentClass && method_exists($this->_mockery_parentClass, '__call')) {
- return call_user_func($this->_mockery_parentClass . '::__call', $method, $args);
- }
-
- if ($method === '__toString') {
- // __toString is special because we force its addition to the class API regardless of the
- // original implementation. Thus, we should always return a string rather than honor
- // _mockery_ignoreMissing and break the API with an error.
- return sprintf('%s#%s', self::class, spl_object_hash($this));
- }
-
- if ($this->_mockery_ignoreMissing && (\Mockery::getConfiguration()->mockingNonExistentMethodsAllowed() || (!is_null($this->_mockery_partial) && method_exists($this->_mockery_partial, $method)) || is_callable($this->_mockery_parentClass . '::' . $method))) {
- if ($this->_mockery_defaultReturnValue instanceof Undefined) {
- return $this->_mockery_defaultReturnValue->{$method}(...$args);
- }
-
- if (null === $this->_mockery_defaultReturnValue) {
- return $this->mockery_returnValueForMethod($method);
- }
-
- return $this->_mockery_defaultReturnValue;
- }
-
- $message = 'Method ' . self::class . '::' . $method .
- '() does not exist on this mock object';
-
- if (!is_null($rm)) {
- $message = 'Received ' . self::class .
- '::' . $method . '(), but no expectations were specified';
- }
-
- $bmce = new BadMethodCallException($message);
- $this->_mockery_thrownExceptions[] = $bmce;
- throw $bmce;
- }
-
- /**
- * Uses reflection to get the list of all
- * methods within the current mock object
- *
- * @return array
- */
- protected function mockery_getMethods()
- {
- if (static::$_mockery_methods && \Mockery::getConfiguration()->reflectionCacheEnabled()) {
- return static::$_mockery_methods;
- }
-
- if ($this->_mockery_partial !== null) {
- $reflected = new \ReflectionObject($this->_mockery_partial);
- } else {
- $reflected = new \ReflectionClass($this);
- }
-
- return static::$_mockery_methods = $reflected->getMethods();
- }
-
- private function hasMethodOverloadingInParentClass()
- {
- // if there's __call any name would be callable
- return is_callable($this->_mockery_parentClass . '::aFunctionNameThatNoOneWouldEverUseInRealLife12345');
- }
-
- /**
- * @return array
- */
- private function getNonPublicMethods()
- {
- return array_map(
- static function ($method) {
- return $method->getName();
- },
- array_filter($this->mockery_getMethods(), static function ($method) {
- return !$method->isPublic();
- })
- );
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/MockInterface.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/MockInterface.php
deleted file mode 100644
index 9dc53647..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/MockInterface.php
+++ /dev/null
@@ -1,28 +0,0 @@
- return
- *
- * @return Expectation|ExpectationInterface|HigherOrderMessage|self
- */
- public function allows($something = []);
-
- /**
- * @param mixed $something String method name (optional)
- *
- * @return Expectation|ExpectationInterface|ExpectsHigherOrderMessage
- */
- public function expects($something = null);
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/QuickDefinitionsConfiguration.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/QuickDefinitionsConfiguration.php
deleted file mode 100644
index aef28b77..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/QuickDefinitionsConfiguration.php
+++ /dev/null
@@ -1,47 +0,0 @@
-_quickDefinitionsApplicationMode = $newValue
- ? self::QUICK_DEFINITIONS_MODE_MOCK_AT_LEAST_ONCE
- : self::QUICK_DEFINITIONS_MODE_DEFAULT_EXPECTATION;
- }
-
- return $this->_quickDefinitionsApplicationMode === self::QUICK_DEFINITIONS_MODE_MOCK_AT_LEAST_ONCE;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/ReceivedMethodCalls.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/ReceivedMethodCalls.php
deleted file mode 100644
index 4ec1c67f..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/ReceivedMethodCalls.php
+++ /dev/null
@@ -1,38 +0,0 @@
-methodCalls[] = $methodCall;
- }
-
- public function verify(Expectation $expectation)
- {
- foreach ($this->methodCalls as $methodCall) {
- if ($methodCall->getMethod() !== $expectation->getName()) {
- continue;
- }
-
- if (! $expectation->matchArgs($methodCall->getArgs())) {
- continue;
- }
-
- $expectation->verifyCall($methodCall->getArgs());
- }
-
- $expectation->verify();
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Reflector.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Reflector.php
deleted file mode 100644
index 8e4fc158..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Reflector.php
+++ /dev/null
@@ -1,316 +0,0 @@
-
- */
- public const BUILTIN_TYPES = ['array', 'bool', 'int', 'float', 'null', 'object', 'string'];
-
- /**
- * List of reserved words.
- *
- * @var list
- */
- public const RESERVED_WORDS = ['bool', 'true', 'false', 'float', 'int', 'iterable', 'mixed', 'never', 'null', 'object', 'string', 'void'];
-
- /**
- * Iterable.
- *
- * @var list
- */
- private const ITERABLE = ['iterable'];
-
- /**
- * Traversable array.
- *
- * @var list
- */
- private const TRAVERSABLE_ARRAY = ['\Traversable', 'array'];
-
- /**
- * Compute the string representation for the return type.
- *
- * @param bool $withoutNullable
- *
- * @return null|string
- */
- public static function getReturnType(ReflectionMethod $method, $withoutNullable = false)
- {
- $type = $method->getReturnType();
-
- if (! $type instanceof ReflectionType && method_exists($method, 'getTentativeReturnType')) {
- $type = $method->getTentativeReturnType();
- }
-
- if (! $type instanceof ReflectionType) {
- return null;
- }
-
- $typeHint = self::getTypeFromReflectionType($type, $method->getDeclaringClass());
-
- return (! $withoutNullable && $type->allowsNull()) ? self::formatNullableType($typeHint) : $typeHint;
- }
-
- /**
- * Compute the string representation for the simplest return type.
- *
- * @return null|string
- */
- public static function getSimplestReturnType(ReflectionMethod $method)
- {
- $type = $method->getReturnType();
-
- if (! $type instanceof ReflectionType && method_exists($method, 'getTentativeReturnType')) {
- $type = $method->getTentativeReturnType();
- }
-
- if (! $type instanceof ReflectionType || $type->allowsNull()) {
- return null;
- }
-
- $typeInformation = self::getTypeInformation($type, $method->getDeclaringClass());
-
- // return the first primitive type hint
- foreach ($typeInformation as $info) {
- if ($info['isPrimitive']) {
- return $info['typeHint'];
- }
- }
-
- // if no primitive type, return the first type
- foreach ($typeInformation as $info) {
- return $info['typeHint'];
- }
-
- return null;
- }
-
- /**
- * Compute the string representation for the paramater type.
- *
- * @param bool $withoutNullable
- *
- * @return null|string
- */
- public static function getTypeHint(ReflectionParameter $param, $withoutNullable = false)
- {
- if (! $param->hasType()) {
- return null;
- }
-
- $type = $param->getType();
- $declaringClass = $param->getDeclaringClass();
- $typeHint = self::getTypeFromReflectionType($type, $declaringClass);
-
- return (! $withoutNullable && $type->allowsNull()) ? self::formatNullableType($typeHint) : $typeHint;
- }
-
- /**
- * Determine if the parameter is typed as an array.
- *
- * @return bool
- */
- public static function isArray(ReflectionParameter $param)
- {
- $type = $param->getType();
-
- return $type instanceof ReflectionNamedType && $type->getName();
- }
-
- /**
- * Determine if the given type is a reserved word.
- */
- public static function isReservedWord(string $type): bool
- {
- return in_array(strtolower($type), self::RESERVED_WORDS, true);
- }
-
- /**
- * Format the given type as a nullable type.
- */
- private static function formatNullableType(string $typeHint): string
- {
- if ($typeHint === 'mixed') {
- return $typeHint;
- }
-
- if (strpos($typeHint, 'null') !== false) {
- return $typeHint;
- }
-
- if (PHP_VERSION_ID < 80000) {
- return sprintf('?%s', $typeHint);
- }
-
- return sprintf('%s|null', $typeHint);
- }
-
- private static function getTypeFromReflectionType(ReflectionType $type, ReflectionClass $declaringClass): string
- {
- if ($type instanceof ReflectionNamedType) {
- $typeHint = $type->getName();
-
- if ($type->isBuiltin()) {
- return $typeHint;
- }
-
- if ($typeHint === 'static') {
- return $typeHint;
- }
-
- // 'self' needs to be resolved to the name of the declaring class
- if ($typeHint === 'self') {
- $typeHint = $declaringClass->getName();
- }
-
- // 'parent' needs to be resolved to the name of the parent class
- if ($typeHint === 'parent') {
- $typeHint = $declaringClass->getParentClass()->getName();
- }
-
- // class names need prefixing with a slash
- return sprintf('\\%s', $typeHint);
- }
-
- if ($type instanceof ReflectionIntersectionType) {
- $types = array_map(
- static function (ReflectionType $type) use ($declaringClass): string {
- return self::getTypeFromReflectionType($type, $declaringClass);
- },
- $type->getTypes()
- );
-
- return implode('&', $types);
- }
-
- if ($type instanceof ReflectionUnionType) {
- $types = array_map(
- static function (ReflectionType $type) use ($declaringClass): string {
- return self::getTypeFromReflectionType($type, $declaringClass);
- },
- $type->getTypes()
- );
-
- $intersect = array_intersect(self::TRAVERSABLE_ARRAY, $types);
- if ($intersect === self::TRAVERSABLE_ARRAY) {
- $types = array_merge(self::ITERABLE, array_diff($types, self::TRAVERSABLE_ARRAY));
- }
-
- return implode(
- '|',
- array_map(
- static function (string $type): string {
- return strpos($type, '&') === false ? $type : sprintf('(%s)', $type);
- },
- $types
- )
- );
- }
-
- throw new InvalidArgumentException('Unknown ReflectionType: ' . get_debug_type($type));
- }
-
- /**
- * Get the string representation of the given type.
- *
- * @return list
- */
- private static function getTypeInformation(ReflectionType $type, ReflectionClass $declaringClass): array
- {
- // PHP 8 union types and PHP 8.1 intersection types can be recursively processed
- if ($type instanceof ReflectionUnionType || $type instanceof ReflectionIntersectionType) {
- $types = [];
-
- foreach ($type->getTypes() as $innterType) {
- foreach (self::getTypeInformation($innterType, $declaringClass) as $info) {
- if ($info['typeHint'] === 'null' && $info['isPrimitive']) {
- continue;
- }
-
- $types[] = $info;
- }
- }
-
- return $types;
- }
-
- // $type must be an instance of \ReflectionNamedType
- $typeHint = $type->getName();
-
- // builtins can be returned as is
- if ($type->isBuiltin()) {
- return [
- [
- 'typeHint' => $typeHint,
- 'isPrimitive' => in_array($typeHint, self::BUILTIN_TYPES, true),
- ],
- ];
- }
-
- // 'static' can be returned as is
- if ($typeHint === 'static') {
- return [
- [
- 'typeHint' => $typeHint,
- 'isPrimitive' => false,
- ],
- ];
- }
-
- // 'self' needs to be resolved to the name of the declaring class
- if ($typeHint === 'self') {
- $typeHint = $declaringClass->getName();
- }
-
- // 'parent' needs to be resolved to the name of the parent class
- if ($typeHint === 'parent') {
- $typeHint = $declaringClass->getParentClass()->getName();
- }
-
- // class names need prefixing with a slash
- return [
- [
- 'typeHint' => sprintf('\\%s', $typeHint),
- 'isPrimitive' => false,
- ],
- ];
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Undefined.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/Undefined.php
deleted file mode 100644
index ca3ace46..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/Undefined.php
+++ /dev/null
@@ -1,39 +0,0 @@
-receivedMethodCalls = $receivedMethodCalls;
- $this->expectation = $expectation;
- }
-
- /**
- * @return self
- */
- public function atLeast()
- {
- return $this->cloneWithoutCountValidatorsApplyAndVerify('atLeast', []);
- }
-
- /**
- * @return self
- */
- public function atMost()
- {
- return $this->cloneWithoutCountValidatorsApplyAndVerify('atMost', []);
- }
-
- /**
- * @param int $minimum
- * @param int $maximum
- *
- * @return self
- */
- public function between($minimum, $maximum)
- {
- return $this->cloneWithoutCountValidatorsApplyAndVerify('between', [$minimum, $maximum]);
- }
-
- /**
- * @return self
- */
- public function once()
- {
- return $this->cloneWithoutCountValidatorsApplyAndVerify('once', []);
- }
-
- /**
- * @param int $limit
- *
- * @return self
- */
- public function times($limit = null)
- {
- return $this->cloneWithoutCountValidatorsApplyAndVerify('times', [$limit]);
- }
-
- /**
- * @return self
- */
- public function twice()
- {
- return $this->cloneWithoutCountValidatorsApplyAndVerify('twice', []);
- }
-
- public function verify()
- {
- $this->receivedMethodCalls->verify($this->expectation);
- }
-
- /**
- * @template TArgs
- *
- * @param TArgs $args
- *
- * @return self
- */
- public function with(...$args)
- {
- return $this->cloneApplyAndVerify('with', $args);
- }
-
- /**
- * @return self
- */
- public function withAnyArgs()
- {
- return $this->cloneApplyAndVerify('withAnyArgs', []);
- }
-
- /**
- * @template TArgs
- *
- * @param TArgs $args
- *
- * @return self
- */
- public function withArgs($args)
- {
- return $this->cloneApplyAndVerify('withArgs', [$args]);
- }
-
- /**
- * @return self
- */
- public function withNoArgs()
- {
- return $this->cloneApplyAndVerify('withNoArgs', []);
- }
-
- /**
- * @param string $method
- * @param array $args
- *
- * @return self
- */
- protected function cloneApplyAndVerify($method, $args)
- {
- $verificationExpectation = clone $this->expectation;
-
- $verificationExpectation->{$method}(...$args);
-
- $verificationDirector = new self($this->receivedMethodCalls, $verificationExpectation);
-
- $verificationDirector->verify();
-
- return $verificationDirector;
- }
-
- /**
- * @param string $method
- * @param array $args
- *
- * @return self
- */
- protected function cloneWithoutCountValidatorsApplyAndVerify($method, $args)
- {
- $verificationExpectation = clone $this->expectation;
-
- $verificationExpectation->clearCountValidators();
-
- $verificationExpectation->{$method}(...$args);
-
- $verificationDirector = new self($this->receivedMethodCalls, $verificationExpectation);
-
- $verificationDirector->verify();
-
- return $verificationDirector;
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/Mockery/VerificationExpectation.php b/wordpress-dev/vendor/mockery/mockery/library/Mockery/VerificationExpectation.php
deleted file mode 100644
index 9e36f6c6..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/Mockery/VerificationExpectation.php
+++ /dev/null
@@ -1,29 +0,0 @@
-_actualCount = 0;
- }
-
- /**
- * @return void
- */
- public function clearCountValidators()
- {
- $this->_countValidators = [];
- }
-}
diff --git a/wordpress-dev/vendor/mockery/mockery/library/helpers.php b/wordpress-dev/vendor/mockery/mockery/library/helpers.php
deleted file mode 100644
index 8f15857a..00000000
--- a/wordpress-dev/vendor/mockery/mockery/library/helpers.php
+++ /dev/null
@@ -1,77 +0,0 @@
-|TMock|Closure(LegacyMockInterface&MockInterface&TMock):LegacyMockInterface&MockInterface&TMock|array> $args
- *
- * @return LegacyMockInterface&MockInterface&TMock
- */
- function mock(...$args)
- {
- return Mockery::mock(...$args);
- }
-}
-
-if (! \function_exists('spy')) {
- /**
- * @template TSpy of object
- *
- * @param array|TSpy|Closure(LegacyMockInterface&MockInterface&TSpy):LegacyMockInterface&MockInterface&TSpy|array> $args
- *
- * @return LegacyMockInterface&MockInterface&TSpy
- */
- function spy(...$args)
- {
- return Mockery::spy(...$args);
- }
-}
-
-if (! \function_exists('namedMock')) {
- /**
- * @template TNamedMock of object
- *
- * @param array|TNamedMock|array> $args
- *
- * @return LegacyMockInterface&MockInterface&TNamedMock
- */
- function namedMock(...$args)
- {
- return Mockery::namedMock(...$args);
- }
-}
-
-if (! \function_exists('anyArgs')) {
- function anyArgs(): AnyArgs
- {
- return new AnyArgs();
- }
-}
-
-if (! \function_exists('andAnyOtherArgs')) {
- function andAnyOtherArgs(): AndAnyOtherArgs
- {
- return new AndAnyOtherArgs();
- }
-}
-
-if (! \function_exists('andAnyOthers')) {
- function andAnyOthers(): AndAnyOtherArgs
- {
- return new AndAnyOtherArgs();
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/LICENSE b/wordpress-dev/vendor/myclabs/deep-copy/LICENSE
deleted file mode 100644
index c3e83500..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2013 My C-Sense
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/README.md b/wordpress-dev/vendor/myclabs/deep-copy/README.md
deleted file mode 100644
index 88ae14cc..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/README.md
+++ /dev/null
@@ -1,406 +0,0 @@
-# DeepCopy
-
-DeepCopy helps you create deep copies (clones) of your objects. It is designed to handle cycles in the association graph.
-
-[](https://packagist.org/packages/myclabs/deep-copy)
-[](https://github.com/myclabs/DeepCopy/actions/workflows/ci.yaml)
-
-## Table of Contents
-
-1. [How](#how)
-1. [Why](#why)
- 1. [Using simply `clone`](#using-simply-clone)
- 1. [Overriding `__clone()`](#overriding-__clone)
- 1. [With `DeepCopy`](#with-deepcopy)
-1. [How it works](#how-it-works)
-1. [Going further](#going-further)
- 1. [Matchers](#matchers)
- 1. [Property name](#property-name)
- 1. [Specific property](#specific-property)
- 1. [Type](#type)
- 1. [Filters](#filters)
- 1. [`SetNullFilter`](#setnullfilter-filter)
- 1. [`KeepFilter`](#keepfilter-filter)
- 1. [`DoctrineCollectionFilter`](#doctrinecollectionfilter-filter)
- 1. [`DoctrineEmptyCollectionFilter`](#doctrineemptycollectionfilter-filter)
- 1. [`DoctrineProxyFilter`](#doctrineproxyfilter-filter)
- 1. [`ReplaceFilter`](#replacefilter-type-filter)
- 1. [`ShallowCopyFilter`](#shallowcopyfilter-type-filter)
-1. [Edge cases](#edge-cases)
-1. [Contributing](#contributing)
- 1. [Tests](#tests)
-
-
-## How?
-
-Install with Composer:
-
-```
-composer require myclabs/deep-copy
-```
-
-Use it:
-
-```php
-use DeepCopy\DeepCopy;
-
-$copier = new DeepCopy();
-$myCopy = $copier->copy($myObject);
-```
-
-
-## Why?
-
-- How do you create copies of your objects?
-
-```php
-$myCopy = clone $myObject;
-```
-
-- How do you create **deep** copies of your objects (i.e. copying also all the objects referenced in the properties)?
-
-You use [`__clone()`](http://www.php.net/manual/en/language.oop5.cloning.php#object.clone) and implement the behavior
-yourself.
-
-- But how do you handle **cycles** in the association graph?
-
-Now you're in for a big mess :(
-
-
-
-
-### Using simply `clone`
-
-
-
-
-### Overriding `__clone()`
-
-
-
-
-### With `DeepCopy`
-
-
-
-
-## How it works
-
-DeepCopy recursively traverses all the object's properties and clones them. To avoid cloning the same object twice it
-keeps a hash map of all instances and thus preserves the object graph.
-
-To use it:
-
-```php
-use function DeepCopy\deep_copy;
-
-$copy = deep_copy($var);
-```
-
-Alternatively, you can create your own `DeepCopy` instance to configure it differently for example:
-
-```php
-use DeepCopy\DeepCopy;
-
-$copier = new DeepCopy(true);
-
-$copy = $copier->copy($var);
-```
-
-You may want to roll your own deep copy function:
-
-```php
-namespace Acme;
-
-use DeepCopy\DeepCopy;
-
-function deep_copy($var)
-{
- static $copier = null;
-
- if (null === $copier) {
- $copier = new DeepCopy(true);
- }
-
- return $copier->copy($var);
-}
-```
-
-
-## Going further
-
-You can add filters to customize the copy process.
-
-The method to add a filter is `DeepCopy\DeepCopy::addFilter($filter, $matcher)`,
-with `$filter` implementing `DeepCopy\Filter\Filter`
-and `$matcher` implementing `DeepCopy\Matcher\Matcher`.
-
-We provide some generic filters and matchers.
-
-
-### Matchers
-
- - `DeepCopy\Matcher` applies on a object attribute.
- - `DeepCopy\TypeMatcher` applies on any element found in graph, including array elements.
-
-
-#### Property name
-
-The `PropertyNameMatcher` will match a property by its name:
-
-```php
-use DeepCopy\Matcher\PropertyNameMatcher;
-
-// Will apply a filter to any property of any objects named "id"
-$matcher = new PropertyNameMatcher('id');
-```
-
-
-#### Specific property
-
-The `PropertyMatcher` will match a specific property of a specific class:
-
-```php
-use DeepCopy\Matcher\PropertyMatcher;
-
-// Will apply a filter to the property "id" of any objects of the class "MyClass"
-$matcher = new PropertyMatcher('MyClass', 'id');
-```
-
-
-#### Type
-
-The `TypeMatcher` will match any element by its type (instance of a class or any value that could be parameter of
-[gettype()](http://php.net/manual/en/function.gettype.php) function):
-
-```php
-use DeepCopy\TypeMatcher\TypeMatcher;
-
-// Will apply a filter to any object that is an instance of Doctrine\Common\Collections\Collection
-$matcher = new TypeMatcher('Doctrine\Common\Collections\Collection');
-```
-
-
-### Filters
-
-- `DeepCopy\Filter` applies a transformation to the object attribute matched by `DeepCopy\Matcher`
-- `DeepCopy\TypeFilter` applies a transformation to any element matched by `DeepCopy\TypeMatcher`
-
-By design, matching a filter will stop the chain of filters (i.e. the next ones will not be applied).
-Using the ([`ChainableFilter`](#chainablefilter-filter)) won't stop the chain of filters.
-
-
-#### `SetNullFilter` (filter)
-
-Let's say for example that you are copying a database record (or a Doctrine entity), so you want the copy not to have
-any ID:
-
-```php
-use DeepCopy\DeepCopy;
-use DeepCopy\Filter\SetNullFilter;
-use DeepCopy\Matcher\PropertyNameMatcher;
-
-$object = MyClass::load(123);
-echo $object->id; // 123
-
-$copier = new DeepCopy();
-$copier->addFilter(new SetNullFilter(), new PropertyNameMatcher('id'));
-
-$copy = $copier->copy($object);
-
-echo $copy->id; // null
-```
-
-
-#### `KeepFilter` (filter)
-
-If you want a property to remain untouched (for example, an association to an object):
-
-```php
-use DeepCopy\DeepCopy;
-use DeepCopy\Filter\KeepFilter;
-use DeepCopy\Matcher\PropertyMatcher;
-
-$copier = new DeepCopy();
-$copier->addFilter(new KeepFilter(), new PropertyMatcher('MyClass', 'category'));
-
-$copy = $copier->copy($object);
-// $copy->category has not been touched
-```
-
-
-#### `ChainableFilter` (filter)
-
-If you use cloning on proxy classes, you might want to apply two filters for:
-1. loading the data
-2. applying a transformation
-
-You can use the `ChainableFilter` as a decorator of the proxy loader filter, which won't stop the chain of filters (i.e.
-the next ones may be applied).
-
-
-```php
-use DeepCopy\DeepCopy;
-use DeepCopy\Filter\ChainableFilter;
-use DeepCopy\Filter\Doctrine\DoctrineProxyFilter;
-use DeepCopy\Filter\SetNullFilter;
-use DeepCopy\Matcher\Doctrine\DoctrineProxyMatcher;
-use DeepCopy\Matcher\PropertyNameMatcher;
-
-$copier = new DeepCopy();
-$copier->addFilter(new ChainableFilter(new DoctrineProxyFilter()), new DoctrineProxyMatcher());
-$copier->addFilter(new SetNullFilter(), new PropertyNameMatcher('id'));
-
-$copy = $copier->copy($object);
-
-echo $copy->id; // null
-```
-
-
-#### `DoctrineCollectionFilter` (filter)
-
-If you use Doctrine and want to copy an entity, you will need to use the `DoctrineCollectionFilter`:
-
-```php
-use DeepCopy\DeepCopy;
-use DeepCopy\Filter\Doctrine\DoctrineCollectionFilter;
-use DeepCopy\Matcher\PropertyTypeMatcher;
-
-$copier = new DeepCopy();
-$copier->addFilter(new DoctrineCollectionFilter(), new PropertyTypeMatcher('Doctrine\Common\Collections\Collection'));
-
-$copy = $copier->copy($object);
-```
-
-
-#### `DoctrineEmptyCollectionFilter` (filter)
-
-If you use Doctrine and want to copy an entity who contains a `Collection` that you want to be reset, you can use the
-`DoctrineEmptyCollectionFilter`
-
-```php
-use DeepCopy\DeepCopy;
-use DeepCopy\Filter\Doctrine\DoctrineEmptyCollectionFilter;
-use DeepCopy\Matcher\PropertyMatcher;
-
-$copier = new DeepCopy();
-$copier->addFilter(new DoctrineEmptyCollectionFilter(), new PropertyMatcher('MyClass', 'myProperty'));
-
-$copy = $copier->copy($object);
-
-// $copy->myProperty will return an empty collection
-```
-
-
-#### `DoctrineProxyFilter` (filter)
-
-If you use Doctrine and use cloning on lazy loaded entities, you might encounter errors mentioning missing fields on a
-Doctrine proxy class (...\\\_\_CG\_\_\Proxy).
-You can use the `DoctrineProxyFilter` to load the actual entity behind the Doctrine proxy class.
-**Make sure, though, to put this as one of your very first filters in the filter chain so that the entity is loaded
-before other filters are applied!**
-We recommend to decorate the `DoctrineProxyFilter` with the `ChainableFilter` to allow applying other filters to the
-cloned lazy loaded entities.
-
-```php
-use DeepCopy\DeepCopy;
-use DeepCopy\Filter\Doctrine\DoctrineProxyFilter;
-use DeepCopy\Matcher\Doctrine\DoctrineProxyMatcher;
-
-$copier = new DeepCopy();
-$copier->addFilter(new ChainableFilter(new DoctrineProxyFilter()), new DoctrineProxyMatcher());
-
-$copy = $copier->copy($object);
-
-// $copy should now contain a clone of all entities, including those that were not yet fully loaded.
-```
-
-
-#### `ReplaceFilter` (type filter)
-
-1. If you want to replace the value of a property:
-
-```php
-use DeepCopy\DeepCopy;
-use DeepCopy\Filter\ReplaceFilter;
-use DeepCopy\Matcher\PropertyMatcher;
-
-$copier = new DeepCopy();
-$callback = function ($currentValue) {
- return $currentValue . ' (copy)'
-};
-$copier->addFilter(new ReplaceFilter($callback), new PropertyMatcher('MyClass', 'title'));
-
-$copy = $copier->copy($object);
-
-// $copy->title will contain the data returned by the callback, e.g. 'The title (copy)'
-```
-
-2. If you want to replace whole element:
-
-```php
-use DeepCopy\DeepCopy;
-use DeepCopy\TypeFilter\ReplaceFilter;
-use DeepCopy\TypeMatcher\TypeMatcher;
-
-$copier = new DeepCopy();
-$callback = function (MyClass $myClass) {
- return get_class($myClass);
-};
-$copier->addTypeFilter(new ReplaceFilter($callback), new TypeMatcher('MyClass'));
-
-$copy = $copier->copy([new MyClass, 'some string', new MyClass]);
-
-// $copy will contain ['MyClass', 'some string', 'MyClass']
-```
-
-
-The `$callback` parameter of the `ReplaceFilter` constructor accepts any PHP callable.
-
-
-#### `ShallowCopyFilter` (type filter)
-
-Stop *DeepCopy* from recursively copying element, using standard `clone` instead:
-
-```php
-use DeepCopy\DeepCopy;
-use DeepCopy\TypeFilter\ShallowCopyFilter;
-use DeepCopy\TypeMatcher\TypeMatcher;
-use Mockery as m;
-
-$this->deepCopy = new DeepCopy();
-$this->deepCopy->addTypeFilter(
- new ShallowCopyFilter,
- new TypeMatcher(m\MockInterface::class)
-);
-
-$myServiceWithMocks = new MyService(m::mock(MyDependency1::class), m::mock(MyDependency2::class));
-// All mocks will be just cloned, not deep copied
-```
-
-
-## Edge cases
-
-The following structures cannot be deep-copied with PHP Reflection. As a result they are shallow cloned and filters are
-not applied. There is two ways for you to handle them:
-
-- Implement your own `__clone()` method
-- Use a filter with a type matcher
-
-
-## Contributing
-
-DeepCopy is distributed under the MIT license.
-
-
-### Tests
-
-Running the tests is simple:
-
-```php
-vendor/bin/phpunit
-```
-
-### Support
-
-Get professional support via [the Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-myclabs-deep-copy?utm_source=packagist-myclabs-deep-copy&utm_medium=referral&utm_campaign=readme).
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/composer.json b/wordpress-dev/vendor/myclabs/deep-copy/composer.json
deleted file mode 100644
index f115fff8..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/composer.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "myclabs/deep-copy",
- "description": "Create deep copies (clones) of your objects",
- "license": "MIT",
- "type": "library",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "require": {
- "php": "^7.1 || ^8.0"
- },
- "require-dev": {
- "doctrine/collections": "^1.6.8",
- "doctrine/common": "^2.13.3 || ^3.2.2",
- "phpspec/prophecy": "^1.10",
- "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13"
- },
- "conflict": {
- "doctrine/collections": "<1.6.8",
- "doctrine/common": "<2.13.3 || >=3 <3.2.2"
- },
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "autoload-dev": {
- "psr-4": {
- "DeepCopyTest\\": "tests/DeepCopyTest/",
- "DeepCopy\\": "fixtures/"
- }
- },
- "config": {
- "sort-packages": true
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/DeepCopy.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/DeepCopy.php
deleted file mode 100644
index cc82df6f..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/DeepCopy.php
+++ /dev/null
@@ -1,324 +0,0 @@
- Filter, 'matcher' => Matcher] pairs.
- */
- private $filters = [];
-
- /**
- * Type Filters to apply.
- *
- * @var array Array of ['filter' => Filter, 'matcher' => Matcher] pairs.
- */
- private $typeFilters = [];
-
- /**
- * @var bool
- */
- private $skipUncloneable = false;
-
- /**
- * @var bool
- */
- private $useCloneMethod;
-
- /**
- * @param bool $useCloneMethod If set to true, when an object implements the __clone() function, it will be used
- * instead of the regular deep cloning.
- */
- public function __construct($useCloneMethod = false)
- {
- $this->useCloneMethod = $useCloneMethod;
-
- $this->addTypeFilter(new ArrayObjectFilter($this), new TypeMatcher(ArrayObject::class));
- $this->addTypeFilter(new DateIntervalFilter(), new TypeMatcher(DateInterval::class));
- $this->addTypeFilter(new DatePeriodFilter(), new TypeMatcher(DatePeriod::class));
- $this->addTypeFilter(new SplDoublyLinkedListFilter($this), new TypeMatcher(SplDoublyLinkedList::class));
- }
-
- /**
- * If enabled, will not throw an exception when coming across an uncloneable property.
- *
- * @param $skipUncloneable
- *
- * @return $this
- */
- public function skipUncloneable($skipUncloneable = true)
- {
- $this->skipUncloneable = $skipUncloneable;
-
- return $this;
- }
-
- /**
- * Deep copies the given object.
- *
- * @param mixed $object
- *
- * @return mixed
- */
- public function copy($object)
- {
- $this->hashMap = [];
-
- return $this->recursiveCopy($object);
- }
-
- public function addFilter(Filter $filter, Matcher $matcher)
- {
- $this->filters[] = [
- 'matcher' => $matcher,
- 'filter' => $filter,
- ];
- }
-
- public function prependFilter(Filter $filter, Matcher $matcher)
- {
- array_unshift($this->filters, [
- 'matcher' => $matcher,
- 'filter' => $filter,
- ]);
- }
-
- public function addTypeFilter(TypeFilter $filter, TypeMatcher $matcher)
- {
- $this->typeFilters[] = [
- 'matcher' => $matcher,
- 'filter' => $filter,
- ];
- }
-
- public function prependTypeFilter(TypeFilter $filter, TypeMatcher $matcher)
- {
- array_unshift($this->typeFilters, [
- 'matcher' => $matcher,
- 'filter' => $filter,
- ]);
- }
-
- private function recursiveCopy($var)
- {
- // Matches Type Filter
- if ($filter = $this->getFirstMatchedTypeFilter($this->typeFilters, $var)) {
- return $filter->apply($var);
- }
-
- // Resource
- if (is_resource($var)) {
- return $var;
- }
-
- // Array
- if (is_array($var)) {
- return $this->copyArray($var);
- }
-
- // Scalar
- if (! is_object($var)) {
- return $var;
- }
-
- // Enum
- if (PHP_VERSION_ID >= 80100 && enum_exists(get_class($var))) {
- return $var;
- }
-
- // Object
- return $this->copyObject($var);
- }
-
- /**
- * Copy an array
- * @param array $array
- * @return array
- */
- private function copyArray(array $array)
- {
- foreach ($array as $key => $value) {
- $array[$key] = $this->recursiveCopy($value);
- }
-
- return $array;
- }
-
- /**
- * Copies an object.
- *
- * @param object $object
- *
- * @throws CloneException
- *
- * @return object
- */
- private function copyObject($object)
- {
- $objectHash = spl_object_hash($object);
-
- if (isset($this->hashMap[$objectHash])) {
- return $this->hashMap[$objectHash];
- }
-
- $reflectedObject = new ReflectionObject($object);
- $isCloneable = $reflectedObject->isCloneable();
-
- if (false === $isCloneable) {
- if ($this->skipUncloneable) {
- $this->hashMap[$objectHash] = $object;
-
- return $object;
- }
-
- throw new CloneException(
- sprintf(
- 'The class "%s" is not cloneable.',
- $reflectedObject->getName()
- )
- );
- }
-
- $newObject = clone $object;
- $this->hashMap[$objectHash] = $newObject;
-
- if ($this->useCloneMethod && $reflectedObject->hasMethod('__clone')) {
- return $newObject;
- }
-
- if ($newObject instanceof DateTimeInterface || $newObject instanceof DateTimeZone) {
- return $newObject;
- }
-
- foreach (ReflectionHelper::getProperties($reflectedObject) as $property) {
- $this->copyObjectProperty($newObject, $property);
- }
-
- return $newObject;
- }
-
- private function copyObjectProperty($object, ReflectionProperty $property)
- {
- // Ignore static properties
- if ($property->isStatic()) {
- return;
- }
-
- // Ignore readonly properties
- if (method_exists($property, 'isReadOnly') && $property->isReadOnly()) {
- return;
- }
-
- // Apply the filters
- foreach ($this->filters as $item) {
- /** @var Matcher $matcher */
- $matcher = $item['matcher'];
- /** @var Filter $filter */
- $filter = $item['filter'];
-
- if ($matcher->matches($object, $property->getName())) {
- $filter->apply(
- $object,
- $property->getName(),
- function ($object) {
- return $this->recursiveCopy($object);
- }
- );
-
- if ($filter instanceof ChainableFilter) {
- continue;
- }
-
- // If a filter matches, we stop processing this property
- return;
- }
- }
-
- $property->setAccessible(true);
-
- // Ignore uninitialized properties (for PHP >7.4)
- if (method_exists($property, 'isInitialized') && !$property->isInitialized($object)) {
- return;
- }
-
- $propertyValue = $property->getValue($object);
-
- // Copy the property
- $property->setValue($object, $this->recursiveCopy($propertyValue));
- }
-
- /**
- * Returns first filter that matches variable, `null` if no such filter found.
- *
- * @param array $filterRecords Associative array with 2 members: 'filter' with value of type {@see TypeFilter} and
- * 'matcher' with value of type {@see TypeMatcher}
- * @param mixed $var
- *
- * @return TypeFilter|null
- */
- private function getFirstMatchedTypeFilter(array $filterRecords, $var)
- {
- $matched = $this->first(
- $filterRecords,
- function (array $record) use ($var) {
- /* @var TypeMatcher $matcher */
- $matcher = $record['matcher'];
-
- return $matcher->matches($var);
- }
- );
-
- return isset($matched) ? $matched['filter'] : null;
- }
-
- /**
- * Returns first element that matches predicate, `null` if no such element found.
- *
- * @param array $elements Array of ['filter' => Filter, 'matcher' => Matcher] pairs.
- * @param callable $predicate Predicate arguments are: element.
- *
- * @return array|null Associative array with 2 members: 'filter' with value of type {@see TypeFilter} and 'matcher'
- * with value of type {@see TypeMatcher} or `null`.
- */
- private function first(array $elements, callable $predicate)
- {
- foreach ($elements as $element) {
- if (call_user_func($predicate, $element)) {
- return $element;
- }
- }
-
- return null;
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Exception/CloneException.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Exception/CloneException.php
deleted file mode 100644
index c046706a..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Exception/CloneException.php
+++ /dev/null
@@ -1,9 +0,0 @@
-filter = $filter;
- }
-
- public function apply($object, $property, $objectCopier)
- {
- $this->filter->apply($object, $property, $objectCopier);
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineCollectionFilter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineCollectionFilter.php
deleted file mode 100644
index e6d93771..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineCollectionFilter.php
+++ /dev/null
@@ -1,33 +0,0 @@
-setAccessible(true);
- $oldCollection = $reflectionProperty->getValue($object);
-
- $newCollection = $oldCollection->map(
- function ($item) use ($objectCopier) {
- return $objectCopier($item);
- }
- );
-
- $reflectionProperty->setValue($object, $newCollection);
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineEmptyCollectionFilter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineEmptyCollectionFilter.php
deleted file mode 100644
index 7b33fd54..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineEmptyCollectionFilter.php
+++ /dev/null
@@ -1,28 +0,0 @@
-setAccessible(true);
-
- $reflectionProperty->setValue($object, new ArrayCollection());
- }
-}
\ No newline at end of file
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineProxyFilter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineProxyFilter.php
deleted file mode 100644
index 8bee8f76..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineProxyFilter.php
+++ /dev/null
@@ -1,22 +0,0 @@
-__load();
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Filter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Filter.php
deleted file mode 100644
index 85ba18ce..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Filter.php
+++ /dev/null
@@ -1,18 +0,0 @@
-callback = $callable;
- }
-
- /**
- * Replaces the object property by the result of the callback called with the object property.
- *
- * {@inheritdoc}
- */
- public function apply($object, $property, $objectCopier)
- {
- $reflectionProperty = ReflectionHelper::getProperty($object, $property);
- $reflectionProperty->setAccessible(true);
-
- $value = call_user_func($this->callback, $reflectionProperty->getValue($object));
-
- $reflectionProperty->setValue($object, $value);
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/SetNullFilter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/SetNullFilter.php
deleted file mode 100644
index bea86b88..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Filter/SetNullFilter.php
+++ /dev/null
@@ -1,24 +0,0 @@
-setAccessible(true);
- $reflectionProperty->setValue($object, null);
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php
deleted file mode 100644
index c5887b19..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php
+++ /dev/null
@@ -1,22 +0,0 @@
-class = $class;
- $this->property = $property;
- }
-
- /**
- * Matches a specific property of a specific class.
- *
- * {@inheritdoc}
- */
- public function matches($object, $property)
- {
- return ($object instanceof $this->class) && $property == $this->property;
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyNameMatcher.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyNameMatcher.php
deleted file mode 100644
index c8ec0d2b..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyNameMatcher.php
+++ /dev/null
@@ -1,32 +0,0 @@
-property = $property;
- }
-
- /**
- * Matches a property by its name.
- *
- * {@inheritdoc}
- */
- public function matches($object, $property)
- {
- return $property == $this->property;
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyTypeMatcher.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyTypeMatcher.php
deleted file mode 100644
index c7f46908..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyTypeMatcher.php
+++ /dev/null
@@ -1,52 +0,0 @@
-propertyType = $propertyType;
- }
-
- /**
- * {@inheritdoc}
- */
- public function matches($object, $property)
- {
- try {
- $reflectionProperty = ReflectionHelper::getProperty($object, $property);
- } catch (ReflectionException $exception) {
- return false;
- }
-
- $reflectionProperty->setAccessible(true);
-
- // Uninitialized properties (for PHP >7.4)
- if (method_exists($reflectionProperty, 'isInitialized') && !$reflectionProperty->isInitialized($object)) {
- // null instanceof $this->propertyType
- return false;
- }
-
- return $reflectionProperty->getValue($object) instanceof $this->propertyType;
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Reflection/ReflectionHelper.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Reflection/ReflectionHelper.php
deleted file mode 100644
index 742410cb..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/Reflection/ReflectionHelper.php
+++ /dev/null
@@ -1,78 +0,0 @@
-getProperties() does not return private properties from ancestor classes.
- *
- * @author muratyaman@gmail.com
- * @see http://php.net/manual/en/reflectionclass.getproperties.php
- *
- * @param ReflectionClass $ref
- *
- * @return ReflectionProperty[]
- */
- public static function getProperties(ReflectionClass $ref)
- {
- $props = $ref->getProperties();
- $propsArr = array();
-
- foreach ($props as $prop) {
- $propertyName = $prop->getName();
- $propsArr[$propertyName] = $prop;
- }
-
- if ($parentClass = $ref->getParentClass()) {
- $parentPropsArr = self::getProperties($parentClass);
- foreach ($propsArr as $key => $property) {
- $parentPropsArr[$key] = $property;
- }
-
- return $parentPropsArr;
- }
-
- return $propsArr;
- }
-
- /**
- * Retrieves property by name from object and all its ancestors.
- *
- * @param object|string $object
- * @param string $name
- *
- * @throws PropertyException
- * @throws ReflectionException
- *
- * @return ReflectionProperty
- */
- public static function getProperty($object, $name)
- {
- $reflection = is_object($object) ? new ReflectionObject($object) : new ReflectionClass($object);
-
- if ($reflection->hasProperty($name)) {
- return $reflection->getProperty($name);
- }
-
- if ($parentClass = $reflection->getParentClass()) {
- return self::getProperty($parentClass->getName(), $name);
- }
-
- throw new PropertyException(
- sprintf(
- 'The class "%s" doesn\'t have a property with the given name: "%s".',
- is_object($object) ? get_class($object) : $object,
- $name
- )
- );
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DateIntervalFilter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DateIntervalFilter.php
deleted file mode 100644
index becd1cff..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DateIntervalFilter.php
+++ /dev/null
@@ -1,33 +0,0 @@
- $propertyValue) {
- $copy->{$propertyName} = $propertyValue;
- }
-
- return $copy;
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DatePeriodFilter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DatePeriodFilter.php
deleted file mode 100644
index 6bd2f7e5..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DatePeriodFilter.php
+++ /dev/null
@@ -1,42 +0,0 @@
-= 80200 && $element->include_end_date) {
- $options |= DatePeriod::INCLUDE_END_DATE;
- }
- if (!$element->include_start_date) {
- $options |= DatePeriod::EXCLUDE_START_DATE;
- }
-
- if ($element->getEndDate()) {
- return new DatePeriod($element->getStartDate(), $element->getDateInterval(), $element->getEndDate(), $options);
- }
-
- if (PHP_VERSION_ID >= 70217) {
- $recurrences = $element->getRecurrences();
- } else {
- $recurrences = $element->recurrences - $element->include_start_date;
- }
-
- return new DatePeriod($element->getStartDate(), $element->getDateInterval(), $recurrences, $options);
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ReplaceFilter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ReplaceFilter.php
deleted file mode 100644
index 164f8b8e..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ReplaceFilter.php
+++ /dev/null
@@ -1,30 +0,0 @@
-callback = $callable;
- }
-
- /**
- * {@inheritdoc}
- */
- public function apply($element)
- {
- return call_user_func($this->callback, $element);
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ShallowCopyFilter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ShallowCopyFilter.php
deleted file mode 100644
index a5fbd7a2..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ShallowCopyFilter.php
+++ /dev/null
@@ -1,17 +0,0 @@
-copier = $copier;
- }
-
- /**
- * {@inheritdoc}
- */
- public function apply($arrayObject)
- {
- $clone = clone $arrayObject;
- foreach ($arrayObject->getArrayCopy() as $k => $v) {
- $clone->offsetSet($k, $this->copier->copy($v));
- }
-
- return $clone;
- }
-}
-
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php
deleted file mode 100644
index c5644cff..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php
+++ /dev/null
@@ -1,10 +0,0 @@
-copier = $copier;
- }
-
- /**
- * {@inheritdoc}
- */
- public function apply($element)
- {
- $newElement = clone $element;
-
- $copy = $this->createCopyClosure();
-
- return $copy($newElement);
- }
-
- private function createCopyClosure()
- {
- $copier = $this->copier;
-
- $copy = function (SplDoublyLinkedList $list) use ($copier) {
- // Replace each element in the list with a deep copy of itself
- for ($i = 1; $i <= $list->count(); $i++) {
- $copy = $copier->recursiveCopy($list->shift());
-
- $list->push($copy);
- }
-
- return $list;
- };
-
- return Closure::bind($copy, null, DeepCopy::class);
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/TypeFilter.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/TypeFilter.php
deleted file mode 100644
index 5785a7da..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/TypeFilter.php
+++ /dev/null
@@ -1,13 +0,0 @@
-type = $type;
- }
-
- /**
- * @param mixed $element
- *
- * @return boolean
- */
- public function matches($element)
- {
- return is_object($element) ? is_a($element, $this->type) : gettype($element) === $this->type;
- }
-}
diff --git a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php b/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php
deleted file mode 100644
index 55dcc926..00000000
--- a/wordpress-dev/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php
+++ /dev/null
@@ -1,20 +0,0 @@
-copy($value);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/LICENSE b/wordpress-dev/vendor/nikic/php-parser/LICENSE
deleted file mode 100644
index 2e567183..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/LICENSE
+++ /dev/null
@@ -1,29 +0,0 @@
-BSD 3-Clause License
-
-Copyright (c) 2011, Nikita Popov
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-3. Neither the name of the copyright holder nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/wordpress-dev/vendor/nikic/php-parser/README.md b/wordpress-dev/vendor/nikic/php-parser/README.md
deleted file mode 100644
index edb3ed32..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/README.md
+++ /dev/null
@@ -1,233 +0,0 @@
-PHP Parser
-==========
-
-[](https://coveralls.io/github/nikic/PHP-Parser?branch=master)
-
-This is a PHP parser written in PHP. Its purpose is to simplify static code analysis and
-manipulation.
-
-[**Documentation for version 5.x**][doc_master] (current; for running on PHP >= 7.4; for parsing PHP 7.0 to PHP 8.4, with limited support for parsing PHP 5.x).
-
-[Documentation for version 4.x][doc_4_x] (supported; for running on PHP >= 7.0; for parsing PHP 5.2 to PHP 8.3).
-
-Features
---------
-
-The main features provided by this library are:
-
- * Parsing PHP 7, and PHP 8 code into an abstract syntax tree (AST).
- * Invalid code can be parsed into a partial AST.
- * The AST contains accurate location information.
- * Dumping the AST in human-readable form.
- * Converting an AST back to PHP code.
- * Formatting can be preserved for partially changed ASTs.
- * Infrastructure to traverse and modify ASTs.
- * Resolution of namespaced names.
- * Evaluation of constant expressions.
- * Builders to simplify AST construction for code generation.
- * Converting an AST into JSON and back.
-
-Quick Start
------------
-
-Install the library using [composer](https://getcomposer.org):
-
- php composer.phar require nikic/php-parser
-
-Parse some PHP code into an AST and dump the result in human-readable form:
-
-```php
-createForNewestSupportedVersion();
-try {
- $ast = $parser->parse($code);
-} catch (Error $error) {
- echo "Parse error: {$error->getMessage()}\n";
- return;
-}
-
-$dumper = new NodeDumper;
-echo $dumper->dump($ast) . "\n";
-```
-
-This dumps an AST looking something like this:
-
-```
-array(
- 0: Stmt_Function(
- attrGroups: array(
- )
- byRef: false
- name: Identifier(
- name: test
- )
- params: array(
- 0: Param(
- attrGroups: array(
- )
- flags: 0
- type: null
- byRef: false
- variadic: false
- var: Expr_Variable(
- name: foo
- )
- default: null
- )
- )
- returnType: null
- stmts: array(
- 0: Stmt_Expression(
- expr: Expr_FuncCall(
- name: Name(
- name: var_dump
- )
- args: array(
- 0: Arg(
- name: null
- value: Expr_Variable(
- name: foo
- )
- byRef: false
- unpack: false
- )
- )
- )
- )
- )
- )
-)
-```
-
-Let's traverse the AST and perform some kind of modification. For example, drop all function bodies:
-
-```php
-use PhpParser\Node;
-use PhpParser\Node\Stmt\Function_;
-use PhpParser\NodeTraverser;
-use PhpParser\NodeVisitorAbstract;
-
-$traverser = new NodeTraverser();
-$traverser->addVisitor(new class extends NodeVisitorAbstract {
- public function enterNode(Node $node) {
- if ($node instanceof Function_) {
- // Clean out the function body
- $node->stmts = [];
- }
- }
-});
-
-$ast = $traverser->traverse($ast);
-echo $dumper->dump($ast) . "\n";
-```
-
-This gives us an AST where the `Function_::$stmts` are empty:
-
-```
-array(
- 0: Stmt_Function(
- attrGroups: array(
- )
- byRef: false
- name: Identifier(
- name: test
- )
- params: array(
- 0: Param(
- attrGroups: array(
- )
- type: null
- byRef: false
- variadic: false
- var: Expr_Variable(
- name: foo
- )
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
-)
-```
-
-Finally, we can convert the new AST back to PHP code:
-
-```php
-use PhpParser\PrettyPrinter;
-
-$prettyPrinter = new PrettyPrinter\Standard;
-echo $prettyPrinter->prettyPrintFile($ast);
-```
-
-This gives us our original code, minus the `var_dump()` call inside the function:
-
-```php
-createForVersion($attributes['version']);
-$dumper = new PhpParser\NodeDumper([
- 'dumpComments' => true,
- 'dumpPositions' => $attributes['with-positions'],
-]);
-$prettyPrinter = new PhpParser\PrettyPrinter\Standard;
-
-$traverser = new PhpParser\NodeTraverser();
-$traverser->addVisitor(new PhpParser\NodeVisitor\NameResolver);
-
-foreach ($files as $file) {
- if ($file === '-') {
- $code = file_get_contents('php://stdin');
- fwrite(STDERR, "====> Stdin:\n");
- } else if (strpos($file, ' Code $code\n");
- } else {
- if (!file_exists($file)) {
- fwrite(STDERR, "File $file does not exist.\n");
- exit(1);
- }
-
- $code = file_get_contents($file);
- fwrite(STDERR, "====> File $file:\n");
- }
-
- if ($attributes['with-recovery']) {
- $errorHandler = new PhpParser\ErrorHandler\Collecting;
- $stmts = $parser->parse($code, $errorHandler);
- foreach ($errorHandler->getErrors() as $error) {
- $message = formatErrorMessage($error, $code, $attributes['with-column-info']);
- fwrite(STDERR, $message . "\n");
- }
- if (null === $stmts) {
- continue;
- }
- } else {
- try {
- $stmts = $parser->parse($code);
- } catch (PhpParser\Error $error) {
- $message = formatErrorMessage($error, $code, $attributes['with-column-info']);
- fwrite(STDERR, $message . "\n");
- exit(1);
- }
- }
-
- foreach ($operations as $operation) {
- if ('dump' === $operation) {
- fwrite(STDERR, "==> Node dump:\n");
- echo $dumper->dump($stmts, $code), "\n";
- } elseif ('pretty-print' === $operation) {
- fwrite(STDERR, "==> Pretty print:\n");
- echo $prettyPrinter->prettyPrintFile($stmts), "\n";
- } elseif ('json-dump' === $operation) {
- fwrite(STDERR, "==> JSON dump:\n");
- echo json_encode($stmts, JSON_PRETTY_PRINT), "\n";
- } elseif ('var-dump' === $operation) {
- fwrite(STDERR, "==> var_dump():\n");
- var_dump($stmts);
- } elseif ('resolve-names' === $operation) {
- fwrite(STDERR, "==> Resolved names.\n");
- $stmts = $traverser->traverse($stmts);
- }
- }
-}
-
-function formatErrorMessage(PhpParser\Error $e, $code, $withColumnInfo) {
- if ($withColumnInfo && $e->hasColumnInfo()) {
- return $e->getMessageWithColumnInfo($code);
- } else {
- return $e->getMessage();
- }
-}
-
-function showHelp($error = '') {
- if ($error) {
- fwrite(STDERR, $error . "\n\n");
- }
- fwrite($error ? STDERR : STDOUT, <<<'OUTPUT'
-Usage: php-parse [operations] file1.php [file2.php ...]
- or: php-parse [operations] " false,
- 'with-positions' => false,
- 'with-recovery' => false,
- 'version' => PhpParser\PhpVersion::getNewestSupported(),
- ];
-
- array_shift($args);
- $parseOptions = true;
- foreach ($args as $arg) {
- if (!$parseOptions) {
- $files[] = $arg;
- continue;
- }
-
- switch ($arg) {
- case '--dump':
- case '-d':
- $operations[] = 'dump';
- break;
- case '--pretty-print':
- case '-p':
- $operations[] = 'pretty-print';
- break;
- case '--json-dump':
- case '-j':
- $operations[] = 'json-dump';
- break;
- case '--var-dump':
- $operations[] = 'var-dump';
- break;
- case '--resolve-names':
- case '-N';
- $operations[] = 'resolve-names';
- break;
- case '--with-column-info':
- case '-c';
- $attributes['with-column-info'] = true;
- break;
- case '--with-positions':
- case '-P':
- $attributes['with-positions'] = true;
- break;
- case '--with-recovery':
- case '-r':
- $attributes['with-recovery'] = true;
- break;
- case '--help':
- case '-h';
- showHelp();
- break;
- case '--':
- $parseOptions = false;
- break;
- default:
- if (preg_match('/^--version=(.*)$/', $arg, $matches)) {
- $attributes['version'] = PhpParser\PhpVersion::fromString($matches[1]);
- } elseif ($arg[0] === '-' && \strlen($arg[0]) > 1) {
- showHelp("Invalid operation $arg.");
- } else {
- $files[] = $arg;
- }
- }
- }
-
- return [$operations, $files, $attributes];
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/composer.json b/wordpress-dev/vendor/nikic/php-parser/composer.json
deleted file mode 100644
index b52f3ee5..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/composer.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "nikic/php-parser",
- "type": "library",
- "description": "A PHP parser written in PHP",
- "keywords": [
- "php",
- "parser"
- ],
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Nikita Popov"
- }
- ],
- "require": {
- "php": ">=7.4",
- "ext-tokenizer": "*",
- "ext-json": "*",
- "ext-ctype": "*"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.0",
- "ircmaxell/php-yacc": "^0.0.7"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "5.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "PhpParser\\": "lib/PhpParser"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "PhpParser\\": "test/PhpParser/"
- }
- },
- "bin": [
- "bin/php-parse"
- ]
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder.php
deleted file mode 100644
index d6aa124c..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder.php
+++ /dev/null
@@ -1,12 +0,0 @@
- */
- protected array $attributes = [];
- /** @var list */
- protected array $constants = [];
-
- /** @var list */
- protected array $attributeGroups = [];
- /** @var Identifier|Node\Name|Node\ComplexType|null */
- protected ?Node $type = null;
-
- /**
- * Creates a class constant builder
- *
- * @param string|Identifier $name Name
- * @param Node\Expr|bool|null|int|float|string|array|\UnitEnum $value Value
- */
- public function __construct($name, $value) {
- $this->constants = [new Const_($name, BuilderHelpers::normalizeValue($value))];
- }
-
- /**
- * Add another constant to const group
- *
- * @param string|Identifier $name Name
- * @param Node\Expr|bool|null|int|float|string|array|\UnitEnum $value Value
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addConst($name, $value) {
- $this->constants[] = new Const_($name, BuilderHelpers::normalizeValue($value));
-
- return $this;
- }
-
- /**
- * Makes the constant public.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePublic() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
-
- return $this;
- }
-
- /**
- * Makes the constant protected.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeProtected() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
-
- return $this;
- }
-
- /**
- * Makes the constant private.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePrivate() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
-
- return $this;
- }
-
- /**
- * Makes the constant final.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeFinal() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL);
-
- return $this;
- }
-
- /**
- * Sets doc comment for the constant.
- *
- * @param PhpParser\Comment\Doc|string $docComment Doc comment to set
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDocComment($docComment) {
- $this->attributes = [
- 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
- ];
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Sets the constant type.
- *
- * @param string|Node\Name|Identifier|Node\ComplexType $type
- *
- * @return $this
- */
- public function setType($type) {
- $this->type = BuilderHelpers::normalizeType($type);
-
- return $this;
- }
-
- /**
- * Returns the built class node.
- *
- * @return Stmt\ClassConst The built constant node
- */
- public function getNode(): PhpParser\Node {
- return new Stmt\ClassConst(
- $this->constants,
- $this->flags,
- $this->attributes,
- $this->attributeGroups,
- $this->type
- );
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Class_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Class_.php
deleted file mode 100644
index 6f394315..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Class_.php
+++ /dev/null
@@ -1,151 +0,0 @@
- */
- protected array $implements = [];
- protected int $flags = 0;
- /** @var list */
- protected array $uses = [];
- /** @var list */
- protected array $constants = [];
- /** @var list */
- protected array $properties = [];
- /** @var list */
- protected array $methods = [];
- /** @var list */
- protected array $attributeGroups = [];
-
- /**
- * Creates a class builder.
- *
- * @param string $name Name of the class
- */
- public function __construct(string $name) {
- $this->name = $name;
- }
-
- /**
- * Extends a class.
- *
- * @param Name|string $class Name of class to extend
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function extend($class) {
- $this->extends = BuilderHelpers::normalizeName($class);
-
- return $this;
- }
-
- /**
- * Implements one or more interfaces.
- *
- * @param Name|string ...$interfaces Names of interfaces to implement
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function implement(...$interfaces) {
- foreach ($interfaces as $interface) {
- $this->implements[] = BuilderHelpers::normalizeName($interface);
- }
-
- return $this;
- }
-
- /**
- * Makes the class abstract.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeAbstract() {
- $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::ABSTRACT);
-
- return $this;
- }
-
- /**
- * Makes the class final.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeFinal() {
- $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::FINAL);
-
- return $this;
- }
-
- /**
- * Makes the class readonly.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeReadonly() {
- $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::READONLY);
-
- return $this;
- }
-
- /**
- * Adds a statement.
- *
- * @param Stmt|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $stmt = BuilderHelpers::normalizeNode($stmt);
-
- if ($stmt instanceof Stmt\Property) {
- $this->properties[] = $stmt;
- } elseif ($stmt instanceof Stmt\ClassMethod) {
- $this->methods[] = $stmt;
- } elseif ($stmt instanceof Stmt\TraitUse) {
- $this->uses[] = $stmt;
- } elseif ($stmt instanceof Stmt\ClassConst) {
- $this->constants[] = $stmt;
- } else {
- throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType()));
- }
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Returns the built class node.
- *
- * @return Stmt\Class_ The built class node
- */
- public function getNode(): PhpParser\Node {
- return new Stmt\Class_($this->name, [
- 'flags' => $this->flags,
- 'extends' => $this->extends,
- 'implements' => $this->implements,
- 'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
- 'attrGroups' => $this->attributeGroups,
- ], $this->attributes);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php
deleted file mode 100644
index 488b7213..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php
+++ /dev/null
@@ -1,50 +0,0 @@
- */
- protected array $attributes = [];
-
- /**
- * Adds a statement.
- *
- * @param PhpParser\Node\Stmt|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- abstract public function addStmt($stmt);
-
- /**
- * Adds multiple statements.
- *
- * @param (PhpParser\Node\Stmt|PhpParser\Builder)[] $stmts The statements to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmts(array $stmts) {
- foreach ($stmts as $stmt) {
- $this->addStmt($stmt);
- }
-
- return $this;
- }
-
- /**
- * Sets doc comment for the declaration.
- *
- * @param PhpParser\Comment\Doc|string $docComment Doc comment to set
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDocComment($docComment) {
- $this->attributes['comments'] = [
- BuilderHelpers::normalizeDocComment($docComment)
- ];
-
- return $this;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/EnumCase.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/EnumCase.php
deleted file mode 100644
index c766321b..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/EnumCase.php
+++ /dev/null
@@ -1,86 +0,0 @@
- */
- protected array $attributes = [];
-
- /** @var list */
- protected array $attributeGroups = [];
-
- /**
- * Creates an enum case builder.
- *
- * @param string|Identifier $name Name
- */
- public function __construct($name) {
- $this->name = $name;
- }
-
- /**
- * Sets the value.
- *
- * @param Node\Expr|string|int $value
- *
- * @return $this
- */
- public function setValue($value) {
- $this->value = BuilderHelpers::normalizeValue($value);
-
- return $this;
- }
-
- /**
- * Sets doc comment for the constant.
- *
- * @param PhpParser\Comment\Doc|string $docComment Doc comment to set
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDocComment($docComment) {
- $this->attributes = [
- 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
- ];
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Returns the built enum case node.
- *
- * @return Stmt\EnumCase The built constant node
- */
- public function getNode(): PhpParser\Node {
- return new Stmt\EnumCase(
- $this->name,
- $this->value,
- $this->attributeGroups,
- $this->attributes
- );
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Enum_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Enum_.php
deleted file mode 100644
index c00df03f..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Enum_.php
+++ /dev/null
@@ -1,116 +0,0 @@
- */
- protected array $implements = [];
- /** @var list */
- protected array $uses = [];
- /** @var list */
- protected array $enumCases = [];
- /** @var list */
- protected array $constants = [];
- /** @var list */
- protected array $methods = [];
- /** @var list */
- protected array $attributeGroups = [];
-
- /**
- * Creates an enum builder.
- *
- * @param string $name Name of the enum
- */
- public function __construct(string $name) {
- $this->name = $name;
- }
-
- /**
- * Sets the scalar type.
- *
- * @param string|Identifier $scalarType
- *
- * @return $this
- */
- public function setScalarType($scalarType) {
- $this->scalarType = BuilderHelpers::normalizeType($scalarType);
-
- return $this;
- }
-
- /**
- * Implements one or more interfaces.
- *
- * @param Name|string ...$interfaces Names of interfaces to implement
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function implement(...$interfaces) {
- foreach ($interfaces as $interface) {
- $this->implements[] = BuilderHelpers::normalizeName($interface);
- }
-
- return $this;
- }
-
- /**
- * Adds a statement.
- *
- * @param Stmt|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $stmt = BuilderHelpers::normalizeNode($stmt);
-
- if ($stmt instanceof Stmt\EnumCase) {
- $this->enumCases[] = $stmt;
- } elseif ($stmt instanceof Stmt\ClassMethod) {
- $this->methods[] = $stmt;
- } elseif ($stmt instanceof Stmt\TraitUse) {
- $this->uses[] = $stmt;
- } elseif ($stmt instanceof Stmt\ClassConst) {
- $this->constants[] = $stmt;
- } else {
- throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType()));
- }
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Returns the built class node.
- *
- * @return Stmt\Enum_ The built enum node
- */
- public function getNode(): PhpParser\Node {
- return new Stmt\Enum_($this->name, [
- 'scalarType' => $this->scalarType,
- 'implements' => $this->implements,
- 'stmts' => array_merge($this->uses, $this->enumCases, $this->constants, $this->methods),
- 'attrGroups' => $this->attributeGroups,
- ], $this->attributes);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php
deleted file mode 100644
index ff79cb6b..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php
+++ /dev/null
@@ -1,73 +0,0 @@
-returnByRef = true;
-
- return $this;
- }
-
- /**
- * Adds a parameter.
- *
- * @param Node\Param|Param $param The parameter to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addParam($param) {
- $param = BuilderHelpers::normalizeNode($param);
-
- if (!$param instanceof Node\Param) {
- throw new \LogicException(sprintf('Expected parameter node, got "%s"', $param->getType()));
- }
-
- $this->params[] = $param;
-
- return $this;
- }
-
- /**
- * Adds multiple parameters.
- *
- * @param (Node\Param|Param)[] $params The parameters to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addParams(array $params) {
- foreach ($params as $param) {
- $this->addParam($param);
- }
-
- return $this;
- }
-
- /**
- * Sets the return type for PHP 7.
- *
- * @param string|Node\Name|Node\Identifier|Node\ComplexType $type
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setReturnType($type) {
- $this->returnType = BuilderHelpers::normalizeType($type);
-
- return $this;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php
deleted file mode 100644
index 48f5f693..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php
+++ /dev/null
@@ -1,67 +0,0 @@
- */
- protected array $stmts = [];
-
- /** @var list */
- protected array $attributeGroups = [];
-
- /**
- * Creates a function builder.
- *
- * @param string $name Name of the function
- */
- public function __construct(string $name) {
- $this->name = $name;
- }
-
- /**
- * Adds a statement.
- *
- * @param Node|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $this->stmts[] = BuilderHelpers::normalizeStmt($stmt);
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Returns the built function node.
- *
- * @return Stmt\Function_ The built function node
- */
- public function getNode(): Node {
- return new Stmt\Function_($this->name, [
- 'byRef' => $this->returnByRef,
- 'params' => $this->params,
- 'returnType' => $this->returnType,
- 'stmts' => $this->stmts,
- 'attrGroups' => $this->attributeGroups,
- ], $this->attributes);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php
deleted file mode 100644
index 13dd3f7f..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php
+++ /dev/null
@@ -1,94 +0,0 @@
- */
- protected array $extends = [];
- /** @var list */
- protected array $constants = [];
- /** @var list */
- protected array $methods = [];
- /** @var list */
- protected array $attributeGroups = [];
-
- /**
- * Creates an interface builder.
- *
- * @param string $name Name of the interface
- */
- public function __construct(string $name) {
- $this->name = $name;
- }
-
- /**
- * Extends one or more interfaces.
- *
- * @param Name|string ...$interfaces Names of interfaces to extend
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function extend(...$interfaces) {
- foreach ($interfaces as $interface) {
- $this->extends[] = BuilderHelpers::normalizeName($interface);
- }
-
- return $this;
- }
-
- /**
- * Adds a statement.
- *
- * @param Stmt|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $stmt = BuilderHelpers::normalizeNode($stmt);
-
- if ($stmt instanceof Stmt\ClassConst) {
- $this->constants[] = $stmt;
- } elseif ($stmt instanceof Stmt\ClassMethod) {
- // we erase all statements in the body of an interface method
- $stmt->stmts = null;
- $this->methods[] = $stmt;
- } else {
- throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType()));
- }
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Returns the built interface node.
- *
- * @return Stmt\Interface_ The built interface node
- */
- public function getNode(): PhpParser\Node {
- return new Stmt\Interface_($this->name, [
- 'extends' => $this->extends,
- 'stmts' => array_merge($this->constants, $this->methods),
- 'attrGroups' => $this->attributeGroups,
- ], $this->attributes);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php
deleted file mode 100644
index 8358dbe3..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php
+++ /dev/null
@@ -1,147 +0,0 @@
-|null */
- protected ?array $stmts = [];
-
- /** @var list */
- protected array $attributeGroups = [];
-
- /**
- * Creates a method builder.
- *
- * @param string $name Name of the method
- */
- public function __construct(string $name) {
- $this->name = $name;
- }
-
- /**
- * Makes the method public.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePublic() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
-
- return $this;
- }
-
- /**
- * Makes the method protected.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeProtected() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
-
- return $this;
- }
-
- /**
- * Makes the method private.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePrivate() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
-
- return $this;
- }
-
- /**
- * Makes the method static.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeStatic() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::STATIC);
-
- return $this;
- }
-
- /**
- * Makes the method abstract.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeAbstract() {
- if (!empty($this->stmts)) {
- throw new \LogicException('Cannot make method with statements abstract');
- }
-
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::ABSTRACT);
- $this->stmts = null; // abstract methods don't have statements
-
- return $this;
- }
-
- /**
- * Makes the method final.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeFinal() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL);
-
- return $this;
- }
-
- /**
- * Adds a statement.
- *
- * @param Node|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- if (null === $this->stmts) {
- throw new \LogicException('Cannot add statements to an abstract method');
- }
-
- $this->stmts[] = BuilderHelpers::normalizeStmt($stmt);
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Returns the built method node.
- *
- * @return Stmt\ClassMethod The built method node
- */
- public function getNode(): Node {
- return new Stmt\ClassMethod($this->name, [
- 'flags' => $this->flags,
- 'byRef' => $this->returnByRef,
- 'params' => $this->params,
- 'returnType' => $this->returnType,
- 'stmts' => $this->stmts,
- 'attrGroups' => $this->attributeGroups,
- ], $this->attributes);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php
deleted file mode 100644
index 80fe6f84..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php
+++ /dev/null
@@ -1,45 +0,0 @@
-name = null !== $name ? BuilderHelpers::normalizeName($name) : null;
- }
-
- /**
- * Adds a statement.
- *
- * @param Node|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $this->stmts[] = BuilderHelpers::normalizeStmt($stmt);
-
- return $this;
- }
-
- /**
- * Returns the built node.
- *
- * @return Stmt\Namespace_ The built node
- */
- public function getNode(): Node {
- return new Stmt\Namespace_($this->name, $this->stmts, $this->attributes);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php
deleted file mode 100644
index 324a32b0..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php
+++ /dev/null
@@ -1,171 +0,0 @@
- */
- protected array $attributeGroups = [];
-
- /**
- * Creates a parameter builder.
- *
- * @param string $name Name of the parameter
- */
- public function __construct(string $name) {
- $this->name = $name;
- }
-
- /**
- * Sets default value for the parameter.
- *
- * @param mixed $value Default value to use
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDefault($value) {
- $this->default = BuilderHelpers::normalizeValue($value);
-
- return $this;
- }
-
- /**
- * Sets type for the parameter.
- *
- * @param string|Node\Name|Node\Identifier|Node\ComplexType $type Parameter type
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setType($type) {
- $this->type = BuilderHelpers::normalizeType($type);
- if ($this->type == 'void') {
- throw new \LogicException('Parameter type cannot be void');
- }
-
- return $this;
- }
-
- /**
- * Make the parameter accept the value by reference.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeByRef() {
- $this->byRef = true;
-
- return $this;
- }
-
- /**
- * Make the parameter variadic
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeVariadic() {
- $this->variadic = true;
-
- return $this;
- }
-
- /**
- * Makes the (promoted) parameter public.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePublic() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
-
- return $this;
- }
-
- /**
- * Makes the (promoted) parameter protected.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeProtected() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
-
- return $this;
- }
-
- /**
- * Makes the (promoted) parameter private.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePrivate() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
-
- return $this;
- }
-
- /**
- * Makes the (promoted) parameter readonly.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeReadonly() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::READONLY);
-
- return $this;
- }
-
- /**
- * Gives the promoted property private(set) visibility.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePrivateSet() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE_SET);
-
- return $this;
- }
-
- /**
- * Gives the promoted property protected(set) visibility.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeProtectedSet() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED_SET);
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Returns the built parameter node.
- *
- * @return Node\Param The built parameter node
- */
- public function getNode(): Node {
- return new Node\Param(
- new Node\Expr\Variable($this->name),
- $this->default, $this->type, $this->byRef, $this->variadic, [], $this->flags, $this->attributeGroups
- );
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php
deleted file mode 100644
index c80fe481..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php
+++ /dev/null
@@ -1,223 +0,0 @@
- */
- protected array $attributes = [];
- /** @var null|Identifier|Name|ComplexType */
- protected ?Node $type = null;
- /** @var list */
- protected array $attributeGroups = [];
- /** @var list */
- protected array $hooks = [];
-
- /**
- * Creates a property builder.
- *
- * @param string $name Name of the property
- */
- public function __construct(string $name) {
- $this->name = $name;
- }
-
- /**
- * Makes the property public.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePublic() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
-
- return $this;
- }
-
- /**
- * Makes the property protected.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeProtected() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
-
- return $this;
- }
-
- /**
- * Makes the property private.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePrivate() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
-
- return $this;
- }
-
- /**
- * Makes the property static.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeStatic() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::STATIC);
-
- return $this;
- }
-
- /**
- * Makes the property readonly.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeReadonly() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::READONLY);
-
- return $this;
- }
-
- /**
- * Makes the property abstract. Requires at least one property hook to be specified as well.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeAbstract() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::ABSTRACT);
-
- return $this;
- }
-
- /**
- * Makes the property final.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeFinal() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL);
-
- return $this;
- }
-
- /**
- * Gives the property private(set) visibility.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePrivateSet() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE_SET);
-
- return $this;
- }
-
- /**
- * Gives the property protected(set) visibility.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeProtectedSet() {
- $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED_SET);
-
- return $this;
- }
-
- /**
- * Sets default value for the property.
- *
- * @param mixed $value Default value to use
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDefault($value) {
- $this->default = BuilderHelpers::normalizeValue($value);
-
- return $this;
- }
-
- /**
- * Sets doc comment for the property.
- *
- * @param PhpParser\Comment\Doc|string $docComment Doc comment to set
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDocComment($docComment) {
- $this->attributes = [
- 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
- ];
-
- return $this;
- }
-
- /**
- * Sets the property type for PHP 7.4+.
- *
- * @param string|Name|Identifier|ComplexType $type
- *
- * @return $this
- */
- public function setType($type) {
- $this->type = BuilderHelpers::normalizeType($type);
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Adds a property hook.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addHook(Node\PropertyHook $hook) {
- $this->hooks[] = $hook;
-
- return $this;
- }
-
- /**
- * Returns the built class node.
- *
- * @return Stmt\Property The built property node
- */
- public function getNode(): PhpParser\Node {
- if ($this->flags & Modifiers::ABSTRACT && !$this->hooks) {
- throw new PhpParser\Error('Only hooked properties may be declared abstract');
- }
-
- return new Stmt\Property(
- $this->flags !== 0 ? $this->flags : Modifiers::PUBLIC,
- [
- new Node\PropertyItem($this->name, $this->default)
- ],
- $this->attributes,
- $this->type,
- $this->attributeGroups,
- $this->hooks
- );
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/TraitUse.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/TraitUse.php
deleted file mode 100644
index cf21c821..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/TraitUse.php
+++ /dev/null
@@ -1,65 +0,0 @@
-and($trait);
- }
- }
-
- /**
- * Adds used trait.
- *
- * @param Node\Name|string $trait Trait name
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function and($trait) {
- $this->traits[] = BuilderHelpers::normalizeName($trait);
- return $this;
- }
-
- /**
- * Adds trait adaptation.
- *
- * @param Stmt\TraitUseAdaptation|Builder\TraitUseAdaptation $adaptation Trait adaptation
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function with($adaptation) {
- $adaptation = BuilderHelpers::normalizeNode($adaptation);
-
- if (!$adaptation instanceof Stmt\TraitUseAdaptation) {
- throw new \LogicException('Adaptation must have type TraitUseAdaptation');
- }
-
- $this->adaptations[] = $adaptation;
- return $this;
- }
-
- /**
- * Returns the built node.
- *
- * @return Node The built node
- */
- public function getNode(): Node {
- return new Stmt\TraitUse($this->traits, $this->adaptations);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/TraitUseAdaptation.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/TraitUseAdaptation.php
deleted file mode 100644
index fee09583..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/TraitUseAdaptation.php
+++ /dev/null
@@ -1,145 +0,0 @@
-type = self::TYPE_UNDEFINED;
-
- $this->trait = is_null($trait) ? null : BuilderHelpers::normalizeName($trait);
- $this->method = BuilderHelpers::normalizeIdentifier($method);
- }
-
- /**
- * Sets alias of method.
- *
- * @param Node\Identifier|string $alias Alias for adapted method
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function as($alias) {
- if ($this->type === self::TYPE_UNDEFINED) {
- $this->type = self::TYPE_ALIAS;
- }
-
- if ($this->type !== self::TYPE_ALIAS) {
- throw new \LogicException('Cannot set alias for not alias adaptation buider');
- }
-
- $this->alias = BuilderHelpers::normalizeIdentifier($alias);
- return $this;
- }
-
- /**
- * Sets adapted method public.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePublic() {
- $this->setModifier(Modifiers::PUBLIC);
- return $this;
- }
-
- /**
- * Sets adapted method protected.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeProtected() {
- $this->setModifier(Modifiers::PROTECTED);
- return $this;
- }
-
- /**
- * Sets adapted method private.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePrivate() {
- $this->setModifier(Modifiers::PRIVATE);
- return $this;
- }
-
- /**
- * Adds overwritten traits.
- *
- * @param Node\Name|string ...$traits Traits for overwrite
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function insteadof(...$traits) {
- if ($this->type === self::TYPE_UNDEFINED) {
- if (is_null($this->trait)) {
- throw new \LogicException('Precedence adaptation must have trait');
- }
-
- $this->type = self::TYPE_PRECEDENCE;
- }
-
- if ($this->type !== self::TYPE_PRECEDENCE) {
- throw new \LogicException('Cannot add overwritten traits for not precedence adaptation buider');
- }
-
- foreach ($traits as $trait) {
- $this->insteadof[] = BuilderHelpers::normalizeName($trait);
- }
-
- return $this;
- }
-
- protected function setModifier(int $modifier): void {
- if ($this->type === self::TYPE_UNDEFINED) {
- $this->type = self::TYPE_ALIAS;
- }
-
- if ($this->type !== self::TYPE_ALIAS) {
- throw new \LogicException('Cannot set access modifier for not alias adaptation buider');
- }
-
- if (is_null($this->modifier)) {
- $this->modifier = $modifier;
- } else {
- throw new \LogicException('Multiple access type modifiers are not allowed');
- }
- }
-
- /**
- * Returns the built node.
- *
- * @return Node The built node
- */
- public function getNode(): Node {
- switch ($this->type) {
- case self::TYPE_ALIAS:
- return new Stmt\TraitUseAdaptation\Alias($this->trait, $this->method, $this->modifier, $this->alias);
- case self::TYPE_PRECEDENCE:
- return new Stmt\TraitUseAdaptation\Precedence($this->trait, $this->method, $this->insteadof);
- default:
- throw new \LogicException('Type of adaptation is not defined');
- }
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Trait_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Trait_.php
deleted file mode 100644
index ffa1bd5c..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Trait_.php
+++ /dev/null
@@ -1,83 +0,0 @@
- */
- protected array $uses = [];
- /** @var list */
- protected array $constants = [];
- /** @var list */
- protected array $properties = [];
- /** @var list */
- protected array $methods = [];
- /** @var list */
- protected array $attributeGroups = [];
-
- /**
- * Creates an interface builder.
- *
- * @param string $name Name of the interface
- */
- public function __construct(string $name) {
- $this->name = $name;
- }
-
- /**
- * Adds a statement.
- *
- * @param Stmt|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $stmt = BuilderHelpers::normalizeNode($stmt);
-
- if ($stmt instanceof Stmt\Property) {
- $this->properties[] = $stmt;
- } elseif ($stmt instanceof Stmt\ClassMethod) {
- $this->methods[] = $stmt;
- } elseif ($stmt instanceof Stmt\TraitUse) {
- $this->uses[] = $stmt;
- } elseif ($stmt instanceof Stmt\ClassConst) {
- $this->constants[] = $stmt;
- } else {
- throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType()));
- }
-
- return $this;
- }
-
- /**
- * Adds an attribute group.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addAttribute($attribute) {
- $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
-
- return $this;
- }
-
- /**
- * Returns the built trait node.
- *
- * @return Stmt\Trait_ The built interface node
- */
- public function getNode(): PhpParser\Node {
- return new Stmt\Trait_(
- $this->name, [
- 'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
- 'attrGroups' => $this->attributeGroups,
- ], $this->attributes
- );
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php
deleted file mode 100644
index b82cf139..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php
+++ /dev/null
@@ -1,49 +0,0 @@
-name = BuilderHelpers::normalizeName($name);
- $this->type = $type;
- }
-
- /**
- * Sets alias for used name.
- *
- * @param string $alias Alias to use (last component of full name by default)
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function as(string $alias) {
- $this->alias = $alias;
- return $this;
- }
-
- /**
- * Returns the built node.
- *
- * @return Stmt\Use_ The built node
- */
- public function getNode(): Node {
- return new Stmt\Use_([
- new Node\UseItem($this->name, $this->alias)
- ], $this->type);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php
deleted file mode 100644
index 07642f92..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php
+++ /dev/null
@@ -1,375 +0,0 @@
-args($args)
- );
- }
-
- /**
- * Creates a namespace builder.
- *
- * @param null|string|Node\Name $name Name of the namespace
- *
- * @return Builder\Namespace_ The created namespace builder
- */
- public function namespace($name): Builder\Namespace_ {
- return new Builder\Namespace_($name);
- }
-
- /**
- * Creates a class builder.
- *
- * @param string $name Name of the class
- *
- * @return Builder\Class_ The created class builder
- */
- public function class(string $name): Builder\Class_ {
- return new Builder\Class_($name);
- }
-
- /**
- * Creates an interface builder.
- *
- * @param string $name Name of the interface
- *
- * @return Builder\Interface_ The created interface builder
- */
- public function interface(string $name): Builder\Interface_ {
- return new Builder\Interface_($name);
- }
-
- /**
- * Creates a trait builder.
- *
- * @param string $name Name of the trait
- *
- * @return Builder\Trait_ The created trait builder
- */
- public function trait(string $name): Builder\Trait_ {
- return new Builder\Trait_($name);
- }
-
- /**
- * Creates an enum builder.
- *
- * @param string $name Name of the enum
- *
- * @return Builder\Enum_ The created enum builder
- */
- public function enum(string $name): Builder\Enum_ {
- return new Builder\Enum_($name);
- }
-
- /**
- * Creates a trait use builder.
- *
- * @param Node\Name|string ...$traits Trait names
- *
- * @return Builder\TraitUse The created trait use builder
- */
- public function useTrait(...$traits): Builder\TraitUse {
- return new Builder\TraitUse(...$traits);
- }
-
- /**
- * Creates a trait use adaptation builder.
- *
- * @param Node\Name|string|null $trait Trait name
- * @param Node\Identifier|string $method Method name
- *
- * @return Builder\TraitUseAdaptation The created trait use adaptation builder
- */
- public function traitUseAdaptation($trait, $method = null): Builder\TraitUseAdaptation {
- if ($method === null) {
- $method = $trait;
- $trait = null;
- }
-
- return new Builder\TraitUseAdaptation($trait, $method);
- }
-
- /**
- * Creates a method builder.
- *
- * @param string $name Name of the method
- *
- * @return Builder\Method The created method builder
- */
- public function method(string $name): Builder\Method {
- return new Builder\Method($name);
- }
-
- /**
- * Creates a parameter builder.
- *
- * @param string $name Name of the parameter
- *
- * @return Builder\Param The created parameter builder
- */
- public function param(string $name): Builder\Param {
- return new Builder\Param($name);
- }
-
- /**
- * Creates a property builder.
- *
- * @param string $name Name of the property
- *
- * @return Builder\Property The created property builder
- */
- public function property(string $name): Builder\Property {
- return new Builder\Property($name);
- }
-
- /**
- * Creates a function builder.
- *
- * @param string $name Name of the function
- *
- * @return Builder\Function_ The created function builder
- */
- public function function(string $name): Builder\Function_ {
- return new Builder\Function_($name);
- }
-
- /**
- * Creates a namespace/class use builder.
- *
- * @param Node\Name|string $name Name of the entity (namespace or class) to alias
- *
- * @return Builder\Use_ The created use builder
- */
- public function use($name): Builder\Use_ {
- return new Builder\Use_($name, Use_::TYPE_NORMAL);
- }
-
- /**
- * Creates a function use builder.
- *
- * @param Node\Name|string $name Name of the function to alias
- *
- * @return Builder\Use_ The created use function builder
- */
- public function useFunction($name): Builder\Use_ {
- return new Builder\Use_($name, Use_::TYPE_FUNCTION);
- }
-
- /**
- * Creates a constant use builder.
- *
- * @param Node\Name|string $name Name of the const to alias
- *
- * @return Builder\Use_ The created use const builder
- */
- public function useConst($name): Builder\Use_ {
- return new Builder\Use_($name, Use_::TYPE_CONSTANT);
- }
-
- /**
- * Creates a class constant builder.
- *
- * @param string|Identifier $name Name
- * @param Node\Expr|bool|null|int|float|string|array $value Value
- *
- * @return Builder\ClassConst The created use const builder
- */
- public function classConst($name, $value): Builder\ClassConst {
- return new Builder\ClassConst($name, $value);
- }
-
- /**
- * Creates an enum case builder.
- *
- * @param string|Identifier $name Name
- *
- * @return Builder\EnumCase The created use const builder
- */
- public function enumCase($name): Builder\EnumCase {
- return new Builder\EnumCase($name);
- }
-
- /**
- * Creates node a for a literal value.
- *
- * @param Expr|bool|null|int|float|string|array|\UnitEnum $value $value
- */
- public function val($value): Expr {
- return BuilderHelpers::normalizeValue($value);
- }
-
- /**
- * Creates variable node.
- *
- * @param string|Expr $name Name
- */
- public function var($name): Expr\Variable {
- if (!\is_string($name) && !$name instanceof Expr) {
- throw new \LogicException('Variable name must be string or Expr');
- }
-
- return new Expr\Variable($name);
- }
-
- /**
- * Normalizes an argument list.
- *
- * Creates Arg nodes for all arguments and converts literal values to expressions.
- *
- * @param array $args List of arguments to normalize
- *
- * @return list
- */
- public function args(array $args): array {
- $normalizedArgs = [];
- foreach ($args as $key => $arg) {
- if (!($arg instanceof Arg)) {
- $arg = new Arg(BuilderHelpers::normalizeValue($arg));
- }
- if (\is_string($key)) {
- $arg->name = BuilderHelpers::normalizeIdentifier($key);
- }
- $normalizedArgs[] = $arg;
- }
- return $normalizedArgs;
- }
-
- /**
- * Creates a function call node.
- *
- * @param string|Name|Expr $name Function name
- * @param array $args Function arguments
- */
- public function funcCall($name, array $args = []): Expr\FuncCall {
- return new Expr\FuncCall(
- BuilderHelpers::normalizeNameOrExpr($name),
- $this->args($args)
- );
- }
-
- /**
- * Creates a method call node.
- *
- * @param Expr $var Variable the method is called on
- * @param string|Identifier|Expr $name Method name
- * @param array $args Method arguments
- */
- public function methodCall(Expr $var, $name, array $args = []): Expr\MethodCall {
- return new Expr\MethodCall(
- $var,
- BuilderHelpers::normalizeIdentifierOrExpr($name),
- $this->args($args)
- );
- }
-
- /**
- * Creates a static method call node.
- *
- * @param string|Name|Expr $class Class name
- * @param string|Identifier|Expr $name Method name
- * @param array $args Method arguments
- */
- public function staticCall($class, $name, array $args = []): Expr\StaticCall {
- return new Expr\StaticCall(
- BuilderHelpers::normalizeNameOrExpr($class),
- BuilderHelpers::normalizeIdentifierOrExpr($name),
- $this->args($args)
- );
- }
-
- /**
- * Creates an object creation node.
- *
- * @param string|Name|Expr $class Class name
- * @param array $args Constructor arguments
- */
- public function new($class, array $args = []): Expr\New_ {
- return new Expr\New_(
- BuilderHelpers::normalizeNameOrExpr($class),
- $this->args($args)
- );
- }
-
- /**
- * Creates a constant fetch node.
- *
- * @param string|Name $name Constant name
- */
- public function constFetch($name): Expr\ConstFetch {
- return new Expr\ConstFetch(BuilderHelpers::normalizeName($name));
- }
-
- /**
- * Creates a property fetch node.
- *
- * @param Expr $var Variable holding object
- * @param string|Identifier|Expr $name Property name
- */
- public function propertyFetch(Expr $var, $name): Expr\PropertyFetch {
- return new Expr\PropertyFetch($var, BuilderHelpers::normalizeIdentifierOrExpr($name));
- }
-
- /**
- * Creates a class constant fetch node.
- *
- * @param string|Name|Expr $class Class name
- * @param string|Identifier|Expr $name Constant name
- */
- public function classConstFetch($class, $name): Expr\ClassConstFetch {
- return new Expr\ClassConstFetch(
- BuilderHelpers::normalizeNameOrExpr($class),
- BuilderHelpers::normalizeIdentifierOrExpr($name)
- );
- }
-
- /**
- * Creates nested Concat nodes from a list of expressions.
- *
- * @param Expr|string ...$exprs Expressions or literal strings
- */
- public function concat(...$exprs): Concat {
- $numExprs = count($exprs);
- if ($numExprs < 2) {
- throw new \LogicException('Expected at least two expressions');
- }
-
- $lastConcat = $this->normalizeStringExpr($exprs[0]);
- for ($i = 1; $i < $numExprs; $i++) {
- $lastConcat = new Concat($lastConcat, $this->normalizeStringExpr($exprs[$i]));
- }
- return $lastConcat;
- }
-
- /**
- * @param string|Expr $expr
- */
- private function normalizeStringExpr($expr): Expr {
- if ($expr instanceof Expr) {
- return $expr;
- }
-
- if (\is_string($expr)) {
- return new String_($expr);
- }
-
- throw new \LogicException('Expected string or Expr');
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/BuilderHelpers.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/BuilderHelpers.php
deleted file mode 100644
index f29a6915..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/BuilderHelpers.php
+++ /dev/null
@@ -1,338 +0,0 @@
-getNode();
- }
-
- if ($node instanceof Node) {
- return $node;
- }
-
- throw new \LogicException('Expected node or builder object');
- }
-
- /**
- * Normalizes a node to a statement.
- *
- * Expressions are wrapped in a Stmt\Expression node.
- *
- * @param Node|Builder $node The node to normalize
- *
- * @return Stmt The normalized statement node
- */
- public static function normalizeStmt($node): Stmt {
- $node = self::normalizeNode($node);
- if ($node instanceof Stmt) {
- return $node;
- }
-
- if ($node instanceof Expr) {
- return new Stmt\Expression($node);
- }
-
- throw new \LogicException('Expected statement or expression node');
- }
-
- /**
- * Normalizes strings to Identifier.
- *
- * @param string|Identifier $name The identifier to normalize
- *
- * @return Identifier The normalized identifier
- */
- public static function normalizeIdentifier($name): Identifier {
- if ($name instanceof Identifier) {
- return $name;
- }
-
- if (\is_string($name)) {
- return new Identifier($name);
- }
-
- throw new \LogicException('Expected string or instance of Node\Identifier');
- }
-
- /**
- * Normalizes strings to Identifier, also allowing expressions.
- *
- * @param string|Identifier|Expr $name The identifier to normalize
- *
- * @return Identifier|Expr The normalized identifier or expression
- */
- public static function normalizeIdentifierOrExpr($name) {
- if ($name instanceof Identifier || $name instanceof Expr) {
- return $name;
- }
-
- if (\is_string($name)) {
- return new Identifier($name);
- }
-
- throw new \LogicException('Expected string or instance of Node\Identifier or Node\Expr');
- }
-
- /**
- * Normalizes a name: Converts string names to Name nodes.
- *
- * @param Name|string $name The name to normalize
- *
- * @return Name The normalized name
- */
- public static function normalizeName($name): Name {
- if ($name instanceof Name) {
- return $name;
- }
-
- if (is_string($name)) {
- if (!$name) {
- throw new \LogicException('Name cannot be empty');
- }
-
- if ($name[0] === '\\') {
- return new Name\FullyQualified(substr($name, 1));
- }
-
- if (0 === strpos($name, 'namespace\\')) {
- return new Name\Relative(substr($name, strlen('namespace\\')));
- }
-
- return new Name($name);
- }
-
- throw new \LogicException('Name must be a string or an instance of Node\Name');
- }
-
- /**
- * Normalizes a name: Converts string names to Name nodes, while also allowing expressions.
- *
- * @param Expr|Name|string $name The name to normalize
- *
- * @return Name|Expr The normalized name or expression
- */
- public static function normalizeNameOrExpr($name) {
- if ($name instanceof Expr) {
- return $name;
- }
-
- if (!is_string($name) && !($name instanceof Name)) {
- throw new \LogicException(
- 'Name must be a string or an instance of Node\Name or Node\Expr'
- );
- }
-
- return self::normalizeName($name);
- }
-
- /**
- * Normalizes a type: Converts plain-text type names into proper AST representation.
- *
- * In particular, builtin types become Identifiers, custom types become Names and nullables
- * are wrapped in NullableType nodes.
- *
- * @param string|Name|Identifier|ComplexType $type The type to normalize
- *
- * @return Name|Identifier|ComplexType The normalized type
- */
- public static function normalizeType($type) {
- if (!is_string($type)) {
- if (
- !$type instanceof Name && !$type instanceof Identifier &&
- !$type instanceof ComplexType
- ) {
- throw new \LogicException(
- 'Type must be a string, or an instance of Name, Identifier or ComplexType'
- );
- }
- return $type;
- }
-
- $nullable = false;
- if (strlen($type) > 0 && $type[0] === '?') {
- $nullable = true;
- $type = substr($type, 1);
- }
-
- $builtinTypes = [
- 'array',
- 'callable',
- 'bool',
- 'int',
- 'float',
- 'string',
- 'iterable',
- 'void',
- 'object',
- 'null',
- 'false',
- 'mixed',
- 'never',
- 'true',
- ];
-
- $lowerType = strtolower($type);
- if (in_array($lowerType, $builtinTypes)) {
- $type = new Identifier($lowerType);
- } else {
- $type = self::normalizeName($type);
- }
-
- $notNullableTypes = [
- 'void', 'mixed', 'never',
- ];
- if ($nullable && in_array((string) $type, $notNullableTypes)) {
- throw new \LogicException(sprintf('%s type cannot be nullable', $type));
- }
-
- return $nullable ? new NullableType($type) : $type;
- }
-
- /**
- * Normalizes a value: Converts nulls, booleans, integers,
- * floats, strings and arrays into their respective nodes
- *
- * @param Node\Expr|bool|null|int|float|string|array|\UnitEnum $value The value to normalize
- *
- * @return Expr The normalized value
- */
- public static function normalizeValue($value): Expr {
- if ($value instanceof Node\Expr) {
- return $value;
- }
-
- if (is_null($value)) {
- return new Expr\ConstFetch(
- new Name('null')
- );
- }
-
- if (is_bool($value)) {
- return new Expr\ConstFetch(
- new Name($value ? 'true' : 'false')
- );
- }
-
- if (is_int($value)) {
- return new Scalar\Int_($value);
- }
-
- if (is_float($value)) {
- return new Scalar\Float_($value);
- }
-
- if (is_string($value)) {
- return new Scalar\String_($value);
- }
-
- if (is_array($value)) {
- $items = [];
- $lastKey = -1;
- foreach ($value as $itemKey => $itemValue) {
- // for consecutive, numeric keys don't generate keys
- if (null !== $lastKey && ++$lastKey === $itemKey) {
- $items[] = new Node\ArrayItem(
- self::normalizeValue($itemValue)
- );
- } else {
- $lastKey = null;
- $items[] = new Node\ArrayItem(
- self::normalizeValue($itemValue),
- self::normalizeValue($itemKey)
- );
- }
- }
-
- return new Expr\Array_($items);
- }
-
- if ($value instanceof \UnitEnum) {
- return new Expr\ClassConstFetch(new FullyQualified(\get_class($value)), new Identifier($value->name));
- }
-
- throw new \LogicException('Invalid value');
- }
-
- /**
- * Normalizes a doc comment: Converts plain strings to PhpParser\Comment\Doc.
- *
- * @param Comment\Doc|string $docComment The doc comment to normalize
- *
- * @return Comment\Doc The normalized doc comment
- */
- public static function normalizeDocComment($docComment): Comment\Doc {
- if ($docComment instanceof Comment\Doc) {
- return $docComment;
- }
-
- if (is_string($docComment)) {
- return new Comment\Doc($docComment);
- }
-
- throw new \LogicException('Doc comment must be a string or an instance of PhpParser\Comment\Doc');
- }
-
- /**
- * Normalizes a attribute: Converts attribute to the Attribute Group if needed.
- *
- * @param Node\Attribute|Node\AttributeGroup $attribute
- *
- * @return Node\AttributeGroup The Attribute Group
- */
- public static function normalizeAttribute($attribute): Node\AttributeGroup {
- if ($attribute instanceof Node\AttributeGroup) {
- return $attribute;
- }
-
- if (!($attribute instanceof Node\Attribute)) {
- throw new \LogicException('Attribute must be an instance of PhpParser\Node\Attribute or PhpParser\Node\AttributeGroup');
- }
-
- return new Node\AttributeGroup([$attribute]);
- }
-
- /**
- * Adds a modifier and returns new modifier bitmask.
- *
- * @param int $modifiers Existing modifiers
- * @param int $modifier Modifier to set
- *
- * @return int New modifiers
- */
- public static function addModifier(int $modifiers, int $modifier): int {
- Modifiers::verifyModifier($modifiers, $modifier);
- return $modifiers | $modifier;
- }
-
- /**
- * Adds a modifier and returns new modifier bitmask.
- * @return int New modifiers
- */
- public static function addClassModifier(int $existingModifiers, int $modifierToSet): int {
- Modifiers::verifyClassModifier($existingModifiers, $modifierToSet);
- return $existingModifiers | $modifierToSet;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Comment.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Comment.php
deleted file mode 100644
index 01b341e4..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Comment.php
+++ /dev/null
@@ -1,209 +0,0 @@
-text = $text;
- $this->startLine = $startLine;
- $this->startFilePos = $startFilePos;
- $this->startTokenPos = $startTokenPos;
- $this->endLine = $endLine;
- $this->endFilePos = $endFilePos;
- $this->endTokenPos = $endTokenPos;
- }
-
- /**
- * Gets the comment text.
- *
- * @return string The comment text (including comment delimiters like /*)
- */
- public function getText(): string {
- return $this->text;
- }
-
- /**
- * Gets the line number the comment started on.
- *
- * @return int Line number (or -1 if not available)
- * @phpstan-return -1|positive-int
- */
- public function getStartLine(): int {
- return $this->startLine;
- }
-
- /**
- * Gets the file offset the comment started on.
- *
- * @return int File offset (or -1 if not available)
- */
- public function getStartFilePos(): int {
- return $this->startFilePos;
- }
-
- /**
- * Gets the token offset the comment started on.
- *
- * @return int Token offset (or -1 if not available)
- */
- public function getStartTokenPos(): int {
- return $this->startTokenPos;
- }
-
- /**
- * Gets the line number the comment ends on.
- *
- * @return int Line number (or -1 if not available)
- * @phpstan-return -1|positive-int
- */
- public function getEndLine(): int {
- return $this->endLine;
- }
-
- /**
- * Gets the file offset the comment ends on.
- *
- * @return int File offset (or -1 if not available)
- */
- public function getEndFilePos(): int {
- return $this->endFilePos;
- }
-
- /**
- * Gets the token offset the comment ends on.
- *
- * @return int Token offset (or -1 if not available)
- */
- public function getEndTokenPos(): int {
- return $this->endTokenPos;
- }
-
- /**
- * Gets the comment text.
- *
- * @return string The comment text (including comment delimiters like /*)
- */
- public function __toString(): string {
- return $this->text;
- }
-
- /**
- * Gets the reformatted comment text.
- *
- * "Reformatted" here means that we try to clean up the whitespace at the
- * starts of the lines. This is necessary because we receive the comments
- * without leading whitespace on the first line, but with leading whitespace
- * on all subsequent lines.
- *
- * Additionally, this normalizes CRLF newlines to LF newlines.
- */
- public function getReformattedText(): string {
- $text = str_replace("\r\n", "\n", $this->text);
- $newlinePos = strpos($text, "\n");
- if (false === $newlinePos) {
- // Single line comments don't need further processing
- return $text;
- }
- if (preg_match('(^.*(?:\n\s+\*.*)+$)', $text)) {
- // Multi line comment of the type
- //
- // /*
- // * Some text.
- // * Some more text.
- // */
- //
- // is handled by replacing the whitespace sequences before the * by a single space
- return preg_replace('(^\s+\*)m', ' *', $text);
- }
- if (preg_match('(^/\*\*?\s*\n)', $text) && preg_match('(\n(\s*)\*/$)', $text, $matches)) {
- // Multi line comment of the type
- //
- // /*
- // Some text.
- // Some more text.
- // */
- //
- // is handled by removing the whitespace sequence on the line before the closing
- // */ on all lines. So if the last line is " */", then " " is removed at the
- // start of all lines.
- return preg_replace('(^' . preg_quote($matches[1]) . ')m', '', $text);
- }
- if (preg_match('(^/\*\*?\s*(?!\s))', $text, $matches)) {
- // Multi line comment of the type
- //
- // /* Some text.
- // Some more text.
- // Indented text.
- // Even more text. */
- //
- // is handled by removing the difference between the shortest whitespace prefix on all
- // lines and the length of the "/* " opening sequence.
- $prefixLen = $this->getShortestWhitespacePrefixLen(substr($text, $newlinePos + 1));
- $removeLen = $prefixLen - strlen($matches[0]);
- return preg_replace('(^\s{' . $removeLen . '})m', '', $text);
- }
-
- // No idea how to format this comment, so simply return as is
- return $text;
- }
-
- /**
- * Get length of shortest whitespace prefix (at the start of a line).
- *
- * If there is a line with no prefix whitespace, 0 is a valid return value.
- *
- * @param string $str String to check
- * @return int Length in characters. Tabs count as single characters.
- */
- private function getShortestWhitespacePrefixLen(string $str): int {
- $lines = explode("\n", $str);
- $shortestPrefixLen = \PHP_INT_MAX;
- foreach ($lines as $line) {
- preg_match('(^\s*)', $line, $matches);
- $prefixLen = strlen($matches[0]);
- if ($prefixLen < $shortestPrefixLen) {
- $shortestPrefixLen = $prefixLen;
- }
- }
- return $shortestPrefixLen;
- }
-
- /**
- * @return array{nodeType:string, text:mixed, line:mixed, filePos:mixed}
- */
- public function jsonSerialize(): array {
- // Technically not a node, but we make it look like one anyway
- $type = $this instanceof Comment\Doc ? 'Comment_Doc' : 'Comment';
- return [
- 'nodeType' => $type,
- 'text' => $this->text,
- // TODO: Rename these to include "start".
- 'line' => $this->startLine,
- 'filePos' => $this->startFilePos,
- 'tokenPos' => $this->startTokenPos,
- 'endLine' => $this->endLine,
- 'endFilePos' => $this->endFilePos,
- 'endTokenPos' => $this->endTokenPos,
- ];
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Comment/Doc.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Comment/Doc.php
deleted file mode 100644
index bb3e9146..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Comment/Doc.php
+++ /dev/null
@@ -1,6 +0,0 @@
-fallbackEvaluator = $fallbackEvaluator ?? function (Expr $expr) {
- throw new ConstExprEvaluationException(
- "Expression of type {$expr->getType()} cannot be evaluated"
- );
- };
- }
-
- /**
- * Silently evaluates a constant expression into a PHP value.
- *
- * Thrown Errors, warnings or notices will be converted into a ConstExprEvaluationException.
- * The original source of the exception is available through getPrevious().
- *
- * If some part of the expression cannot be evaluated, the fallback evaluator passed to the
- * constructor will be invoked. By default, if no fallback is provided, an exception of type
- * ConstExprEvaluationException is thrown.
- *
- * See class doc comment for caveats and limitations.
- *
- * @param Expr $expr Constant expression to evaluate
- * @return mixed Result of evaluation
- *
- * @throws ConstExprEvaluationException if the expression cannot be evaluated or an error occurred
- */
- public function evaluateSilently(Expr $expr) {
- set_error_handler(function ($num, $str, $file, $line) {
- throw new \ErrorException($str, 0, $num, $file, $line);
- });
-
- try {
- return $this->evaluate($expr);
- } catch (\Throwable $e) {
- if (!$e instanceof ConstExprEvaluationException) {
- $e = new ConstExprEvaluationException(
- "An error occurred during constant expression evaluation", 0, $e);
- }
- throw $e;
- } finally {
- restore_error_handler();
- }
- }
-
- /**
- * Directly evaluates a constant expression into a PHP value.
- *
- * May generate Error exceptions, warnings or notices. Use evaluateSilently() to convert these
- * into a ConstExprEvaluationException.
- *
- * If some part of the expression cannot be evaluated, the fallback evaluator passed to the
- * constructor will be invoked. By default, if no fallback is provided, an exception of type
- * ConstExprEvaluationException is thrown.
- *
- * See class doc comment for caveats and limitations.
- *
- * @param Expr $expr Constant expression to evaluate
- * @return mixed Result of evaluation
- *
- * @throws ConstExprEvaluationException if the expression cannot be evaluated
- */
- public function evaluateDirectly(Expr $expr) {
- return $this->evaluate($expr);
- }
-
- /** @return mixed */
- private function evaluate(Expr $expr) {
- if ($expr instanceof Scalar\Int_
- || $expr instanceof Scalar\Float_
- || $expr instanceof Scalar\String_
- ) {
- return $expr->value;
- }
-
- if ($expr instanceof Expr\Array_) {
- return $this->evaluateArray($expr);
- }
-
- // Unary operators
- if ($expr instanceof Expr\UnaryPlus) {
- return +$this->evaluate($expr->expr);
- }
- if ($expr instanceof Expr\UnaryMinus) {
- return -$this->evaluate($expr->expr);
- }
- if ($expr instanceof Expr\BooleanNot) {
- return !$this->evaluate($expr->expr);
- }
- if ($expr instanceof Expr\BitwiseNot) {
- return ~$this->evaluate($expr->expr);
- }
-
- if ($expr instanceof Expr\BinaryOp) {
- return $this->evaluateBinaryOp($expr);
- }
-
- if ($expr instanceof Expr\Ternary) {
- return $this->evaluateTernary($expr);
- }
-
- if ($expr instanceof Expr\ArrayDimFetch && null !== $expr->dim) {
- return $this->evaluate($expr->var)[$this->evaluate($expr->dim)];
- }
-
- if ($expr instanceof Expr\ConstFetch) {
- return $this->evaluateConstFetch($expr);
- }
-
- return ($this->fallbackEvaluator)($expr);
- }
-
- private function evaluateArray(Expr\Array_ $expr): array {
- $array = [];
- foreach ($expr->items as $item) {
- if (null !== $item->key) {
- $array[$this->evaluate($item->key)] = $this->evaluate($item->value);
- } elseif ($item->unpack) {
- $array = array_merge($array, $this->evaluate($item->value));
- } else {
- $array[] = $this->evaluate($item->value);
- }
- }
- return $array;
- }
-
- /** @return mixed */
- private function evaluateTernary(Expr\Ternary $expr) {
- if (null === $expr->if) {
- return $this->evaluate($expr->cond) ?: $this->evaluate($expr->else);
- }
-
- return $this->evaluate($expr->cond)
- ? $this->evaluate($expr->if)
- : $this->evaluate($expr->else);
- }
-
- /** @return mixed */
- private function evaluateBinaryOp(Expr\BinaryOp $expr) {
- if ($expr instanceof Expr\BinaryOp\Coalesce
- && $expr->left instanceof Expr\ArrayDimFetch
- ) {
- // This needs to be special cased to respect BP_VAR_IS fetch semantics
- return $this->evaluate($expr->left->var)[$this->evaluate($expr->left->dim)]
- ?? $this->evaluate($expr->right);
- }
-
- // The evaluate() calls are repeated in each branch, because some of the operators are
- // short-circuiting and evaluating the RHS in advance may be illegal in that case
- $l = $expr->left;
- $r = $expr->right;
- switch ($expr->getOperatorSigil()) {
- case '&': return $this->evaluate($l) & $this->evaluate($r);
- case '|': return $this->evaluate($l) | $this->evaluate($r);
- case '^': return $this->evaluate($l) ^ $this->evaluate($r);
- case '&&': return $this->evaluate($l) && $this->evaluate($r);
- case '||': return $this->evaluate($l) || $this->evaluate($r);
- case '??': return $this->evaluate($l) ?? $this->evaluate($r);
- case '.': return $this->evaluate($l) . $this->evaluate($r);
- case '/': return $this->evaluate($l) / $this->evaluate($r);
- case '==': return $this->evaluate($l) == $this->evaluate($r);
- case '>': return $this->evaluate($l) > $this->evaluate($r);
- case '>=': return $this->evaluate($l) >= $this->evaluate($r);
- case '===': return $this->evaluate($l) === $this->evaluate($r);
- case 'and': return $this->evaluate($l) and $this->evaluate($r);
- case 'or': return $this->evaluate($l) or $this->evaluate($r);
- case 'xor': return $this->evaluate($l) xor $this->evaluate($r);
- case '-': return $this->evaluate($l) - $this->evaluate($r);
- case '%': return $this->evaluate($l) % $this->evaluate($r);
- case '*': return $this->evaluate($l) * $this->evaluate($r);
- case '!=': return $this->evaluate($l) != $this->evaluate($r);
- case '!==': return $this->evaluate($l) !== $this->evaluate($r);
- case '+': return $this->evaluate($l) + $this->evaluate($r);
- case '**': return $this->evaluate($l) ** $this->evaluate($r);
- case '<<': return $this->evaluate($l) << $this->evaluate($r);
- case '>>': return $this->evaluate($l) >> $this->evaluate($r);
- case '<': return $this->evaluate($l) < $this->evaluate($r);
- case '<=': return $this->evaluate($l) <= $this->evaluate($r);
- case '<=>': return $this->evaluate($l) <=> $this->evaluate($r);
- }
-
- throw new \Exception('Should not happen');
- }
-
- /** @return mixed */
- private function evaluateConstFetch(Expr\ConstFetch $expr) {
- $name = $expr->name->toLowerString();
- switch ($name) {
- case 'null': return null;
- case 'false': return false;
- case 'true': return true;
- }
-
- return ($this->fallbackEvaluator)($expr);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Error.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Error.php
deleted file mode 100644
index f81f0c42..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Error.php
+++ /dev/null
@@ -1,173 +0,0 @@
- */
- protected array $attributes;
-
- /**
- * Creates an Exception signifying a parse error.
- *
- * @param string $message Error message
- * @param array $attributes Attributes of node/token where error occurred
- */
- public function __construct(string $message, array $attributes = []) {
- $this->rawMessage = $message;
- $this->attributes = $attributes;
- $this->updateMessage();
- }
-
- /**
- * Gets the error message
- *
- * @return string Error message
- */
- public function getRawMessage(): string {
- return $this->rawMessage;
- }
-
- /**
- * Gets the line the error starts in.
- *
- * @return int Error start line
- * @phpstan-return -1|positive-int
- */
- public function getStartLine(): int {
- return $this->attributes['startLine'] ?? -1;
- }
-
- /**
- * Gets the line the error ends in.
- *
- * @return int Error end line
- * @phpstan-return -1|positive-int
- */
- public function getEndLine(): int {
- return $this->attributes['endLine'] ?? -1;
- }
-
- /**
- * Gets the attributes of the node/token the error occurred at.
- *
- * @return array
- */
- public function getAttributes(): array {
- return $this->attributes;
- }
-
- /**
- * Sets the attributes of the node/token the error occurred at.
- *
- * @param array $attributes
- */
- public function setAttributes(array $attributes): void {
- $this->attributes = $attributes;
- $this->updateMessage();
- }
-
- /**
- * Sets the line of the PHP file the error occurred in.
- *
- * @param string $message Error message
- */
- public function setRawMessage(string $message): void {
- $this->rawMessage = $message;
- $this->updateMessage();
- }
-
- /**
- * Sets the line the error starts in.
- *
- * @param int $line Error start line
- */
- public function setStartLine(int $line): void {
- $this->attributes['startLine'] = $line;
- $this->updateMessage();
- }
-
- /**
- * Returns whether the error has start and end column information.
- *
- * For column information enable the startFilePos and endFilePos in the lexer options.
- */
- public function hasColumnInfo(): bool {
- return isset($this->attributes['startFilePos'], $this->attributes['endFilePos']);
- }
-
- /**
- * Gets the start column (1-based) into the line where the error started.
- *
- * @param string $code Source code of the file
- */
- public function getStartColumn(string $code): int {
- if (!$this->hasColumnInfo()) {
- throw new \RuntimeException('Error does not have column information');
- }
-
- return $this->toColumn($code, $this->attributes['startFilePos']);
- }
-
- /**
- * Gets the end column (1-based) into the line where the error ended.
- *
- * @param string $code Source code of the file
- */
- public function getEndColumn(string $code): int {
- if (!$this->hasColumnInfo()) {
- throw new \RuntimeException('Error does not have column information');
- }
-
- return $this->toColumn($code, $this->attributes['endFilePos']);
- }
-
- /**
- * Formats message including line and column information.
- *
- * @param string $code Source code associated with the error, for calculation of the columns
- *
- * @return string Formatted message
- */
- public function getMessageWithColumnInfo(string $code): string {
- return sprintf(
- '%s from %d:%d to %d:%d', $this->getRawMessage(),
- $this->getStartLine(), $this->getStartColumn($code),
- $this->getEndLine(), $this->getEndColumn($code)
- );
- }
-
- /**
- * Converts a file offset into a column.
- *
- * @param string $code Source code that $pos indexes into
- * @param int $pos 0-based position in $code
- *
- * @return int 1-based column (relative to start of line)
- */
- private function toColumn(string $code, int $pos): int {
- if ($pos > strlen($code)) {
- throw new \RuntimeException('Invalid position information');
- }
-
- $lineStartPos = strrpos($code, "\n", $pos - strlen($code));
- if (false === $lineStartPos) {
- $lineStartPos = -1;
- }
-
- return $pos - $lineStartPos;
- }
-
- /**
- * Updates the exception message after a change to rawMessage or rawLine.
- */
- protected function updateMessage(): void {
- $this->message = $this->rawMessage;
-
- if (-1 === $this->getStartLine()) {
- $this->message .= ' on unknown line';
- } else {
- $this->message .= ' on line ' . $this->getStartLine();
- }
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/ErrorHandler.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/ErrorHandler.php
deleted file mode 100644
index 51ad730c..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/ErrorHandler.php
+++ /dev/null
@@ -1,12 +0,0 @@
-errors[] = $error;
- }
-
- /**
- * Get collected errors.
- *
- * @return Error[]
- */
- public function getErrors(): array {
- return $this->errors;
- }
-
- /**
- * Check whether there are any errors.
- */
- public function hasErrors(): bool {
- return !empty($this->errors);
- }
-
- /**
- * Reset/clear collected errors.
- */
- public function clearErrors(): void {
- $this->errors = [];
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/ErrorHandler/Throwing.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/ErrorHandler/Throwing.php
deleted file mode 100644
index dff33dd0..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/ErrorHandler/Throwing.php
+++ /dev/null
@@ -1,17 +0,0 @@
-type = $type;
- $this->old = $old;
- $this->new = $new;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/Differ.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/Differ.php
deleted file mode 100644
index 253e1757..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/Differ.php
+++ /dev/null
@@ -1,178 +0,0 @@
-isEqual = $isEqual;
- }
-
- /**
- * Calculate diff (edit script) from $old to $new.
- *
- * @param T[] $old Original array
- * @param T[] $new New array
- *
- * @return DiffElem[] Diff (edit script)
- */
- public function diff(array $old, array $new): array {
- $old = \array_values($old);
- $new = \array_values($new);
- list($trace, $x, $y) = $this->calculateTrace($old, $new);
- return $this->extractDiff($trace, $x, $y, $old, $new);
- }
-
- /**
- * Calculate diff, including "replace" operations.
- *
- * If a sequence of remove operations is followed by the same number of add operations, these
- * will be coalesced into replace operations.
- *
- * @param T[] $old Original array
- * @param T[] $new New array
- *
- * @return DiffElem[] Diff (edit script), including replace operations
- */
- public function diffWithReplacements(array $old, array $new): array {
- return $this->coalesceReplacements($this->diff($old, $new));
- }
-
- /**
- * @param T[] $old
- * @param T[] $new
- * @return array{array>, int, int}
- */
- private function calculateTrace(array $old, array $new): array {
- $n = \count($old);
- $m = \count($new);
- $max = $n + $m;
- $v = [1 => 0];
- $trace = [];
- for ($d = 0; $d <= $max; $d++) {
- $trace[] = $v;
- for ($k = -$d; $k <= $d; $k += 2) {
- if ($k === -$d || ($k !== $d && $v[$k - 1] < $v[$k + 1])) {
- $x = $v[$k + 1];
- } else {
- $x = $v[$k - 1] + 1;
- }
-
- $y = $x - $k;
- while ($x < $n && $y < $m && ($this->isEqual)($old[$x], $new[$y])) {
- $x++;
- $y++;
- }
-
- $v[$k] = $x;
- if ($x >= $n && $y >= $m) {
- return [$trace, $x, $y];
- }
- }
- }
- throw new \Exception('Should not happen');
- }
-
- /**
- * @param array> $trace
- * @param T[] $old
- * @param T[] $new
- * @return DiffElem[]
- */
- private function extractDiff(array $trace, int $x, int $y, array $old, array $new): array {
- $result = [];
- for ($d = \count($trace) - 1; $d >= 0; $d--) {
- $v = $trace[$d];
- $k = $x - $y;
-
- if ($k === -$d || ($k !== $d && $v[$k - 1] < $v[$k + 1])) {
- $prevK = $k + 1;
- } else {
- $prevK = $k - 1;
- }
-
- $prevX = $v[$prevK];
- $prevY = $prevX - $prevK;
-
- while ($x > $prevX && $y > $prevY) {
- $result[] = new DiffElem(DiffElem::TYPE_KEEP, $old[$x - 1], $new[$y - 1]);
- $x--;
- $y--;
- }
-
- if ($d === 0) {
- break;
- }
-
- while ($x > $prevX) {
- $result[] = new DiffElem(DiffElem::TYPE_REMOVE, $old[$x - 1], null);
- $x--;
- }
-
- while ($y > $prevY) {
- $result[] = new DiffElem(DiffElem::TYPE_ADD, null, $new[$y - 1]);
- $y--;
- }
- }
- return array_reverse($result);
- }
-
- /**
- * Coalesce equal-length sequences of remove+add into a replace operation.
- *
- * @param DiffElem[] $diff
- * @return DiffElem[]
- */
- private function coalesceReplacements(array $diff): array {
- $newDiff = [];
- $c = \count($diff);
- for ($i = 0; $i < $c; $i++) {
- $diffType = $diff[$i]->type;
- if ($diffType !== DiffElem::TYPE_REMOVE) {
- $newDiff[] = $diff[$i];
- continue;
- }
-
- $j = $i;
- while ($j < $c && $diff[$j]->type === DiffElem::TYPE_REMOVE) {
- $j++;
- }
-
- $k = $j;
- while ($k < $c && $diff[$k]->type === DiffElem::TYPE_ADD) {
- $k++;
- }
-
- if ($j - $i === $k - $j) {
- $len = $j - $i;
- for ($n = 0; $n < $len; $n++) {
- $newDiff[] = new DiffElem(
- DiffElem::TYPE_REPLACE, $diff[$i + $n]->old, $diff[$j + $n]->new
- );
- }
- } else {
- for (; $i < $k; $i++) {
- $newDiff[] = $diff[$i];
- }
- }
- $i = $k - 1;
- }
- return $newDiff;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php
deleted file mode 100644
index b30a99a1..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php
+++ /dev/null
@@ -1,71 +0,0 @@
- $attributes Attributes
- */
- public function __construct(
- array $attrGroups, int $flags, array $args, ?Node\Name $extends, array $implements,
- array $stmts, array $attributes
- ) {
- parent::__construct($attributes);
- $this->attrGroups = $attrGroups;
- $this->flags = $flags;
- $this->args = $args;
- $this->extends = $extends;
- $this->implements = $implements;
- $this->stmts = $stmts;
- }
-
- public static function fromNewNode(Expr\New_ $newNode): self {
- $class = $newNode->class;
- assert($class instanceof Node\Stmt\Class_);
- // We don't assert that $class->name is null here, to allow consumers to assign unique names
- // to anonymous classes for their own purposes. We simplify ignore the name here.
- return new self(
- $class->attrGroups, $class->flags, $newNode->args, $class->extends, $class->implements,
- $class->stmts, $newNode->getAttributes()
- );
- }
-
- public function getType(): string {
- return 'Expr_PrintableNewAnonClass';
- }
-
- public function getSubNodeNames(): array {
- return ['attrGroups', 'flags', 'args', 'extends', 'implements', 'stmts'];
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/TokenPolyfill.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/TokenPolyfill.php
deleted file mode 100644
index 36022d09..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/TokenPolyfill.php
+++ /dev/null
@@ -1,237 +0,0 @@
-= 80000) {
- class TokenPolyfill extends \PhpToken {
- }
- return;
-}
-
-/**
- * This is a polyfill for the PhpToken class introduced in PHP 8.0. We do not actually polyfill
- * PhpToken, because composer might end up picking a different polyfill implementation, which does
- * not meet our requirements.
- *
- * @internal
- */
-class TokenPolyfill {
- /** @var int The ID of the token. Either a T_* constant of a character code < 256. */
- public int $id;
- /** @var string The textual content of the token. */
- public string $text;
- /** @var int The 1-based starting line of the token (or -1 if unknown). */
- public int $line;
- /** @var int The 0-based starting position of the token (or -1 if unknown). */
- public int $pos;
-
- /** @var array Tokens ignored by the PHP parser. */
- private const IGNORABLE_TOKENS = [
- \T_WHITESPACE => true,
- \T_COMMENT => true,
- \T_DOC_COMMENT => true,
- \T_OPEN_TAG => true,
- ];
-
- /** @var array Tokens that may be part of a T_NAME_* identifier. */
- private static array $identifierTokens;
-
- /**
- * Create a Token with the given ID and text, as well optional line and position information.
- */
- final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) {
- $this->id = $id;
- $this->text = $text;
- $this->line = $line;
- $this->pos = $pos;
- }
-
- /**
- * Get the name of the token. For single-char tokens this will be the token character.
- * Otherwise it will be a T_* style name, or null if the token ID is unknown.
- */
- public function getTokenName(): ?string {
- if ($this->id < 256) {
- return \chr($this->id);
- }
-
- $name = token_name($this->id);
- return $name === 'UNKNOWN' ? null : $name;
- }
-
- /**
- * Check whether the token is of the given kind. The kind may be either an integer that matches
- * the token ID, a string that matches the token text, or an array of integers/strings. In the
- * latter case, the function returns true if any of the kinds in the array match.
- *
- * @param int|string|(int|string)[] $kind
- */
- public function is($kind): bool {
- if (\is_int($kind)) {
- return $this->id === $kind;
- }
- if (\is_string($kind)) {
- return $this->text === $kind;
- }
- if (\is_array($kind)) {
- foreach ($kind as $entry) {
- if (\is_int($entry)) {
- if ($this->id === $entry) {
- return true;
- }
- } elseif (\is_string($entry)) {
- if ($this->text === $entry) {
- return true;
- }
- } else {
- throw new \TypeError(
- 'Argument #1 ($kind) must only have elements of type string|int, ' .
- gettype($entry) . ' given');
- }
- }
- return false;
- }
- throw new \TypeError(
- 'Argument #1 ($kind) must be of type string|int|array, ' .gettype($kind) . ' given');
- }
-
- /**
- * Check whether this token would be ignored by the PHP parser. Returns true for T_WHITESPACE,
- * T_COMMENT, T_DOC_COMMENT and T_OPEN_TAG, and false for everything else.
- */
- public function isIgnorable(): bool {
- return isset(self::IGNORABLE_TOKENS[$this->id]);
- }
-
- /**
- * Return the textual content of the token.
- */
- public function __toString(): string {
- return $this->text;
- }
-
- /**
- * Tokenize the given source code and return an array of tokens.
- *
- * This performs certain canonicalizations to match the PHP 8.0 token format:
- * * Bad characters are represented using T_BAD_CHARACTER rather than omitted.
- * * T_COMMENT does not include trailing newlines, instead the newline is part of a following
- * T_WHITESPACE token.
- * * Namespaced names are represented using T_NAME_* tokens.
- *
- * @return static[]
- */
- public static function tokenize(string $code, int $flags = 0): array {
- self::init();
-
- $tokens = [];
- $line = 1;
- $pos = 0;
- $origTokens = \token_get_all($code, $flags);
-
- $numTokens = \count($origTokens);
- for ($i = 0; $i < $numTokens; $i++) {
- $token = $origTokens[$i];
- if (\is_string($token)) {
- if (\strlen($token) === 2) {
- // b" and B" are tokenized as single-char tokens, even though they aren't.
- $tokens[] = new static(\ord('"'), $token, $line, $pos);
- $pos += 2;
- } else {
- $tokens[] = new static(\ord($token), $token, $line, $pos);
- $pos++;
- }
- } else {
- $id = $token[0];
- $text = $token[1];
-
- // Emulate PHP 8.0 comment format, which does not include trailing whitespace anymore.
- if ($id === \T_COMMENT && \substr($text, 0, 2) !== '/*' &&
- \preg_match('/(\r\n|\n|\r)$/D', $text, $matches)
- ) {
- $trailingNewline = $matches[0];
- $text = \substr($text, 0, -\strlen($trailingNewline));
- $tokens[] = new static($id, $text, $line, $pos);
- $pos += \strlen($text);
-
- if ($i + 1 < $numTokens && $origTokens[$i + 1][0] === \T_WHITESPACE) {
- // Move trailing newline into following T_WHITESPACE token, if it already exists.
- $origTokens[$i + 1][1] = $trailingNewline . $origTokens[$i + 1][1];
- $origTokens[$i + 1][2]--;
- } else {
- // Otherwise, we need to create a new T_WHITESPACE token.
- $tokens[] = new static(\T_WHITESPACE, $trailingNewline, $line, $pos);
- $line++;
- $pos += \strlen($trailingNewline);
- }
- continue;
- }
-
- // Emulate PHP 8.0 T_NAME_* tokens, by combining sequences of T_NS_SEPARATOR and
- // T_STRING into a single token.
- if (($id === \T_NS_SEPARATOR || isset(self::$identifierTokens[$id]))) {
- $newText = $text;
- $lastWasSeparator = $id === \T_NS_SEPARATOR;
- for ($j = $i + 1; $j < $numTokens; $j++) {
- if ($lastWasSeparator) {
- if (!isset(self::$identifierTokens[$origTokens[$j][0]])) {
- break;
- }
- $lastWasSeparator = false;
- } else {
- if ($origTokens[$j][0] !== \T_NS_SEPARATOR) {
- break;
- }
- $lastWasSeparator = true;
- }
- $newText .= $origTokens[$j][1];
- }
- if ($lastWasSeparator) {
- // Trailing separator is not part of the name.
- $j--;
- $newText = \substr($newText, 0, -1);
- }
- if ($j > $i + 1) {
- if ($id === \T_NS_SEPARATOR) {
- $id = \T_NAME_FULLY_QUALIFIED;
- } elseif ($id === \T_NAMESPACE) {
- $id = \T_NAME_RELATIVE;
- } else {
- $id = \T_NAME_QUALIFIED;
- }
- $tokens[] = new static($id, $newText, $line, $pos);
- $pos += \strlen($newText);
- $i = $j - 1;
- continue;
- }
- }
-
- $tokens[] = new static($id, $text, $line, $pos);
- $line += \substr_count($text, "\n");
- $pos += \strlen($text);
- }
- }
- return $tokens;
- }
-
- /** Initialize private static state needed by tokenize(). */
- private static function init(): void {
- if (isset(self::$identifierTokens)) {
- return;
- }
-
- // Based on semi_reserved production.
- self::$identifierTokens = \array_fill_keys([
- \T_STRING,
- \T_STATIC, \T_ABSTRACT, \T_FINAL, \T_PRIVATE, \T_PROTECTED, \T_PUBLIC, \T_READONLY,
- \T_INCLUDE, \T_INCLUDE_ONCE, \T_EVAL, \T_REQUIRE, \T_REQUIRE_ONCE, \T_LOGICAL_OR, \T_LOGICAL_XOR, \T_LOGICAL_AND,
- \T_INSTANCEOF, \T_NEW, \T_CLONE, \T_EXIT, \T_IF, \T_ELSEIF, \T_ELSE, \T_ENDIF, \T_ECHO, \T_DO, \T_WHILE,
- \T_ENDWHILE, \T_FOR, \T_ENDFOR, \T_FOREACH, \T_ENDFOREACH, \T_DECLARE, \T_ENDDECLARE, \T_AS, \T_TRY, \T_CATCH,
- \T_FINALLY, \T_THROW, \T_USE, \T_INSTEADOF, \T_GLOBAL, \T_VAR, \T_UNSET, \T_ISSET, \T_EMPTY, \T_CONTINUE, \T_GOTO,
- \T_FUNCTION, \T_CONST, \T_RETURN, \T_PRINT, \T_YIELD, \T_LIST, \T_SWITCH, \T_ENDSWITCH, \T_CASE, \T_DEFAULT,
- \T_BREAK, \T_ARRAY, \T_CALLABLE, \T_EXTENDS, \T_IMPLEMENTS, \T_NAMESPACE, \T_TRAIT, \T_INTERFACE, \T_CLASS,
- \T_CLASS_C, \T_TRAIT_C, \T_FUNC_C, \T_METHOD_C, \T_LINE, \T_FILE, \T_DIR, \T_NS_C, \T_HALT_COMPILER, \T_FN,
- \T_MATCH,
- ], true);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php
deleted file mode 100644
index cdbe2bdc..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php
+++ /dev/null
@@ -1,282 +0,0 @@
-tokens = $tokens;
- $this->indentMap = $this->calcIndentMap($tabWidth);
- }
-
- /**
- * Whether the given position is immediately surrounded by parenthesis.
- *
- * @param int $startPos Start position
- * @param int $endPos End position
- */
- public function haveParens(int $startPos, int $endPos): bool {
- return $this->haveTokenImmediatelyBefore($startPos, '(')
- && $this->haveTokenImmediatelyAfter($endPos, ')');
- }
-
- /**
- * Whether the given position is immediately surrounded by braces.
- *
- * @param int $startPos Start position
- * @param int $endPos End position
- */
- public function haveBraces(int $startPos, int $endPos): bool {
- return ($this->haveTokenImmediatelyBefore($startPos, '{')
- || $this->haveTokenImmediatelyBefore($startPos, T_CURLY_OPEN))
- && $this->haveTokenImmediatelyAfter($endPos, '}');
- }
-
- /**
- * Check whether the position is directly preceded by a certain token type.
- *
- * During this check whitespace and comments are skipped.
- *
- * @param int $pos Position before which the token should occur
- * @param int|string $expectedTokenType Token to check for
- *
- * @return bool Whether the expected token was found
- */
- public function haveTokenImmediatelyBefore(int $pos, $expectedTokenType): bool {
- $tokens = $this->tokens;
- $pos--;
- for (; $pos >= 0; $pos--) {
- $token = $tokens[$pos];
- if ($token->is($expectedTokenType)) {
- return true;
- }
- if (!$token->isIgnorable()) {
- break;
- }
- }
- return false;
- }
-
- /**
- * Check whether the position is directly followed by a certain token type.
- *
- * During this check whitespace and comments are skipped.
- *
- * @param int $pos Position after which the token should occur
- * @param int|string $expectedTokenType Token to check for
- *
- * @return bool Whether the expected token was found
- */
- public function haveTokenImmediatelyAfter(int $pos, $expectedTokenType): bool {
- $tokens = $this->tokens;
- $pos++;
- for ($c = \count($tokens); $pos < $c; $pos++) {
- $token = $tokens[$pos];
- if ($token->is($expectedTokenType)) {
- return true;
- }
- if (!$token->isIgnorable()) {
- break;
- }
- }
- return false;
- }
-
- /** @param int|string|(int|string)[] $skipTokenType */
- public function skipLeft(int $pos, $skipTokenType): int {
- $tokens = $this->tokens;
-
- $pos = $this->skipLeftWhitespace($pos);
- if ($skipTokenType === \T_WHITESPACE) {
- return $pos;
- }
-
- if (!$tokens[$pos]->is($skipTokenType)) {
- // Shouldn't happen. The skip token MUST be there
- throw new \Exception('Encountered unexpected token');
- }
- $pos--;
-
- return $this->skipLeftWhitespace($pos);
- }
-
- /** @param int|string|(int|string)[] $skipTokenType */
- public function skipRight(int $pos, $skipTokenType): int {
- $tokens = $this->tokens;
-
- $pos = $this->skipRightWhitespace($pos);
- if ($skipTokenType === \T_WHITESPACE) {
- return $pos;
- }
-
- if (!$tokens[$pos]->is($skipTokenType)) {
- // Shouldn't happen. The skip token MUST be there
- throw new \Exception('Encountered unexpected token');
- }
- $pos++;
-
- return $this->skipRightWhitespace($pos);
- }
-
- /**
- * Return first non-whitespace token position smaller or equal to passed position.
- *
- * @param int $pos Token position
- * @return int Non-whitespace token position
- */
- public function skipLeftWhitespace(int $pos): int {
- $tokens = $this->tokens;
- for (; $pos >= 0; $pos--) {
- if (!$tokens[$pos]->isIgnorable()) {
- break;
- }
- }
- return $pos;
- }
-
- /**
- * Return first non-whitespace position greater or equal to passed position.
- *
- * @param int $pos Token position
- * @return int Non-whitespace token position
- */
- public function skipRightWhitespace(int $pos): int {
- $tokens = $this->tokens;
- for ($count = \count($tokens); $pos < $count; $pos++) {
- if (!$tokens[$pos]->isIgnorable()) {
- break;
- }
- }
- return $pos;
- }
-
- /** @param int|string|(int|string)[] $findTokenType */
- public function findRight(int $pos, $findTokenType): int {
- $tokens = $this->tokens;
- for ($count = \count($tokens); $pos < $count; $pos++) {
- if ($tokens[$pos]->is($findTokenType)) {
- return $pos;
- }
- }
- return -1;
- }
-
- /**
- * Whether the given position range contains a certain token type.
- *
- * @param int $startPos Starting position (inclusive)
- * @param int $endPos Ending position (exclusive)
- * @param int|string $tokenType Token type to look for
- * @return bool Whether the token occurs in the given range
- */
- public function haveTokenInRange(int $startPos, int $endPos, $tokenType): bool {
- $tokens = $this->tokens;
- for ($pos = $startPos; $pos < $endPos; $pos++) {
- if ($tokens[$pos]->is($tokenType)) {
- return true;
- }
- }
- return false;
- }
-
- public function haveTagInRange(int $startPos, int $endPos): bool {
- return $this->haveTokenInRange($startPos, $endPos, \T_OPEN_TAG)
- || $this->haveTokenInRange($startPos, $endPos, \T_CLOSE_TAG);
- }
-
- /**
- * Get indentation before token position.
- *
- * @param int $pos Token position
- *
- * @return int Indentation depth (in spaces)
- */
- public function getIndentationBefore(int $pos): int {
- return $this->indentMap[$pos];
- }
-
- /**
- * Get the code corresponding to a token offset range, optionally adjusted for indentation.
- *
- * @param int $from Token start position (inclusive)
- * @param int $to Token end position (exclusive)
- * @param int $indent By how much the code should be indented (can be negative as well)
- *
- * @return string Code corresponding to token range, adjusted for indentation
- */
- public function getTokenCode(int $from, int $to, int $indent): string {
- $tokens = $this->tokens;
- $result = '';
- for ($pos = $from; $pos < $to; $pos++) {
- $token = $tokens[$pos];
- $id = $token->id;
- $text = $token->text;
- if ($id === \T_CONSTANT_ENCAPSED_STRING || $id === \T_ENCAPSED_AND_WHITESPACE) {
- $result .= $text;
- } else {
- // TODO Handle non-space indentation
- if ($indent < 0) {
- $result .= str_replace("\n" . str_repeat(" ", -$indent), "\n", $text);
- } elseif ($indent > 0) {
- $result .= str_replace("\n", "\n" . str_repeat(" ", $indent), $text);
- } else {
- $result .= $text;
- }
- }
- }
- return $result;
- }
-
- /**
- * Precalculate the indentation at every token position.
- *
- * @return int[] Token position to indentation map
- */
- private function calcIndentMap(int $tabWidth): array {
- $indentMap = [];
- $indent = 0;
- foreach ($this->tokens as $i => $token) {
- $indentMap[] = $indent;
-
- if ($token->id === \T_WHITESPACE) {
- $content = $token->text;
- $newlinePos = \strrpos($content, "\n");
- if (false !== $newlinePos) {
- $indent = $this->getIndent(\substr($content, $newlinePos + 1), $tabWidth);
- } elseif ($i === 1 && $this->tokens[0]->id === \T_OPEN_TAG &&
- $this->tokens[0]->text[\strlen($this->tokens[0]->text) - 1] === "\n") {
- // Special case: Newline at the end of opening tag followed by whitespace.
- $indent = $this->getIndent($content, $tabWidth);
- }
- }
- }
-
- // Add a sentinel for one past end of the file
- $indentMap[] = $indent;
-
- return $indentMap;
- }
-
- private function getIndent(string $ws, int $tabWidth): int {
- $spaces = \substr_count($ws, " ");
- $tabs = \substr_count($ws, "\t");
- assert(\strlen($ws) === $spaces + $tabs);
- return $spaces + $tabs * $tabWidth;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/JsonDecoder.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/JsonDecoder.php
deleted file mode 100644
index 7be41426..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/JsonDecoder.php
+++ /dev/null
@@ -1,108 +0,0 @@
-[] Node type to reflection class map */
- private array $reflectionClassCache;
-
- /** @return mixed */
- public function decode(string $json) {
- $value = json_decode($json, true);
- if (json_last_error()) {
- throw new \RuntimeException('JSON decoding error: ' . json_last_error_msg());
- }
-
- return $this->decodeRecursive($value);
- }
-
- /**
- * @param mixed $value
- * @return mixed
- */
- private function decodeRecursive($value) {
- if (\is_array($value)) {
- if (isset($value['nodeType'])) {
- if ($value['nodeType'] === 'Comment' || $value['nodeType'] === 'Comment_Doc') {
- return $this->decodeComment($value);
- }
- return $this->decodeNode($value);
- }
- return $this->decodeArray($value);
- }
- return $value;
- }
-
- private function decodeArray(array $array): array {
- $decodedArray = [];
- foreach ($array as $key => $value) {
- $decodedArray[$key] = $this->decodeRecursive($value);
- }
- return $decodedArray;
- }
-
- private function decodeNode(array $value): Node {
- $nodeType = $value['nodeType'];
- if (!\is_string($nodeType)) {
- throw new \RuntimeException('Node type must be a string');
- }
-
- $reflectionClass = $this->reflectionClassFromNodeType($nodeType);
- $node = $reflectionClass->newInstanceWithoutConstructor();
-
- if (isset($value['attributes'])) {
- if (!\is_array($value['attributes'])) {
- throw new \RuntimeException('Attributes must be an array');
- }
-
- $node->setAttributes($this->decodeArray($value['attributes']));
- }
-
- foreach ($value as $name => $subNode) {
- if ($name === 'nodeType' || $name === 'attributes') {
- continue;
- }
-
- $node->$name = $this->decodeRecursive($subNode);
- }
-
- return $node;
- }
-
- private function decodeComment(array $value): Comment {
- $className = $value['nodeType'] === 'Comment' ? Comment::class : Comment\Doc::class;
- if (!isset($value['text'])) {
- throw new \RuntimeException('Comment must have text');
- }
-
- return new $className(
- $value['text'],
- $value['line'] ?? -1, $value['filePos'] ?? -1, $value['tokenPos'] ?? -1,
- $value['endLine'] ?? -1, $value['endFilePos'] ?? -1, $value['endTokenPos'] ?? -1
- );
- }
-
- /** @return \ReflectionClass */
- private function reflectionClassFromNodeType(string $nodeType): \ReflectionClass {
- if (!isset($this->reflectionClassCache[$nodeType])) {
- $className = $this->classNameFromNodeType($nodeType);
- $this->reflectionClassCache[$nodeType] = new \ReflectionClass($className);
- }
- return $this->reflectionClassCache[$nodeType];
- }
-
- /** @return class-string */
- private function classNameFromNodeType(string $nodeType): string {
- $className = 'PhpParser\\Node\\' . strtr($nodeType, '_', '\\');
- if (class_exists($className)) {
- return $className;
- }
-
- $className .= '_';
- if (class_exists($className)) {
- return $className;
- }
-
- throw new \RuntimeException("Unknown node type \"$nodeType\"");
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer.php
deleted file mode 100644
index 5e2ece96..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer.php
+++ /dev/null
@@ -1,116 +0,0 @@
-postprocessTokens($tokens, $errorHandler);
-
- if (false !== $scream) {
- ini_set('xdebug.scream', $scream);
- }
-
- return $tokens;
- }
-
- private function handleInvalidCharacter(Token $token, ErrorHandler $errorHandler): void {
- $chr = $token->text;
- if ($chr === "\0") {
- // PHP cuts error message after null byte, so need special case
- $errorMsg = 'Unexpected null byte';
- } else {
- $errorMsg = sprintf(
- 'Unexpected character "%s" (ASCII %d)', $chr, ord($chr)
- );
- }
-
- $errorHandler->handleError(new Error($errorMsg, [
- 'startLine' => $token->line,
- 'endLine' => $token->line,
- 'startFilePos' => $token->pos,
- 'endFilePos' => $token->pos,
- ]));
- }
-
- private function isUnterminatedComment(Token $token): bool {
- return $token->is([\T_COMMENT, \T_DOC_COMMENT])
- && substr($token->text, 0, 2) === '/*'
- && substr($token->text, -2) !== '*/';
- }
-
- /**
- * @param list $tokens
- */
- protected function postprocessTokens(array &$tokens, ErrorHandler $errorHandler): void {
- // This function reports errors (bad characters and unterminated comments) in the token
- // array, and performs certain canonicalizations:
- // * Use PHP 8.1 T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG and
- // T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG tokens used to disambiguate intersection types.
- // * Add a sentinel token with ID 0.
-
- $numTokens = \count($tokens);
- if ($numTokens === 0) {
- // Empty input edge case: Just add the sentinel token.
- $tokens[] = new Token(0, "\0", 1, 0);
- return;
- }
-
- for ($i = 0; $i < $numTokens; $i++) {
- $token = $tokens[$i];
- if ($token->id === \T_BAD_CHARACTER) {
- $this->handleInvalidCharacter($token, $errorHandler);
- }
-
- if ($token->id === \ord('&')) {
- $next = $i + 1;
- while (isset($tokens[$next]) && $tokens[$next]->id === \T_WHITESPACE) {
- $next++;
- }
- $followedByVarOrVarArg = isset($tokens[$next]) &&
- $tokens[$next]->is([\T_VARIABLE, \T_ELLIPSIS]);
- $token->id = $followedByVarOrVarArg
- ? \T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG
- : \T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG;
- }
- }
-
- // Check for unterminated comment
- $lastToken = $tokens[$numTokens - 1];
- if ($this->isUnterminatedComment($lastToken)) {
- $errorHandler->handleError(new Error('Unterminated comment', [
- 'startLine' => $lastToken->line,
- 'endLine' => $lastToken->getEndLine(),
- 'startFilePos' => $lastToken->pos,
- 'endFilePos' => $lastToken->getEndPos(),
- ]));
- }
-
- // Add sentinel token.
- $tokens[] = new Token(0, "\0", $lastToken->getEndLine(), $lastToken->getEndPos());
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php
deleted file mode 100644
index c9b3b6d3..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php
+++ /dev/null
@@ -1,226 +0,0 @@
- */
- private array $emulators = [];
-
- private PhpVersion $targetPhpVersion;
-
- private PhpVersion $hostPhpVersion;
-
- /**
- * @param PhpVersion|null $phpVersion PHP version to emulate. Defaults to newest supported.
- */
- public function __construct(?PhpVersion $phpVersion = null) {
- $this->targetPhpVersion = $phpVersion ?? PhpVersion::getNewestSupported();
- $this->hostPhpVersion = PhpVersion::getHostVersion();
-
- $emulators = [
- new MatchTokenEmulator(),
- new NullsafeTokenEmulator(),
- new AttributeEmulator(),
- new EnumTokenEmulator(),
- new ReadonlyTokenEmulator(),
- new ExplicitOctalEmulator(),
- new ReadonlyFunctionTokenEmulator(),
- new PropertyTokenEmulator(),
- new AsymmetricVisibilityTokenEmulator(),
- ];
-
- // Collect emulators that are relevant for the PHP version we're running
- // and the PHP version we're targeting for emulation.
- foreach ($emulators as $emulator) {
- $emulatorPhpVersion = $emulator->getPhpVersion();
- if ($this->isForwardEmulationNeeded($emulatorPhpVersion)) {
- $this->emulators[] = $emulator;
- } elseif ($this->isReverseEmulationNeeded($emulatorPhpVersion)) {
- $this->emulators[] = new ReverseEmulator($emulator);
- }
- }
- }
-
- public function tokenize(string $code, ?ErrorHandler $errorHandler = null): array {
- $emulators = array_filter($this->emulators, function ($emulator) use ($code) {
- return $emulator->isEmulationNeeded($code);
- });
-
- if (empty($emulators)) {
- // Nothing to emulate, yay
- return parent::tokenize($code, $errorHandler);
- }
-
- if ($errorHandler === null) {
- $errorHandler = new ErrorHandler\Throwing();
- }
-
- $this->patches = [];
- foreach ($emulators as $emulator) {
- $code = $emulator->preprocessCode($code, $this->patches);
- }
-
- $collector = new ErrorHandler\Collecting();
- $tokens = parent::tokenize($code, $collector);
- $this->sortPatches();
- $tokens = $this->fixupTokens($tokens);
-
- $errors = $collector->getErrors();
- if (!empty($errors)) {
- $this->fixupErrors($errors);
- foreach ($errors as $error) {
- $errorHandler->handleError($error);
- }
- }
-
- foreach ($emulators as $emulator) {
- $tokens = $emulator->emulate($code, $tokens);
- }
-
- return $tokens;
- }
-
- private function isForwardEmulationNeeded(PhpVersion $emulatorPhpVersion): bool {
- return $this->hostPhpVersion->older($emulatorPhpVersion)
- && $this->targetPhpVersion->newerOrEqual($emulatorPhpVersion);
- }
-
- private function isReverseEmulationNeeded(PhpVersion $emulatorPhpVersion): bool {
- return $this->hostPhpVersion->newerOrEqual($emulatorPhpVersion)
- && $this->targetPhpVersion->older($emulatorPhpVersion);
- }
-
- private function sortPatches(): void {
- // Patches may be contributed by different emulators.
- // Make sure they are sorted by increasing patch position.
- usort($this->patches, function ($p1, $p2) {
- return $p1[0] <=> $p2[0];
- });
- }
-
- /**
- * @param list $tokens
- * @return list
- */
- private function fixupTokens(array $tokens): array {
- if (\count($this->patches) === 0) {
- return $tokens;
- }
-
- // Load first patch
- $patchIdx = 0;
- list($patchPos, $patchType, $patchText) = $this->patches[$patchIdx];
-
- // We use a manual loop over the tokens, because we modify the array on the fly
- $posDelta = 0;
- $lineDelta = 0;
- for ($i = 0, $c = \count($tokens); $i < $c; $i++) {
- $token = $tokens[$i];
- $pos = $token->pos;
- $token->pos += $posDelta;
- $token->line += $lineDelta;
- $localPosDelta = 0;
- $len = \strlen($token->text);
- while ($patchPos >= $pos && $patchPos < $pos + $len) {
- $patchTextLen = \strlen($patchText);
- if ($patchType === 'remove') {
- if ($patchPos === $pos && $patchTextLen === $len) {
- // Remove token entirely
- array_splice($tokens, $i, 1, []);
- $i--;
- $c--;
- } else {
- // Remove from token string
- $token->text = substr_replace(
- $token->text, '', $patchPos - $pos + $localPosDelta, $patchTextLen
- );
- $localPosDelta -= $patchTextLen;
- }
- $lineDelta -= \substr_count($patchText, "\n");
- } elseif ($patchType === 'add') {
- // Insert into the token string
- $token->text = substr_replace(
- $token->text, $patchText, $patchPos - $pos + $localPosDelta, 0
- );
- $localPosDelta += $patchTextLen;
- $lineDelta += \substr_count($patchText, "\n");
- } elseif ($patchType === 'replace') {
- // Replace inside the token string
- $token->text = substr_replace(
- $token->text, $patchText, $patchPos - $pos + $localPosDelta, $patchTextLen
- );
- } else {
- assert(false);
- }
-
- // Fetch the next patch
- $patchIdx++;
- if ($patchIdx >= \count($this->patches)) {
- // No more patches. However, we still need to adjust position.
- $patchPos = \PHP_INT_MAX;
- break;
- }
-
- list($patchPos, $patchType, $patchText) = $this->patches[$patchIdx];
- }
-
- $posDelta += $localPosDelta;
- }
- return $tokens;
- }
-
- /**
- * Fixup line and position information in errors.
- *
- * @param Error[] $errors
- */
- private function fixupErrors(array $errors): void {
- foreach ($errors as $error) {
- $attrs = $error->getAttributes();
-
- $posDelta = 0;
- $lineDelta = 0;
- foreach ($this->patches as $patch) {
- list($patchPos, $patchType, $patchText) = $patch;
- if ($patchPos >= $attrs['startFilePos']) {
- // No longer relevant
- break;
- }
-
- if ($patchType === 'add') {
- $posDelta += strlen($patchText);
- $lineDelta += substr_count($patchText, "\n");
- } elseif ($patchType === 'remove') {
- $posDelta -= strlen($patchText);
- $lineDelta -= substr_count($patchText, "\n");
- }
- }
-
- $attrs['startFilePos'] += $posDelta;
- $attrs['endFilePos'] += $posDelta;
- $attrs['startLine'] += $lineDelta;
- $attrs['endLine'] += $lineDelta;
- $error->setAttributes($attrs);
- }
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php
deleted file mode 100644
index 084bb75d..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php
+++ /dev/null
@@ -1,93 +0,0 @@
- \T_PUBLIC_SET,
- \T_PROTECTED => \T_PROTECTED_SET,
- \T_PRIVATE => \T_PRIVATE_SET,
- ];
- for ($i = 0, $c = count($tokens); $i < $c; ++$i) {
- $token = $tokens[$i];
- if (isset($map[$token->id]) && $i + 3 < $c && $tokens[$i + 1]->text === '(' &&
- $tokens[$i + 2]->id === \T_STRING && \strtolower($tokens[$i + 2]->text) === 'set' &&
- $tokens[$i + 3]->text === ')' &&
- $this->isKeywordContext($tokens, $i)
- ) {
- array_splice($tokens, $i, 4, [
- new Token(
- $map[$token->id], $token->text . '(' . $tokens[$i + 2]->text . ')',
- $token->line, $token->pos),
- ]);
- $c -= 3;
- }
- }
-
- return $tokens;
- }
-
- public function reverseEmulate(string $code, array $tokens): array {
- $reverseMap = [
- \T_PUBLIC_SET => \T_PUBLIC,
- \T_PROTECTED_SET => \T_PROTECTED,
- \T_PRIVATE_SET => \T_PRIVATE,
- ];
- for ($i = 0, $c = count($tokens); $i < $c; ++$i) {
- $token = $tokens[$i];
- if (isset($reverseMap[$token->id]) &&
- \preg_match('/(public|protected|private)\((set)\)/i', $token->text, $matches)
- ) {
- [, $modifier, $set] = $matches;
- $modifierLen = \strlen($modifier);
- array_splice($tokens, $i, 1, [
- new Token($reverseMap[$token->id], $modifier, $token->line, $token->pos),
- new Token(\ord('('), '(', $token->line, $token->pos + $modifierLen),
- new Token(\T_STRING, $set, $token->line, $token->pos + $modifierLen + 1),
- new Token(\ord(')'), ')', $token->line, $token->pos + $modifierLen + 4),
- ]);
- $i += 3;
- $c += 3;
- }
- }
-
- return $tokens;
- }
-
- /** @param Token[] $tokens */
- protected function isKeywordContext(array $tokens, int $pos): bool {
- $prevToken = $this->getPreviousNonSpaceToken($tokens, $pos);
- if ($prevToken === null) {
- return false;
- }
- return $prevToken->id !== \T_OBJECT_OPERATOR
- && $prevToken->id !== \T_NULLSAFE_OBJECT_OPERATOR;
- }
-
- /** @param Token[] $tokens */
- private function getPreviousNonSpaceToken(array $tokens, int $start): ?Token {
- for ($i = $start - 1; $i >= 0; --$i) {
- if ($tokens[$i]->id === T_WHITESPACE) {
- continue;
- }
-
- return $tokens[$i];
- }
-
- return null;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AttributeEmulator.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AttributeEmulator.php
deleted file mode 100644
index 2c12f33a..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AttributeEmulator.php
+++ /dev/null
@@ -1,49 +0,0 @@
-text === '#' && isset($tokens[$i + 1]) && $tokens[$i + 1]->text === '[') {
- array_splice($tokens, $i, 2, [
- new Token(\T_ATTRIBUTE, '#[', $token->line, $token->pos),
- ]);
- $c--;
- continue;
- }
- }
-
- return $tokens;
- }
-
- public function reverseEmulate(string $code, array $tokens): array {
- // TODO
- return $tokens;
- }
-
- public function preprocessCode(string $code, array &$patches): string {
- $pos = 0;
- while (false !== $pos = strpos($code, '#[', $pos)) {
- // Replace #[ with %[
- $code[$pos] = '%';
- $patches[] = [$pos, 'replace', '#'];
- $pos += 2;
- }
- return $code;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/EnumTokenEmulator.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/EnumTokenEmulator.php
deleted file mode 100644
index 5418f52c..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/EnumTokenEmulator.php
+++ /dev/null
@@ -1,26 +0,0 @@
-id === \T_WHITESPACE
- && $tokens[$pos + 2]->id === \T_STRING;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php
deleted file mode 100644
index 9cadf420..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php
+++ /dev/null
@@ -1,45 +0,0 @@
-id == \T_LNUMBER && $token->text === '0' &&
- isset($tokens[$i + 1]) && $tokens[$i + 1]->id == \T_STRING &&
- preg_match('/[oO][0-7]+(?:_[0-7]+)*/', $tokens[$i + 1]->text)
- ) {
- $tokenKind = $this->resolveIntegerOrFloatToken($tokens[$i + 1]->text);
- array_splice($tokens, $i, 2, [
- new Token($tokenKind, '0' . $tokens[$i + 1]->text, $token->line, $token->pos),
- ]);
- $c--;
- }
- }
- return $tokens;
- }
-
- private function resolveIntegerOrFloatToken(string $str): int {
- $str = substr($str, 1);
- $str = str_replace('_', '', $str);
- $num = octdec($str);
- return is_float($num) ? \T_DNUMBER : \T_LNUMBER;
- }
-
- public function reverseEmulate(string $code, array $tokens): array {
- // Explicit octals were not legal code previously, don't bother.
- return $tokens;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/KeywordEmulator.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/KeywordEmulator.php
deleted file mode 100644
index 066e7cd8..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/KeywordEmulator.php
+++ /dev/null
@@ -1,60 +0,0 @@
-getKeywordString()) !== false;
- }
-
- /** @param Token[] $tokens */
- protected function isKeywordContext(array $tokens, int $pos): bool {
- $prevToken = $this->getPreviousNonSpaceToken($tokens, $pos);
- if ($prevToken === null) {
- return false;
- }
- return $prevToken->id !== \T_OBJECT_OPERATOR
- && $prevToken->id !== \T_NULLSAFE_OBJECT_OPERATOR;
- }
-
- public function emulate(string $code, array $tokens): array {
- $keywordString = $this->getKeywordString();
- foreach ($tokens as $i => $token) {
- if ($token->id === T_STRING && strtolower($token->text) === $keywordString
- && $this->isKeywordContext($tokens, $i)) {
- $token->id = $this->getKeywordToken();
- }
- }
-
- return $tokens;
- }
-
- /** @param Token[] $tokens */
- private function getPreviousNonSpaceToken(array $tokens, int $start): ?Token {
- for ($i = $start - 1; $i >= 0; --$i) {
- if ($tokens[$i]->id === T_WHITESPACE) {
- continue;
- }
-
- return $tokens[$i];
- }
-
- return null;
- }
-
- public function reverseEmulate(string $code, array $tokens): array {
- $keywordToken = $this->getKeywordToken();
- foreach ($tokens as $token) {
- if ($token->id === $keywordToken) {
- $token->id = \T_STRING;
- }
- }
-
- return $tokens;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/MatchTokenEmulator.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/MatchTokenEmulator.php
deleted file mode 100644
index 0fa5fbc2..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/MatchTokenEmulator.php
+++ /dev/null
@@ -1,19 +0,0 @@
-') !== false;
- }
-
- public function emulate(string $code, array $tokens): array {
- // We need to manually iterate and manage a count because we'll change
- // the tokens array on the way
- for ($i = 0, $c = count($tokens); $i < $c; ++$i) {
- $token = $tokens[$i];
- if ($token->text === '?' && isset($tokens[$i + 1]) && $tokens[$i + 1]->id === \T_OBJECT_OPERATOR) {
- array_splice($tokens, $i, 2, [
- new Token(\T_NULLSAFE_OBJECT_OPERATOR, '?->', $token->line, $token->pos),
- ]);
- $c--;
- continue;
- }
-
- // Handle ?-> inside encapsed string.
- if ($token->id === \T_ENCAPSED_AND_WHITESPACE && isset($tokens[$i - 1])
- && $tokens[$i - 1]->id === \T_VARIABLE
- && preg_match('/^\?->([a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*)/', $token->text, $matches)
- ) {
- $replacement = [
- new Token(\T_NULLSAFE_OBJECT_OPERATOR, '?->', $token->line, $token->pos),
- new Token(\T_STRING, $matches[1], $token->line, $token->pos + 3),
- ];
- $matchLen = \strlen($matches[0]);
- if ($matchLen !== \strlen($token->text)) {
- $replacement[] = new Token(
- \T_ENCAPSED_AND_WHITESPACE,
- \substr($token->text, $matchLen),
- $token->line, $token->pos + $matchLen
- );
- }
- array_splice($tokens, $i, 1, $replacement);
- $c += \count($replacement) - 1;
- continue;
- }
- }
-
- return $tokens;
- }
-
- public function reverseEmulate(string $code, array $tokens): array {
- // ?-> was not valid code previously, don't bother.
- return $tokens;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/PropertyTokenEmulator.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/PropertyTokenEmulator.php
deleted file mode 100644
index 71b7fc23..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/PropertyTokenEmulator.php
+++ /dev/null
@@ -1,19 +0,0 @@
-text === '(' ||
- ($tokens[$pos + 1]->id === \T_WHITESPACE &&
- isset($tokens[$pos + 2]) &&
- $tokens[$pos + 2]->text === '(')));
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReverseEmulator.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReverseEmulator.php
deleted file mode 100644
index 851b5c4a..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReverseEmulator.php
+++ /dev/null
@@ -1,37 +0,0 @@
-emulator = $emulator;
- }
-
- public function getPhpVersion(): PhpVersion {
- return $this->emulator->getPhpVersion();
- }
-
- public function isEmulationNeeded(string $code): bool {
- return $this->emulator->isEmulationNeeded($code);
- }
-
- public function emulate(string $code, array $tokens): array {
- return $this->emulator->reverseEmulate($code, $tokens);
- }
-
- public function reverseEmulate(string $code, array $tokens): array {
- return $this->emulator->emulate($code, $tokens);
- }
-
- public function preprocessCode(string $code, array &$patches): string {
- return $code;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/TokenEmulator.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/TokenEmulator.php
deleted file mode 100644
index fec2f19f..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/TokenEmulator.php
+++ /dev/null
@@ -1,30 +0,0 @@
- 'public',
- self::PROTECTED => 'protected',
- self::PRIVATE => 'private',
- self::STATIC => 'static',
- self::ABSTRACT => 'abstract',
- self::FINAL => 'final',
- self::READONLY => 'readonly',
- self::PUBLIC_SET => 'public(set)',
- self::PROTECTED_SET => 'protected(set)',
- self::PRIVATE_SET => 'private(set)',
- ];
-
- public static function toString(int $modifier): string {
- if (!isset(self::TO_STRING_MAP[$modifier])) {
- throw new \InvalidArgumentException("Unknown modifier $modifier");
- }
- return self::TO_STRING_MAP[$modifier];
- }
-
- private static function isValidModifier(int $modifier): bool {
- $isPow2 = ($modifier & ($modifier - 1)) == 0 && $modifier != 0;
- return $isPow2 && $modifier <= self::PRIVATE_SET;
- }
-
- /**
- * @internal
- */
- public static function verifyClassModifier(int $a, int $b): void {
- assert(self::isValidModifier($b));
- if (($a & $b) != 0) {
- throw new Error(
- 'Multiple ' . self::toString($b) . ' modifiers are not allowed');
- }
-
- if ($a & 48 && $b & 48) {
- throw new Error('Cannot use the final modifier on an abstract class');
- }
- }
-
- /**
- * @internal
- */
- public static function verifyModifier(int $a, int $b): void {
- assert(self::isValidModifier($b));
- if (($a & Modifiers::VISIBILITY_MASK && $b & Modifiers::VISIBILITY_MASK) ||
- ($a & Modifiers::VISIBILITY_SET_MASK && $b & Modifiers::VISIBILITY_SET_MASK)
- ) {
- throw new Error('Multiple access type modifiers are not allowed');
- }
-
- if (($a & $b) != 0) {
- throw new Error(
- 'Multiple ' . self::toString($b) . ' modifiers are not allowed');
- }
-
- if ($a & 48 && $b & 48) {
- throw new Error('Cannot use the final modifier on an abstract class member');
- }
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/NameContext.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/NameContext.php
deleted file mode 100644
index 2265ecce..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/NameContext.php
+++ /dev/null
@@ -1,284 +0,0 @@
- [aliasName => originalName]] */
- protected array $aliases = [];
-
- /** @var Name[][] Same as $aliases but preserving original case */
- protected array $origAliases = [];
-
- /** @var ErrorHandler Error handler */
- protected ErrorHandler $errorHandler;
-
- /**
- * Create a name context.
- *
- * @param ErrorHandler $errorHandler Error handling used to report errors
- */
- public function __construct(ErrorHandler $errorHandler) {
- $this->errorHandler = $errorHandler;
- }
-
- /**
- * Start a new namespace.
- *
- * This also resets the alias table.
- *
- * @param Name|null $namespace Null is the global namespace
- */
- public function startNamespace(?Name $namespace = null): void {
- $this->namespace = $namespace;
- $this->origAliases = $this->aliases = [
- Stmt\Use_::TYPE_NORMAL => [],
- Stmt\Use_::TYPE_FUNCTION => [],
- Stmt\Use_::TYPE_CONSTANT => [],
- ];
- }
-
- /**
- * Add an alias / import.
- *
- * @param Name $name Original name
- * @param string $aliasName Aliased name
- * @param Stmt\Use_::TYPE_* $type One of Stmt\Use_::TYPE_*
- * @param array $errorAttrs Attributes to use to report an error
- */
- public function addAlias(Name $name, string $aliasName, int $type, array $errorAttrs = []): void {
- // Constant names are case sensitive, everything else case insensitive
- if ($type === Stmt\Use_::TYPE_CONSTANT) {
- $aliasLookupName = $aliasName;
- } else {
- $aliasLookupName = strtolower($aliasName);
- }
-
- if (isset($this->aliases[$type][$aliasLookupName])) {
- $typeStringMap = [
- Stmt\Use_::TYPE_NORMAL => '',
- Stmt\Use_::TYPE_FUNCTION => 'function ',
- Stmt\Use_::TYPE_CONSTANT => 'const ',
- ];
-
- $this->errorHandler->handleError(new Error(
- sprintf(
- 'Cannot use %s%s as %s because the name is already in use',
- $typeStringMap[$type], $name, $aliasName
- ),
- $errorAttrs
- ));
- return;
- }
-
- $this->aliases[$type][$aliasLookupName] = $name;
- $this->origAliases[$type][$aliasName] = $name;
- }
-
- /**
- * Get current namespace.
- *
- * @return null|Name Namespace (or null if global namespace)
- */
- public function getNamespace(): ?Name {
- return $this->namespace;
- }
-
- /**
- * Get resolved name.
- *
- * @param Name $name Name to resolve
- * @param Stmt\Use_::TYPE_* $type One of Stmt\Use_::TYPE_{FUNCTION|CONSTANT}
- *
- * @return null|Name Resolved name, or null if static resolution is not possible
- */
- public function getResolvedName(Name $name, int $type): ?Name {
- // don't resolve special class names
- if ($type === Stmt\Use_::TYPE_NORMAL && $name->isSpecialClassName()) {
- if (!$name->isUnqualified()) {
- $this->errorHandler->handleError(new Error(
- sprintf("'\\%s' is an invalid class name", $name->toString()),
- $name->getAttributes()
- ));
- }
- return $name;
- }
-
- // fully qualified names are already resolved
- if ($name->isFullyQualified()) {
- return $name;
- }
-
- // Try to resolve aliases
- if (null !== $resolvedName = $this->resolveAlias($name, $type)) {
- return $resolvedName;
- }
-
- if ($type !== Stmt\Use_::TYPE_NORMAL && $name->isUnqualified()) {
- if (null === $this->namespace) {
- // outside of a namespace unaliased unqualified is same as fully qualified
- return new FullyQualified($name, $name->getAttributes());
- }
-
- // Cannot resolve statically
- return null;
- }
-
- // if no alias exists prepend current namespace
- return FullyQualified::concat($this->namespace, $name, $name->getAttributes());
- }
-
- /**
- * Get resolved class name.
- *
- * @param Name $name Class ame to resolve
- *
- * @return Name Resolved name
- */
- public function getResolvedClassName(Name $name): Name {
- return $this->getResolvedName($name, Stmt\Use_::TYPE_NORMAL);
- }
-
- /**
- * Get possible ways of writing a fully qualified name (e.g., by making use of aliases).
- *
- * @param string $name Fully-qualified name (without leading namespace separator)
- * @param Stmt\Use_::TYPE_* $type One of Stmt\Use_::TYPE_*
- *
- * @return Name[] Possible representations of the name
- */
- public function getPossibleNames(string $name, int $type): array {
- $lcName = strtolower($name);
-
- if ($type === Stmt\Use_::TYPE_NORMAL) {
- // self, parent and static must always be unqualified
- if ($lcName === "self" || $lcName === "parent" || $lcName === "static") {
- return [new Name($name)];
- }
- }
-
- // Collect possible ways to write this name, starting with the fully-qualified name
- $possibleNames = [new FullyQualified($name)];
-
- if (null !== $nsRelativeName = $this->getNamespaceRelativeName($name, $lcName, $type)) {
- // Make sure there is no alias that makes the normally namespace-relative name
- // into something else
- if (null === $this->resolveAlias($nsRelativeName, $type)) {
- $possibleNames[] = $nsRelativeName;
- }
- }
-
- // Check for relevant namespace use statements
- foreach ($this->origAliases[Stmt\Use_::TYPE_NORMAL] as $alias => $orig) {
- $lcOrig = $orig->toLowerString();
- if (0 === strpos($lcName, $lcOrig . '\\')) {
- $possibleNames[] = new Name($alias . substr($name, strlen($lcOrig)));
- }
- }
-
- // Check for relevant type-specific use statements
- foreach ($this->origAliases[$type] as $alias => $orig) {
- if ($type === Stmt\Use_::TYPE_CONSTANT) {
- // Constants are complicated-sensitive
- $normalizedOrig = $this->normalizeConstName($orig->toString());
- if ($normalizedOrig === $this->normalizeConstName($name)) {
- $possibleNames[] = new Name($alias);
- }
- } else {
- // Everything else is case-insensitive
- if ($orig->toLowerString() === $lcName) {
- $possibleNames[] = new Name($alias);
- }
- }
- }
-
- return $possibleNames;
- }
-
- /**
- * Get shortest representation of this fully-qualified name.
- *
- * @param string $name Fully-qualified name (without leading namespace separator)
- * @param Stmt\Use_::TYPE_* $type One of Stmt\Use_::TYPE_*
- *
- * @return Name Shortest representation
- */
- public function getShortName(string $name, int $type): Name {
- $possibleNames = $this->getPossibleNames($name, $type);
-
- // Find shortest name
- $shortestName = null;
- $shortestLength = \INF;
- foreach ($possibleNames as $possibleName) {
- $length = strlen($possibleName->toCodeString());
- if ($length < $shortestLength) {
- $shortestName = $possibleName;
- $shortestLength = $length;
- }
- }
-
- return $shortestName;
- }
-
- private function resolveAlias(Name $name, int $type): ?FullyQualified {
- $firstPart = $name->getFirst();
-
- if ($name->isQualified()) {
- // resolve aliases for qualified names, always against class alias table
- $checkName = strtolower($firstPart);
- if (isset($this->aliases[Stmt\Use_::TYPE_NORMAL][$checkName])) {
- $alias = $this->aliases[Stmt\Use_::TYPE_NORMAL][$checkName];
- return FullyQualified::concat($alias, $name->slice(1), $name->getAttributes());
- }
- } elseif ($name->isUnqualified()) {
- // constant aliases are case-sensitive, function aliases case-insensitive
- $checkName = $type === Stmt\Use_::TYPE_CONSTANT ? $firstPart : strtolower($firstPart);
- if (isset($this->aliases[$type][$checkName])) {
- // resolve unqualified aliases
- return new FullyQualified($this->aliases[$type][$checkName], $name->getAttributes());
- }
- }
-
- // No applicable aliases
- return null;
- }
-
- private function getNamespaceRelativeName(string $name, string $lcName, int $type): ?Name {
- if (null === $this->namespace) {
- return new Name($name);
- }
-
- if ($type === Stmt\Use_::TYPE_CONSTANT) {
- // The constants true/false/null always resolve to the global symbols, even inside a
- // namespace, so they may be used without qualification
- if ($lcName === "true" || $lcName === "false" || $lcName === "null") {
- return new Name($name);
- }
- }
-
- $namespacePrefix = strtolower($this->namespace . '\\');
- if (0 === strpos($lcName, $namespacePrefix)) {
- return new Name(substr($name, strlen($namespacePrefix)));
- }
-
- return null;
- }
-
- private function normalizeConstName(string $name): string {
- $nsSep = strrpos($name, '\\');
- if (false === $nsSep) {
- return $name;
- }
-
- // Constants have case-insensitive namespace and case-sensitive short-name
- $ns = substr($name, 0, $nsSep);
- $shortName = substr($name, $nsSep + 1);
- return strtolower($ns) . '\\' . $shortName;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node.php
deleted file mode 100644
index fd2a9b72..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node.php
+++ /dev/null
@@ -1,150 +0,0 @@
-
- */
- public function getAttributes(): array;
-
- /**
- * Replaces all the attributes of this node.
- *
- * @param array $attributes
- */
- public function setAttributes(array $attributes): void;
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php
deleted file mode 100644
index 6680efac..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php
+++ /dev/null
@@ -1,44 +0,0 @@
- $attributes Additional attributes
- * @param Identifier|null $name Parameter name (for named parameters)
- */
- public function __construct(
- Expr $value, bool $byRef = false, bool $unpack = false, array $attributes = [],
- ?Identifier $name = null
- ) {
- $this->attributes = $attributes;
- $this->name = $name;
- $this->value = $value;
- $this->byRef = $byRef;
- $this->unpack = $unpack;
- }
-
- public function getSubNodeNames(): array {
- return ['name', 'value', 'byRef', 'unpack'];
- }
-
- public function getType(): string {
- return 'Arg';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/ArrayItem.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/ArrayItem.php
deleted file mode 100644
index fa1cff52..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/ArrayItem.php
+++ /dev/null
@@ -1,43 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $value, ?Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false) {
- $this->attributes = $attributes;
- $this->key = $key;
- $this->value = $value;
- $this->byRef = $byRef;
- $this->unpack = $unpack;
- }
-
- public function getSubNodeNames(): array {
- return ['key', 'value', 'byRef', 'unpack'];
- }
-
- public function getType(): string {
- return 'ArrayItem';
- }
-}
-
-// @deprecated compatibility alias
-class_alias(ArrayItem::class, Expr\ArrayItem::class);
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php
deleted file mode 100644
index 9d892436..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php
+++ /dev/null
@@ -1,33 +0,0 @@
- Attribute arguments */
- public array $args;
-
- /**
- * @param Node\Name $name Attribute name
- * @param list $args Attribute arguments
- * @param array $attributes Additional node attributes
- */
- public function __construct(Name $name, array $args = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->name = $name;
- $this->args = $args;
- }
-
- public function getSubNodeNames(): array {
- return ['name', 'args'];
- }
-
- public function getType(): string {
- return 'Attribute';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/AttributeGroup.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/AttributeGroup.php
deleted file mode 100644
index b9eb588d..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/AttributeGroup.php
+++ /dev/null
@@ -1,27 +0,0 @@
- $attributes Additional node attributes
- */
- public function __construct(array $attrs, array $attributes = []) {
- $this->attributes = $attributes;
- $this->attrs = $attrs;
- }
-
- public function getSubNodeNames(): array {
- return ['attrs'];
- }
-
- public function getType(): string {
- return 'AttributeGroup';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/ClosureUse.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/ClosureUse.php
deleted file mode 100644
index e313280b..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/ClosureUse.php
+++ /dev/null
@@ -1,36 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr\Variable $var, bool $byRef = false, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- $this->byRef = $byRef;
- }
-
- public function getSubNodeNames(): array {
- return ['var', 'byRef'];
- }
-
- public function getType(): string {
- return 'ClosureUse';
- }
-}
-
-// @deprecated compatibility alias
-class_alias(ClosureUse::class, Expr\ClosureUse::class);
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/ComplexType.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/ComplexType.php
deleted file mode 100644
index 05a5e5ee..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/ComplexType.php
+++ /dev/null
@@ -1,13 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct($name, Expr $value, array $attributes = []) {
- $this->attributes = $attributes;
- $this->name = \is_string($name) ? new Identifier($name) : $name;
- $this->value = $value;
- }
-
- public function getSubNodeNames(): array {
- return ['name', 'value'];
- }
-
- public function getType(): string {
- return 'Const';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/DeclareItem.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/DeclareItem.php
deleted file mode 100644
index 55c1fe4f..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/DeclareItem.php
+++ /dev/null
@@ -1,37 +0,0 @@
-value pair node.
- *
- * @param string|Node\Identifier $key Key
- * @param Node\Expr $value Value
- * @param array $attributes Additional attributes
- */
- public function __construct($key, Node\Expr $value, array $attributes = []) {
- $this->attributes = $attributes;
- $this->key = \is_string($key) ? new Node\Identifier($key) : $key;
- $this->value = $value;
- }
-
- public function getSubNodeNames(): array {
- return ['key', 'value'];
- }
-
- public function getType(): string {
- return 'DeclareItem';
- }
-}
-
-// @deprecated compatibility alias
-class_alias(DeclareItem::class, Stmt\DeclareDeclare::class);
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php
deleted file mode 100644
index 8b7dbb6c..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php
+++ /dev/null
@@ -1,8 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, ?Expr $dim = null, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- $this->dim = $dim;
- }
-
- public function getSubNodeNames(): array {
- return ['var', 'dim'];
- }
-
- public function getType(): string {
- return 'Expr_ArrayDimFetch';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php
deleted file mode 100644
index be9d0708..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php
+++ /dev/null
@@ -1,11 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(array $items = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->items = $items;
- }
-
- public function getSubNodeNames(): array {
- return ['items'];
- }
-
- public function getType(): string {
- return 'Expr_Array';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php
deleted file mode 100644
index 0e98ce9f..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php
+++ /dev/null
@@ -1,84 +0,0 @@
- false : Whether the closure is static
- * 'byRef' => false : Whether to return by reference
- * 'params' => array() : Parameters
- * 'returnType' => null : Return type
- * 'attrGroups' => array() : PHP attribute groups
- * @param array $attributes Additional attributes
- */
- public function __construct(array $subNodes, array $attributes = []) {
- $this->attributes = $attributes;
- $this->static = $subNodes['static'] ?? false;
- $this->byRef = $subNodes['byRef'] ?? false;
- $this->params = $subNodes['params'] ?? [];
- $this->returnType = $subNodes['returnType'] ?? null;
- $this->expr = $subNodes['expr'];
- $this->attrGroups = $subNodes['attrGroups'] ?? [];
- }
-
- public function getSubNodeNames(): array {
- return ['attrGroups', 'static', 'byRef', 'params', 'returnType', 'expr'];
- }
-
- public function returnsByRef(): bool {
- return $this->byRef;
- }
-
- public function getParams(): array {
- return $this->params;
- }
-
- public function getReturnType() {
- return $this->returnType;
- }
-
- public function getAttrGroups(): array {
- return $this->attrGroups;
- }
-
- /**
- * @return Node\Stmt\Return_[]
- */
- public function getStmts(): array {
- return [new Node\Stmt\Return_($this->expr)];
- }
-
- public function getType(): string {
- return 'Expr_ArrowFunction';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php
deleted file mode 100644
index dcbf84dd..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php
+++ /dev/null
@@ -1,33 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['var', 'expr'];
- }
-
- public function getType(): string {
- return 'Expr_Assign';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php
deleted file mode 100644
index 5209a64b..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['var', 'expr'];
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php
deleted file mode 100644
index 4f3623fb..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php
+++ /dev/null
@@ -1,11 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['var', 'expr'];
- }
-
- public function getType(): string {
- return 'Expr_AssignRef';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php
deleted file mode 100644
index 1b92bd4f..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php
+++ /dev/null
@@ -1,37 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $left, Expr $right, array $attributes = []) {
- $this->attributes = $attributes;
- $this->left = $left;
- $this->right = $right;
- }
-
- public function getSubNodeNames(): array {
- return ['left', 'right'];
- }
-
- /**
- * Get the operator sigil for this binary operation.
- *
- * In the case there are multiple possible sigils for an operator, this method does not
- * necessarily return the one used in the parsed code.
- */
- abstract public function getOperatorSigil(): string;
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php
deleted file mode 100644
index 5930c541..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php
+++ /dev/null
@@ -1,15 +0,0 @@
-';
- }
-
- public function getType(): string {
- return 'Expr_BinaryOp_Greater';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php
deleted file mode 100644
index 4d440b10..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php
+++ /dev/null
@@ -1,15 +0,0 @@
-=';
- }
-
- public function getType(): string {
- return 'Expr_BinaryOp_GreaterOrEqual';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php
deleted file mode 100644
index e25d17cd..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php
+++ /dev/null
@@ -1,15 +0,0 @@
->';
- }
-
- public function getType(): string {
- return 'Expr_BinaryOp_ShiftRight';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php
deleted file mode 100644
index 01e9b231..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php
+++ /dev/null
@@ -1,15 +0,0 @@
-';
- }
-
- public function getType(): string {
- return 'Expr_BinaryOp_Spaceship';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php
deleted file mode 100644
index b7175a7a..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_BitwiseNot';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php
deleted file mode 100644
index c66d2332..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_BooleanNot';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/CallLike.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/CallLike.php
deleted file mode 100644
index 2af2245b..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/CallLike.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
- */
- abstract public function getRawArgs(): array;
-
- /**
- * Returns whether this call expression is actually a first class callable.
- */
- public function isFirstClassCallable(): bool {
- $rawArgs = $this->getRawArgs();
- return count($rawArgs) === 1 && current($rawArgs) instanceof VariadicPlaceholder;
- }
-
- /**
- * Assert that this is not a first-class callable and return only ordinary Args.
- *
- * @return Arg[]
- */
- public function getArgs(): array {
- assert(!$this->isFirstClassCallable());
- return $this->getRawArgs();
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php
deleted file mode 100644
index c2751de4..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php
+++ /dev/null
@@ -1,25 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php
deleted file mode 100644
index 471cb824..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php
+++ /dev/null
@@ -1,11 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Node $class, $name, array $attributes = []) {
- $this->attributes = $attributes;
- $this->class = $class;
- $this->name = \is_string($name) ? new Identifier($name) : $name;
- }
-
- public function getSubNodeNames(): array {
- return ['class', 'name'];
- }
-
- public function getType(): string {
- return 'Expr_ClassConstFetch';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php
deleted file mode 100644
index d85bc9ab..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_Clone';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php
deleted file mode 100644
index 0680446f..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php
+++ /dev/null
@@ -1,86 +0,0 @@
- false : Whether the closure is static
- * 'byRef' => false : Whether to return by reference
- * 'params' => array(): Parameters
- * 'uses' => array(): use()s
- * 'returnType' => null : Return type
- * 'stmts' => array(): Statements
- * 'attrGroups' => array(): PHP attributes groups
- * @param array $attributes Additional attributes
- */
- public function __construct(array $subNodes = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->static = $subNodes['static'] ?? false;
- $this->byRef = $subNodes['byRef'] ?? false;
- $this->params = $subNodes['params'] ?? [];
- $this->uses = $subNodes['uses'] ?? [];
- $this->returnType = $subNodes['returnType'] ?? null;
- $this->stmts = $subNodes['stmts'] ?? [];
- $this->attrGroups = $subNodes['attrGroups'] ?? [];
- }
-
- public function getSubNodeNames(): array {
- return ['attrGroups', 'static', 'byRef', 'params', 'uses', 'returnType', 'stmts'];
- }
-
- public function returnsByRef(): bool {
- return $this->byRef;
- }
-
- public function getParams(): array {
- return $this->params;
- }
-
- public function getReturnType() {
- return $this->returnType;
- }
-
- /** @return Node\Stmt[] */
- public function getStmts(): array {
- return $this->stmts;
- }
-
- public function getAttrGroups(): array {
- return $this->attrGroups;
- }
-
- public function getType(): string {
- return 'Expr_Closure';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php
deleted file mode 100644
index b3956172..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php
+++ /dev/null
@@ -1,11 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Name $name, array $attributes = []) {
- $this->attributes = $attributes;
- $this->name = $name;
- }
-
- public function getSubNodeNames(): array {
- return ['name'];
- }
-
- public function getType(): string {
- return 'Expr_ConstFetch';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php
deleted file mode 100644
index d2f30506..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_Empty';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php
deleted file mode 100644
index 43010ac4..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php
+++ /dev/null
@@ -1,30 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(array $attributes = []) {
- $this->attributes = $attributes;
- }
-
- public function getSubNodeNames(): array {
- return [];
- }
-
- public function getType(): string {
- return 'Expr_Error';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php
deleted file mode 100644
index 32625a23..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_ErrorSuppress';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php
deleted file mode 100644
index 5120b1b4..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_Eval';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php
deleted file mode 100644
index cf002466..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php
+++ /dev/null
@@ -1,33 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(?Expr $expr = null, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_Exit';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php
deleted file mode 100644
index 0b85840d..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php
+++ /dev/null
@@ -1,38 +0,0 @@
- Arguments */
- public array $args;
-
- /**
- * Constructs a function call node.
- *
- * @param Node\Name|Expr $name Function name
- * @param array $args Arguments
- * @param array $attributes Additional attributes
- */
- public function __construct(Node $name, array $args = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->name = $name;
- $this->args = $args;
- }
-
- public function getSubNodeNames(): array {
- return ['name', 'args'];
- }
-
- public function getType(): string {
- return 'Expr_FuncCall';
- }
-
- public function getRawArgs(): array {
- return $this->args;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php
deleted file mode 100644
index e1187b19..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php
+++ /dev/null
@@ -1,38 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, int $type, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- $this->type = $type;
- }
-
- public function getSubNodeNames(): array {
- return ['expr', 'type'];
- }
-
- public function getType(): string {
- return 'Expr_Include';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php
deleted file mode 100644
index a2783cb3..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php
+++ /dev/null
@@ -1,35 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, Node $class, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- $this->class = $class;
- }
-
- public function getSubNodeNames(): array {
- return ['expr', 'class'];
- }
-
- public function getType(): string {
- return 'Expr_Instanceof';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php
deleted file mode 100644
index 4f80fff7..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(array $vars, array $attributes = []) {
- $this->attributes = $attributes;
- $this->vars = $vars;
- }
-
- public function getSubNodeNames(): array {
- return ['vars'];
- }
-
- public function getType(): string {
- return 'Expr_Isset';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php
deleted file mode 100644
index 496b7b38..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php
+++ /dev/null
@@ -1,34 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(array $items, array $attributes = []) {
- $this->attributes = $attributes;
- $this->items = $items;
- }
-
- public function getSubNodeNames(): array {
- return ['items'];
- }
-
- public function getType(): string {
- return 'Expr_List';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Match_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Match_.php
deleted file mode 100644
index cd028a2d..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Match_.php
+++ /dev/null
@@ -1,32 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Node\Expr $cond, array $arms = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->cond = $cond;
- $this->arms = $arms;
- }
-
- public function getSubNodeNames(): array {
- return ['cond', 'arms'];
- }
-
- public function getType(): string {
- return 'Expr_Match';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php
deleted file mode 100644
index 2703c75d..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php
+++ /dev/null
@@ -1,45 +0,0 @@
- Arguments */
- public array $args;
-
- /**
- * Constructs a function call node.
- *
- * @param Expr $var Variable holding object
- * @param string|Identifier|Expr $name Method name
- * @param array $args Arguments
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, $name, array $args = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- $this->name = \is_string($name) ? new Identifier($name) : $name;
- $this->args = $args;
- }
-
- public function getSubNodeNames(): array {
- return ['var', 'name', 'args'];
- }
-
- public function getType(): string {
- return 'Expr_MethodCall';
- }
-
- public function getRawArgs(): array {
- return $this->args;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php
deleted file mode 100644
index eedaaa1e..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php
+++ /dev/null
@@ -1,40 +0,0 @@
- Arguments */
- public array $args;
-
- /**
- * Constructs a function call node.
- *
- * @param Node\Name|Expr|Node\Stmt\Class_ $class Class name (or class node for anonymous classes)
- * @param array $args Arguments
- * @param array $attributes Additional attributes
- */
- public function __construct(Node $class, array $args = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->class = $class;
- $this->args = $args;
- }
-
- public function getSubNodeNames(): array {
- return ['class', 'args'];
- }
-
- public function getType(): string {
- return 'Expr_New';
- }
-
- public function getRawArgs(): array {
- return $this->args;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafeMethodCall.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafeMethodCall.php
deleted file mode 100644
index a151f715..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafeMethodCall.php
+++ /dev/null
@@ -1,45 +0,0 @@
- Arguments */
- public array $args;
-
- /**
- * Constructs a nullsafe method call node.
- *
- * @param Expr $var Variable holding object
- * @param string|Identifier|Expr $name Method name
- * @param array $args Arguments
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, $name, array $args = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- $this->name = \is_string($name) ? new Identifier($name) : $name;
- $this->args = $args;
- }
-
- public function getSubNodeNames(): array {
- return ['var', 'name', 'args'];
- }
-
- public function getType(): string {
- return 'Expr_NullsafeMethodCall';
- }
-
- public function getRawArgs(): array {
- return $this->args;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafePropertyFetch.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafePropertyFetch.php
deleted file mode 100644
index 6f73a16d..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafePropertyFetch.php
+++ /dev/null
@@ -1,35 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, $name, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- $this->name = \is_string($name) ? new Identifier($name) : $name;
- }
-
- public function getSubNodeNames(): array {
- return ['var', 'name'];
- }
-
- public function getType(): string {
- return 'Expr_NullsafePropertyFetch';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php
deleted file mode 100644
index 3dca8fdc..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- }
-
- public function getSubNodeNames(): array {
- return ['var'];
- }
-
- public function getType(): string {
- return 'Expr_PostDec';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php
deleted file mode 100644
index bc990c30..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- }
-
- public function getSubNodeNames(): array {
- return ['var'];
- }
-
- public function getType(): string {
- return 'Expr_PostInc';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php
deleted file mode 100644
index 2f168730..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- }
-
- public function getSubNodeNames(): array {
- return ['var'];
- }
-
- public function getType(): string {
- return 'Expr_PreDec';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php
deleted file mode 100644
index fd455f55..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- }
-
- public function getSubNodeNames(): array {
- return ['var'];
- }
-
- public function getType(): string {
- return 'Expr_PreInc';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php
deleted file mode 100644
index 60574760..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_Print';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php
deleted file mode 100644
index 8c416a8c..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php
+++ /dev/null
@@ -1,35 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $var, $name, array $attributes = []) {
- $this->attributes = $attributes;
- $this->var = $var;
- $this->name = \is_string($name) ? new Identifier($name) : $name;
- }
-
- public function getSubNodeNames(): array {
- return ['var', 'name'];
- }
-
- public function getType(): string {
- return 'Expr_PropertyFetch';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php
deleted file mode 100644
index e4003512..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php
+++ /dev/null
@@ -1,30 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(array $parts, array $attributes = []) {
- $this->attributes = $attributes;
- $this->parts = $parts;
- }
-
- public function getSubNodeNames(): array {
- return ['parts'];
- }
-
- public function getType(): string {
- return 'Expr_ShellExec';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php
deleted file mode 100644
index 707f34b6..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php
+++ /dev/null
@@ -1,45 +0,0 @@
- Arguments */
- public array $args;
-
- /**
- * Constructs a static method call node.
- *
- * @param Node\Name|Expr $class Class name
- * @param string|Identifier|Expr $name Method name
- * @param array $args Arguments
- * @param array $attributes Additional attributes
- */
- public function __construct(Node $class, $name, array $args = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->class = $class;
- $this->name = \is_string($name) ? new Identifier($name) : $name;
- $this->args = $args;
- }
-
- public function getSubNodeNames(): array {
- return ['class', 'name', 'args'];
- }
-
- public function getType(): string {
- return 'Expr_StaticCall';
- }
-
- public function getRawArgs(): array {
- return $this->args;
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php
deleted file mode 100644
index 4836a65b..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php
+++ /dev/null
@@ -1,36 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Node $class, $name, array $attributes = []) {
- $this->attributes = $attributes;
- $this->class = $class;
- $this->name = \is_string($name) ? new VarLikeIdentifier($name) : $name;
- }
-
- public function getSubNodeNames(): array {
- return ['class', 'name'];
- }
-
- public function getType(): string {
- return 'Expr_StaticPropertyFetch';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php
deleted file mode 100644
index d4837e64..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php
+++ /dev/null
@@ -1,37 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $cond, ?Expr $if, Expr $else, array $attributes = []) {
- $this->attributes = $attributes;
- $this->cond = $cond;
- $this->if = $if;
- $this->else = $else;
- }
-
- public function getSubNodeNames(): array {
- return ['cond', 'if', 'else'];
- }
-
- public function getType(): string {
- return 'Expr_Ternary';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Throw_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Throw_.php
deleted file mode 100644
index ee49f835..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Throw_.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Node\Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_Throw';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php
deleted file mode 100644
index cd06f74b..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_UnaryMinus';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php
deleted file mode 100644
index 1b44f7b3..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_UnaryPlus';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php
deleted file mode 100644
index bab74920..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct($name, array $attributes = []) {
- $this->attributes = $attributes;
- $this->name = $name;
- }
-
- public function getSubNodeNames(): array {
- return ['name'];
- }
-
- public function getType(): string {
- return 'Expr_Variable';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php
deleted file mode 100644
index 5cff88f8..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = []) {
- $this->attributes = $attributes;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames(): array {
- return ['expr'];
- }
-
- public function getType(): string {
- return 'Expr_YieldFrom';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php
deleted file mode 100644
index bd81e69b..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php
+++ /dev/null
@@ -1,33 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(?Expr $value = null, ?Expr $key = null, array $attributes = []) {
- $this->attributes = $attributes;
- $this->key = $key;
- $this->value = $value;
- }
-
- public function getSubNodeNames(): array {
- return ['key', 'value'];
- }
-
- public function getType(): string {
- return 'Expr_Yield';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php
deleted file mode 100644
index 58f653a8..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php
+++ /dev/null
@@ -1,40 +0,0 @@
- */
- private static array $specialClassNames = [
- 'self' => true,
- 'parent' => true,
- 'static' => true,
- ];
-
- /**
- * Constructs an identifier node.
- *
- * @param string $name Identifier as string
- * @param array $attributes Additional attributes
- */
- public function __construct(string $name, array $attributes = []) {
- if ($name === '') {
- throw new \InvalidArgumentException('Identifier name cannot be empty');
- }
-
- $this->attributes = $attributes;
- $this->name = $name;
- }
-
- public function getSubNodeNames(): array {
- return ['name'];
- }
-
- /**
- * Get identifier as string.
- *
- * @psalm-return non-empty-string
- * @return string Identifier as string.
- */
- public function toString(): string {
- return $this->name;
- }
-
- /**
- * Get lowercased identifier as string.
- *
- * @psalm-return non-empty-string&lowercase-string
- * @return string Lowercased identifier as string
- */
- public function toLowerString(): string {
- return strtolower($this->name);
- }
-
- /**
- * Checks whether the identifier is a special class name (self, parent or static).
- *
- * @return bool Whether identifier is a special class name
- */
- public function isSpecialClassName(): bool {
- return isset(self::$specialClassNames[strtolower($this->name)]);
- }
-
- /**
- * Get identifier as string.
- *
- * @psalm-return non-empty-string
- * @return string Identifier as string
- */
- public function __toString(): string {
- return $this->name;
- }
-
- public function getType(): string {
- return 'Identifier';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php
deleted file mode 100644
index 576dac46..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php
+++ /dev/null
@@ -1,32 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(string $value, array $attributes = []) {
- $this->attributes = $attributes;
- $this->value = $value;
- }
-
- public function getSubNodeNames(): array {
- return ['value'];
- }
-
- public function getType(): string {
- return 'InterpolatedStringPart';
- }
-}
-
-// @deprecated compatibility alias
-class_alias(InterpolatedStringPart::class, Scalar\EncapsedStringPart::class);
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/IntersectionType.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/IntersectionType.php
deleted file mode 100644
index 3b39cf10..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/IntersectionType.php
+++ /dev/null
@@ -1,27 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(array $types, array $attributes = []) {
- $this->attributes = $attributes;
- $this->types = $types;
- }
-
- public function getSubNodeNames(): array {
- return ['types'];
- }
-
- public function getType(): string {
- return 'IntersectionType';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/MatchArm.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/MatchArm.php
deleted file mode 100644
index 2927f029..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/MatchArm.php
+++ /dev/null
@@ -1,30 +0,0 @@
- */
- public ?array $conds;
- /** @var Node\Expr */
- public Expr $body;
-
- /**
- * @param null|list $conds
- */
- public function __construct(?array $conds, Node\Expr $body, array $attributes = []) {
- $this->conds = $conds;
- $this->body = $body;
- $this->attributes = $attributes;
- }
-
- public function getSubNodeNames(): array {
- return ['conds', 'body'];
- }
-
- public function getType(): string {
- return 'MatchArm';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Name.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Name.php
deleted file mode 100644
index 932080b5..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Name.php
+++ /dev/null
@@ -1,278 +0,0 @@
- */
- private static array $specialClassNames = [
- 'self' => true,
- 'parent' => true,
- 'static' => true,
- ];
-
- /**
- * Constructs a name node.
- *
- * @param string|string[]|self $name Name as string, part array or Name instance (copy ctor)
- * @param array $attributes Additional attributes
- */
- final public function __construct($name, array $attributes = []) {
- $this->attributes = $attributes;
- $this->name = self::prepareName($name);
- }
-
- public function getSubNodeNames(): array {
- return ['name'];
- }
-
- /**
- * Get parts of name (split by the namespace separator).
- *
- * @psalm-return non-empty-list
- * @return string[] Parts of name
- */
- public function getParts(): array {
- return \explode('\\', $this->name);
- }
-
- /**
- * Gets the first part of the name, i.e. everything before the first namespace separator.
- *
- * @return string First part of the name
- */
- public function getFirst(): string {
- if (false !== $pos = \strpos($this->name, '\\')) {
- return \substr($this->name, 0, $pos);
- }
- return $this->name;
- }
-
- /**
- * Gets the last part of the name, i.e. everything after the last namespace separator.
- *
- * @return string Last part of the name
- */
- public function getLast(): string {
- if (false !== $pos = \strrpos($this->name, '\\')) {
- return \substr($this->name, $pos + 1);
- }
- return $this->name;
- }
-
- /**
- * Checks whether the name is unqualified. (E.g. Name)
- *
- * @return bool Whether the name is unqualified
- */
- public function isUnqualified(): bool {
- return false === \strpos($this->name, '\\');
- }
-
- /**
- * Checks whether the name is qualified. (E.g. Name\Name)
- *
- * @return bool Whether the name is qualified
- */
- public function isQualified(): bool {
- return false !== \strpos($this->name, '\\');
- }
-
- /**
- * Checks whether the name is fully qualified. (E.g. \Name)
- *
- * @return bool Whether the name is fully qualified
- */
- public function isFullyQualified(): bool {
- return false;
- }
-
- /**
- * Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name)
- *
- * @return bool Whether the name is relative
- */
- public function isRelative(): bool {
- return false;
- }
-
- /**
- * Returns a string representation of the name itself, without taking the name type into
- * account (e.g., not including a leading backslash for fully qualified names).
- *
- * @psalm-return non-empty-string
- * @return string String representation
- */
- public function toString(): string {
- return $this->name;
- }
-
- /**
- * Returns a string representation of the name as it would occur in code (e.g., including
- * leading backslash for fully qualified names.
- *
- * @psalm-return non-empty-string
- * @return string String representation
- */
- public function toCodeString(): string {
- return $this->toString();
- }
-
- /**
- * Returns lowercased string representation of the name, without taking the name type into
- * account (e.g., no leading backslash for fully qualified names).
- *
- * @psalm-return non-empty-string&lowercase-string
- * @return string Lowercased string representation
- */
- public function toLowerString(): string {
- return strtolower($this->name);
- }
-
- /**
- * Checks whether the identifier is a special class name (self, parent or static).
- *
- * @return bool Whether identifier is a special class name
- */
- public function isSpecialClassName(): bool {
- return isset(self::$specialClassNames[strtolower($this->name)]);
- }
-
- /**
- * Returns a string representation of the name by imploding the namespace parts with the
- * namespace separator.
- *
- * @psalm-return non-empty-string
- * @return string String representation
- */
- public function __toString(): string {
- return $this->name;
- }
-
- /**
- * Gets a slice of a name (similar to array_slice).
- *
- * This method returns a new instance of the same type as the original and with the same
- * attributes.
- *
- * If the slice is empty, null is returned. The null value will be correctly handled in
- * concatenations using concat().
- *
- * Offset and length have the same meaning as in array_slice().
- *
- * @param int $offset Offset to start the slice at (may be negative)
- * @param int|null $length Length of the slice (may be negative)
- *
- * @return static|null Sliced name
- */
- public function slice(int $offset, ?int $length = null) {
- if ($offset === 1 && $length === null) {
- // Short-circuit the common case.
- if (false !== $pos = \strpos($this->name, '\\')) {
- return new static(\substr($this->name, $pos + 1));
- }
- return null;
- }
-
- $parts = \explode('\\', $this->name);
- $numParts = \count($parts);
-
- $realOffset = $offset < 0 ? $offset + $numParts : $offset;
- if ($realOffset < 0 || $realOffset > $numParts) {
- throw new \OutOfBoundsException(sprintf('Offset %d is out of bounds', $offset));
- }
-
- if (null === $length) {
- $realLength = $numParts - $realOffset;
- } else {
- $realLength = $length < 0 ? $length + $numParts - $realOffset : $length;
- if ($realLength < 0 || $realLength > $numParts - $realOffset) {
- throw new \OutOfBoundsException(sprintf('Length %d is out of bounds', $length));
- }
- }
-
- if ($realLength === 0) {
- // Empty slice is represented as null
- return null;
- }
-
- return new static(array_slice($parts, $realOffset, $realLength), $this->attributes);
- }
-
- /**
- * Concatenate two names, yielding a new Name instance.
- *
- * The type of the generated instance depends on which class this method is called on, for
- * example Name\FullyQualified::concat() will yield a Name\FullyQualified instance.
- *
- * If one of the arguments is null, a new instance of the other name will be returned. If both
- * arguments are null, null will be returned. As such, writing
- * Name::concat($namespace, $shortName)
- * where $namespace is a Name node or null will work as expected.
- *
- * @param string|string[]|self|null $name1 The first name
- * @param string|string[]|self|null $name2 The second name
- * @param array $attributes Attributes to assign to concatenated name
- *
- * @return static|null Concatenated name
- */
- public static function concat($name1, $name2, array $attributes = []) {
- if (null === $name1 && null === $name2) {
- return null;
- }
- if (null === $name1) {
- return new static($name2, $attributes);
- }
- if (null === $name2) {
- return new static($name1, $attributes);
- } else {
- return new static(
- self::prepareName($name1) . '\\' . self::prepareName($name2), $attributes
- );
- }
- }
-
- /**
- * Prepares a (string, array or Name node) name for use in name changing methods by converting
- * it to a string.
- *
- * @param string|string[]|self $name Name to prepare
- *
- * @psalm-return non-empty-string
- * @return string Prepared name
- */
- private static function prepareName($name): string {
- if (\is_string($name)) {
- if ('' === $name) {
- throw new \InvalidArgumentException('Name cannot be empty');
- }
-
- return $name;
- }
- if (\is_array($name)) {
- if (empty($name)) {
- throw new \InvalidArgumentException('Name cannot be empty');
- }
-
- return implode('\\', $name);
- }
- if ($name instanceof self) {
- return $name->name;
- }
-
- throw new \InvalidArgumentException(
- 'Expected string, array of parts or Name instance'
- );
- }
-
- public function getType(): string {
- return 'Name';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php
deleted file mode 100644
index 21183786..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php
+++ /dev/null
@@ -1,49 +0,0 @@
-toString();
- }
-
- public function getType(): string {
- return 'Name_FullyQualified';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php
deleted file mode 100644
index 0226a4e4..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php
+++ /dev/null
@@ -1,49 +0,0 @@
-toString();
- }
-
- public function getType(): string {
- return 'Name_Relative';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/NullableType.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/NullableType.php
deleted file mode 100644
index b99acd13..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/NullableType.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(Node $type, array $attributes = []) {
- $this->attributes = $attributes;
- $this->type = $type;
- }
-
- public function getSubNodeNames(): array {
- return ['type'];
- }
-
- public function getType(): string {
- return 'NullableType';
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php
deleted file mode 100644
index 57d15b7b..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php
+++ /dev/null
@@ -1,119 +0,0 @@
- $attributes Additional attributes
- * @param int $flags Optional visibility flags
- * @param list $attrGroups PHP attribute groups
- * @param PropertyHook[] $hooks Property hooks for promoted properties
- */
- public function __construct(
- Expr $var, ?Expr $default = null, ?Node $type = null,
- bool $byRef = false, bool $variadic = false,
- array $attributes = [],
- int $flags = 0,
- array $attrGroups = [],
- array $hooks = []
- ) {
- $this->attributes = $attributes;
- $this->type = $type;
- $this->byRef = $byRef;
- $this->variadic = $variadic;
- $this->var = $var;
- $this->default = $default;
- $this->flags = $flags;
- $this->attrGroups = $attrGroups;
- $this->hooks = $hooks;
- }
-
- public function getSubNodeNames(): array {
- return ['attrGroups', 'flags', 'type', 'byRef', 'variadic', 'var', 'default', 'hooks'];
- }
-
- public function getType(): string {
- return 'Param';
- }
-
- /**
- * Whether this parameter uses constructor property promotion.
- */
- public function isPromoted(): bool {
- return $this->flags !== 0 || $this->hooks !== [];
- }
-
- public function isPublic(): bool {
- $public = (bool) ($this->flags & Modifiers::PUBLIC);
- if ($public) {
- return true;
- }
-
- if ($this->hooks === []) {
- return false;
- }
-
- return ($this->flags & Modifiers::VISIBILITY_MASK) === 0;
- }
-
- public function isProtected(): bool {
- return (bool) ($this->flags & Modifiers::PROTECTED);
- }
-
- public function isPrivate(): bool {
- return (bool) ($this->flags & Modifiers::PRIVATE);
- }
-
- public function isReadonly(): bool {
- return (bool) ($this->flags & Modifiers::READONLY);
- }
-
- /**
- * Whether the promoted property has explicit public(set) visibility.
- */
- public function isPublicSet(): bool {
- return (bool) ($this->flags & Modifiers::PUBLIC_SET);
- }
-
- /**
- * Whether the promoted property has explicit protected(set) visibility.
- */
- public function isProtectedSet(): bool {
- return (bool) ($this->flags & Modifiers::PROTECTED_SET);
- }
-
- /**
- * Whether the promoted property has explicit private(set) visibility.
- */
- public function isPrivateSet(): bool {
- return (bool) ($this->flags & Modifiers::PRIVATE_SET);
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/PropertyHook.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/PropertyHook.php
deleted file mode 100644
index 349b9cef..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/PropertyHook.php
+++ /dev/null
@@ -1,105 +0,0 @@
- 0 : Flags
- * 'byRef' => false : Whether hook returns by reference
- * 'params' => array(): Parameters
- * 'attrGroups' => array(): PHP attribute groups
- * @param array $attributes Additional attributes
- */
- public function __construct($name, $body, array $subNodes = [], array $attributes = []) {
- $this->attributes = $attributes;
- $this->name = \is_string($name) ? new Identifier($name) : $name;
- $this->body = $body;
- $this->flags = $subNodes['flags'] ?? 0;
- $this->byRef = $subNodes['byRef'] ?? false;
- $this->params = $subNodes['params'] ?? [];
- $this->attrGroups = $subNodes['attrGroups'] ?? [];
- }
-
- public function returnsByRef(): bool {
- return $this->byRef;
- }
-
- public function getParams(): array {
- return $this->params;
- }
-
- public function getReturnType() {
- return null;
- }
-
- /**
- * Whether the property hook is final.
- */
- public function isFinal(): bool {
- return (bool) ($this->flags & Modifiers::FINAL);
- }
-
- public function getStmts(): ?array {
- if ($this->body instanceof Expr) {
- $name = $this->name->toLowerString();
- if ($name === 'get') {
- return [new Return_($this->body)];
- }
- if ($name === 'set') {
- if (!$this->hasAttribute('propertyName')) {
- throw new \LogicException(
- 'Can only use getStmts() on a "set" hook if the "propertyName" attribute is set');
- }
-
- $propName = $this->getAttribute('propertyName');
- $prop = new PropertyFetch(new Variable('this'), (string) $propName);
- return [new Expression(new Assign($prop, $this->body))];
- }
- throw new \LogicException('Unknown property hook "' . $name . '"');
- }
- return $this->body;
- }
-
- public function getAttrGroups(): array {
- return $this->attrGroups;
- }
-
- public function getType(): string {
- return 'PropertyHook';
- }
-
- public function getSubNodeNames(): array {
- return ['attrGroups', 'flags', 'byRef', 'name', 'params', 'body'];
- }
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/PropertyItem.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/PropertyItem.php
deleted file mode 100644
index 101611e6..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/PropertyItem.php
+++ /dev/null
@@ -1,37 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct($name, ?Node\Expr $default = null, array $attributes = []) {
- $this->attributes = $attributes;
- $this->name = \is_string($name) ? new Node\VarLikeIdentifier($name) : $name;
- $this->default = $default;
- }
-
- public function getSubNodeNames(): array {
- return ['name', 'default'];
- }
-
- public function getType(): string {
- return 'PropertyItem';
- }
-}
-
-// @deprecated compatibility alias
-class_alias(PropertyItem::class, Stmt\PropertyProperty::class);
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar.php
deleted file mode 100644
index 3df25721..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar.php
+++ /dev/null
@@ -1,6 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(float $value, array $attributes = []) {
- $this->attributes = $attributes;
- $this->value = $value;
- }
-
- public function getSubNodeNames(): array {
- return ['value'];
- }
-
- /**
- * @param mixed[] $attributes
- */
- public static function fromString(string $str, array $attributes = []): Float_ {
- $attributes['rawValue'] = $str;
- $float = self::parse($str);
-
- return new Float_($float, $attributes);
- }
-
- /**
- * @internal
- *
- * Parses a DNUMBER token like PHP would.
- *
- * @param string $str A string number
- *
- * @return float The parsed number
- */
- public static function parse(string $str): float {
- $str = str_replace('_', '', $str);
-
- // Check whether this is one of the special integer notations.
- if ('0' === $str[0]) {
- // hex
- if ('x' === $str[1] || 'X' === $str[1]) {
- return hexdec($str);
- }
-
- // bin
- if ('b' === $str[1] || 'B' === $str[1]) {
- return bindec($str);
- }
-
- // oct, but only if the string does not contain any of '.eE'.
- if (false === strpbrk($str, '.eE')) {
- // substr($str, 0, strcspn($str, '89')) cuts the string at the first invalid digit
- // (8 or 9) so that only the digits before that are used.
- return octdec(substr($str, 0, strcspn($str, '89')));
- }
- }
-
- // dec
- return (float) $str;
- }
-
- public function getType(): string {
- return 'Scalar_Float';
- }
-}
-
-// @deprecated compatibility alias
-class_alias(Float_::class, DNumber::class);
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Int_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Int_.php
deleted file mode 100644
index bcc257a6..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Int_.php
+++ /dev/null
@@ -1,82 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(int $value, array $attributes = []) {
- $this->attributes = $attributes;
- $this->value = $value;
- }
-
- public function getSubNodeNames(): array {
- return ['value'];
- }
-
- /**
- * Constructs an Int node from a string number literal.
- *
- * @param string $str String number literal (decimal, octal, hex or binary)
- * @param array $attributes Additional attributes
- * @param bool $allowInvalidOctal Whether to allow invalid octal numbers (PHP 5)
- *
- * @return Int_ The constructed LNumber, including kind attribute
- */
- public static function fromString(string $str, array $attributes = [], bool $allowInvalidOctal = false): Int_ {
- $attributes['rawValue'] = $str;
-
- $str = str_replace('_', '', $str);
-
- if ('0' !== $str[0] || '0' === $str) {
- $attributes['kind'] = Int_::KIND_DEC;
- return new Int_((int) $str, $attributes);
- }
-
- if ('x' === $str[1] || 'X' === $str[1]) {
- $attributes['kind'] = Int_::KIND_HEX;
- return new Int_(hexdec($str), $attributes);
- }
-
- if ('b' === $str[1] || 'B' === $str[1]) {
- $attributes['kind'] = Int_::KIND_BIN;
- return new Int_(bindec($str), $attributes);
- }
-
- if (!$allowInvalidOctal && strpbrk($str, '89')) {
- throw new Error('Invalid numeric literal', $attributes);
- }
-
- // Strip optional explicit octal prefix.
- if ('o' === $str[1] || 'O' === $str[1]) {
- $str = substr($str, 2);
- }
-
- // use intval instead of octdec to get proper cutting behavior with malformed numbers
- $attributes['kind'] = Int_::KIND_OCT;
- return new Int_(intval($str, 8), $attributes);
- }
-
- public function getType(): string {
- return 'Scalar_Int';
- }
-}
-
-// @deprecated compatibility alias
-class_alias(Int_::class, LNumber::class);
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/InterpolatedString.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/InterpolatedString.php
deleted file mode 100644
index 9336dfe4..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/InterpolatedString.php
+++ /dev/null
@@ -1,34 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(array $parts, array $attributes = []) {
- $this->attributes = $attributes;
- $this->parts = $parts;
- }
-
- public function getSubNodeNames(): array {
- return ['parts'];
- }
-
- public function getType(): string {
- return 'Scalar_InterpolatedString';
- }
-}
-
-// @deprecated compatibility alias
-class_alias(InterpolatedString::class, Encapsed::class);
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php
deleted file mode 100644
index 0d128710..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php
+++ /dev/null
@@ -1,11 +0,0 @@
- $attributes Additional attributes
- */
- public function __construct(array $attributes = []) {
- $this->attributes = $attributes;
- }
-
- public function getSubNodeNames(): array {
- return [];
- }
-
- /**
- * Get name of magic constant.
- *
- * @return string Name of magic constant
- */
- abstract public function getName(): string;
-}
diff --git a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php b/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php
deleted file mode 100644
index 732ed140..00000000
--- a/wordpress-dev/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php
+++ /dev/null
@@ -1,15 +0,0 @@
- Escaped character to its decoded value */
- protected static array $replacements = [
- '\\' => '\\',
- '$' => '$',
- 'n' => "\n",
- 'r' => "\r",
- 't' => "\t",
- 'f' => "\f",
- 'v' => "\v",
- 'e' => "\x1B",
- ];
-
- /**
- * Constructs a string scalar node.
- *
- * @param string $value Value of the string
- * @param array $attributes Additional attributes
- */
- public function __construct(string $value, array $attributes = []) {
- $this->attributes = $attributes;
- $this->value = $value;
- }
-
- public function getSubNodeNames(): array {
- return ['value'];
- }
-
- /**
- * @param array