Skip to content

matthiasnoback/test-first-application-development-workshop

Repository files navigation

PHP testing playground

Build Status

Requirements

Getting started

  • Clone this repository and cd into it.

  • Run docker-compose pull.

  • Set up the environment variables HOST_UID, HOST_GID:

    export HOST_GID=$(id -g)
    export HOST_UID=$(id -u)
  • Run bin/composer install --prefer-dist to install the project's dependencies.

Usage

  • Run bin/composer to use Composer (e.g. bin/composer require --dev symfony/var-dumper).
  • Run bin/run_tests to run the tests.
  • Run docker-compose up -d web to start the web server. You can access it at http://localhost:8080.

Sharing patches

If you want to share your work with the group, make sure you stage any file you want to share. You can do this with git add [filename] on the command line. Make sure to also stage renamed and deleted files that you want to share. When you're done, run:

git diff --staged > [name-of-the-patch].patch

Now share this patch via email (info@matthiasnoback.nl), Slack, or whatever.

Someone else who has push rights (the workshop leader?) should apply this patch to the latest version of the code:

git apply [name-of-the-patch].patch

They should then add everything, commit it, and push it to the main branch.

About

Sandbox project for the "Test-Driven Application Development" training.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published