diff options
author | Marc Delisle <marc@infomarc.info> | 2015-06-18 13:29:12 +0300 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2015-06-18 13:29:12 +0300 |
commit | c852dcb228cdda71515c0706600ec21631e1425e (patch) | |
tree | e8d1a76d5d3a9162d42b36ec0adb84708680cd60 /test | |
parent | 5eedd7b40b4ef2c37d47ec5db17e170a5381dfa9 (diff) | |
parent | e524023def258a74240f98f139ff050aa57218d4 (diff) |
Merge pull request #1736 from nisargjhaveri/debug_console
[WIP] SQL debugging in console
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/PMA_Footer_test.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/classes/PMA_Footer_test.php b/test/classes/PMA_Footer_test.php index 47968d9d1b..3b64f7314d 100644 --- a/test/classes/PMA_Footer_test.php +++ b/test/classes/PMA_Footer_test.php @@ -111,23 +111,23 @@ class PMA_Footer_Test extends PHPUnit_Framework_TestCase */ public function testGetDebugMessage() { - + $GLOBALS['cfg']['DBG']['sql'] = true; $_SESSION['debug']['queries'] = array( - 'abc' => array( + array( 'count' => 1, 'time' => 0.2, 'query' => 'SELECT * FROM `pma_bookmark` WHERE 1', ), - 'def' => array( + array( 'count' => 1, 'time' => 2.5, 'query' => 'SELECT * FROM `db` WHERE 1', ), ); - $this->assertRegExp( - '/<div id="session_debug">2 queries executed 2 times in 2.7 seconds' - . '<pre>/', + $this->assertEquals( + '{"queries":[{"count":1,"time":0.2,"query":"SELECT * FROM `pma_bookmark` WHERE 1"},' + . '{"count":1,"time":2.5,"query":"SELECT * FROM `db` WHERE 1"}]}', $this->object->getDebugMessage() ); } |