code: public static function compare($expected, $actual, $strict = true)
      {
          try {
              self::calculateDiff($expected, $actual, $strict);
          } catch (\Exception $exception) {
              $instance = new DifferentValuesException(
                  $expected,
                  $actual,
                  $strict,
                  'The values differ.',
                  0,
                  $exception
              );
              throw $instance;
          }
      }
docs: Check if the actual argument is the same as the expected.
  
  @param mixed $expected The expected value.
  
  @param mixed $actual   The actual value.
  
  @param bool  $strict   Run in strict mode.
  
  @return void
  
  @throws DifferentValuesException When the values differ.