115 $ss =
new StripState(
null, [
'depthLimit' => 5,
'sizeLimit' => $sizeLimit ] );
117 for ( $i = 0; $i < $depth; $i++ ) {
119 $ss->addNoWiki( $mk, $text );
122 $text = $ss->unstripNoWiki( $text );
123 $report = $ss->getLimitReport();
128 $this->assertSame( [ $depth - 1, 5 ],
$messages[
'limitreport-unstrip-depth'] );
131 strlen( $this->
getMarker() ) * 2 * ( pow( 2, $depth ) - 2 ) + pow( 2, $depth ),
134 $messages[
'limitreport-unstrip-size' ] );