Fix 2 tests
[plcapi.git] / tests / 1ParsingBugsTest.php
index 0868a91..949130f 100644 (file)
@@ -11,13 +11,18 @@ class ParsingBugsTests extends PHPUnit_Framework_TestCase
     {
         $v = new xmlrpcval('-1');
         $u = new xmlrpcval('-1', 'string');
+        $t = new xmlrpcval(-1, 'string');
         $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);
-        $u = new xmlrpcval(-1, 'string');
+        $u = new xmlrpcval();
         $this->assertEquals($u->scalarval(), $v->scalarval());
     }