diff options
-rwxr-xr-x | tests/classes/destructor_and_echo.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/classes/destructor_and_echo.phpt b/tests/classes/destructor_and_echo.phpt new file mode 100755 index 0000000000..c6c6f23a71 --- /dev/null +++ b/tests/classes/destructor_and_echo.phpt @@ -0,0 +1,24 @@ +--TEST-- +Destructors and echo +--FILE-- +<?php + +class Test +{ + function __construct() { + echo __METHOD__ . "\n"; + } + + function __destruct() { + echo __METHOD__ . "\n"; + } +} + +$o = new Test; + +?> +===DONE=== +--EXPECT-- +Test::__construct +===DONE=== +Test::__destruct |