News Feed
Sections




News Archive
feed this:

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

Inviqa Blog:
How clean is your code?
June 13, 2014 @ 10:55:44

In this latest post to the Inviqa blog they ask the question "how clean is your code?" and offer a few tips to help it get that way (and stay that way).

During the Test Driven Development training (which includes Behat, and PHPspec) run by Marcello Duarte, I was particularly blown away by one of his many and funny analogies… "Would you have any surgery carried out by a doctor who does not wash his hands?" Everybody in the room shook their heads. Of course nobody would. There is too a high risk of complications. In software development 'infected' code can translate to bugs, bad user experience, poor performance and the complete failure of web applications.

He talks briefly about some of the lessons learned in this training session, pointing out that while it's not the easiest method to apply, it pays off in the long run of your code's "hygiene". He points out that the [Inviqa] group's success rate with TDD/BDD has reflected in the bottom line of their enterprise clients too.

0 comments voice your opinion now!
testdrivendevelopment tdd code hygiene training bdd

Link: http://inviqa.com/blog/how-clean-is-your-code/

Dave Marshall's Blog:
How I'm doing TDD with PHP
June 07, 2012 @ 11:31:51

Dave Marshall has shared his method behind using test-driven development in his recent development.

I've been watching the Destroy All Software back catalog over the last couple of months and it's really inspired me to up my TDD game. I'm still fairly new to TDD, I've written tests for a long time, but never really let it lead my development…

He talks about the testing tool he uses and some of the ideals he keeps in mind when developing his tests. He also comments on testing isolation, speed of execution, the "fail fast" idea as well as integration testing and continuous integration.

0 comments voice your opinion now!
tdd testdrivendevelopment tool execution


Freek Lijten's Blog:
Book Review - Growing Object-oriented software guided by tests
March 12, 2012 @ 13:57:57

Freek Lijten has a new post to his blog - a review of a book (from Freeman & Price) called "Growing Object-Oriented Software Guided by Tests". It's based on Java, but the ideas presented can be applied pretty universally.

It may seem strange but I'd like to start out with giving my opinion on this book: It is brilliant! If you don't like reading my post you at least know what you should do next: buy the friggin' book. The book offers some theory concerning agile development, (unit-)testing and code quality but its killer feature is the almost 200 page long example of developing an application the TDD way! In the rest of this post I will shortly highlight different parts of the books and stuff I enjoyed or learned from it.

He breaks up the review in to a few different parts - the process of test-driven development, his "first real lesson", their working example and a section about the more advanced topic of sustainable test driven development.

0 comments voice your opinion now!
objectoriented tdd testdrivendevelopment software book review


Community News:
Learn Test-Driven Development with Munchkin
August 04, 2010 @ 12:09:04

In this new post to his blog Giorgio Sironi points out a new project that wants to help you get started with test-driven development - Munchkin.

Meszaros Marton and other PHP coders have started a Test-Driven Development project centered on showing the methodology to new adopters in a green field. The goal of the project, named Munchkin, is creating a feed aggregator - like Google Reader - from scratch. The authors will post a series of articles about their development process along the way. If you want to follow a step-by-step guide to implementing an Agile project with TDD in PHP, follow them.

Their goal is to show you not only how TDD can make your application better but detailed tutorials on setting up your environment and making effective use of the tools in an agile environment.

0 comments voice your opinion now!
testdrivendevelopment tdd unittest munchkin


Project:
MakeGood - A test runner for doing Test Driven Development with Eclipse PDT
July 07, 2010 @ 13:39:56

Goran has pointed out a plugin for Eclipse that can help those out there wanting to adopt Test-Driven Development into their process - MakeGood (screenshot here).

MakeGood provides a test runner to run unit tests on Eclipse PDT. MakeGood strongly supports Test Driven Development (TDD) by various features.

Features in the plugin include:

  • Runs all tests when a file is saved.
  • Debugs a test.
  • Reruns the last test.
  • Can use the system include path when running tests.

It supports both PHPUnit and SimpleTest so you're covered either way. It also supports the Zend Debugger and Xdebug for help with your debugging needs.

0 comments voice your opinion now!
eclipse ide eclipsepdt testdrivendevelopment tdd plugin makegood


Avnet Labs Blog:
TDD with Zend Framework
November 03, 2009 @ 12:55:57

On the Avnet Labs blog today Ekerete has kicked off a new series looking specifically at using test-driven design to create Zend Framework-based applications:

However, as useful as the series [from Jani Hartikainen on TTD] is, it doesn't provide answers to Zend Framework specific testing issues (and considering all the ZF-specific posts on his site, that's quite surprising). [...] In the coming weeks, I'll put together a how-to on testing ZF applications using a Test Driven Development (TDD) approach. With TDD tests are written first and as such the test suite guides the design of the production code.

He shows how to set up a sample application, the Jira Base, and how to set up a simple base-level test.

0 comments voice your opinion now!
ttd testdrivendevelopment zendframework tutorial


Jani Hartikainen's Blog:
Unit testing 5 test-driven development
July 06, 2009 @ 22:06:27

Jani Hartikainen has posted part five of his look at unit testing in PHP (with PHPUnit) focusing on test-driven development.

The difference between "normal" and test-driven development (TDD) is that when doing TDD, you write unit tests for your new code before writing the code itself. This way you ensure good test coverage for your code, and your code will also be more flexible and reusable, as you have to design the class interfaces for easy testing.

He looks at some of the basics - like preconditions and postconditions - and how to create the tests for your application before you write a single line of (non-test) code. His examples show evaluations for testing for an empty order and to see if an object has an item in it after it's been added.

0 comments voice your opinion now!
tutorial testdrivendevelopment tdd unittest


PHPImpact Blog:
TDD with Symfony The first test always fails
July 02, 2008 @ 09:33:26

On the PHP::Impact blog, Federico Cargnelutti has posted about test-driven design, specifically with the Symfony framework.

Symfony is one of the few PHP frameworks that gives you basic tools for starting to write tests. [...] Symfony also provides an extension of this class called sfTestBrowser, designed especially for functional tests, which has all the abilities of the sfBrowser object plus some smart assert methods.

He uses this sfTestBrowser object to run an example test on a same get() call's response. It should match the regular expression of "/This is a temporary page/" but doesn't so it fails. Writing up tests like this for new parts of your application first would be considered test-driven development and the Symfony framework makes that simple.

0 comments voice your opinion now!
testdrivendevelopment tdd symfony framework test component module


Raphael Stolt's Blog:
PHP in Action book review
May 23, 2007 @ 07:54:00

Raphael Stolt has posted a book review of one of Manning Publishing's PHP-related books, "PHP in Action: Modern Software Practices for PHP".

Over the last few days I got the chance to skim through the upcoming Manning release "PHP in Action: Modern Software Practices for PHP" by Dagfinn Reiersøl et al. The reviewed book is seperated into four main parts, covering lots of interesting topics in a good and fluent writing style.

Raphael outlines the book, mentioning the four parts the book is divided up into:

  • Basic PHP tools and concepts
  • Developing applications via Test Driven Development
  • Web presentation and user interfaces
  • Object-oriented development including things like database abstraction
Raphael gives the book a positive rating and recommends it for anyone that has the basics down and is looking to extend their knowledge that much more.

0 comments voice your opinion now!
bookreview phpinaction section testdrivendevelopment userinterface bookreview phpinaction section testdrivendevelopment userinterface



Community Events





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


language package security install opinion release community introduction symfony laravel series voicesoftheelephpant version composer framework library podcast update interview tool

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