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

Setting up Behat

Much like PHPUnit, Behat can be installed as a tool and library. The tool version being the .phar archive, we can download it from the official GitHub repository, where the library version comes packed as a Composer package.

Assuming that we are using the Ubuntu 16.10 (Yakkety Yak) installation, installing the Behat as a tool is easy through the following commands:

wget https://github.com/Behat/Behat/releases/download/v3.3.0/behat.pharchmod +x behat.pharsudo mv behat.phar /usr/local/bin/behatbehat --version

This should give us the following output:

Installing Behat as a library is as easy as running the following console ...

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