Skip to content

Screencast code, script and kittens behind "BDD, Behat, Mink and other Wonderful Things Tutorial"

License

Notifications You must be signed in to change notification settings

knpuniversity/behat

Repository files navigation

BDD, Behat, Mink and other Wonderful ThingsRESTing with Symfony

Well hi there! This repository holds the code and script for the Behat PHP course on KnpUniversity.

Setup the Project

NOTE: This tutorial does not work in PHP 7.3 and above.

Ok, cool - this will be easy!

  1. Make sure you have Composer installed.

  2. In a terminal, move into the project, then install the composer dependencies:

composer install

Or you may need to run php composer.phar install - depending on how you installed Composer. This will probably ask you some questions about your database (answer for your system) and other settings (just hit enter for these).

  1. Load up your database

This project uses an Sqlite database, which normally is supported by PHP out of the box.

To load up your database file, run:

php app/console doctrine:database:create
php app/console doctrine:schema:update --force
php app/console doctrine:fixtures:load

This will create - and populate - an app/app.db file.

  1. Start up the built-in PHP web server:
php app/console server:run

Then find the site at http://localhost:8000.

You can login with:

user: admin pass: admin

Have fun!

About

Screencast code, script and kittens behind "BDD, Behat, Mink and other Wonderful Things Tutorial"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published