~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/xhpast/naming-conventions.lint-test

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-11-01 23:20:06 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20141101232006-mvlnp0cil67tsboe
Tags: upstream-0~git20141101/arcanist
Import upstream version 0~git20141101, component arcanist

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
final class a {
 
3
  const b = 1, c = d;
 
4
  protected $E, $H;
 
5
  public function F($G, $GG) {}
 
6
}
 
7
 
 
8
interface i {}
 
9
 
 
10
 
 
11
 
 
12
function YY($ZZ) {}
 
13
 
 
14
final class Quack {
 
15
  const R = 1, S = 2;
 
16
  protected $tX, $uY;
 
17
  public function vV($w_w) {}
 
18
}
 
19
 
 
20
 
 
21
 
 
22
 
 
23
 
 
24
function () use ($this_is_a_closure) {};
 
25
 
 
26
function f(&$YY) {}
 
27
 
 
28
function g() {
 
29
  $lowerCamelCase = 0;
 
30
  $UpperCamelCase = 0;
 
31
  $UPPERCASE_WITH_UNDERSCORES = 0;
 
32
  $lowercase_with_underscores = 0;
 
33
  $mIxEd_CaSe = 0;
 
34
}
 
35
 
 
36
function h() {
 
37
  global $mIxEd_CaSe;
 
38
  $mIxEd_CaSe = 2;
 
39
  $GLOBALS[0] = 2;
 
40
  $_ENV[0] = 1;
 
41
}
 
42
 
 
43
function i() {
 
44
  self::$X_x;
 
45
  Other::$Y_y;
 
46
  parent::$Z_z;
 
47
  self::$X_x[0];
 
48
  Other::$Y_y[0];
 
49
  parent::$Z_z[0];
 
50
}
 
51
~~~~~~~~~~
 
52
warning:2:13
 
53
warning:3:9
 
54
warning:3:16
 
55
warning:4:13
 
56
warning:4:17
 
57
warning:5:19
 
58
warning:5:21
 
59
warning:5:25
 
60
warning:8:11
 
61
warning:12:10
 
62
warning:12:13
 
63
warning:26:13
 
64
warning:29:3
 
65
warning:30:3
 
66
warning:31:3
 
67
warning:33:3