php-src/tests/classes/destructor_and_echo.phpt
2012-10-10 10:27:49 +08:00

25 lines
291 B
PHP

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