rovast 5年前

修改理由:

Faild -> Failed

相关信息:


此投稿已在 5年前 合并。

内容修改:

红色背景 为原始内容

绿色背景 为新增或者修改的内容

OldNewDifferences
154154
155155       $w->getWeather('深圳', 'foo');
156156
157        $this->fail('Faild to assert getWeather throw exception with invalid argument.');
 157       $this->fail('Failed to assert getWeather throw exception with invalid argument.');
158158   }
159159   
160160   // 检查 $format 参数
 
172172       $w->getWeather('深圳', 'base', 'array');
173173
174174       // 如果没有抛出异常,就会运行到这行,标记当前测试没成功
175        $this->fail('Faild to assert getWeather throw exception with invalid argument.'); 
 175       $this->fail('Failed to assert getWeather throw exception with invalid argument.'); 
176176   }
177177   .
178178   .
 
443443
444444       $w->getWeather('深圳', 'foo');
445445
446        $this->fail('Faild to assert getWeather throw exception with invalid argument.');
 446       $this->fail('Failed to assert getWeather throw exception with invalid argument.');
447447   }
448448
449449   public function testGetWeatherWithInvalidFormat()
 
455455
456456       $w->getWeather('深圳', 'base', 'array');
457457
458        $this->fail('Faild to assert getWeather throw exception with invalid argument.');
 458       $this->fail('Failed to assert getWeather throw exception with invalid argument.');
459459   }
460460
461461   public function testGetWeather()