summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2011-12-10 14:05:33 +0100
committerDominik Eckelmann <deckelmann@gmail.com>2011-12-10 14:05:33 +0100
commit795114e73f18f06c2b32b433e150cad81da6581f (patch)
treeed05ac388fac64c0933ef956a1c8064105c71114 /_test
parent647919c9a61d928502b0b45063cc60702d0d310e (diff)
downloadrpg-795114e73f18f06c2b32b433e150cad81da6581f.tar.gz
rpg-795114e73f18f06c2b32b433e150cad81da6581f.tar.bz2
changed return types
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/remote.test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/_test/cases/inc/remote.test.php b/_test/cases/inc/remote.test.php
index f0e7b3d27..23186344b 100644
--- a/_test/cases/inc/remote.test.php
+++ b/_test/cases/inc/remote.test.php
@@ -60,8 +60,8 @@ class RemoteAPICoreTest {
function stringTestMethod() { return 'success'; }
function intTestMethod() { return 42; }
function floatTestMethod() { return 3.14159265; }
- function dateTestMethod() { return 2623452346; }
- function fileTestMethod() { return 'file content'; }
+ function dateTestMethod() { return new RemoteDate(2623452346); }
+ function fileTestMethod() { return new RemoteFile('file content'); }
function voidTestMethod() { return null; }
function oneStringArgMethod($arg) {return $arg; }
function twoArgMethod($string, $int) { return array($string, $int); }
@@ -164,8 +164,8 @@ class remote_test extends UnitTestCase {
$this->assertEqual($remoteApi->call('wiki.stringTestMethod'), 'success');
$this->assertEqual($remoteApi->call('wiki.intTestMethod'), 42);
$this->assertEqual($remoteApi->call('wiki.floatTestMethod'), 3.14159265);
- $this->assertEqual($remoteApi->call('wiki.dateTestMethod'), 2623452346);
- $this->assertEqual($remoteApi->call('wiki.fileTestMethod'), 'file content');
+ $this->assertEqual($remoteApi->call('wiki.dateTestMethod'), new RemoteDate(2623452346));
+ $this->assertEqual($remoteApi->call('wiki.fileTestMethod'), new RemoteFile('file content'));
$this->assertEqual($remoteApi->call('wiki.voidTestMethod'), null);
}