php-src/tests/classes/factory_and_singleton_009.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
304 B
PHP

--TEST--
ZE2 factory and singleton, test 9
--FILE--
<?php
class test {
protected function __destruct() {
echo __METHOD__ . "\n";
}
}
$obj = new test;
?>
===DONE===
--EXPECT--
===DONE===
Warning: Call to protected test::__destruct() from context '' during shutdown ignored in Unknown on line 0