Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 44... Línea 44...
44
    }
44
    }
Línea 45... Línea 45...
45
 
45
 
46
    /**
46
    /**
47
     * Test the maxsize option.
47
     * Test the maxsize option.
48
     */
48
     */
49
    public function test_maxsize() {
49
    public function test_maxsize(): void {
50
        $defid = 'phpunit/testmaxsize';
50
        $defid = 'phpunit/testmaxsize';
51
        $config = \cache_config_testing::instance();
51
        $config = \cache_config_testing::instance();
52
        $config->phpunit_add_definition($defid, array(
52
        $config->phpunit_add_definition($defid, array(
53
            'mode' => cache_store::MODE_REQUEST,
53
            'mode' => cache_store::MODE_REQUEST,
Línea 117... Línea 117...
117
    }
117
    }
Línea 118... Línea 118...
118
 
118
 
119
    /**
119
    /**
120
     * Simple test to verify igbinary availability and check basic serialization is working ok.
120
     * Simple test to verify igbinary availability and check basic serialization is working ok.
121
     */
121
     */
122
    public function test_igbinary_serializer() {
122
    public function test_igbinary_serializer(): void {
123
        // Skip if igbinary is not available.
123
        // Skip if igbinary is not available.
124
        if (!extension_loaded('igbinary')) {
124
        if (!extension_loaded('igbinary')) {
125
            $this->markTestSkipped('Cannot test igbinary serializer. Extension missing');
125
            $this->markTestSkipped('Cannot test igbinary serializer. Extension missing');
126
        }
126
        }