Unit Testing a Website

前端 未结 7 1108
不知归路
不知归路 2021-01-30 09:11

I\'m curious to see how other developers go about testing their web sites. PHP specifically in my case, but this probably spans multiple languages. I\'ve been working on a site

7条回答
  •  囚心锁ツ
    2021-01-30 09:43

    You might want to check out PHPUnit http://www.phpunit.de/manual/current/en/

    I have started using it on my PHP projects and it's very easy to work with and very powerful. In particular, learn and use mocks: http://www.phpunit.de/manual/3.0/en/mock-objects.html

    Mocking is especially important when unit testing applications that do database operations.

提交回复
热议问题