Skip to content

Commit 8cd6207

Browse files
committed
Add class to semi_reserved tests
1 parent e67a129 commit 8cd6207

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
. Implemented the RFC `Fix "foreach" behavior`. (Dmitry)
7979
. Implemented the RFC `Generator Delegation`. (Bob)
8080
. Implemented the RFC `Anonymous Class Support`. (Joe, Nikita, Dmitry)
81-
. Implemented the RFC `Context Sensitive Lexer`. (Marc Almada)
81+
. Implemented the RFC `Context Sensitive Lexer`. (Marcio Almada)
8282
. Fixed bug #69511 (Off-by-one buffer overflow in php_sys_readlink).
8383
(Jan Starke, Anatol)
8484

Zend/tests/grammar/semi_reserved_001.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class Obj
6868
function static(){ echo __METHOD__, PHP_EOL; }
6969
function abstract(){ echo __METHOD__, PHP_EOL; }
7070
function final(){ echo __METHOD__, PHP_EOL; }
71+
function class(){ echo __METHOD__, PHP_EOL; }
7172
}
7273

7374
$obj = new Obj;
@@ -135,6 +136,7 @@ $obj->private();
135136
$obj->static();
136137
$obj->abstract();
137138
$obj->final();
139+
$obj->class();
138140

139141
echo "\nDone\n";
140142

@@ -202,5 +204,6 @@ Obj::private
202204
Obj::static
203205
Obj::abstract
204206
Obj::final
207+
Obj::class
205208

206209
Done

Zend/tests/grammar/semi_reserved_002.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class Obj
6868
static function static(){ echo __METHOD__, PHP_EOL; }
6969
static function abstract(){ echo __METHOD__, PHP_EOL; }
7070
static function final(){ echo __METHOD__, PHP_EOL; }
71+
static function class(){ echo __METHOD__, PHP_EOL; }
7172
}
7273

7374
Obj::empty();
@@ -133,6 +134,7 @@ Obj::private();
133134
Obj::static();
134135
Obj::abstract();
135136
Obj::final();
137+
Obj::class();
136138

137139
echo "\nDone\n";
138140

@@ -200,5 +202,6 @@ Obj::private
200202
Obj::static
201203
Obj::abstract
202204
Obj::final
205+
Obj::class
203206

204207
Done

0 commit comments

Comments
 (0)