From 8e7f7c3cd2daa0c63b3b54b83caad271e1feb31c Mon Sep 17 00:00:00 2001 From: gggeek Date: Sun, 29 Mar 2015 15:46:02 +0100 Subject: [PATCH] Fix 2 tests --- debugger/action.php | 6 +++--- tests/1ParsingBugsTest.php | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/debugger/action.php b/debugger/action.php index f77c876..69f66e0 100644 --- a/debugger/action.php +++ b/debugger/action.php @@ -502,7 +502,7 @@ if ($action) { // no action taken yet: give some instructions on debugger usage ?> -

Instructions on usage of the debugger:

+

Instructions on usage of the debugger

  1. Run a 'list available methods' action against desired server
  2. If list of methods appears, click on 'describe method' for desired method
  3. @@ -516,13 +516,13 @@ if ($action) { } ?> -

    Example:

    +

    Example

    Server Address: phpxmlrpc.sourceforge.net
    Path: /server.php

    -

    Notice:

    +

    Notice

    all usernames and passwords entered on the above form will be written to the web server logs of this server. Use with care.

    diff --git a/tests/1ParsingBugsTest.php b/tests/1ParsingBugsTest.php index 0868a91..949130f 100644 --- 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'); + $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()); } -- 2.43.0