Omeka_Test_Helper_DbProfiler

Package: Test\Helper

class Omeka_Test_Helper_DbProfiler

Catch-all class for database helper methods that are shared across test cases.

__construct(Zend_Db_Profiler $profiler, PHPUnit_Framework_Assert $test)

Constructor.

Parameters:
  • $profiler (Zend_Db_Profiler) –
  • $test (PHPUnit_Framework_Assert) –
assertDbQuery($sqlPart, $message = null)
Parameters:
  • $sqlPart
  • $message
assertTotalNumQueries($queryCount, $msg = null)

Assert that the given number of SQL queries were made.

Parameters:
  • $queryCount (int) –
  • $msg