Merge commit '087fe8a'

This commit is contained in:
Marc Delisle 2015-08-31 08:43:32 -04:00
commit e9c515b96d

View File

@ -119,6 +119,32 @@ class PMA_ServerStatusVariables_Test extends PHPUnit_Framework_TestCase
),
);
$dbi->expects($this->at(0))
->method('tryQuery')
->with('SHOW GLOBAL STATUS')
->will($this->returnValue(true));
$dbi->expects($this->at(1))
->method('fetchRow')
->will($this->returnValue(array("Aborted_clients", "0")));
$dbi->expects($this->at(2))
->method('fetchRow')
->will($this->returnValue(array("Aborted_connects", "0")));
$dbi->expects($this->at(3))
->method('fetchRow')
->will($this->returnValue(array("Com_delete_multi", "0")));
$dbi->expects($this->at(4))
->method('fetchRow')
->will($this->returnValue(array("Com_create_function", "0")));
$dbi->expects($this->at(5))
->method('fetchRow')
->will($this->returnValue(array("Com_empty_query", "0")));
$dbi->expects($this->at(6))
->method('fetchRow')
->will($this->returnValue(false));
$dbi->expects($this->at(7))->method('freeResult');
$dbi->expects($this->any())->method('fetchResult')
->will($this->returnValueMap($fetchResult));