- silence some warnings
authorggiunta <ggiunta@013ecfd8-0664-425d-a759-9c98391dc3f9>
Tue, 4 Aug 2009 21:33:50 +0000 (21:33 +0000)
committerggiunta <ggiunta@013ecfd8-0664-425d-a759-9c98391dc3f9>
Tue, 4 Aug 2009 21:33:50 +0000 (21:33 +0000)
git-svn-id: https://svn.code.sf.net/p/phpxmlrpc/code/trunk/xmlrpc@44 013ecfd8-0664-425d-a759-9c98391dc3f9

test/PHPUnit/TestSuite.php
test/testsuite.php

index 629b3fc..55220b7 100644 (file)
@@ -157,7 +157,7 @@ class PHPUnit_TestSuite {
         for ($i = 0; $i < sizeof($this->_tests) && !$result->shouldStop(); $i++) {
             $this->_tests[$i]->run($result);
             if ($show_progress != '') {
-                echo $show_progress; flush(); ob_flush();
+                echo $show_progress; flush(); @ob_flush();
             }
         }
     }
@@ -236,4 +236,4 @@ class PHPUnit_TestSuite {
  * c-hanging-comment-ender-p: nil
  * End:
  */
-?>
+?>
\ No newline at end of file
index 2873698..e11e97e 100644 (file)
@@ -542,7 +542,7 @@ And turned it into nylon';
                                'c4' => array('value' => 'c4', 'expires' => time()+60*60*24*30, 'path' => '/'),
                                'c5' => array('value' => 'c5', 'expires' => time()+60*60*24*30, 'path' => '/', 'domain' => 'localhost'),
                        );
-                       $cookiesval =& php_xmlrpc_encode($cookies);
+                       $cookiesval = php_xmlrpc_encode($cookies);
                        $f=new xmlrpcmsg('examples.setcookies',array($cookiesval));
                        $r=$this->send($f, 0, true);
                        if($r)
@@ -1346,8 +1346,9 @@ $f = '<?xml version="1.0" encoding="utf-8"?><methodResponse><params><param><valu
                        $this->client->path = $URI;
 
                        $r = $this->client->send($f, 5, 'http11');
-                       $r = $r->value();
-                       $this->assertEquals('hello', $r->scalarVal());
+                       $ro = $r->value();
+var_dump($r);
+                       $this->assertEquals('hello', $ro->scalarVal());
                }
        }
 
@@ -1440,7 +1441,7 @@ $f = '<?xml version="1.0" encoding="utf-8"?><methodResponse><params><param><valu
                echo "<h3>Using lib version: $xmlrpcVersion on PHP version: ".phpversion()."</h3>\n";
                echo '<h3>Running '.$suite->testCount().' tests (some of which are multiple) against servers: http://'.htmlspecialchars($LOCALSERVER.$URI).' and https://'.htmlspecialchars($HTTPSSERVER.$HTTPSURI)."\n ...</h3>\n";
                flush();
-           ob_flush();
+           @ob_flush();
        }
        else
        {