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

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.1.0/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2012-05-31 16:37:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120531163724-u6aiaubu8ks5dh5z
Tags: 1.3.4-0.1
* Non-maintainer upload.
* New upstream release (Closes: #599617, #634825).
* Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the
upstream license changed).
* Switched package to pkg-php-tools and debhelper 8 sequencer.
* Now running unit tests at build time (so depends on phpunit (>= 3.6)).
* Section is now PHP.
* Added missing Build-Depends-Indep: php-pear.
* Added missing ${misc:Depends}.
* Added Vcs fields.
* Added homepage field.
* Reviewed short and long description.
* Added dependency on php-timer.
* Standards-Version: is now 3.9.3 (lots of changes, see above...).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// do ... while
2
 
i = 0;
3
 
do {
4
 
    i = 0;
5
 
} while (i > 0);
6
 
 
7
 
do
8
 
{
9
 
    i = 0;
10
 
} while (i > 0);
11
 
 
12
 
do
13
 
{
14
 
    i = 0;
15
 
}
16
 
while (i > 0);
17
 
 
18
 
do { i = 0; } while (i > 0);
19
 
 
20
 
do{
21
 
    i = 0;
22
 
}while(i > 0);
23
 
 
24
 
// while
25
 
while (i < 1) {
26
 
    i = 0;
27
 
}
28
 
 
29
 
while(i < 1){
30
 
    i = 0;
31
 
}
32
 
 
33
 
while (i < 1) { i = 0; }
34
 
 
35
 
// for
36
 
for (i = 1; i < 1; i++) {
37
 
    i = 0;
38
 
}
39
 
 
40
 
for(i = 1; i < 1; i++){
41
 
    i = 0;
42
 
}
43
 
 
44
 
for (i = 1; i < 1; i++) { i = 0; }
45
 
 
46
 
// if
47
 
if (i == 0) {
48
 
    i = 1;
49
 
}
50
 
 
51
 
if(i == 0){
52
 
    i = 1;
53
 
}
54
 
 
55
 
if (i == 0) { i = 1; }
56
 
 
57
 
// else
58
 
if (i == 0) {
59
 
    i = 1;
60
 
} else {
61
 
    i = 0;
62
 
}
63
 
 
64
 
if (i == 0) {
65
 
    i = 1;
66
 
}else{
67
 
    i = 0;
68
 
}
69
 
 
70
 
if (i == 0) { i = 1; } else { i = 0; }
71
 
 
72
 
// else
73
 
if (i == 0) {
74
 
    i = 1;
75
 
} else {
76
 
    i = 0;
77
 
}
78
 
 
79
 
// else if
80
 
if (i == 0) {
81
 
    i = 1;
82
 
} else if (i == 2) {
83
 
    i = 0;
84
 
}
85
 
 
86
 
if (i == 0) {
87
 
    i = 1;
88
 
}else if(i == 2){
89
 
    i = 0;
90
 
}
91
 
 
92
 
if (i == 0) { i = 1; } else if (i == 2) { i = 0; }
93
 
 
94
 
if (i == 0) { // comments are not allowed
95
 
    i = 1;
96
 
}
97
 
 
98
 
if (i == 0) {// comments are not allowed
99
 
    i = 1;
100
 
}
101
 
 
102
 
if (i == 0) { /* comments are not allowed*/
103
 
    i = 1;
104
 
}
105
 
 
106
 
if (i == 0)
107
 
{ // this is not ok
108
 
    i = 1;
109
 
}
110
 
 
111
 
if (i == 0) /* this is not ok */ {
112
 
}
113
 
 
114
 
try {
115
 
    code = 'this';
116
 
} catch (e) {
117
 
    // Caught!
118
 
}
119
 
 
120
 
try { code = 'this'; } catch (e) {
121
 
    // Caught!
122
 
}
123
 
 
124
 
do { i = 0;
125
 
} while (i > 0);
 
 
b'\\ No newline at end of file'