Create Three Symfony Back Ends - Part #1 - Project Introduction

preview_player
Показать описание
To begin with, we need an understanding of what our JSON API should do. It doesn't matter whether our JSON API is created in PHP, or JavaScript (nodejs), or Elixir, or Java... or any other language. The functionality from an end user perspective should be identical.

To ensure consistency with whichever platform or language we use to create our JSON API, we're going to start by defining a test.

We're going to use PHP, and specifically, Behat to define our tests.

The aim of this tutorial is not to teach you the ins-and-outs of Behat. You do not need to learn everything about Behat to use or modify this test file.

One of the absolute joys of Behat is in its use of Gherkin syntax.

Gherkin is human readable. How human readable? Well, here we go...
Рекомендации по теме
Комментарии
Автор

Nice, instead of the Behat bundle I usually go with Codeception for e2e tests. Allows me to also test the infrastructure/data layer, for example; create specific states in the database that should result in different business behaviour.

Competitiveforlolz