Skip to content
Browse files

Skip a few tests in PHP 5.2 (where there are no 'previous exceptions').

  • Loading branch information...
1 parent bf6c7fd commit 149c0fae6adcf5e20714186ccb2731093918de2b @cataphract committed Feb 21, 2012
Showing with 7 additions and 1 deletion.
  1. +3 −1 tests/create_from_stream_error.phpt
  2. +2 −0 tests/create_from_string_error.phpt
  3. +2 −0 tests/get_html_error2.phpt
View
4 tests/create_from_stream_error.phpt
@@ -4,6 +4,8 @@ MarkdownDocument::createFromStream: error in arguments
<?php
if (!extension_loaded('discount'))
die('SKIP discount extension not loaded');
+if (PHP_VERSION_ID < 50300)
+ die('SKIP for 5.3+');
--FILE--
<?php
include dirname(__FILE__)."/helpers.php.inc";
@@ -35,4 +37,4 @@ bool(false)
InvalidArgumentException: Only the flags TABSTOP and NOHEADER are allowed.
Warning: MarkdownDocument::createFromStream() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
+bool(false)
View
2 tests/create_from_string_error.phpt
@@ -4,6 +4,8 @@ MarkdownDocument::createFromString error in arguments
<?php
if (!extension_loaded('discount'))
die('SKIP discount extension not loaded');
+if (PHP_VERSION_ID < 50300)
+ die('SKIP for 5.3+');
--FILE--
<?php
include dirname(__FILE__)."/helpers.php.inc";
View
2 tests/get_html_error2.phpt
@@ -4,6 +4,8 @@ MarkdownDocument::getHtml: exception in callback
<?php
if (!extension_loaded('discount'))
die('SKIP discount extension not loaded');
+if (PHP_VERSION_ID < 50300)
+ die('SKIP for 5.3+');
--FILE--
<?php
include dirname(__FILE__)."/helpers.php.inc";

0 comments on commit 149c0fa

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