东儿童
爱拼才会赢
摘要: This article is part of a series on testing untestable code:Testing private methodsTesting code that uses singletonsStubbing static methodsStubbing hard-coded dependenciesNo, notthose privates. If you need help with those,this bookmight help.One question I get over and over again when talking aboutU 阅读全文
posted @ 2011-12-02 17:29 哎!无悔 阅读(298) 评论(0) 推荐(0) 编辑
摘要: This article is part of a series on testing untestable code:Testing private methodsTesting code that uses singletonsStubbing static methodsStubbing hard-coded dependenciesNo, notthose privates. If you need help with those,this bookmight help.One question I get over and over again when talking aboutU 阅读全文
posted @ 2011-12-02 17:29 哎!无悔 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 敏捷开发思想首先,编写类定义;其次,编写测试用例;第三,实现类;第四,实现测试用例;第五,反复测试修改。准备工作安装PHPUnit自动安装pear install phpunit手动安装下载http://pear.phpunit.de/get/PHPUnit-3.3.9.tgz,解压到PHP目录,将pear-phpunit和pear-phpunit.bat,复制到PHP目录,重命名为phpunit和phpunit.bat,将PHP目录加入PATH路径。编辑phpunit,修改为:编辑phpunit.bat,假设PHP路径为D:\PHP,修改为:@echo offphp -d safe_mode 阅读全文
posted @ 2011-12-02 17:15 哎!无悔 阅读(2248) 评论(0) 推荐(0) 编辑