php-src/tests/classes/factory_and_singleton_010.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

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