File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,13 @@ public function testCanNotConstruct():void {
21
21
public function testBaseURIClientSideOnly ():void {
22
22
$ document = new XMLDocument ();
23
23
$ sut = $ document ->createElement ("example " );
24
- self ::assertNull ($ sut ->baseURI );
24
+
25
+ if (version_compare (PHP_VERSION , "8.4 " , ">= " )) {
26
+ self ::assertEquals (getcwd () . "/ " , $ sut ->baseURI );
27
+ }
28
+ else {
29
+ self ::assertNull ($ sut ->baseURI );
30
+ }
25
31
}
26
32
27
33
public function testChildNodesEmpty ():void {
Original file line number Diff line number Diff line change @@ -24,7 +24,12 @@ public function testBodyNullOnXML():void {
24
24
25
25
public function testToStringEmptyXML ():void {
26
26
$ sut = new XMLDocument ();
27
- self ::assertEquals ("<?xml version= \"1.0 \" encoding= \"UTF-8 \"?> \n<xml/> \n" , (string )$ sut );
27
+ if (version_compare (PHP_VERSION , "8.4 " , ">= " )) {
28
+ self ::assertEquals ("<?xml version= \"1.0 \"?> \n<xml/> \n" , (string )$ sut );
29
+ }
30
+ else {
31
+ self ::assertEquals ("<?xml version= \"1.0 \" encoding= \"UTF-8 \"?> \n<xml/> \n" , (string )$ sut );
32
+ }
28
33
}
29
34
30
35
public function testPropContentTypeEmpty ():void {
You can’t perform that action at this time.
0 commit comments