mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
20 lines
301 B
PHP
20 lines
301 B
PHP
--TEST--
|
|
ZE2 factory and singleton, test 10
|
|
--FILE--
|
|
<?php
|
|
class test {
|
|
|
|
private function __destruct() {
|
|
echo __METHOD__ . "\n";
|
|
}
|
|
}
|
|
|
|
$obj = new test;
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|
|
|
|
Warning: Call to private test::__destruct() from context '' during shutdown ignored in Unknown on line 0
|