Charles Sprayberry's Blog: DI and global state
In response to some of the comments made on his previous post about why you should use dependency injection in your applications, Charles Sprayberry is back with some more concrete examples showing...
View ArticlePHP-Tip-a-Day: PHP Tutorial: The Legend of the Singleton
Following his recent allegory about the Factory pattern (as described in story form) Greg Bulmash has posted the Legend of the Singleton to help with your understanding this pattern. The Singleton...
View ArticlePHPEasy.co.uk: Design Patterns - The Singleton Pattern
PHPEasy.co.uk has a new tutorial posted introducing one of the most common (and often misused) design patterns out there - the Singleton pattern. In this first tutorial in the design pattern series we...
View ArticleGonzalo Ayuso: The reason why singleton is a "problem" with PHPUnit
Gonzalo Ayuso has a new post that responds to the idea that "singletons are a problem when testing" your applications with something like PHPUnit. Maybe this pattern is not as useful as it is in J2EE...
View ArticleZumba Engineering Blog: Mocking Singleton PHP classes with PHPUnit
On the Zumba Engineering blog today Chris Taylor has a new post about mocking in PHPUnit, specifically how to handle those pesky Singleton methods lurking around your codebase. In many of our...
View ArticleCodeception.com: Nothing is Untestable: AspectMock in Action
On the Codeception site they've posted a guide to using the AspectMock feature of the testing tool to prove that "nothing is untestable." We already announced AspectMock, the mocking framework that...
View ArticleRussell Walker: Handling Global Data in PHP Web Applications
Russell Walker has a post on his site sharing some suggestions about effectively dealing with global data in your PHP applications. Almost every web application needs to handle global data. There are...
View ArticleAllan MacGregor: Design Patterns in PHP: Singletons
Allan MacGregor has posted his latest in his look at design patterns in PHP with this most recent post about the Singleton pattern. The singleton pattern is used to restrict the instantiation of a...
View ArticlePHPBuilder.com: Exploring PHP Design Patterns
For those that might be new to development, the concept of "design patterns" could be one you're just approaching. These common practices define some "patterns" of development that have been proven to...
View ArticleNetTuts.com: Design Patterns: The Singleton Pattern
On the NetTuts.com site today they've posted another in their series introducing the various design patterns that have been established in software development. In this new post they talk about the...
View Article