Testing Method for PHP code - zend.com - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Programming > Programming Tips and FAQ
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 05-02-2011, 10:05 AM   #1 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default Testing Method for PHP code - zend.com

An Introduction to the Art of Unit Testing in PHP

Quote:
padraic | 11 comments | Monday, December 3, 2007
.

Introduction
Testing is an essential aspect of developing in any programming language. If you don't test your source code then how can you verify it works as expected? Manual testing can only be performed irregularly and usually only in limited ways. The answer to testing source code regularly, and in depth, is to write automated tests which can be frequently executed. In PHP such tests are usually written using a unit testing framework, a framework which allows the source code of any application or library to be tested as isolated units of functionality such as a single class or method. As unit testing has gained popularity, it has become a standard practice in PHP with libraries and frameworks such as Swiftmailer, the Zend Framework and Symfony all requiring unit test coverage of their source code.

Unit Testing is often seen as an arcane, time consuming task - which it sometimes can be! But the point of spending time writing tests is to improve the quality of your source code so it has fewer overall bugs, many of which are detected early, a continual testing process to prevent new changes from changing the behaviour of older code, and to provide confidence that your code can be depended on. There are other benefits too, and we'll detail these later.
i saw a job posting that required exp with unit testing. so i'd thought id look into it. it think this article is a good read about it




edit - just found a video tutorial for phpunit

http://www.internet.com/Video/?bcpid...d=793834242001
office politics is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free PHP Webinars - zend.com office politics Programming Tips and FAQ 0 11-30-2010 07:43 AM
Windows Update error code # Code 80070424 WindowsFinatic Microsoft Windows and Software 3 03-17-2010 06:49 PM
PHP: How to modify a downloaded JavaScript code and partly change the code within it? LincolnX Programming 4 01-25-2008 03:25 PM
New method of cooling? Powerslave Monitors, Printers and Peripherals 0 06-24-2005 04:55 PM


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 08:20 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.