Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 26... Línea 26...
26
 *
26
 *
27
 * @package    logstore_standard
27
 * @package    logstore_standard
28
 * @copyright  2014 Petr Skoda {@link http://skodak.org/}
28
 * @copyright  2014 Petr Skoda {@link http://skodak.org/}
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 */
30
 */
31
class store_test extends \advanced_testcase {
31
final class store_test extends \advanced_testcase {
32
    /**
32
    /**
33
     * @var bool Determine if we disabled the GC, so it can be re-enabled in tearDown.
33
     * @var bool Determine if we disabled the GC, so it can be re-enabled in tearDown.
34
     */
34
     */
35
    private $wedisabledgc = false;
35
    private $wedisabledgc = false;
Línea 387... Línea 387...
387
     * I took these types from our logs based on the different first character of PHP serialized
387
     * I took these types from our logs based on the different first character of PHP serialized
388
     * data - my query found only these types. The normal case is an array.
388
     * data - my query found only these types. The normal case is an array.
389
     *
389
     *
390
     * @return array Array of parameters
390
     * @return array Array of parameters
391
     */
391
     */
392
    public function decode_other_provider(): array {
392
    public static function decode_other_provider(): array {
393
        return [
393
        return [
394
            [['info' => 'd2819896', 'logurl' => 'discuss.php?d=2819896']],
394
            [['info' => 'd2819896', 'logurl' => 'discuss.php?d=2819896']],
395
            [null],
395
            [null],
396
            ['just a string'],
396
            ['just a string'],
397
            [32768]
397
            [32768]
Línea 545... Línea 545...
545
    public function tearDown(): void {
545
    public function tearDown(): void {
546
        if ($this->wedisabledgc) {
546
        if ($this->wedisabledgc) {
547
            gc_enable();
547
            gc_enable();
548
        }
548
        }
549
        $this->wedisabledgc = false;
549
        $this->wedisabledgc = false;
-
 
550
        parent::tearDown();
550
    }
551
    }
551
}
552
}