Skip to content

Commit 6b99411

Browse files
committed
Refactor manual extension check to test.verify.Runtime
1 parent cb33480 commit 6b99411

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ XP Framework Core ChangeLog
33

44
## ?.?.? / ????-??-??
55

6+
## 11.9.0 / 2024-03-16
7+
68
### Features
79

810
* Removed PHP 5 specific exception handling from `lang.Throwable::wrap()`

src/test/php/io/unittest/DomApiStreamsTest.class.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
<?php namespace io\unittest;
22

33
use io\streams\{MemoryInputStream, MemoryOutputStream, Streams};
4-
use lang\Runtime;
5-
use test\{Assert, Before, PrerequisitesNotMetError, Test};
4+
use test\verify\Runtime;
5+
use test\{Assert, Test};
66

7+
#[Runtime(extensions: ['dom'])]
78
class DomApiStreamsTest {
89

9-
#[Before]
10-
public function setUp() {
11-
if (!Runtime::getInstance()->extensionAvailable('dom')) {
12-
throw new PrerequisitesNotMetError('DOM extension not loaded', null, ['ext/dom']);
13-
}
14-
}
15-
1610
#[Test]
1711
public function usableInLoadHTMLFile() {
1812
$dom= new \DOMDocument();

0 commit comments

Comments
 (0)