X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCiviTest%2FCiviDBAssert.php;h=0d3b9b806d0bcb29e27c9fda4337b6900b49fe28;hb=f3b0cd839c6b1e5ad33ae1b1d053da225c2c9e9f;hp=9d5dd2c9cb0e573e930455f946c3cfebc0b2929a;hpb=6643a63b47c9607cdc5f14a739cf7c7cfe55d726;p=civicrm-core.git diff --git a/tests/phpunit/CiviTest/CiviDBAssert.php b/tests/phpunit/CiviTest/CiviDBAssert.php index 9d5dd2c9cb..0d3b9b806d 100644 --- a/tests/phpunit/CiviTest/CiviDBAssert.php +++ b/tests/phpunit/CiviTest/CiviDBAssert.php @@ -119,6 +119,14 @@ class CiviDBAssert { /** * Compare a single column value in a retrieved DB record to an expected value + * + * @param $testCase + * @param string $daoName + * @param $searchValue + * @param $returnColumn + * @param $searchColumn + * @param $expectedValue + * @param string $message */ function assertDBCompareValue(&$testCase, $daoName, $searchValue, $returnColumn, $searchColumn, $expectedValue, $message @@ -140,6 +148,11 @@ class CiviDBAssert { self::assertAttributesEquals($testCase, $expectedValues, $dbValues); } + /** + * @param $testCase + * @param $expectedValues + * @param $actualValues + */ function assertAttributesEquals(&$testCase, &$expectedValues, &$actualValues) { foreach ($expectedValues as $paramName => $paramValue) { if (isset($actualValues[$paramName])) {