Posts Tagged ‘xdebug’

October 10, 2011 1

Behat & XDebug: Debugging Steps.

By admin in Development

Occasionally when writing complicated steps in Behat it’s useful to debug them (perhaps to find out why your tests are failing!).
The Behat test runner is actually just a PHP script run from the command line. As such by declaring a special variable before running the test runner we can trigger a remote debugging session on [...]

Tags: , , ,

September 21, 2011 2

Behat & XDebug: Testing & Debugging API Calls

By admin in Development

During office hours I work on a large PHP Application, we use a service oriented architecture and the application exposes a number of API’s. Recently we have been using Behat and writing BDD tests in Gherkin to test the behaviour of our various APIs.
When developing I always use XDebug’s remote debugging functionality to examine application flow and [...]

Tags: , ,