@@ -96,6 +96,9 @@ |
||
| 96 | 96 | return $this->getIndentedLine( $lineContent, $indentationLevel ); |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | + /** |
|
| 100 | + * @param string $lineContent |
|
| 101 | + */ |
|
| 99 | 102 | private function getIndentedLine( $lineContent, $indentationLevel ) { |
| 100 | 103 | $totalIndentLevel = $indentationLevel + $this->options[self::OPT_ADDLEVEL]; |
| 101 | 104 | |
@@ -19,6 +19,9 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | private static $titles = []; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $titleText |
|
| 24 | + */ |
|
| 22 | 25 | public static function createPage( $titleText ) { |
| 23 | 26 | $title = Title::newFromText( $titleText ); |
| 24 | 27 | self::$titles[] = $title; |
@@ -78,6 +81,10 @@ discard block |
||
| 78 | 81 | ); |
| 79 | 82 | } |
| 80 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $pageName |
|
| 86 | + * @param integer $expectedCount |
|
| 87 | + */ |
|
| 81 | 88 | private function assertSubPageCountFor( $pageName, $expectedCount ) { |
| 82 | 89 | $this->assertEquals( |
| 83 | 90 | $expectedCount, |
@@ -62,6 +62,9 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $listText |
|
| 67 | + */ |
|
| 65 | 68 | private function assertCreatesList( array $params, $listText ) { |
| 66 | 69 | $this->assertEquals( |
| 67 | 70 | $listText, |
@@ -69,6 +72,9 @@ discard block |
||
| 69 | 72 | ); |
| 70 | 73 | } |
| 71 | 74 | |
| 75 | + /** |
|
| 76 | + * @param string $listText |
|
| 77 | + */ |
|
| 72 | 78 | private function assertCreatesListWithWrap( array $params, $listText ) { |
| 73 | 79 | $this->assertCreatesList( |
| 74 | 80 | $params, |
@@ -28,6 +28,10 @@ discard block |
||
| 28 | 28 | $this->assertEquals( (string)$numberOfSubPages . '.0', $countResult ); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $titleText |
|
| 33 | + * @param integer $numberOfSubPages |
|
| 34 | + */ |
|
| 31 | 35 | private function newSubPageCount( $titleText, $numberOfSubPages ) { |
| 32 | 36 | $titleFactory = new TitleFactory(); |
| 33 | 37 | |
@@ -41,6 +45,9 @@ discard block |
||
| 41 | 45 | return new SubPageCount( $counter, $titleFactory ); |
| 42 | 46 | } |
| 43 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $titleText |
|
| 50 | + */ |
|
| 44 | 51 | private function getCountResult( SubPageCount $subPageCount, $titleText ) { |
| 45 | 52 | $language = $this->getMock( 'Language' ); |
| 46 | 53 | |
@@ -30,6 +30,10 @@ discard block |
||
| 30 | 30 | $this->assertEquals( $renderResult, $renderedList ); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $titleText |
|
| 35 | + * @param string $renderResult |
|
| 36 | + */ |
|
| 33 | 37 | private function newSubPageList( $titleText, $renderResult ) { |
| 34 | 38 | $title = \Title::newFromText( $titleText ); |
| 35 | 39 | $page = new Page( $title ); |
@@ -64,6 +68,9 @@ discard block |
||
| 64 | 68 | ); |
| 65 | 69 | } |
| 66 | 70 | |
| 71 | + /** |
|
| 72 | + * @param string $titleText |
|
| 73 | + */ |
|
| 67 | 74 | private function getRenderedList( SubPageList $subPageList, $titleText ) { |
| 68 | 75 | $parser = $this->getMock( 'Parser' ); |
| 69 | 76 | |
@@ -45,6 +45,9 @@ |
||
| 45 | 45 | ]; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $listText |
|
| 50 | + */ |
|
| 48 | 51 | private function assertCreatesList( array $params, $listText ) { |
| 49 | 52 | $this->assertEquals( |
| 50 | 53 | $listText, |
@@ -55,6 +55,9 @@ discard block |
||
| 55 | 55 | ] ); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @param string $pageName |
|
| 60 | + */ |
|
| 58 | 61 | public function newMockTitle( $pageName ) { |
| 59 | 62 | $title = $this->getMock( 'Title' ); |
| 60 | 63 | |
@@ -82,6 +85,9 @@ discard block |
||
| 82 | 85 | $this->assertEquals( [], $page->getSubPages() ); |
| 83 | 86 | } |
| 84 | 87 | |
| 88 | + /** |
|
| 89 | + * @param integer $expectedCount |
|
| 90 | + */ |
|
| 85 | 91 | private function assertPageCount( $expectedCount, $hierarchy ) { |
| 86 | 92 | $this->assertInternalType( 'array', $hierarchy ); |
| 87 | 93 | $this->assertCount( $expectedCount, $hierarchy ); |