File: LowerCaseKeywordUnitTest.inc

package info (click to toggle)
php-codesniffer 2.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,460 kB
  • ctags: 8,660
  • sloc: php: 40,311; xml: 9,505; pascal: 3,365; makefile: 16; sh: 6
file content (19 lines) | stat: -rw-r--r-- 561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
// A few keywords. Obviously not valid syntax.
class Something extends SomethingElse implements Whatever
abstract public private protected function whatever() {}
const array()
for ($var as $var) { exit; }
if ($a and $b or $c xor $d) { die; } elseif { } else
goto a;

Class Something EXTENDS SomethingElse implementS Whatever
Abstract Public Private Protected function whatever() {}
CONST array()
For ($var As $var) { Exit; }
If ($a AND $b OR $c XOR $d) { Die; } ElseIf { } Else
GOTO a;
function (Array $a) {}
const PRIVATE;
HttpStatus::CONTINUE;
function