Skip to content

Commit 2e550bd

Browse files
committed
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
1 parent a673e31 commit 2e550bd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/bug-9328.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
--TEST--
22
XML Parser: test for Bug #9328 "assigned by reference error in XML_RSS parse"
3+
--SKIPIF--
4+
<?php
5+
/*
6+
* can't test if XML_RSS is not installed
7+
*/
8+
$originalErrorReporting = error_reporting();
9+
error_reporting(E_ALL & ~E_WARNING);
10+
if ('OK' != (include_once 'XML/RSS.php')) {
11+
print('skip if XML_RSS is not installed');
12+
}
13+
error_reporting($originalErrorReporting);
14+
?>
315
--FILE--
416
<?php
517
/*

0 commit comments

Comments
 (0)