else {
$this->fail("Could not retrieve object: $daoName, $id");
}
- $object->free();
+
$matchSize = count($match);
if ($verifiedCount != $matchSize) {
$this->fail("Did not verify all fields in match array: $daoName, $id. Verified count = $verifiedCount. Match array size = $matchSize");
*
* Example: $this->assertSql(2, 'select count(*) from foo where foo.bar like "%1"',
* array(1 => array("Whiz", "String")));
+ *
* @param $expected
* @param $query
* @param array $params
* @param string $message
+ *
+ * @throws \Exception
*/
public function assertDBQuery($expected, $query, $params = array(), $message = '') {
if ($message) {