php-src/tests/classes/destructor_and_echo.phpt
2005-12-18 13:01:20 +00:00

25 lines
291 B
PHP
Executable File

--TEST--
ZE2 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