Testing
Creating your own RSpec Matchers.
RSpec is a behavior-driven development (BDD) framework for the Ruby programming language. It assists with setting expectations for how exactly one expects ones code to behave. Tests (or specs) are first written and run leading to failures. Code is then written to pass those expectations earlier set. RSpec by default provides a handful of matchers [...]
Test Driven Laravel From Scratch
TDD is a very important part of the software development cycle. Laravel 5 came with a lot of changes and part of those changes involved integrating Jeffery way’s testing integrated package into the Laravel Core which has made integration testing a bliss. The fact still remains that there a lot of people that really don’t know how [...]
Mock Objects in PHP – Testing
Introduction In unit tests, mock objects simulate the behaviour of real objects. They are commonly utilised to offer test isolation, to stand in for objects which do not yet exist, or to allow for the exploratory design of class APIs without requiring actual implementation up front. A good example, where mock objects would be required, is [...]
Getting Started With Testing in Laravel
A very important part of developing large, quality web applications is having automated tests that ensure every part of your application works as expected, no wicked surprises!. There are several types of testing but they are mainly classified into Acceptance, Functional and Unit testing. Acceptance Testing This kind of testing allows us to [...]