|
@@ -33,8 +33,8 @@ $pending_verification_test_count = count($pending_verification_tests);
|
|
|
$completed_tests = array_filter($tests, function($test) { return $test->status == Test::STATUS_COMPLETED; });
|
|
$completed_tests = array_filter($tests, function($test) { return $test->status == Test::STATUS_COMPLETED; });
|
|
|
$completed_test_count = count($completed_tests);
|
|
$completed_test_count = count($completed_tests);
|
|
|
|
|
|
|
|
-$pass_count = count(array_filter($tests, function($test) { return $test->pass === "1"; }));
|
|
|
|
|
-$fail_count = count(array_filter($tests, function($test) { return $test->pass === "0"; }));
|
|
|
|
|
|
|
+$pass_count = count(array_filter($tests, function($test) { return $test->pass === 1; }));
|
|
|
|
|
+$fail_count = count(array_filter($tests, function($test) { return $test->pass === 0; }));
|
|
|
$pass_fail_count = $pass_count + $fail_count;
|
|
$pass_fail_count = $pass_count + $fail_count;
|
|
|
|
|
|
|
|
$pass_percentage = 0;
|
|
$pass_percentage = 0;
|
|
@@ -67,4 +67,4 @@ View::include("project", compact("project", "tests", "latitude", "longitude", "c
|
|
|
View::include("modal_assign_tester");
|
|
View::include("modal_assign_tester");
|
|
|
View::includeOnce("footer");
|
|
View::includeOnce("footer");
|
|
|
|
|
|
|
|
-?>
|
|
|
|
|
|
|
+?>
|