Quantcast
Browsing latest articles
Browse All 15 View Live

Timothy Boronczyk: PHP Assertions

Timothy Boronczyk has written up a new post that looks at using assertions in PHP - the actual use of the assert function to evaluate values in your code. I stumbled upon assertions in PHP today,...

View Article


PHPMaster.com: Exceptional Exceptions

On PHPMaster.com today they have a new post from Remi Woler about "exceptional exceptions" - using exceptions to handle the flow of your application's execution a bit better. Unlike errors, exceptions...

View Article


Matt Frost: Mocking SoapClient

Matt Frost has shared some of his work he's done with the SoapClient in PHP and how he mocked it out for his unit tests (since it's an external resource). The concept of mocking web services for...

View Article

Joshua Thijssen: PHP5.5: Try/Catch/Finally

Joshua Thjissen has a new post to his site today about a feature that's been introduced in the upcoming PHP 5.5 release of the language - the addition of "finally" to try/catch exception handling. He...

View Article

Larry Garfield: On empty return values

Larry Garfield has posted some of his thoughts on return values and reminds you about consistent return types, regardless of the result. Earlier today, I posted a brief tweet (isn't that redundant?)...

View Article


Rob Allen: Simple logging of ZF2 exceptions

In this new post to his site Rob Allen shows you how to implement a simple logging method for catching exceptions in your Zend Framework 2 application. I recently had a problem with a ZF2 based...

View Article

Chris Hartjes: Testing Smells - Try/catch

In this new post to his site Chris Hartjes gives an example of what he calls a "testing smell". This particular illustration deals with the poor handling of testing and exceptions with try/catch...

View Article

JetBrains.com: Just-In-Time debugging and PHP Exception Breakpoints with...

On the JetBrains site there's a recent post showing you how to use just-in-time debugging and breakpoints in their PHPStorm IDE combined with the popular PHP debugging tool Xdebug. In every project...

View Article


Three Devs & A Maybe Podcast: Exception and Error Handling

In the latest episode of the Three Devs and a Maybe podcast Michael Budd, Fraser Hart, Lewis Cains and Edd Mann look at error and exception handling in PHP applications. In this weeks show we...

View Article


Rob Allen: Throw an exception when simplexml_load_string fails

In a quick post to his site Rob Allen shares a class that he's created to handle and throw an exception any time that the load from a SimpleXML parsing fails. I keep having to look up how to stop the...

View Article
Browsing latest articles
Browse All 15 View Live