Subversion Repositories Applications.framework

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 1
<?php
2
 
3
test();
4
test($arg, $arg2);
5
test ();
6
test( );
7
test() ;
8
test( $arg);
9
test( $arg );
10
test ( $arg );
11
 
12
if (is_array($arg) === true) {
13
 
14
}
15
 
16
$something = get($arg1, $arg2);
17
$something = get($arg1, $arg2) ;
18
$something = get($arg1, $arg2)   ;
19
 
20
// No errors as this test only checks for function calls.
21
class TestClass extends MyClass
22
{
23
 
24
    const const1 = 'hello';
25
    const CONST2 = 'hello';
26
 
27
    public function test () { }
28
}
29
 
30
make_foo($string/*the string*/, true/*test*/);
31
make_foo($string/*the string*/, true/*test*/ );
32
make_foo($string /*the string*/, true /*test*/);
33
make_foo(/*the string*/$string, /*test*/true);
34
make_foo( /*the string*/$string, /*test*/true);
35
 
36
// No errors should be throw here because
37
// this is not a function call per se.
38
throw new Exception(
39
    'Exception text'
40
);
41
 
42
// Or here.
43
$obj = new TestClass( );
44
 
45
// Heredocs dont need to be indented.
46
method_call(
47
<<<EOH
48
Anyone want to recomment parse errors?
49
 
50
EOH
51
);
52
 
53
fputs(
54
    STDOUT,
55
    'Examples:
56
    $ {$app} --all
57
    $ {$app} --all');
58
 
59
fputs(STDOUT,
60
    "Examples:
61
    $ {$app} --all
62
    $ {$app} --all",
63
$something
64
    );
65
?>