MediaWiki REL1_32
TestFileEditor Class Reference

Static Public Member Functions

static edit ( $text, array $deletions, array $changes, $warningCallback=null)
 

Protected Member Functions

 emitComment ( $contents)
 
 emitHooks ( $heading, $contents)
 
 emitTest ( $test)
 

Private Member Functions

 __construct ( $text, array $deletions, array $changes, $warningCallback)
 
 execute ()
 
 getHeading ( $line)
 
 parseHooks ()
 
 parseTest ()
 
 warning ( $text)
 

Private Attributes

 $changes
 
 $deletions
 
 $lines
 
 $numLines
 
 $pos
 
 $result
 
 $warningCallback
 

Detailed Description

Definition at line 3 of file TestFileEditor.php.

Constructor & Destructor Documentation

◆ __construct()

TestFileEditor::__construct (   $text,
array  $deletions,
array  $changes,
  $warningCallback 
)
private

Definition at line 18 of file TestFileEditor.php.

References $changes, $deletions, and $warningCallback.

Member Function Documentation

◆ edit()

static TestFileEditor::edit (   $text,
array  $deletions,
array  $changes,
  $warningCallback = null 
)
static

Definition at line 12 of file TestFileEditor.php.

References $changes, $deletions, $editor, and $warningCallback.

Referenced by ParserEditTests\editTest().

◆ emitComment()

TestFileEditor::emitComment (   $contents)
protected

Definition at line 142 of file TestFileEditor.php.

Referenced by execute().

◆ emitHooks()

TestFileEditor::emitHooks (   $heading,
  $contents 
)
protected

Definition at line 193 of file TestFileEditor.php.

Referenced by parseHooks().

◆ emitTest()

TestFileEditor::emitTest (   $test)
protected

Definition at line 146 of file TestFileEditor.php.

References $changes, $section, and as.

Referenced by parseTest().

◆ execute()

TestFileEditor::execute ( )
private

Definition at line 28 of file TestFileEditor.php.

References $line, $pos, $section, as, emitComment(), getHeading(), parseHooks(), parseTest(), and warning().

◆ getHeading()

TestFileEditor::getHeading (   $line)
private

Definition at line 66 of file TestFileEditor.php.

References $line.

Referenced by execute(), parseHooks(), and parseTest().

◆ parseHooks()

TestFileEditor::parseHooks ( )
private

Definition at line 124 of file TestFileEditor.php.

References $line, emitHooks(), and getHeading().

Referenced by execute().

◆ parseTest()

TestFileEditor::parseTest ( )
private

Definition at line 74 of file TestFileEditor.php.

References $line, $section, emitTest(), and getHeading().

Referenced by execute().

◆ warning()

TestFileEditor::warning (   $text)
private

Definition at line 59 of file TestFileEditor.php.

References $warningCallback.

Referenced by execute().

Member Data Documentation

◆ $changes

TestFileEditor::$changes
private

Definition at line 7 of file TestFileEditor.php.

Referenced by __construct(), edit(), and emitTest().

◆ $deletions

TestFileEditor::$deletions
private

Definition at line 6 of file TestFileEditor.php.

Referenced by __construct(), and edit().

◆ $lines

TestFileEditor::$lines
private

Definition at line 4 of file TestFileEditor.php.

◆ $numLines

TestFileEditor::$numLines
private

Definition at line 5 of file TestFileEditor.php.

◆ $pos

TestFileEditor::$pos
private

Definition at line 8 of file TestFileEditor.php.

Referenced by execute().

◆ $result

TestFileEditor::$result
private

Definition at line 10 of file TestFileEditor.php.

◆ $warningCallback

TestFileEditor::$warningCallback
private

Definition at line 9 of file TestFileEditor.php.

Referenced by __construct(), edit(), and warning().


The documentation for this class was generated from the following file: