Completed
Pull Request — master (#6908)
by Damian
14:34
created
tests/php/View/SSViewerTest.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -159,6 +159,10 @@  discard block
 block discarded – undo
159 159
         ]);
160 160
     }
161 161
 
162
+    /**
163
+     * @param \SilverStripe\ORM\FieldType\DBHTMLText $result
164
+     * @param string[] $expected
165
+     */
162 166
     private function assertExpectedStrings($result, $expected)
163 167
     {
164 168
         foreach ($expected as $expectedStr) {
@@ -1089,6 +1093,10 @@  discard block
 block discarded – undo
1089 1093
         $this->assertEquals('A A1 A1 i A1 ii A2 A3', $rationalisedResult);
1090 1094
     }
1091 1095
 
1096
+    /**
1097
+     * @param string $a
1098
+     * @param string $b
1099
+     */
1092 1100
     public function assertEqualIgnoringWhitespace($a, $b, $message = '')
1093 1101
     {
1094 1102
         $this->assertEquals(preg_replace('/\s+/', '', $a), preg_replace('/\s+/', '', $b), $message);
@@ -1817,6 +1825,11 @@  discard block
 block discarded – undo
1817 1825
             $this->_renderWithSourceFileComments('SSViewerTestComments/'.$template['name'], $template['expected']);
1818 1826
         }
1819 1827
     }
1828
+
1829
+    /**
1830
+     * @param string $name
1831
+     * @param string $expected
1832
+     */
1820 1833
     private function _renderWithSourceFileComments($name, $expected)
1821 1834
     {
1822 1835
         $viewer = new SSViewer(array($name));
Please login to merge, or discard this patch.