public function profileAllQueries($slowms = null) { $command = array('profile' => 2); if ($slowms) { $command['slowms'] = (int) $slowms; } return $this->executeCommand($command); }
public function testFindProfilerRows() { $this->database->profileAllQueries(); $row = $this->database->findProfilerRows()->findOne(); $this->assertArrayHasKey('op', $row); $this->assertArrayHasKey('ns', $row); }