[NFC] formatting on test class cleanup
[civicrm-core.git] / Civi / Test / DbTestTrait.php
index e8f7209e7968e459fdf108c04b4e838b83dd5f21..3e97931cfe078e6b2c453e2440dc15dd73a6098c 100644 (file)
@@ -64,7 +64,7 @@ trait DbTestTrait {
     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");
@@ -169,10 +169,13 @@ trait DbTestTrait {
    *
    * 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) {