403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.216.110
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /./proc/self/cwd/wp-content/plugins/publishpress/vendor/sabre/vobject/tests/VObject/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /./proc/self/cwd/wp-content/plugins/publishpress/vendor/sabre/vobject/tests/VObject/TestCase.php
<?php

namespace Sabre\VObject;

class TestCase extends \PHPUnit_Framework_TestCase {

    /**
     * This method tests wether two vcards or icalendar objects are
     * semantically identical.
     *
     * It supports objects being supplied as strings, streams or
     * Sabre\VObject\Component instances.
     *
     * PRODID is removed from both objects as this is often variable.
     *
     * @param resource|string|Component $expected
     * @param resource|string|Component $actual
     * @param string $message
     */
    function assertVObjEquals($expected, $actual, $message = '') {

        $self = $this;
        $getObj = function($input) use ($self) {

            if (is_resource($input)) {
                $input = stream_get_contents($input);
            }
            if (is_string($input)) {
                $input = Reader::read($input);
            }
            if (!$input instanceof Component) {
                $this->fail('Input must be a string, stream or VObject component');
            }
            unset($input->PRODID);
            return $input;

        };

        $expected = $getObj($expected);
        $actual = $getObj($actual);

        $this->assertEquals(
            $expected->serialize(),
            $actual->serialize(),
            $message
        );

    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit