<?php
-/*
+/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
* @covers InstallDocFormatter::format
* @dataProvider provideDocFormattingTests
*/
- function testFormat( $expected, $unformattedText, $message = '' ) {
+ public function testFormat( $expected, $unformattedText, $message = '' ) {
$this->assertEquals(
$expected,
InstallDocFormatter::format( $unformattedText ),
array( 'Install <tag>', 'Install <tag>', 'Escaping <' ),
array( 'Install {{template}}', 'Install {{template}}', 'Escaping [[' ),
array( 'Install [[page]]', 'Install [[page]]', 'Escaping {{' ),
+ array( 'Install __TOC__', 'Install __TOC__', 'Escaping __' ),
array( 'Install ', "Install \r", 'Removing \r' ),
# Transform \t{1,2} into :{1,2}