From 369fa296e015065bd5a64ab4c410751e2a5874a8 Mon Sep 17 00:00:00 2001 From: ggiunta Date: Tue, 4 Aug 2009 21:33:50 +0000 Subject: [PATCH] - silence some warnings git-svn-id: https://svn.code.sf.net/p/phpxmlrpc/code/trunk/xmlrpc@44 013ecfd8-0664-425d-a759-9c98391dc3f9 --- test/PHPUnit/TestSuite.php | 4 ++-- test/testsuite.php | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/PHPUnit/TestSuite.php b/test/PHPUnit/TestSuite.php index 629b3fc..55220b7 100644 --- a/test/PHPUnit/TestSuite.php +++ b/test/PHPUnit/TestSuite.php @@ -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 diff --git a/test/testsuite.php b/test/testsuite.php index 2873698..e11e97e 100644 --- a/test/testsuite.php +++ b/test/testsuite.php @@ -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 = '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 = 'Using lib version: $xmlrpcVersion on PHP version: ".phpversion()."\n"; echo '

Running '.$suite->testCount().' tests (some of which are multiple) against servers: http://'.htmlspecialchars($LOCALSERVER.$URI).' and https://'.htmlspecialchars($HTTPSSERVER.$HTTPSURI)."\n ...

\n"; flush(); - ob_flush(); + @ob_flush(); } else { -- 2.43.0