!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/test/Validator/Symfony/Component/Validator/Tests/Constraints/   drwxr-xr-x
Free 291.02 GB of 429.69 GB (67.73%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Validator\Tests\Constraints;

use 
Symfony\Component\Validator\Constraint;
use 
Symfony\Component\Validator\Constraints\AbstractComparisonValidator;

class 
ComparisonTest_Class
{
    protected 
$value;

    public function 
__construct($value)
    {
        
$this->value $value;
    }

    public function 
__toString()
    {
        return (string) 
$this->value;
    }
}

/**
 * @author Daniel Holmes <daniel@danielholmes.org>
 */
abstract class AbstractComparisonValidatorTestCase extends \PHPUnit_Framework_TestCase
{
    private 
$validator;
    private 
$context;

    protected function 
setUp()
    {
        
$this->validator $this->createValidator();
        
$this->context $this->getMockBuilder('Symfony\Component\Validator\ExecutionContext')
            ->
disableOriginalConstructor()
            ->
getMock();
        
$this->validator->initialize($this->context);
    }

    
/**
     * @return AbstractComparisonValidator
     */
    
abstract protected function createValidator();

    public function 
testThrowsConstraintExceptionIfNoValueOrProperty()
    {
        
$this->setExpectedException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');

        
$comparison $this->createConstraint(array());
        
$this->validator->validate('some value'$comparison);
    }

    
/**
     * @dataProvider provideValidComparisons
     * @param mixed $dirtyValue
     * @param mixed $comparisonValue
     */
    
public function testValidComparisonToValue($dirtyValue$comparisonValue)
    {
        
$this->context->expects($this->never())
            ->
method('addViolation');

        
$constraint $this->createConstraint(array('value' => $comparisonValue));

        
$this->context->expects($this->any())
            ->
method('getPropertyPath')
            ->
will($this->returnValue('property1'));

        
$this->validator->validate($dirtyValue$constraint);
    }

    
/**
     * @return array
     */
    
abstract public function provideValidComparisons();

    
/**
     * @dataProvider provideInvalidComparisons
     * @param mixed  $dirtyValue
     * @param mixed  $comparedValue
     * @param mixed  $comparedValueString
     * @param string $comparedValueType
     */
    
public function testInvalidComparisonToValue($dirtyValue$comparedValue$comparedValueString$comparedValueType)
    {
        
$constraint $this->createConstraint(array('value' => $comparedValue));
        
$constraint->message 'Constraint Message';

        
$this->context->expects($this->any())
            ->
method('getPropertyPath')
            ->
will($this->returnValue('property1'));

        
$this->context->expects($this->once())
            ->
method('addViolation')
            ->
with('Constraint Message', array(
                
'{{ value }}' => $comparedValueString,
                
'{{ compared_value }}' => $comparedValueString,
                
'{{ compared_value_type }}' => $comparedValueType
            
));

        
$this->validator->validate($dirtyValue$constraint);
    }

    
/**
     * @return array
     */
    
abstract public function provideInvalidComparisons();

    
/**
     * @param  array      $options Options for the constraint
     * @return Constraint
     */
    
abstract protected function createConstraint(array $options);
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0915 ]--