+ finish the feature of testcase step.

This commit is contained in:
wangchunsheng
2010-01-29 06:44:47 +00:00
parent 6e55818593
commit 71eef0f593
10 changed files with 342 additions and 255 deletions
+2 -2
View File
@@ -393,8 +393,8 @@ EOT;
/* 比较两个字符串的不同。摘自PHPQAT自动化测试框架。*/
public static function diff($text1, $text2)
{
$w = explode("\n", $text1);
$o = explode("\n", $text2);
$w = explode("\n", trim($text1));
$o = explode("\n", trim($text2));
$w1 = array_diff_assoc($w,$o);
$o1 = array_diff_assoc($o,$w);
$w2 = array();