摘要
优秀的程序员与普通的程序员之间的区别在于:优秀的程序员会尽可能用测试检测自己的代码,越早测试程序中的问题,发现它的机会越大,花费去寻找和修正的时间就会越少。这就说明在软件发布之前如果缺少有效的测试,软件的问题会很多。使用PHPUnit进行测试,会检测代码是不是按期望的执行,执行的自动测试软件代码的每一部分是不是正确。这些可执行代码的片段称为单元测试。
Good programmers and the difference between ordinary programmers: Test for good programmers will try testing your own code, the sooner you problems in the test program, chances of you find it, you spend less time will be to find and amended. This description before software is released if the lack of effective testing, software issues a lot. Testing with PHPUnit, he detects if your code is executed in expectations, every part of the implementation of automated testing software code is not correct. These pieces of executable code called unit testing.
出处
《电子设计工程》
2012年第23期19-22,共4页
Electronic Design Engineering
基金
辽宁省教育厅项目(2008005)