Return to destructor_and_echo.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes |
Initial revision
1: --TEST-- 2: ZE2 Destructors and echo 3: --FILE-- 4: <?php 5: 6: class Test 7: { 8: function __construct() { 9: echo __METHOD__ . "\n"; 10: } 11: 12: function __destruct() { 13: echo __METHOD__ . "\n"; 14: } 15: } 16: 17: $o = new Test; 18: 19: ?> 20: ===DONE=== 21: --EXPECT-- 22: Test::__construct 23: ===DONE=== 24: Test::__destruct