News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Testing Forms in PHP with SimpleTest
March 03, 2011 @ 09:47:34

On PHPBuilder.com today there's a new tutorial showing you how to write and run unit tests with SimpleTest to test the interface of your site (forms), not just the backend code.

In addition to offer a complete suite of unit testing capabilities, SimpleTest is bundled with an internal Web browser which you can use to automate the navigation of your Web site and perform tests such as completing and submitting Web forms much in the same way a typical user would. In this tutorial, I'll show you how to use SimpleTest to automate these otherwise tedious tasks.

He starts with the basics of installing the tool and and running the sample test to ensure things are set up correctly. They include tests that show how to check for a successful form submission by checking things like response code and contents of the text on the result page.

0 comments voice your opinion now!
simpletest form interface unittest tutorial


blog comments powered by Disqus

Similar Posts

RIA Zone: Charting data from a database using Adobe Flex and PHP

Mathias Verraes: How Much Testing is Too Much?

Komunitasweb.com: Showing the weather with PHP and Google Weather API

Henrik Bjørnskov's Blog: Travis & Composer sitting in a tree K-I-S-S-I-N-G

Komunitasweb.com: CodeIgniter Tutorial - ORM with DataMapper


Community Events

Don't see your event here?
Let us know!


interview unittest release extension language api library podcast version series laravel5 community install introduction voicesoftheelephpant example framework php7 laravel opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework