Add Profiler support report message with turn on PROFILER_DETAILS (if use to show queries). Modified tests MongoStatementTest, MySQLiStatementTest. Adding new tests to ProfilerTest.
This commit is contained in:
@ -207,7 +207,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
public function testFetch()
|
||||
{
|
||||
Config::set('PROFILER', true);
|
||||
Config::set('PROFILER_DETAILS', true);
|
||||
Config::set('PROFILER_DETAILS', false);
|
||||
$this->assertFalse($this->stmt->fetch());
|
||||
|
||||
$this->setDriverGetConnectionMethod()->setRequestForFetch();
|
||||
@ -216,6 +216,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
$result = $this->stmt->fetch();
|
||||
$this->assertEquals('prev', $result->next);
|
||||
$this->assertFalse($this->stmt->fetch());
|
||||
$this->assertContains('Queries not counted.', Profiler::getInstance()->getCli());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user