Permalink
Browse files

skip test if XML_RSS is not available

git-svn-id: https://svn.php.net/repository/pear/packages/XML_Parser/trunk@286918 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent a673e31 commit 2e550bdb785e794e5ffa625834af146ff0574282 Chuck Burgess committed Aug 7, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/bug-9328.phpt
View
12 tests/bug-9328.phpt
@@ -1,5 +1,17 @@
--TEST--
XML Parser: test for Bug #9328 "assigned by reference error in XML_RSS parse"
+--SKIPIF--
+<?php
+/*
+ * can't test if XML_RSS is not installed
+ */
+$originalErrorReporting = error_reporting();
+error_reporting(E_ALL & ~E_WARNING);
+if ('OK' != (include_once 'XML/RSS.php')) {
+ print('skip if XML_RSS is not installed');
+}
+error_reporting($originalErrorReporting);
+?>
--FILE--
<?php
/*

0 comments on commit 2e550bd

Please sign in to comment.