Tag Archives: testing

PHP phpspec Testing

phpspec keeps your privates hidden

For the last few days I’ve been using phpspec to build an application. Inevitably comparisons will be drawn between phpspec and PHPUnit, but I think that one clear distinction is found by considering how phpspec prevents the direct testing of a private method. read more »

PHP phpspec TDD Testing

Considering what to test with phpspec

I have recently started using phpspec in place of PHPUnit as a PHP development tool. So far for me, the transition from TDD to specBDD is a fairly trivial one. The vocabulary used in the specs is slightly different to xUnit tools, and this seems to make me think more carefully about what I really want to test, or better, what behaviour I want my object to exhibit. read more »

Testing Tutorial

Headless Behat/Mink testing with Sahi and PhantomJS

We have been using Behat for acceptance testing at work for a while now, but rather informally. I have been interested in it from a CI point of view, especially as our longer term plan is to automate the deployment of several sites from a single codebase. A barrier to this, and to our more recent desire to use Vagrant for controlling our dev environments, was the way in which we were running JavaScript tests using Selenium and Firefox. Today, I decided to cut off the head. read more »