cvs: pear /PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes ClassDeclarationUnitTest.inc ClassDeclarationUnitTest.php
| From: | Greg Sherwood | Date: | Fri, 29 Dec 2006 05:58:20 +0000 |
| Subject: | cvs: pear /PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes ClassDeclarationUnitTest.inc ClassDeclarationUnitTest.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-43875@lists.php.net to get a copy of this message | ||
squiz Fri Dec 29 05:58:20 2006 UTC
Modified files:
/pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes
ClassDeclarationUnitTest.inc
ClassDeclarationUnitTest.php
Log:
More unit tests
http://cvs.php.net/viewvc.cgi/pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc?r1=1.1&r2=1.2&diff_format=u
Index: pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc
diff -u
pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc:1.1
pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc:1.2
---
pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc:1.1 Tue
Dec 19 05:51:12 2006
+++ pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc Fri
Dec 29 05:58:20 2006
@@ -52,12 +52,27 @@
}
-class ClassOne extends ClassTwo, ClassThree
+class ClassOne implements ClassTwo, ClassThree
{
}
-class ClassOne extends ClassTwo,ClassThree
+class ClassOne implements ClassTwo,ClassThree
{
}
+class CorrectClassDeclarationWithExtends extends correctClassDeclaration
+
+{
+
+}
+
+class CorrectClassDeclarationWithExtends extends correctClassDeclaration
+{
+
+}
+
+class CorrectClassDeclaration
+{
+
+}
?>
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php
diff -u
pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php:1.1
pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php:1.2
---
pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php:1.1 Tue
Dec 19 05:51:12 2006
+++ pear/PHP_CodeSniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php Fri
Dec 29 05:58:20 2006
@@ -10,7 +10,7 @@
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
* @license http://matrix.squiz.net/developer/tools/php_cs/licence
BSD Licence
- * @version CVS: $Id: ClassDeclarationUnitTest.php,v 1.1 2006/12/19 05:51:12 squiz Exp $
+ * @version CVS: $Id: ClassDeclarationUnitTest.php,v 1.2 2006/12/29 05:58:20 squiz Exp $
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
@@ -61,6 +61,9 @@
50 => 2,
55 => 1,
59 => 2,
+ 63 => 1,
+ 69 => 1,
+ 74 => 1,
);
}//end getErrorList()