2015
Feb
05

當一個 PHP 程式有 require 到多個 library 時,Unit test 會變得很難完成,或者是根本無法測試,而 Mock Object 就是一個用來處理這種很難測試的 PHP 程式。下...

2014
Jun
23

Write a php unit test is not a hard work. I think you had already use phpunit before read this article. But sometimes, the expert engineer create a pr...

2014
Feb
19

很多公司都有要求程式要寫 Unit Test,Unit Test 固然可以提升程式的品質,但是到底要寫多少 Unit Test 才夠呢? 我想沒有人可以給一個答案。Code CoverageCode ...