Skip to Content
Mastering PHP 7
book

Mastering PHP 7

by Branko Ajzele
June 2017
Intermediate to advanced
536 pages
9h 49m
English
Packt Publishing
Content preview from Mastering PHP 7

Writing test

Getting started with writing the Behat tests requires grasping a few basic concepts, such as the following:

  • Gherkin language: This is a whitespace, business-readable, domain-specific language created for behavior descriptions, with the ability to be used for a project’s documentation and automated test at once through its Given-When-Then concept. 
  • Features: This is a list of one or more scenarios saved under the *.feature file. By default, the Behat features are to be stored and found in the features/ directory relative to our project.
  • Scenarios: These are the core Gherkin structures, consisting of one or more steps.
  • Steps: These are also known as Givens, Whens, and Thens. Indistinguishable to Behat, they should be distinguishable to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning PHP 7

Learning PHP 7

Antonio L Zapata (GBP)
Upgrading to PHP 5

Upgrading to PHP 5

Adam Trachtenberg

Publisher Resources

ISBN: 9781785882814Supplemental Content