Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated changelog and added unit tests

  • Loading branch information...
commit 08b3708473e2aa2e6f91fa6c6e260e093d50633b 1 parent df7391c
Greg Sherwood authored February 01, 2013
5  CodeSniffer/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc
@@ -173,4 +173,9 @@ switch ($var) {
173 173
 trait MyTrait {
174 174
 
175 175
 }
  176
+
  177
+/*
  178
+    这是一条测试评论.
  179
+*/
  180
+
176 181
 ?>
2  CodeSniffer/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc
@@ -123,7 +123,7 @@ class Start_Tag_Incorrect
123 123
 }//end class
124 124
 
125 125
 /**
126  
- * Sample class comment.
  126
+ * 这是一条测试评论.
127 127
  *
128 128
  */
129 129
 class Space_At_end
10  CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc
@@ -565,4 +565,14 @@ public function variableArgs($a1, $a2)
565 565
 
566 566
 }//end variableArgs()
567 567
 
  568
+/**
  569
+ * 这是一条测试评论.
  570
+ *
  571
+ * @return void
  572
+ */
  573
+public function test()
  574
+{
  575
+
  576
+}//end variableArgs()
  577
+
568 578
 ?>
2  CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc
@@ -91,7 +91,7 @@ final class MyClass
91 91
     final public function test() {}
92 92
 }
93 93
 
94  
-// Here is some inline example code:
  94
+// 这是一条测试评论
95 95
 //     -> One
96 96
 //         -> One.One
97 97
 //     -> Two
7  CodeSniffer/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc
@@ -184,6 +184,13 @@ class VariableCommentUnitTest2
184 184
      */
185 185
      private $_varCaseTypeCheck;
186 186
 
  187
+     /**
  188
+      * 这是一条测试评论.
  189
+      *
  190
+      * @var string
  191
+      */
  192
+     public $foo;
  193
+
187 194
 }//end class
188 195
 
189 196
 ?>
2  package.xml
@@ -33,6 +33,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
33 33
     -- Thanks to Roman Levishchenko for the contribution
34 34
   - Added PSR2 ControlStructureSpacingSniff to ensure there are no spaces before and after parenthesis in control structures
35 35
     -- Fixes bug #19732 : PSR2: some control structures errors not reported
  36
+  - Squiz commenting sniffs now support non-English characters when checking for capital letters
  37
+    -- Thanks to Roman Levishchenko for the contribution
36 38
   - PSR1 SideEffectsSniff no longer reports constant declarations as side effects
37 39
   - Notifysend report now supports notify-send versions before 0.7.3
38 40
     -- Thanks to Ken Guest for the patch

0 notes on commit 08b3708

Please sign in to comment.
Something went wrong with that request. Please try again.