HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/local/wp/vendor/yoast/phpunit-polyfills/src/Exceptions/InvalidComparisonMethodException.php
<?php

namespace Yoast\PHPUnitPolyfills\Exceptions;

use Exception;

/**
 * Exception used for all errors throw by the polyfill for the `assertObjectEquals()` assertion.
 *
 * PHPUnit natively throws a range of different exceptions.
 * The polyfill throws just one exception type with different messages.
 *
 * @since 1.0.0
 */
final class InvalidComparisonMethodException extends Exception {

	/**
	 * Convert the Exception object to a string message.
	 *
	 * @return string
	 */
	public function __toString() {
		return $this->getMessage() . \PHP_EOL;
	}
}