unit tests

PHPUnit Plugin For Sublime Text 2 - Stuart Herbert

Planet PHP  Sat, 02/04/2012 - 12:57

Sublime Text 2 is a new cross-platform text editor that I’ve recently switched to.

It’s still in public beta, but already offers better performance (and battery life!) and a better look (fonts that render properly!) than Java-based IDEs such as Netbeans.

One thing it didn’t have was support for PHPUnit, so I’ve made a plugin.

It’s available to install via Package Control.


 

Codeception Blog: Introduction to Codeception

PHPDeveloper.org  Wed, 01/25/2012 - 10:19

On the Codeception blog there's an introduction to the Codeception tool, a behavior-driven framework written in PHP (in the spirit of Behat).


 

Jakub Zalas' Blog: Mocking Symfony Container services in Behat s...

PHPDeveloper.org  Fri, 01/20/2012 - 13:54

Jakub Zalas has a recent post to his blog with a hint about how to test Symfony container services by mocking them (when testing with Behat) with the help of Mockery (and the PSSMockeryBundle).


 

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

Planet PHP  Tue, 01/17/2012 - 03:39

Some watchful readers pointed out some subtle but nonetheless important bugs in the framework we have built yesterday.

When creating a framework, you must be sure that it behaves as advertised. If not, all the applications based on it will exhibit the same bugs.

The good news is that whenever you fix a bug, you are fixing a bunch of applications too.


 

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.


 

⇥ The easiest way to add unit test to your application - Marco...

Planet PHP  Thu, 09/08/2011 - 08:49

Unit testing shouldn’t be hard. In fact, given its usefulness, it should be easy and pleasant—a tool that every developer would never want to do without.

And yet, I see programmers (and, more frighteningly, systems architects) struggling with it constantly.

In many cases, they are saddled with large codebases that have never seen any tests whatsoever on one hand, and the fact that a recent changes has caused their entire system to crap out on the other.


 

AppBackr Blog: Automated PHP unit testing for lazy coders

PHPDeveloper.org  Tue, 08/02/2011 - 09:41

In a recent post from the AppBackr blog they share a solution they've found for running unit tests automatically for lazy coders using a combination of PHPUnit, Watchr and Growl notifications (OS X-only, obviously).


 

Robert Basic's Blog: Debugging Zend Framework unit tests with Xd...

PHPDeveloper.org  Mon, 07/25/2011 - 12:57

In this quick post today Robert Basic shares a hint for using Xdebug together with Zend Framework unit tests to get effective results.


 

Till Klampaeckel's Blog: RFC: Mocking protected methods

PHPDeveloper.org  Thu, 06/16/2011 - 12:48

Till Klampaeckel has a new post to his blog today looking at the method he's found (through some help from others) to be able to mock out protected methods in his unit tests.


 

Volker Dusch's Blog: How i judge frameworks - Or: Let me code in...

PHPDeveloper.org  Wed, 05/18/2011 - 12:45

With all of the frameworks making their way around the PHP community, it's interesting to see different developers' takes on judging which is the best for their needs.

In this new post to his blog Volker Dusch takes the opposite stance - he hates talking about frameworks.