| #
e3eb1d75 |
| 14-Feb-2017 |
Michael Grosse <grosse@cosmocode.de> |
PHPUnit 6 now only supports namespaced classes
However those classes are already supported in PHP 5.7 so we can switch to them without breaking backward-compatibility.
|
| #
d732617b |
| 01-Dec-2016 |
Andreas Gohr <gohr@cosmocode.de> |
new helper method waitForTick() in DokuWikiTest
Some of our tests require that at least one second has passed before they can continue because our revisions depend on the Unix Timestamp.
Currently
new helper method waitForTick() in DokuWikiTest
Some of our tests require that at least one second has passed before they can continue because our revisions depend on the Unix Timestamp.
Currently we use a sleep(1) for this. However this always waits a whole second, even if the next second is already much closer or maybe already here - especially when some processing has been done since the last operation.
This new method waits for the next second by checking the time every 10th of a second. This might speed up some of our tests a bit.
show more ...
|
| #
db5867f1 |
| 09-Aug-2016 |
Andreas Gohr <andi@splitbrain.org> |
fix tests for newer PHPUnit. fixes #1643
getMock is deprecated in new PHPUnit versions and createMock is the recommended replacement. However that one is not available in older PHPUnit releases. Sin
fix tests for newer PHPUnit. fixes #1643
getMock is deprecated in new PHPUnit versions and createMock is the recommended replacement. However that one is not available in older PHPUnit releases. Since we still support older PHP releases we have to support older PHPUnit releases as well.
This add some compatibility functions to our TestCase class and replaces all calls to getMock. Tested with PHPUnit 4.6.6 and 5.5.0.
show more ...
|
| #
f48e16ab |
| 19-Mar-2016 |
Gerrit Uitslag <klapinklapin@gmail.com> |
reload some config settings after the conf reset in DokuWikiTest::setUp
|
| #
79e79377 |
| 07-Jan-2015 |
Andreas Gohr <gohr@cosmocode.de> |
Remove error supression for file_exists()
In an older version of PHP a file_exists() call would issue a warning when the file did not exist. This was fixed in later PHP releases. Since we require PH
Remove error supression for file_exists()
In an older version of PHP a file_exists() call would issue a warning when the file did not exist. This was fixed in later PHP releases. Since we require PHP 5.3 now, there's no need to supress any error here anymore. This might even give a minor performance boost.
show more ...
|
| #
c01cdb70 |
| 06-Mar-2014 |
Christopher Smith <chris@jalakai.co.uk> |
Fix unittests broken by previous two commits
Mostly this is for unit tests which use of \$_SERVER['REMOTE_USER']
It ensures the reference/alias connection between \$INPUT->server and \$_SERVER is r
Fix unittests broken by previous two commits
Mostly this is for unit tests which use of \$_SERVER['REMOTE_USER']
It ensures the reference/alias connection between \$INPUT->server and \$_SERVER is renewed before each test. Tests using TestRequest class will replace this \$INPUT with their own.
show more ...
|
| #
4f708321 |
| 20-Dec-2012 |
Michael Hamann <michael@content-space.de> |
Remove global $Indexer, clear index in the testing system instead
|
| #
e3ab6fc5 |
| 28-Jul-2012 |
Michael Hamann <michael@content-space.de> |
Fixed and extended PHPDoc comments and added additional @var comments
|
| #
0644090a |
| 01-Jul-2012 |
Andreas Gohr <andi@splitbrain.org> |
reset the data directory before each test class is run
|
| #
f8369d7d |
| 18-Apr-2012 |
Tobias Sarnowski <sarnowski@cosmocode.de> |
moved _testing to _test
|