~ubuntu-branches/ubuntu/utopic/php-codesniffer/utopic-proposed

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.5.0RC2/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc

  • Committer: Package Import Robot
  • Author(s): David Prévot
  • Date: 2014-07-21 14:42:41 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20140721144241-g4orlcuk4jzn9mhs
Tags: 1.5.3-1
* Team upload
* Focus on stable release
* Update copyright
* Bump standards version to 3.9.5
* Update Homepage
* Use ${phppear:…} instead of hardcoding them
* Run tests in dh_auto_test
* Update patch with gbp pq
* Simplify configuration installation
* Edit package.xml to move script
* Add DEP-8 tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
 
3
 
 
4
 
 
5
 
class ClassDeclaration
6
 
{
7
 
 
8
 
}
9
 
 
10
 
abstract class CorrectClassDeclarationWithExtends extends correctClassDeclaration
11
 
{
12
 
 
13
 
}
14
 
 
15
 
final  class CorrectClassDeclarationWithImplements implements correctClassDeclaration
16
 
{
17
 
 
18
 
}
19
 
 
20
 
 
21
 
// Incorrect placement of opening/closing braces, including indent.
22
 
class IncorrectBracePlacement {}
23
 
class IncorrectBracePlacementWithExtends extends correctClassDeclaration {}
24
 
class IncorrectBracePlacementWithImplements implements correctClassDeclaration {}
25
 
 
26
 
 
27
 
    class IncorrectIndentedClass
28
 
    {
29
 
 
30
 
    }//end class
31
 
 
32
 
 
33
 
// Incorrect code placement for opening/closing brace.
34
 
class IncorrectCodeAfterOpeningBrace
35
 
{ echo phpinfo();
36
 
 
37
 
}//end class
38
 
 
39
 
class IncorrectCodeAfterClosingBrace
40
 
{
41
 
 
42
 
} echo phpinfo();
43
 
 
44
 
 
45
 
class IncorrectCodeBeforeClosingBrace
46
 
{
47
 
 
48
 
echo phpinfo(); }
49
 
 
50
 
    class IncorrectIndentedClass
51
 
{
52
 
 
53
 
}
54
 
 
55
 
class ClassOne implements ClassTwo, ClassThree
56
 
{
57
 
}//end class
58
 
 
59
 
class ClassOne implements ClassFour   ,ClassFive,  ClassSix
60
 
{
61
 
}//end class
62
 
 
63
 
class CorrectClassDeclarationWithExtends extends correctClassDeclaration
64
 
 
65
 
{
66
 
 
67
 
}
68
 
 
69
 
class CorrectClassDeclarationWithExtends   extends correctClassDeclaration
70
 
{
71
 
 
72
 
}//end class
73
 
 
74
 
class   CorrectClassDeclaration
75
 
{
76
 
 
77
 
}//end class
78
 
 
79
 
 
80
 
class CorrectClassDeclaration extends CorrectClassDeclaration2 implements ICorrectClassDeclaration
81
 
{
82
 
 
83
 
}//end class
84
 
 
85
 
class File implements \Zend_Auth_Storage_Interface,\Zend_Auth_Storage,  \Zend_Foo
86
 
{
87
 
}
88
 
 
89
 
interface MyInterface
90
 
{
91
 
 
92
 
}
93
 
?>
94
 
 
95
 
<?php
96
 
 
97
 
class CorrectClassDeclaration
98
 
{
99
 
 
100
 
}//end class