File tree Expand file tree Collapse file tree 3 files changed +56
-15
lines changed
src/Standards/Generic/Tests/WhiteSpace Expand file tree Collapse file tree 3 files changed +56
-15
lines changed Original file line number Diff line number Diff line change 2
2
echo $ blah ;
3
3
echo $ blah ;
4
4
echo ($ blah );
5
+ echo $ blah ;
5
6
6
7
print $ blah ;
7
8
print $ blah ;
8
9
print ($ blah );
10
+ print $ blah ;
9
11
10
12
include $ blah ;
11
13
include $ blah ;
12
14
include ($ blah );
15
+ include $ blah ;
13
16
14
17
include_once $ blah ;
15
18
include_once $ blah ;
16
19
include_once ($ blah );
20
+ include_once $ blah ;
17
21
18
22
require $ blah ;
19
23
require $ blah ;
20
24
require ($ blah );
25
+ require $ blah ;
21
26
22
27
require_once $ blah ;
23
28
require_once $ blah ;
24
29
require_once ($ blah );
30
+ require_once $ blah ;
25
31
26
32
$ obj = new MyClass ();
27
33
$ obj = new MyClass ();
28
34
35
+ $ obj = new $ className ();
36
+ $ obj = new $ className ();
37
+
29
38
yield $ blah ;
30
39
yield $ blah ;
40
+ yield $ blah ;
31
41
32
42
yield from $ test ();
33
43
yield FROM $ test ();
@@ -39,12 +49,16 @@ yield
39
49
40
50
41
51
From $ test ();
52
+ yield FROM $ test ();
42
53
43
54
throw new Exception ();
44
55
throw new Exception ();
45
56
throw new Exception ();
46
57
throw new Exception ();
47
58
59
+ throw $ exception ;
60
+ throw $ exception ;
61
+
48
62
namespace MyClass ;
49
63
namespace MyClass ;
50
64
namespace MyNamespace \MyClass ;
@@ -66,6 +80,7 @@ return;
66
80
return $ blah ;
67
81
return $ blah ;
68
82
return ($ blah );
83
+ return $ blah ;
69
84
70
85
return $ tab ;
71
86
return
Original file line number Diff line number Diff line change 2
2
echo $blah;
3
3
echo $blah;
4
4
echo($blah);
5
+ echo $blah;
5
6
6
7
print $blah;
7
8
print $blah;
8
9
print($blah);
10
+ print $blah;
9
11
10
12
include $blah;
11
13
include $blah;
12
14
include($blah);
15
+ include $blah;
13
16
14
17
include_once $blah;
15
18
include_once $blah;
16
19
include_once($blah);
20
+ include_once $blah;
17
21
18
22
require $blah;
19
23
require $blah;
20
24
require($blah);
25
+ require $blah;
21
26
22
27
require_once $blah;
23
28
require_once $blah;
24
29
require_once($blah);
30
+ require_once $blah;
25
31
26
32
$obj = new MyClass();
27
33
$obj = new MyClass();
28
34
35
+ $obj = new $className();
36
+ $obj = new $className();
37
+
38
+ yield $blah;
29
39
yield $blah;
30
40
yield $blah;
31
41
@@ -35,12 +45,16 @@ YIELD from $test();
35
45
yield from $test();
36
46
yield from $test();
37
47
yield From $test();
48
+ yield FROM $test();
38
49
39
50
throw new Exception();
40
51
throw new Exception();
41
52
throw new Exception();
42
53
throw new Exception();
43
54
55
+ throw $exception;
56
+ throw $exception;
57
+
44
58
namespace MyClass;
45
59
namespace MyClass;
46
60
namespace MyNamespace\MyClass;
@@ -62,6 +76,7 @@ return;
62
76
return $blah;
63
77
return $blah;
64
78
return($blah);
79
+ return $blah;
65
80
66
81
return $tab;
67
82
return $newLine;
Original file line number Diff line number Diff line change @@ -36,30 +36,41 @@ public function getErrorList($testFile='')
36
36
case 'LanguageConstructSpacingUnitTest.1.inc ' :
37
37
return [
38
38
3 => 1 ,
39
- 7 => 1 ,
40
- 11 => 1 ,
39
+ 5 => 1 ,
40
+ 8 => 1 ,
41
+ 10 => 1 ,
42
+ 13 => 1 ,
41
43
15 => 1 ,
42
- 19 => 1 ,
44
+ 18 => 1 ,
45
+ 20 => 1 ,
43
46
23 => 1 ,
44
- 27 => 1 ,
47
+ 25 => 1 ,
48
+ 28 => 1 ,
45
49
30 => 1 ,
46
50
33 => 1 ,
47
- 34 => 1 ,
48
- 35 => 1 ,
49
51
36 => 1 ,
50
- 38 => 1 ,
52
+ 39 => 1 ,
53
+ 40 => 1 ,
54
+ 43 => 1 ,
51
55
44 => 1 ,
52
56
45 => 1 ,
53
- 46 => 2 ,
54
- 49 => 1 ,
55
- 51 => 1 ,
56
- 59 => 1 ,
57
- 61 => 1 ,
57
+ 46 => 1 ,
58
+ 48 => 1 ,
59
+ 52 => 1 ,
60
+ 55 => 1 ,
61
+ 56 => 1 ,
62
+ 57 => 2 ,
63
+ 60 => 1 ,
58
64
63 => 1 ,
59
- 67 => 1 ,
60
- 70 => 1 ,
61
- 71 => 1 ,
65
+ 65 => 1 ,
66
+ 73 => 1 ,
62
67
75 => 1 ,
68
+ 77 => 1 ,
69
+ 81 => 1 ,
70
+ 83 => 1 ,
71
+ 85 => 1 ,
72
+ 86 => 1 ,
73
+ 90 => 1 ,
63
74
];
64
75
65
76
default :
You can’t perform that action at this time.
0 commit comments