今天写了一个测试的php类。这个对于单元测试很方便。 但是对于参数的处理,我感觉代码很丑陋,有没有高手帮忙,美化一下。 参数始终不可以动态。//调用 Test("365",$className,"DateDiff",array("2013-8-4","2012-8-4"));1#regionTest234functionTest($expected,$className,$functionName,$parameteres)5{67switch(sizeof($parameteres))8{9case0:10$ac Read More
posted @ 2012-08-04 23:29 chinajinwanjun Views(220) Comments(0) Diggs(0)