git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 2 tests
[plcapi.git]
/
tests
/
1ParsingBugsTest.php
diff --git
a/tests/1ParsingBugsTest.php
b/tests/1ParsingBugsTest.php
index
0868a91
..
949130f
100644
(file)
--- a/
tests/1ParsingBugsTest.php
+++ b/
tests/1ParsingBugsTest.php
@@
-11,13
+11,18
@@
class ParsingBugsTests extends PHPUnit_Framework_TestCase
{
$v = new xmlrpcval('-1');
$u = new xmlrpcval('-1', 'string');
{
$v = new xmlrpcval('-1');
$u = new xmlrpcval('-1', 'string');
+ $t = new xmlrpcval(-1, 'string');
$this->assertEquals($u->scalarval(), $v->scalarval());
$this->assertEquals($u->scalarval(), $v->scalarval());
+ $this->assertEquals($t->scalarval(), $v->scalarval());
}
}
+ /**
+ * This looks funny, and we might call it a bug. But we strive for 100 backwards compat...
+ */
public function testMinusOneInt()
{
$v = new xmlrpcval(-1);
public function testMinusOneInt()
{
$v = new xmlrpcval(-1);
- $u = new xmlrpcval(
-1, 'string'
);
+ $u = new xmlrpcval();
$this->assertEquals($u->scalarval(), $v->scalarval());
}
$this->assertEquals($u->scalarval(), $v->scalarval());
}