From cb969bf9380a374f651ea10c91c37669b094ae52 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 27 Sep 2005 08:37:37 +0000 Subject: [PATCH] - Add new tests --- tests/classes/tostring_002.phpt | 31 ++++++++++++++++++++++++++++ tests/classes/tostring_003.phpt | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100755 tests/classes/tostring_002.phpt create mode 100755 tests/classes/tostring_003.phpt diff --git a/tests/classes/tostring_002.phpt b/tests/classes/tostring_002.phpt new file mode 100755 index 00000000000..8a4a7af3399 --- /dev/null +++ b/tests/classes/tostring_002.phpt @@ -0,0 +1,31 @@ +--TEST-- +ZE2 __toString() in __destruct +--SKIPIF-- + +--FILE-- + +====DONE==== +--EXPECTF-- +Hello +====DONE==== +Hello diff --git a/tests/classes/tostring_003.phpt b/tests/classes/tostring_003.phpt new file mode 100755 index 00000000000..0853de976d6 --- /dev/null +++ b/tests/classes/tostring_003.phpt @@ -0,0 +1,36 @@ +--TEST-- +ZE2 __toString() in __destruct/exception +--SKIPIF-- + +--FILE-- +getMessage()); +} + +?> +====DONE==== +--EXPECTF-- +string(5) "Damn!" +====DONE====