Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 2e550bdb785e794e5ffa625834af146ff0574282 1 parent a673e31
authored August 07, 2009

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. 12  tests/bug-9328.phpt
12  tests/bug-9328.phpt
... ...
@@ -1,5 +1,17 @@
1 1
 --TEST--
2 2
 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
+?>
3 15
 --FILE--
4 16
 <?php
5 17
 /*

0 notes on commit 2e550bd

Please sign in to comment.
Something went wrong with that request. Please try again.