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 c929bf9 commit 68b783dCopy full SHA for 68b783d
src/test/php/lang/ast/unittest/emit/EnumTest.class.php
@@ -181,6 +181,18 @@ public static function run() {
181
Assert::equals('red', $t->getMethod('run')->invoke(null));
182
}
183
184
+ #[Test]
185
+ public function enum_implementing_interface() {
186
+ $t= $this->type('use lang\Closeable; enum <T> implements Closeable {
187
+ case File;
188
+ case Stream;
189
+
190
+ public function close() { }
191
+ }');
192
193
+ Assert::true($t->isSubclassOf('lang.Closeable'));
194
+ }
195
196
#[Test]
197
public function enum_values() {
198
$t= $this->type('enum <T> {
0 commit comments