assertSame( $expectedOutput, $splitter->split( $input ) ); } // TODO: Add more examples. public static function provideSplitData() { return [ [ 'this may be linked [[this may not be linked]]', [ 'this may be linked ', '[[this may not be linked]]', '' ] ], [ 'this may be linked this may not be linked', [ 'this may be linked ', 'this may not be linked', '' ] ], [ 'this may be linked {{mytemplate|param={{transcluded}}}}', [ 'this may be linked ', '{{mytemplate|param={{transcluded}}}}', '' ] ], ]; } }