Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

which unit-test framework for PHP: simpletest, phpunit or? [closed]

I'm a big fan of simpletest because it's what I know. It has excellent support for mocking and web-testing.

But I'm always scared of stagnating so any compelling arguments to switch would be appreciated.

like image 539
Ken Avatar asked Nov 10 '08 23:11

Ken


People also ask

What is PHPUnit used for?

PHPUnit is a framework independent library for unit testing PHP. Unit testing is a method by which small units of code are tested against expected results. Traditional testing tests an app as a whole meaning that individual components rarely get tested alone.

Is PHPUnit open source?

#3) PHPUnitIt is an open source testing tool used for PHP code. It is the most widely used framework for unit testing.

Is PHPUnit a framework?

PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks. The currently supported versions are PHPUnit 9 and PHPUnit 8.


1 Answers

I don't think either is going away anytime soon. Simpletest is maintained by a small, but involved group of people.

PHPUnit seems to have a bigger userbase, which may count as an argument for switching. I'm quite happy with Simpletest though.

like image 132
troelskn Avatar answered Oct 22 '22 00:10

troelskn