|[ Index ]||
PHP Cross Reference of DokuWiki
|File Size:||237 lines (8 kb)|
|Included or required:||1 time|
|Includes or requires:||0 files|
|Setup the data directory|
This is ran before each test class
|Reset the DokuWiki environment before each test run. Makes sure loaded config,|
language and plugins are correct.
|Reinitialize the data directory for this class run|
|Reinitialize the conf directory for this class run|
|waitForTick($init = false) X-Ref|
|Waits until a new second has passed|
The very first call will return immeadiately, proceeding calls will return
only after at least 1 second after the last call has passed.
When passing $init=true it will not return immeadiately but use the current
second as initialization. It might still return faster than a second.
param: bool $init wait from now on, not from last time
return: int new timestamp
|callInaccessibleMethod($obj, $func, array $args) X-Ref|
|Allow for testing inaccessible methods (private or protected)|
This makes it easier to test protected methods without needing to create intermediate
classes inheriting and changing the access.
param: object $obj Object in which to call the method
param: string $func The method to call
param: array $args The arguments to call the method with