1 | <?php |
||
65 | class PHPParserVersion56Test extends AbstractTest |
||
66 | { |
||
67 | /** |
||
68 | * testComplexExpressionInParameterInitializer |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | public function testComplexExpressionInParameterInitializer() |
||
79 | |||
80 | /** |
||
81 | * testComplexExpressionInConstantInitializer |
||
82 | * |
||
83 | * @return void |
||
84 | */ |
||
85 | public function testComplexExpressionInConstantDeclarator() |
||
92 | |||
93 | /** |
||
94 | * testComplexExpressionInFieldDeclaration |
||
95 | * |
||
96 | * @return void |
||
97 | */ |
||
98 | public function testComplexExpressionInFieldDeclaration() |
||
105 | |||
106 | /** |
||
107 | * testPowExpressionInMethodBody |
||
108 | * |
||
109 | * @return void |
||
110 | */ |
||
111 | public function testPowExpressionInMethodBody() |
||
118 | |||
119 | /** |
||
120 | * testPowExpressionInFieldDeclaration |
||
121 | * |
||
122 | * @return void |
||
123 | */ |
||
124 | public function testPowExpressionInFieldDeclaration() |
||
131 | |||
132 | /** |
||
133 | * @return void |
||
134 | * @expectedException \PDepend\Source\Parser\UnexpectedTokenException |
||
135 | * @expectedExceptionMessageRegExp (Unexpected token: list, line: 4, col: 21, file: ) |
||
136 | */ |
||
137 | public function testListKeywordAsMethodNameThrowsException() |
||
141 | |||
142 | /** |
||
143 | * @return void |
||
144 | * @expectedException \PDepend\Source\Parser\UnexpectedTokenException |
||
145 | * @expectedExceptionMessageRegExp (Unexpected token: list, line: 2, col: 10, file: ) |
||
146 | */ |
||
147 | public function testListKeywordAsFunctionNameThrowsException() |
||
151 | |||
152 | /** |
||
153 | * @return void |
||
154 | */ |
||
155 | public function testUseStatement() |
||
159 | |||
160 | /** |
||
161 | * @return void |
||
162 | * @expectedException \PDepend\Source\Parser\UnexpectedTokenException |
||
163 | * @expectedExceptionMessageRegExp (^Unexpected token: \{, line: 2, col: 24, file: ) |
||
164 | */ |
||
165 | public function testGroupUseStatementThrowsException() |
||
169 | |||
170 | /** |
||
171 | * @return void |
||
172 | * @expectedException \PDepend\Source\Parser\UnexpectedTokenException |
||
173 | * @expectedExceptionMessageRegExp (^Unexpected token: ::, line: 8, col: 24, file: ) |
||
174 | */ |
||
175 | public function testUniformVariableSyntaxThrowsException() |
||
179 | |||
180 | /** |
||
181 | * @return void |
||
182 | */ |
||
183 | public function testEllipsisOperatorInFunctionCall() |
||
187 | |||
188 | /** |
||
189 | * Tests that the parser throws an exception when it detects an invalid |
||
190 | * token in a method or property declaration. |
||
191 | * |
||
192 | * @return void |
||
193 | */ |
||
194 | public function testParserThrowsUnexpectedTokenExceptionForInvalidTokenInPropertyDeclaration() |
||
203 | |||
204 | /** |
||
205 | * Tests issue with constant array concatenation. |
||
206 | * https://github.com/pdepend/pdepend/issues/299 |
||
207 | * |
||
208 | * @return void |
||
209 | */ |
||
210 | public function testConstantArrayConcatenation() |
||
244 | |||
245 | /** |
||
246 | * @param \PDepend\Source\Tokenizer\Tokenizer $tokenizer |
||
247 | * @param \PDepend\Source\Builder\Builder $builder |
||
248 | * @param \PDepend\Util\Cache\CacheDriver $cache |
||
249 | * @return \PDepend\Source\Language\PHP\AbstractPHPParser |
||
250 | */ |
||
251 | protected function createPHPParser(Tokenizer $tokenizer, Builder $builder, CacheDriver $cache) |
||
258 | |||
259 | /** |
||
260 | * Tests that the parser throws an exception when it detects a reserved keyword |
||
261 | * in constant class names. |
||
262 | * |
||
263 | * @return void |
||
264 | */ |
||
265 | public function testReservedKeyword() |
||
274 | } |
||
275 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.