aboutsummaryrefslogtreecommitdiffstats
path: root/lib/htmlpurifier/tests/HTMLPurifier/PHPT/loading/error-auto-with-spl-nonstatic-autoload.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/htmlpurifier/tests/HTMLPurifier/PHPT/loading/error-auto-with-spl-nonstatic-autoload.phpt')
-rw-r--r--lib/htmlpurifier/tests/HTMLPurifier/PHPT/loading/error-auto-with-spl-nonstatic-autoload.phpt32
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/htmlpurifier/tests/HTMLPurifier/PHPT/loading/error-auto-with-spl-nonstatic-autoload.phpt b/lib/htmlpurifier/tests/HTMLPurifier/PHPT/loading/error-auto-with-spl-nonstatic-autoload.phpt
deleted file mode 100644
index 9a91abaf8..000000000
--- a/lib/htmlpurifier/tests/HTMLPurifier/PHPT/loading/error-auto-with-spl-nonstatic-autoload.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Error when registering autoload with non-static autoload already on SPL stack
---SKIPIF--
-<?php
-if (!function_exists('spl_autoload_register')) {
- echo "skip - spl_autoload_register() not available";
-}
-if (version_compare(PHP_VERSION, '5.2.11', '>=')) {
- echo "skip - non-buggy version of PHP";
-}
---FILE--
-<?php
-class NotStatic
-{
- public function autoload($class) {
- echo "Autoloading... $class" . PHP_EOL;
- eval("class $class {}");
- }
-}
-
-$obj = new NotStatic();
-spl_autoload_register(array($obj, 'autoload'));
-
-try {
- require '../library/HTMLPurifier.auto.php';
-} catch (Exception $e) {
- echo 'Caught error gracefully';
- assert('strpos($e->getMessage(), "44144") !== false');
-}
-
---EXPECT--
-Caught error gracefully