refactoring

Create your own framework... on top of the Symfony2 Components (...

Planet PHP  Sat, 01/07/2012 - 11:41

Up until now, our application is simplistic as there is only one page. To spice things up a little bit, let's go crazy and add another page that says goodbye:


 

Marco Tabini's Blog: The easiest way to add unit test to your ap...

PHPDeveloper.org  Fri, 09/09/2011 - 08:17

In a new post to his blog Marco Tabini offers some suggestions on unit testing - not really a tutorial on how to it, more of an "easy way in" to introducing it to your development process.


 

Richard Miller's Blog: Symfony2: Moving Away From the Base Contr...

PHPDeveloper.org  Tue, 06/14/2011 - 12:23

Richard Miller has a new post to his blog today that recommends moving away from the base controller the Symfony introductory documentation has you make.

He suggests an alternative that can be used more widely.


 

Lars Strojny's Blog: Dependency Injection Container Refactorings...

PHPDeveloper.org  Wed, 04/20/2011 - 09:27

New on his blog today Lars Strojny has posted the first part of his look at dependency injection and how he's been using it to do some refactoring in his applications.

He uses the Symfony DI container in his examples, but really you can apply the principles to just about any of the other current DI offerings.


 

Tutorial: Introduction to Unit Testing in PHP with PHPUnit - Sit...

Planet PHP  Thu, 12/16/2010 - 00:52

It’s a familiar situation: you’ve been developing on an application for hours and you feel like you’ve been going round in circles.

You fix one bug and another pops up. Sometimes, it’s the same one you found 30 minutes ago, and sometimes it’s new, but you just know it’s related.

For most developers, debugging means either clicking around on the site, or putting in a whole load of debugging statements to hunt the problem down.


 

PHPUnit 3.5: Refactoring to Components - Sebastian Bergmann

Planet PHP  Fri, 07/23/2010 - 06:00

When you look at the list of changes for PHPUnit 3.5, you will see that many of them deal with refactoring to components.

Here is an overview of these new components:

  • PHP_CodeCoverage

    The collection, processing, and rendering of code coverage information has been factored out into a separate component.

    A bit more information can be found here.


 

PHPUnit 3.5 Beta 1 - Sebastian Bergmann

Planet PHP  Tue, 06/08/2010 - 02:20

To celebrate the 15th birthday of PHP, I have released PHPUnit 3.5 Beta 1 today. The refactoring towards components is a "new feature" that is already visible upon installation:


 

Community News: Italian phpDay Call for Papers Now Open

PHPDeveloper.org  Mon, 11/16/2009 - 12:18

Francesco Fullone let us know that the Call for Papers for this year's Italian PHPDay event is now officially open!


 

Brandon Savage's Blog: Peer Review: Managing Coding Standards

PHPDeveloper.org  Mon, 08/17/2009 - 09:28

Brandon Savage has posted a few suggestions about dealing with coding standards and how they can help improve the quality of your code via his refactoring of a bit of example code.

This time the focus is on documentation.


 

Brandon Savage's Blog: Superglobals In Classes: Revisited

PHPDeveloper.org  Tue, 07/14/2009 - 06:51

Revisiting an earlier post dealing with superglobals and classes, Brandon Savage looks at an example of why its still a bad idea.