把 web service 移到 AWS 上後,想到時時刻刻都人工測試感到很 Orz 於是想了一些簡易 Unit Test 方式: 檢驗網頁是否可讀取正常 (strlen) 檢驗網頁 HTML 格式 (tidy 或 xmllint) 檢驗網頁上的 link 個數 (preg_match_all) 檢驗 JSON 格式 (json_decode && json_last_error) 剩下的就...再看看 XD 其他筆記:changyy / web-service-unit-test / phpunit / web-service-unit-test.php