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

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/xhpast/language-construct-parentheses.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
include 'foo.php';
 
3
include_once 'foo.php';
 
4
require 'foo.php';
 
5
require_once 'foo.php';
 
6
echo 'foo';
 
7
 
 
8
include('bar.php');
 
9
include_once('bar.php');
 
10
require('bar.php');
 
11
require_once('bar.php');
 
12
echo('bar');
 
13
 
 
14
include ('baz.php');
 
15
include_once ('baz.php');
 
16
require ('baz.php');
 
17
require_once ('baz.php');
 
18
echo ('baz');
 
19
~~~~~~~~~~
 
20
warning:8:8
 
21
warning:9:13
 
22
warning:10:8
 
23
warning:11:13
 
24
warning:12:5
 
25
warning:14:9
 
26
warning:15:14
 
27
warning:16:9
 
28
warning:17:14
 
29
warning:18:6
 
30
~~~~~~~~~~
 
31
<?php
 
32
include 'foo.php';
 
33
include_once 'foo.php';
 
34
require 'foo.php';
 
35
require_once 'foo.php';
 
36
echo 'foo';
 
37
 
 
38
include 'bar.php';
 
39
include_once 'bar.php';
 
40
require 'bar.php';
 
41
require_once 'bar.php';
 
42
echo 'bar';
 
43
 
 
44
include 'baz.php';
 
45
include_once 'baz.php';
 
46
require 'baz.php';
 
47
require_once 'baz.php';
 
48
echo 'baz';