コード例 #1
0
 public function get_comparison_hash($show_version_and_attributes = true, $raw_output = true)
 {
     if ($show_version_and_attributes) {
         $tp = $this->test_profile->get_identifier(true);
         if ($tp == null) {
             $tp = $this->test_profile->get_title();
         } else {
             if (($x = strrpos($tp, '.')) !== false) {
                 // remove the last segment of the test profile version that should be in xx.yy.zz format
                 // this removal is done since the zz segment should be maintainable between comparisons
                 $tp = substr($tp, 0, $x);
             }
         }
         return pts_test_profile::generate_comparison_hash($tp, $this->get_arguments(), $this->get_arguments_description(), $this->test_profile->get_app_version(), $raw_output);
     } else {
         $tp = $this->test_profile->get_identifier(false);
         if ($tp == null) {
             $tp = $this->test_profile->get_title();
         }
         return pts_test_profile::generate_comparison_hash($tp, $this->get_arguments(), null, null, $raw_output);
     }
 }