<p>I was wondering if anyone that has experience in both this stuff can shed some light on the <em>significant</em> difference between the two if any?</p>

<p>Any specific strength of each that makes it suitable for any specific case?</p>

[{'answer_id': 34338, 'author': 'Erik Öjebo', 'author_id': 276, 'author_profile': 'https://Stackoverflow.com/users/276', 'pm_score': 3, 'selected': False, 'text': '<p>I found SimpleTest was even easier than PHPUnit to set up. Just extract it and you are good to go. A benefit of this is if you are working at more than one machine, since you can store the whole testing framework the same way as your source code, and thereby know that you are using the same framework code. Especially if you modify it in any way.</p>\n\n<p>So, I would say that a strength of SimpleTest is that it is very light weight and portable.</p>\n\n<p>SimpleTest also ships with a very simple HTML GUI, which is quite easy to extend if you want to. As far as I know, PHPUnit does not include a HTML GUI, but there are GUI:s available to download, such as <a href="http://cool.sourceforge.net/" rel="noreferrer">Cool</a>.</p>\n'}, {'answer_id': 34343, 'author': 'FrankS', 'author_id': 3134, 'author_profile': 'https://Stackoverflow.com/users/3134', 'pm_score': 1, 'selected': False, 'text': "<p>I haven't checked Simple Test for a while, last time it had an eclipse plugin, which is a major factor for me, but it hasn't been updated for a long time.\nSebastian Bergmann is still very actively working on PHPUnit, but it still lacks a good plugin for eclipse - but it is included for the new Zend Studio.</p>\n"}, {'answer_id': 34474, 'author': 'Eric Scrivner', 'author_id': 2594, 'author_profile': 'https://Stackoverflow.com/users/2594', 'pm_score': 5, 'selected': False, 'text': '<p>I prefer PHPUnit now, but when I started out I used SimpleTest as I didn\'t always have access to the command line.  SimpleTest is nice, but the only thing it really has over PHPUnit, in my opinion, is the web runner.</p>\n\n<p>The reasons I like PHPUnit are that it integrates with other PHP developer tools such as <a href="http://phing.info" rel="noreferrer" title="Phing">phing</a> (as does SimpleTest), <a href="http://www.phpundercontrol.org/about.html" rel="noreferrer" title="phpUnderControl">phpUnderControl</a>, and <a href="http://code.google.com/p/xinc/" rel="noreferrer" title="Xinc">Xinc</a>.  As of version 3.0 it <a href="http://www.phpunit.de/manual/current/en/test-doubles.html#test-doubles.mock-objects" rel="noreferrer" title="PHPUnit Mock Objects">has mocking</a> support, is being actively developed, and the documentation is excellent.</p>\n\n<p>Really the only way to answer this question for yourself is to try both out for a time, and see which fits your style better.</p>\n\n<p>EDIT: Phing now integrates with SimpleTest as well.</p>\n'}, {'answer_id': 814882, 'author': 'neu242', 'author_id': 13365, 'author_profile': 'https://Stackoverflow.com/users/13365', 'pm_score': 4, 'selected': False, 'text': '<p>Baphled has a nice article on <a href="http://baphled.wordpress.com/2009/01/28/simpletest-vs-phpunit/" rel="noreferrer">SimpleTest vs PHPUnit3</a>.</p>\n'}, {'answer_id': 1004351, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>Well I made a phpUnit web based UI test case runner and made it available on sourceforge. Uses ajax and has quite cool interface as well if you want to give it a shot check it at sourceforge. The project name is phpunitwebui and the website is <a href="http://phpunitwebui.sourceforge.net/" rel="noreferrer">http://phpunitwebui.sourceforge.net/</a></p>\n'}, {'answer_id': 1753464, 'author': 'stfan', 'author_id': 213453, 'author_profile': 'https://Stackoverflow.com/users/213453', 'pm_score': 4, 'selected': False, 'text': '<ul>\n<li>I could NOT understand how to download and install PHPUnit.</li>\n<li><p>I could, however, easily understand how to install SimpleTest. </p>\n\n<p>(As far as i can remember the instructions for <strong>PHPUnit</strong> said something along the lines of "install it via PEAR and we won\'t give any instructions on how to do it any other way") \nsee:</p></li>\n<li><a href="http://www.phpunit.de/manual/current/en/installation.html" rel="noreferrer">http://www.phpunit.de/manual/current/en/installation.html</a></li>\n</ul>\n\n<p>For <strong>SimpleTest</strong>, just download it and point to it from your code.</p>\n\n<p>So Simpletest won for me.</p>\n'}, {'answer_id': 4534779, 'author': 'T0xicCode', 'author_id': 142020, 'author_profile': 'https://Stackoverflow.com/users/142020', 'pm_score': 2, 'selected': False, 'text': "<p>As it has been pointed, it's mostly a preference choice, as both will run the tests you write for it and report back the results.</p>\n\n<p>The Simpletest web UI is very useful, but it can also sometimes get cumbersome. In my current project, I would have had to put more work into a system to make my application (an API) work with the web interface (set up apache correctly, copy files to the public_html root, etc.) than it would have been to simply run phpunit from the eclipse workspace. Therefore I choose PHPUnit. Also, the use of PEAR was a big plus since you don't need to manually track updates. Simply run <code>pear upgrade</code> once in a while and PHPUnit will be kept up-to-date.</p>\n"}, {'answer_id': 8715966, 'author': 'edorian', 'author_id': 285578, 'author_profile': 'https://Stackoverflow.com/users/285578', 'pm_score': 8, 'selected': True, 'text': '<p>This question is quite dated but as it is still getting traffic and answers I though I state my point here again even so I already did it on some other (newer) questions.</p>\n<p>I\'m <em><strong>really really</strong></em> baffled that SimpleTest <strong>still</strong> is considered an alternative to phpunit. Maybe i\'m just misinformed but as far as I\'ve seen:</p>\n<ul>\n<li>PHPUnit is the standard; most frameworks use it (like Zend Framework (1&amp;2), Cake, Agavi, even Symfony is dropping their own Framework in Symfony 2 for phpunit).</li>\n<li>PHPUnit is integrated in every PHP IDE (Eclipse, Netbeans, Zend Stuide, PHPStorm) and works nicely.</li>\n<li>Simpletest has an eclipse extension for PHP 5.1 (a.k.a. old) and nothing else.</li>\n<li>PHPUnit works fine with every continuous integration server since it outputs all standard log files for code coverage and test reports.</li>\n<li>Simpletest does not. While this is not a big problem to start with it will bite you big time once you stop &quot;just testing&quot; and start developing software (Yes that statement is  provocative :) Don\'t take it too seriously).</li>\n<li>PHPUnit is actively maintained, stable and works great for every codebase, every scenario and every way you want to write your tests.</li>\n<li>(Subjective) <a href="http://www.phpunit.de/manual/3.6/en/code-coverage-analysis.html" rel="noreferrer">PHPUnit provides much nicer</a> code coverage reports <a href="http://www.simpletest.org/en/reporter_documentation.html" rel="noreferrer">than Simpletest</a></li>\n<li>With PHPUnit you also get these reports inside your IDE (<a href="http://netbeans.org/kb/docs/php/phpunit.htm%60" rel="noreferrer">Netbeans</a>, Eclipse, ...)</li>\n<li>Also there are a couple of suggestings for a <a href="https://stackoverflow.com/questions/2424457/web-interface-to-phpunit-tests"><strong><code>web interface to phpunit tests</code></strong></a>.</li>\n</ul>\n<p>I\'ve yet to see any argument in favor of SimpleTest.  It\'s not even simpler to install since PHPUnit is available via pear:</p>\n<pre><code>pear channel-discover pear.phpunit.de\npear install phpunit/PHPUnit\n</code></pre>\n<p>and the &quot;first test&quot; looks pretty much the same.</p>\n<p>As of <code>PHPUnit 3.7</code> it\'s <strong>even easier to install</strong> it by just using the <a href="http://www.phpunit.de/manual/current/en/installation.html#installation.phar" rel="noreferrer"><strong><code>PHAR Archive</code></strong></a></p>\n<pre><code>wget http://pear.phpunit.de/get/phpunit.phar\nchmod +x phpunit-3.7.6.phar\n</code></pre>\n<p>or for windows just <a href="http://pear.phpunit.de/get/phpunit.phar" rel="noreferrer">downloading</a> the phar and running:</p>\n<pre><code>php phpunit-.phar\n</code></pre>\n<p>or when using the <a href="http://www.phpunit.de/manual/current/en/installation.html#installation.composer" rel="noreferrer">supported composer install</a> ways like</p>\n<pre><code>&quot;require-dev&quot;: {\n    &quot;phpunit/phpunit&quot;: &quot;3.7.*&quot;\n}\n</code></pre>\n<p>to your composer.json.</p>\n<hr />\n<p>For everything you want to test PHPUnit will have a solution and you will be able to find help pretty much anywhere (SO, #phpunit irc channel on freenode, pretty much every php developer ;) )</p>\n<p>Please correct me if I\'ve stated something wrong or forgot something :)</p>\n<h1>Overview of PHP Testing tools</h1>\n<p>Video: <a href="http://conference.phpnw.org.uk/phpnw11/schedule/sebastian-bergmann/" rel="noreferrer">http://conference.phpnw.org.uk/phpnw11/schedule/sebastian-bergmann/</a></p>\n<p>Slides: <a href="http://www.slideshare.net/sebastian_bergmann/the-php-testers-toolbox-osi-days-2011" rel="noreferrer">http://www.slideshare.net/sebastian_bergmann/the-php-testers-toolbox-osi-days-2011</a></p>\n<p>It mentions stuff like <a href="https://github.com/mageekguy/atoum" rel="noreferrer">Atoum</a> which calls its self: &quot;A simple, modern and intuitive unit testing framework for PHP!&quot;</p>\n<hr />\n<h3>Full disclosure</h3>\n<p>I\'ve originally written this answer Jan. 2011 where I had no affiliation with any PHP Testing project. Since then I became a contributor to PHPUnit.</p>\n'}, {'answer_id': 12900425, 'author': 'mr1031011', 'author_id': 821517, 'author_profile': 'https://Stackoverflow.com/users/821517', 'pm_score': 1, 'selected': False, 'text': '<p>This question is old, but I want to add my experience: PHPUnit seems to be the standard now, but if you work with a legacy system that uses lots and lots of global variables, you may get stuck from the get go. It seems like there is no good way to do tests with global vars in PHPUnit, you seem to have to set your variables via $GLOBALS which is NO GOOD if you have tons of files setting global variables everywhere. OK some may say that the problem is in the legacy system but that doesn\'t mean we cannot do tests on such system. With SimpleTest such thing is simple. I suppose if PHPUnit allows us to include a file globally, not within any class/function scope then it wouldn\'t be too much of an issue as well.</p>\n\n<p>Another promising solution is <a href="http://www.enhance-php.com" rel="nofollow">http://www.enhance-php.com</a>, looks nice :)</p>\n'}, {'answer_id': 22735130, 'author': 'Jens A. Koch', 'author_id': 1163786, 'author_profile': 'https://Stackoverflow.com/users/1163786', 'pm_score': 4, 'selected': False, 'text': '<p>Half of the mentioned points in the accepted answer are simply not true:</p>\n\n<p><a href="https://github.com/simpletest/simpletest" rel="nofollow noreferrer">SimpleTest</a> has </p>\n\n<ul>\n<li>the easier setup (extract to folder, include and run)</li>\n<li>simply check the folder into version control (try to do that with phpunit nowadays :))</li>\n<li>less dependencies and lots of extensions (webtester, formtester, auth)</li>\n<li>a good code coverage reporter, which is easy to extend (dots, function names, colors)</li>\n<li>a code coverage summary (finally landed in PHPUnit 4.x)</li>\n<li>a decent web runner and an ajax web runner, with groups and single file executions</li>\n<li>still better diff tool (with no whitespace or newline problems)</li>\n<li>an adapter/wrapper to run SimpleTests by phpUnit and vice versa</li>\n<li>compatibility PHP5.4+</li>\n</ul>\n\n<p>The downside:</p>\n\n<ul>\n<li>not industry standard (PHPUnit)</li>\n<li>not actively maintained</li>\n</ul>\n'}, {'answer_id': 33172760, 'author': 'user5454174', 'author_id': 5454174, 'author_profile': 'https://Stackoverflow.com/users/5454174', 'pm_score': -1, 'selected': False, 'text': '<p>when there are thousands functions to test at one go, phpunit is way to go, simple test is falling short as it web based.  </p>\n\n<p>I am still using simple web to for small scale test . </p>\n\n<p>But both are good</p>\n'}, {'answer_id': 39249666, 'author': 'tru7', 'author_id': 430531, 'author_profile': 'https://Stackoverflow.com/users/430531', 'pm_score': 2, 'selected': False, 'text': '<p>This is from the point of view of a very casual PHP developer:</p>\n\n<p>It took me two days to grasp PHPUnit, mostly trying to debug under Eclipse that I finally gave up.</p>\n\n<p>It took me two hours to setup Simpletest including debug under Eclipse.</p>\n\n<p>Maybe I will find the shortfalls of Simpletest in the future but so far it does well what I need: TestClasses, Mock objects, test-code debugging, and web interface for a quick snapshot of the situation.</p>\n\n<p>Again: <strong>This from the point of view of a very casual PHP user</strong> (not even developer :-)</p>\n'}]
['https://Stackoverflow.com/questions/34312', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2976/']