Skip to content

Commit f1e4585

Browse files
committed
Remove runtime verification for PHP 7.x
1 parent b243cd0 commit f1e4585

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/test/php/lang/reflection/unittest/ConstantsTest.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function no_comment() {
2929
Assert::null($this->declare('{ const FIXTURE = "test"; }')->constant('FIXTURE')->comment());
3030
}
3131

32-
#[Test, Runtime(php: '>=7.1')]
32+
#[Test]
3333
public function with_comment() {
3434
Assert::equals('Test', $this->declare('{ /** Test */ const FIXTURE = "test"; }')->constant('FIXTURE')->comment());
3535
}
@@ -55,19 +55,19 @@ public function named() {
5555
Assert::equals($t->constant('FIXTURE'), $t->constants()->named('FIXTURE'));
5656
}
5757

58-
#[Test, Runtime(php: '>=7.1')]
58+
#[Test]
5959
public function private_constant() {
6060
$const= $this->declare('{ private const FIXTURE = "test"; }')->constant('FIXTURE');
6161
Assert::equals([MODIFIER_PRIVATE, 'test'], [$const->modifiers()->bits(), $const->value()]);
6262
}
6363

64-
#[Test, Runtime(php: '>=7.1')]
64+
#[Test]
6565
public function protected_constant() {
6666
$const= $this->declare('{ protected const FIXTURE = "test"; }')->constant('FIXTURE');
6767
Assert::equals([MODIFIER_PROTECTED, 'test'], [$const->modifiers()->bits(), $const->value()]);
6868
}
6969

70-
#[Test, Runtime(php: '>=7.1')]
70+
#[Test]
7171
public function public_constant() {
7272
$const= $this->declare('{ public const FIXTURE = "test"; }')->constant('FIXTURE');
7373
Assert::equals([MODIFIER_PUBLIC, 'test'], [$const->modifiers()->bits(), $const->value()]);

src/test/php/lang/reflection/unittest/MethodsTest.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function returns($decl, $present, $expected) {
8686
Assert::equals([$present, $expected], [$returns->present(), $returns->type()]);
8787
}
8888

89-
#[Test, Runtime(php: '>=7.1')]
89+
#[Test]
9090
public function returns_void() {
9191
$returns= $this->declare('{ function fixture(): void { } }')->method('fixture')->returns();
9292
Assert::equals(Type::$VOID, $returns->type());
@@ -122,7 +122,7 @@ public function returns_self() {
122122
Assert::equals($type->class(), $type->method('fixture')->returns()->type());
123123
}
124124

125-
#[Test, Runtime(php: '>=7.1')]
125+
#[Test]
126126
public function return_never_more_specific_than_void() {
127127
$t= $this->declare('{ /** @return never */ function fixture(): void { exit(); } }');
128128
Assert::equals(Type::$NEVER, $t->method('fixture')->returns()->type());

src/test/php/lang/reflection/unittest/PropertiesTest.class.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function cannot_write_private_with_incorrect_context() {
103103
$type->property('fixture')->set(null, 'Modified', typeof($this));
104104
}
105105

106-
#[Test, Runtime(php: '>=7.4'), Expect(AccessingFailed::class)]
106+
#[Test, Expect(AccessingFailed::class)]
107107
public function type_mismatch() {
108108
$type= $this->declare('{ private static array $fixture; }');
109109
$type->property('fixture')->set(null, 1, $type);
@@ -145,7 +145,7 @@ public function type_from_apidoc($comment) {
145145
Assert::equals(new Constraint(Primitive::$STRING, false), $type->property('fixture')->constraint());
146146
}
147147

148-
#[Test, Runtime(php: '>=7.4')]
148+
#[Test]
149149
public function type_from_declaration() {
150150
$type= $this->declare('{ public string $fixture; }');
151151
Assert::equals(
@@ -154,7 +154,7 @@ public function type_from_declaration() {
154154
);
155155
}
156156

157-
#[Test, Runtime(php: '>=7.4')]
157+
#[Test]
158158
public function type_from_array_declaration() {
159159
$type= $this->declare('{ public array $fixture; }');
160160
Assert::equals(
@@ -163,7 +163,7 @@ public function type_from_array_declaration() {
163163
);
164164
}
165165

166-
#[Test, Runtime(php: '>=7.4')]
166+
#[Test]
167167
public function type_from_self_declaration() {
168168
$type= $this->declare('{ public self $fixture; }');
169169
Assert::equals(
@@ -223,7 +223,7 @@ public function string_representation_with_type_from_apidoc() {
223223
);
224224
}
225225

226-
#[Test, Runtime(php: '>=7.4')]
226+
#[Test]
227227
public function string_representation_with_type_declaration() {
228228
$t= $this->declare('{ public string $fixture; }');
229229
Assert::equals(
@@ -241,7 +241,7 @@ public function string_representation_with_union_type_declaration() {
241241
);
242242
}
243243

244-
#[Test, Runtime(php: '>=7.4')]
244+
#[Test]
245245
public function accessing_failed_target() {
246246
$t= $this->declare('{ public static array $fixture; }');
247247
try {

0 commit comments

Comments
 (0)