mouyong 4年前

修改理由:

修改过程

相关信息:


此投稿状态为 标记为已读

内容修改:

红色背景 为原始内容

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

OldNewDifferences
2828
2929![file](https://lccdn.phphub.org/uploads/images/201808/15/76/1Gn6RMmSDh.png?imageView2/2/w/1240/h/0)
3030
31 得到的测试类如下:
 31得到类似如下的测试类:
 32
 33![file](https://lccdn.phphub.org/uploads/images/201808/24/6324/VKK5pyYVfM.png?imageView2/2/w/1240/h/0)
 34
 35我们新建的测试类继承自 psr-0 规范的 TestCase。
 36
 37为了避免如下报错:
 38
 39![file](https://lccdn.phphub.org/uploads/images/201808/24/6324/NemrqU2xfQ.png?imageView2/2/w/1240/h/0)
 40
 41接下来我们需要做点小调整,引入 psr-4 规范的 TestCase ,修改继承。
 42最终得到的测试类如下:
3243
3344*tests/WeatherTest.php*
3445