Redaxscript\Tests\CacheTest::testStore PHP Метод

testStore() публичный Метод

testStore
С версии: 3.0.0
public testStore ( array $bundleArray = [], array $expectArray = [] )
$bundleArray array
$expectArray array
    public function testStore($bundleArray = [], $expectArray = [])
    {
        /* setup */
        $cache = new Cache();
        $cache->init(Stream::url('root/test'), 'cache');
        foreach ($bundleArray as $key => $value) {
            $cache->store($value, $key);
        }
        /* actual */
        $actualArray = scandir(Stream::url('root/test'));
        /* compare */
        $this->assertEquals($expectArray, $actualArray);
    }