Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/dceprojects.corals.io/vendor/league/flysystem-cached-adapter/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/dceprojects.corals.io/vendor/league/flysystem-cached-adapter/tests/NoopCacheTests.php
<?php

use League\Flysystem\Cached\Storage\Noop;
use PHPUnit\Framework\TestCase;

class NoopCacheTests extends TestCase
{
    public function testNoop()
    {
        $cache = new Noop();
        $this->assertEquals($cache, $cache->storeMiss('file.txt'));
        $this->assertNull($cache->setComplete('', false));
        $this->assertNull($cache->load());
        $this->assertNull($cache->flush());
        $this->assertNull($cache->has('path.txt'));
        $this->assertNull($cache->autosave());
        $this->assertFalse($cache->isComplete('', false));
        $this->assertFalse($cache->read('something'));
        $this->assertFalse($cache->readStream('something'));
        $this->assertFalse($cache->getMetadata('something'));
        $this->assertFalse($cache->getMimetype('something'));
        $this->assertFalse($cache->getSize('something'));
        $this->assertFalse($cache->getTimestamp('something'));
        $this->assertFalse($cache->getVisibility('something'));
        $this->assertEmpty($cache->listContents('', false));
        $this->assertFalse($cache->rename('', ''));
        $this->assertFalse($cache->copy('', ''));
        $this->assertNull($cache->save());
        $object = ['path' => 'path.ext'];
        $this->assertEquals($object, $cache->updateObject('path.txt', $object));
        $this->assertEquals([['path' => 'some/file.txt']], $cache->storeContents('unknwon', [
            ['path' => 'some/file.txt'],
        ], false));
    }
}

Spamworldpro Mini