We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a0b71 commit 15f343dCopy full SHA for 15f343d
src/test/php/lang/ast/unittest/emit/LambdasTest.class.php
@@ -178,17 +178,12 @@ public function run() {
178
Assert::equals(2, $r());
179
}
180
181
- #[Test]
+ #[Test, Expect(Errors::class)]
182
public function no_longer_supports_hacklang_variant() {
183
- try {
184
- $this->run('class <T> {
185
- public function run() {
186
- $func= ($arg) ==> { return 1; };
187
- }
188
- }');
189
- $this->fail('No errors raised', null, Errors::class);
190
- } catch (Errors $expected) {
191
- \xp::gc();
192
+ $this->run('class <T> {
+ public function run() {
+ $func= ($arg) ==> { return 1; };
+ }
+ }');
193
194
0 commit comments