3 use PHPUnit\Framework\TestCase;
5 $sharedLibrary=
"/var/www/html/shared/library";
7 require_once(
"$sharedLibrary/hcuTranslate.i");
8 require_once(
"$sharedLibrary/cu_data.i");
12 public function setUp() {
16 public function test_limits()
18 $arrayLimits = Get_AlertLimits();
21 $this->assertArrayHasKey(
"bal", $arrayLimits[
"data"]);
22 $this->assertArrayHasKey(
"trans", $arrayLimits[
"data"]);
23 $this->assertArrayHasKey(
"check", $arrayLimits[
"data"]);
24 $this->assertArrayHasKey(
"loan", $arrayLimits[
"data"]);
27 public function test_validate_error()
31 $test = Validate_Alert($dbh, $hbEnv, $MC);
33 $this->assertArrayHasKey(
"errors", $test );
34 $this->assertGreaterThanOrEqual( 2, count($test[
"errors"]) );