source: branches/1.2/workflow/inc/log/tests/singleton.phpt @ 1349

Revision 1349, 407 bytes checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • Property svn:executable set to *
Line 
1--TEST--
2Log: Singleton
3--FILE--
4<?php
5
6require_once 'Log.php';
7
8$console1 = &Log::singleton('console');
9$console2 = &Log::singleton('console');
10
11if (is_a($console1, 'Log_console') && is_a($console2, 'Log_console'))
12{
13        echo "Two Log_console objects.\n";
14}
15
16if ($console1->_id == $console2->_id) {
17        echo "The objects have the same ID.\n";
18}
19
20--EXPECT--
21Two Log_console objects.
22The objects have the same ID.
Note: See TracBrowser for help on using the repository browser.