Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 42... Línea 42...
42
    }
42
    }
Línea 43... Línea 43...
43
 
43
 
44
    /**
44
    /**
45
     * Test the maxsize option.
45
     * Test the maxsize option.
46
     */
46
     */
47
    public function test_maxsize() {
47
    public function test_maxsize(): void {
48
        $config = \cache_config_testing::instance();
48
        $config = \cache_config_testing::instance();
49
        $config->phpunit_add_definition('phpunit/one', array(
49
        $config->phpunit_add_definition('phpunit/one', array(
50
            'mode' => cache_store::MODE_SESSION,
50
            'mode' => cache_store::MODE_SESSION,
51
            'component' => 'phpunit',
51
            'component' => 'phpunit',
Línea 164... Línea 164...
164
        $cacheone->set_many(array('keyE' => 'valueE', 'keyF' => 'valueF'));
164
        $cacheone->set_many(array('keyE' => 'valueE', 'keyF' => 'valueF'));
165
        $this->assertEquals(array('keyC' => 'valueC', 'keyE' => 'valueE', 'keyD' => false, 'keyF' => 'valueF'),
165
        $this->assertEquals(array('keyC' => 'valueC', 'keyE' => 'valueE', 'keyD' => false, 'keyF' => 'valueF'),
166
                $cacheone->get_many(array('keyC', 'keyE', 'keyD', 'keyF')));
166
                $cacheone->get_many(array('keyC', 'keyE', 'keyD', 'keyF')));
167
    }
167
    }
Línea 168... Línea 168...
168
 
168
 
169
    public function test_ttl() {
169
    public function test_ttl(): void {
170
        $config = \cache_config_testing::instance();
170
        $config = \cache_config_testing::instance();
171
        $config->phpunit_add_definition('phpunit/three', array(
171
        $config->phpunit_add_definition('phpunit/three', array(
172
            'mode' => cache_store::MODE_SESSION,
172
            'mode' => cache_store::MODE_SESSION,
173
            'component' => 'phpunit',
173
            'component' => 'phpunit',