SimpleTest
Encyclopedia
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 object
s and can be used to automate the regression testing
of web application
s with a scriptable HTTP Client that can parse HTML
pages and simulate things like clicking on links
and submitting form
s.
Open source
The term open source describes practices in production and development that promote access to the end product's source materials. Some consider open source a philosophy, others consider it a pragmatic methodology...
unit test
Unit test
In computer programming, unit testing is a method by which individual units of source code are tested to determine if they are fit for use.A unit is the smallest testable part of an application. In procedural programming a unit could be an entire module but is more commonly an individual function...
framework for the PHP programming language
PHP
PHP is a general-purpose server-side scripting language originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document...
and was created by Marcus Baker. The test structure is similar to JUnit
JUnit
JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit that originated with SUnit....
/PHPUnit
PHPUnit
PHPUnit is a unit testing software framework for the programming language PHP . Created by Sebastian Bergmann, PHPUnit is one of the xUnit family of frameworks that originated with Kent Beck's SUnit. PHPUnit is hosted at GitHub .- Purpose :...
. SimpleTest supports mock object
Mock object
In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways. A programmer typically creates a mock object to test the behavior of some other object, in much the same way that a car designer uses a crash test dummy to simulate the...
s and can be used to automate the regression testing
Regression testing
Regression testing is any type of software testing that seeks to uncover new errors, or regressions, in existing functionality after changes have been made to a system, such as functional enhancements, patches or configuration changes....
of web application
Web application
A web application is an application that is accessed over a network such as the Internet or an intranet. The term may also mean a computer software application that is coded in a browser-supported language and reliant on a common web browser to render the application executable.Web applications are...
s with a scriptable HTTP Client that can parse HTML
HTML
HyperText Markup Language is the predominant markup language for web pages. HTML elements are the basic building-blocks of webpages....
pages and simulate things like clicking on links
Links (web browser)
Links is an open source text and graphic web browser with a pull-down menu system. It renders complex pages, has partial HTML 4.0 support , supports color and monochrome terminals and allows horizontal scrolling.It is oriented toward visual users who want to retain many typical elements of...
and submitting form
Form (web)
A webform on a web page allows a user to enter data that is sent to a server for processing. Webforms resemble paper or database forms because internet users fill out the forms using checkboxes, radio buttons, or text fields...
s.
External links
- SimpleTest homepage
- SimpleTest at SourceForgeSourceForgeSourceForge Enterprise Edition is a collaborative revision control and software development management system. It provides a front-end to a range of software development lifecycle services and integrates with a number of free software / open source software applications .While originally itself...
- Official API Docs and Tutorials
Articles
- UnitTesting in PHP using SimpleTest
- Simple Test Remote Testing
- Introduction to SimpleTest (talk at FOSDEM, Brussels, 2005)