/usr/share/doc/php-log/tests/singleton.phpt is in php-log 1.12.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | --TEST--
Log: Singleton
--INI--
date.timezone=UTC
--FILE--
<?php
require_once 'Log.php';
$console1 = Log::singleton('console');
$console2 = Log::singleton('console');
if (is_a($console1, 'Log_console') && is_a($console2, 'Log_console'))
{
echo "Two Log_console objects.\n";
}
if ($console1->_id == $console2->_id) {
echo "The objects have the same ID.\n";
}
--EXPECT--
Two Log_console objects.
The objects have the same ID.
|