Book Image

Laravel 5 Essentials

By : Martin Bean
Book Image

Laravel 5 Essentials

By: Martin Bean

Overview of this book

Table of Contents (15 chapters)
Laravel 5 Essentials
About the Author
About the Reviewers

Chapter 5. Testing – It's Easier Than You Think

Testing is an often-neglected part in PHP development. Compared to languages such as Java and Ruby, where testing is strongly ingrained into the workflow of developers, PHP has been lagging behind. This is mainly because simple PHP applications tend to be tightly coupled and are, therefore, difficult to test. However, thanks to standardization and modularization efforts and frameworks that encourage the separation of concerns, PHP testing has become more accessible and the mentality towards it is slowly changing.

Laravel 5 is a framework that was built from the ground up to facilitate testing. It comes with all the necessary files to get started, along with different helpers to test your application, thus helping beginners to overcome some of the biggest obstacles.

In this chapter, we will demonstrate how Laravel makes it very simple to get started with testing, without forcing you to go for a test-first approach, or making you aim for complete...