Skip to content

Commit 6ed8730

Browse files
committed
Convert annotations to PHP 8 attributes
1 parent 87ba9a9 commit 6ed8730

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/test/php/lang/ast/syntax/php/unittest/IsOperatorTest.class.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php namespace lang\ast\syntax\php\unittest;
22

33
use lang\ast\unittest\emit\EmittingTest;
4-
use unittest\Assert;
4+
use unittest\{Assert, Test};
55

66
class IsOperatorTest extends EmittingTest {
77

8-
#[@test]
8+
#[Test]
99
public function this_is_self() {
1010
$r= $this->run('class <T> {
1111
public function run() {
@@ -16,7 +16,7 @@ public function run() {
1616
Assert::true($r);
1717
}
1818

19-
#[@test]
19+
#[Test]
2020
public function new_self_is_static() {
2121
$r= $this->run('class <T> {
2222
public function run() {
@@ -27,7 +27,7 @@ public function run() {
2727
Assert::true($r);
2828
}
2929

30-
#[@test]
30+
#[Test]
3131
public function is_qualified_type() {
3232
$r= $this->run('class <T> {
3333
public function run() {
@@ -38,7 +38,7 @@ public function run() {
3838
Assert::true($r);
3939
}
4040

41-
#[@test]
41+
#[Test]
4242
public function is_imported_type() {
4343
$r= $this->run('use util\Date; class <T> {
4444
public function run() {
@@ -49,7 +49,7 @@ public function run() {
4949
Assert::true($r);
5050
}
5151

52-
#[@test]
52+
#[Test]
5353
public function is_aliased_type() {
5454
$r= $this->run('use util\Date as D; class <T> {
5555
public function run() {
@@ -60,7 +60,7 @@ public function run() {
6060
Assert::true($r);
6161
}
6262

63-
#[@test]
63+
#[Test]
6464
public function is_type_variable() {
6565
$r= $this->run('class <T> {
6666
public function run() {
@@ -72,7 +72,7 @@ public function run() {
7272
Assert::true($r);
7373
}
7474

75-
#[@test]
75+
#[Test]
7676
public function is_primitive_type() {
7777
$r= $this->run('class <T> {
7878
public function run() {
@@ -83,7 +83,7 @@ public function run() {
8383
Assert::equals([true, true, true, true, true], $r);
8484
}
8585

86-
#[@test]
86+
#[Test]
8787
public function is_nullable_type() {
8888
$r= $this->run('class <T> {
8989
public function run() {
@@ -94,7 +94,7 @@ public function run() {
9494
Assert::equals([true, true, true], $r);
9595
}
9696

97-
#[@test]
97+
#[Test]
9898
public function is_array_pseudo_type() {
9999
$r= $this->run('class <T> {
100100
public function run() {
@@ -105,7 +105,7 @@ public function run() {
105105
Assert::equals([true, true, true, false], $r);
106106
}
107107

108-
#[@test]
108+
#[Test]
109109
public function is_object_pseudo_type() {
110110
$r= $this->run('class <T> {
111111
public function run() {
@@ -116,7 +116,7 @@ public function run() {
116116
Assert::equals([true, true, false], $r);
117117
}
118118

119-
#[@test]
119+
#[Test]
120120
public function is_callable_pseudo_type() {
121121
$r= $this->run('class <T> {
122122
public function run() {
@@ -127,7 +127,7 @@ public function run() {
127127
Assert::equals([true, true, false], $r);
128128
}
129129

130-
#[@test]
130+
#[Test]
131131
public function is_native_iterable_type() {
132132
$r= $this->run('class <T> implements \IteratorAggregate {
133133
public function getIterator() {
@@ -142,7 +142,7 @@ public function run() {
142142
Assert::equals([true, true, false], $r);
143143
}
144144

145-
#[@test]
145+
#[Test]
146146
public function is_map_type() {
147147
$r= $this->run('class <T> {
148148
public function run() {
@@ -153,7 +153,7 @@ public function run() {
153153
Assert::equals([true, false], $r);
154154
}
155155

156-
#[@test]
156+
#[Test]
157157
public function is_array_type() {
158158
$r= $this->run('class <T> {
159159
public function run() {
@@ -164,7 +164,7 @@ public function run() {
164164
Assert::equals([true, false, false], $r);
165165
}
166166

167-
#[@test]
167+
#[Test]
168168
public function is_union_type() {
169169
$r= $this->run('class <T> {
170170
public function run() {
@@ -175,7 +175,7 @@ public function run() {
175175
Assert::equals([true, true, false], $r);
176176
}
177177

178-
#[@test]
178+
#[Test]
179179
public function is_function_type() {
180180
$r= $this->run('class <T> {
181181
public function run() {
@@ -186,7 +186,7 @@ public function run() {
186186
Assert::equals([true, false], $r);
187187
}
188188

189-
#[@test]
189+
#[Test]
190190
public function precedence() {
191191
$r= $this->run('class <T> {
192192
public function run() {

0 commit comments

Comments
 (0)