Toying with PHPUnit
Getting config errors thrown by PICKLES. Will revisit later
This commit is contained in:
parent
a4a994dc19
commit
a42f896c18
1 changed files with 32 additions and 0 deletions
32
tests/api/v1/leaderboards.php
Normal file
32
tests/api/v1/leaderboards.php
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
require_once '/usr/share/pickles-latest/classes/Object.php';
|
||||||
|
require_once '/usr/share/pickles-latest/classes/Module.php';
|
||||||
|
require_once '/usr/share/pickles-latest/classes/Config.php';
|
||||||
|
require_once '/usr/share/pickles-latest/pickles.php';
|
||||||
|
require_once './classes/CustomModule.php';
|
||||||
|
require_once './classes/APIv1.php';
|
||||||
|
require_once './modules/api/v1/leaderboards.php';
|
||||||
|
|
||||||
|
class api_v1_leaderboards_test extends PHPUnit_Framework_TestCase
|
||||||
|
{
|
||||||
|
public function setupUp()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function tearDown()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testNoKey()
|
||||||
|
{
|
||||||
|
$module = new api_v1_leaderboards();
|
||||||
|
$return = $module->__default();
|
||||||
|
|
||||||
|
var_dump($return);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue