Fix 2 tests
authorgggeek <giunta.gaetano@gmail.com>
Sun, 29 Mar 2015 14:46:02 +0000 (15:46 +0100)
committergggeek <giunta.gaetano@gmail.com>
Sun, 29 Mar 2015 14:46:02 +0000 (15:46 +0100)
debugger/action.php
tests/1ParsingBugsTest.php

index f77c876..69f66e0 100644 (file)
@@ -502,7 +502,7 @@ if ($action) {
     // no action taken yet: give some instructions on debugger usage
     ?>
 
-    <h3>Instructions on usage of the debugger:</h3>
+    <h3>Instructions on usage of the debugger</h3>
     <ol>
         <li>Run a 'list available methods' action against desired server</li>
         <li>If list of methods appears, click on 'describe method' for desired method</li>
@@ -516,13 +516,13 @@ if ($action) {
     }
     ?>
 
-    <h3>Example:</h3>
+    <h3>Example</h3>
     <p>
         Server Address: phpxmlrpc.sourceforge.net<br/>
         Path: /server.php
     </p>
 
-    <h3>Notice:</h3>
+    <h3>Notice</h3>
     <p>all usernames and passwords entered on the above form will be written to the web server logs of this server. Use
         with care.</p>
 
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());
     }