SimpleTest
| Developer(s) | Marcus Baker, Jason Sweat, Travis Swicegood, Perrick Penet, Edward Z. Yang, Jens A. Koch |
|---|---|
| Initial release | 18 March 2003[1] |
| Stable release | 1.1.7 / September 21, 2015[2] |
| Development status | Active |
| Written in | PHP |
| Operating system | Cross-platform |
| Available in | English, French |
| Type | unit test |
| License | GNU Lesser General Public License 2.1 |
| Website | http://www.simpletest.org |
SimpleTest is an open source unit test framework for the PHP programming language and was created by Marcus Baker. The test structure is similar to JUnit/PHPUnit. SimpleTest supports mock objects and can be used to automate the regression testing of web applications with a scriptable HTTP Client that can parse HTML pages and simulate things like clicking on links and submitting forms.
Example
The following file HelloWorld.php, located in the framework folder, will test its own presence and the absence of another file successfully:
<?php require_once('autorun.php'); class TestHelloWorld extends UnitTestCase { function TestFilesExistence { $this->assertTrue(file_exists($_SERVER['SCRIPT_FILENAME'])); $this->assertFalse(file_exists('HelloWikipedia.php')); } } ?> See also
- HtmlUnit
References
External links
Articles
- Simple Test Remote Testing
- Introduction to SimpleTest (talk at FOSDEM, Brussels, 2005)
This article is copied from an article on Wikipedia® - the free encyclopedia created and edited by its online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of Wikipedia® encyclopedia articles provide accurate and timely information, please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.