From d45e11cc6be6ebefee1441db22973820031d0297 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sun, 25 Dec 2011 02:58:51 -0500 Subject: [PATCH] Add one more test for SPL autoload defaults. Signed-off-by: Edward Z. Yang --- .../auto-with-spl-autoload-default.phpt | 25 +++++++++++++++++++ tests/default_load.php | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 tests/HTMLPurifier/PHPT/loading/auto-with-spl-autoload-default.phpt create mode 100644 tests/default_load.php diff --git a/tests/HTMLPurifier/PHPT/loading/auto-with-spl-autoload-default.phpt b/tests/HTMLPurifier/PHPT/loading/auto-with-spl-autoload-default.phpt new file mode 100644 index 00000000..a4011f1d --- /dev/null +++ b/tests/HTMLPurifier/PHPT/loading/auto-with-spl-autoload-default.phpt @@ -0,0 +1,25 @@ +--TEST-- +HTMLPurifier.auto.php using spl_autoload_register default +--SKIPIF-- +purify('Salsa!') . " +"; + +// purposely invoke standard autoload +$test = new default_load(); + +--EXPECT-- +Salsa! +Default loaded diff --git a/tests/default_load.php b/tests/default_load.php new file mode 100644 index 00000000..9b8bfb70 --- /dev/null +++ b/tests/default_load.php @@ -0,0 +1,3 @@ +