Browse Source

object_dom test requires DomDocument class

Stefan Siegl 10 years ago
parent
commit
249aa39418
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tests/object_dom.phpt

+ 6 - 1
tests/object_dom.phpt

@@ -1,7 +1,12 @@
 --TEST--
 --TEST--
 Test V8::executeString() : DOM object passed from PHP
 Test V8::executeString() : DOM object passed from PHP
 --SKIPIF--
 --SKIPIF--
-<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+<?php
+if(!class_exists('DomDocument')) {
+  die('skip');
+}
+require_once(dirname(__FILE__) . '/skipif.inc');
+?>
 --FILE--
 --FILE--
 <?php
 <?php