Пример #1
0
 protected function helpTest($objTestDataArray, $objProperiesArray, $strGetStyleMethod = "GetWrapperStyleAttributes")
 {
     foreach ($objProperiesArray as $strProperty => $strCssProperty) {
         $strValue = $objTestDataArray["Value"];
         if ($strProperty) {
             $this->ctlTest->{$strProperty} = $strValue;
         } else {
             $this->ctlTest->SetCustomStyle($strCssProperty, $strValue);
         }
         $strAttrs = $this->ctlTest->{$strGetStyleMethod}();
         $intResult = strpos($strAttrs, $strCssProperty . ':' . $objTestDataArray["Expected"]);
         $strMessage = $objTestDataArray["Msg"] . " Expected: '" . $objTestDataArray["Expected"] . "'" . " Obtained: '" . $strAttrs . "'";
         $this->assertTrue(false !== $intResult, $strMessage);
     }
 }