Home > Backend Development > PHP Tutorial > thinkphp如何做单元测试。什么是单元测试

thinkphp如何做单元测试。什么是单元测试

WBOY
Release: 2016-06-06 20:10:23
Original
1003 people have browsed it

thinkphp如何做单元测试。什么是单元测试

回复内容:

thinkphp如何做单元测试。什么是单元测试

其实phpunit单元测试已经可以实现了thinkPHP的测试,测试说明`

tp应该没有单元测试吧.
单元测试说白了就是测试你写的函数以及逻辑有没有达到你期望得到的结果。

简单点讲,单元测试就是借助相关的工具测试你写的代码有没有达到你预期的功能,其一亮点就是可以把多个模块组合在一起进行自动化测试...测试效率较高...

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template