Open Journal Systems
3.3.0
|
Static Public Member Functions | |
static | backupTables ($tables, $test) |
static | restoreDB ($test) |
static | restoreTables ($tables, $test) |
static | xdebugScream ($scream) |
Definition at line 17 of file PKPTestHelper.inc.php.
|
static |
Backup the given tables.
$tables | array |
$test | PHPUnit_Framework_Assert |
Definition at line 27 of file PKPTestHelper.inc.php.
References Config\getVar().
Referenced by DatabaseTestCase\setUp().
|
static |
Restore the database from a dump file.
Definition at line 85 of file PKPTestHelper.inc.php.
References Config\getVar().
Referenced by DatabaseTestCase\tearDown().
|
static |
Restore the given tables.
$tables | array |
$test | PHPUnit_Framework_Assert |
Definition at line 66 of file PKPTestHelper.inc.php.
Referenced by DatabaseTestCase\tearDown().
|
static |
Some 3rd-party libraries (i.e. adodb) use the PHP @ operator a lot which can lead to test failures when xdebug's scream parameter is on. This helper method can be used to safely (de)activate this.
If the xdebug extension is not installed then this method does nothing.
$scream | boolean |
Definition at line 150 of file PKPTestHelper.inc.php.
Referenced by DatabaseTestCase\setUp(), XMLTypeDescriptionTest\tearDown(), DatabaseTestCase\tearDown(), and XMLTypeDescriptionTest\testInstantiateAndCheck().