Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
DumpLBZip2Output
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * Sends dump output via the lbzip2 compressor.
4 *
5 * Copyright © 2003, 2005, 2006 Brooke Vibber <bvibber@wikimedia.org>
6 * Copyright © 2019 Wikimedia Foundation Inc.
7 * https://www.mediawiki.org/
8 *
9 * @license GPL-2.0-or-later
10 * @file
11 */
12
13namespace MediaWiki\Export;
14
15/**
16 * @ingroup Dump
17 * @since 1.33
18 */
19class DumpLBZip2Output extends DumpPipeOutput {
20    /**
21     * @param string $file
22     */
23    public function __construct( $file ) {
24        # use only one core
25        parent::__construct( "lbzip2 -n 1", $file );
26    }
27}
28
29/** @deprecated class alias since 1.46 */
30class_alias( DumpLBZip2Output::class, 'DumpLBZip2Output' );