Post Profile






Database Tests With PHPUnit - Qafoo - PHP

Most of us do not use PHPUnit solely for Unit Tests but we also write Integration or Acceptance Tests with PHPUnit. One very common question then is how to interact with the database correctly in those tests. Let me show you the different options and their trade offs…
read more

share

Related Posts


Quality Assurance on PHP projects - PHPUnit part 2 - Michelangelo van Dam

Programming / Web Development : Planet PHP

     I hope everyone enjoyed my first article on unit testing with phpunit where I started writing a few tests that would guide us building our little game of tictactoe. Today I'm going start with turning these tests into working co...

Behavior Driven Development - Qafoo - PHP

Programming / Web Development : Planet PHP

While unit, integration and system tests - especially the methodology of Test Driven Development (TDD) - are great ways to push the technical correctness of an application forward, they miss out one important aspect: the customer. N...

Quality Assurance on PHP projects - PHPUnit part 3 - Michelangelo van Dam

Programming / Web Development : Planet PHP

Time for the third part on unit testing with phpunit in my Quality Assurance on PHP projects series. In part one we started writing unit tests for a simple game of tic-tac-toe. In part two we started converting our unit tests into a...

Using Mink in PHPUnit - Qafoo - PHP

Programming / Web Development : Planet PHP

Another day for a short PHPUnit trick. If you want to use PHPunit to control a browser for functional or acceptence tests, then you can easily do this using the Mink library. Mink is well known from the Behat community to facilitate...

Introduction To Page Objects - Qafoo - PHP

Programming / Web Development : Planet PHP

A while ago we wrote about writing acceptance tests (end-to-end tests) with Mink and PHPUnit. While this is a great set of tools for various applications such tests tend be susceptible to changes in the frontend. And the way they br...

Comments


Copyright © 2016 Regator, LLC