Skip to content

elchris/kata_tdd_php_symfony

Repository files navigation

TDD Kata with Symfony and Doctrine

Introduction:

  • Consult ride-hailing.svg to digest some key application concepts.
  • Consult Kata-Tasks.md to get an idea of the various tests you'll be writing and help shape your sequencing.
  • With this said, you do not have to follow the sequencing outlined.

Initial Set-Up

What you need:

  • php 7.2
  • mysql 5.7
  • composer

Possible OS X Installation: (Adapt to your OS)

Checkout Code:

  • git clone https://github.com/elchris/kata_tdd_php_symfony.git
  • cd kata_tdd_php_symfony
  • switch to clean-slate-with-acceptance branch
    • git checkout clean-slate-with-acceptance
  • create new working branch from clean-slate-with-acceptance
    • git branch kata-run-1
    • git checkout kata-run-1

Configure DB:

  • cd app/config
    • cp parameters.yml.dist parameters.yml
  • mysql.server start
  • log into mysql
    • create database symfony;

Run:

  • cd ../..
  • composer install
  • vendor/bin/phpunit
  • bin/console server:start
  • vendor/bin/codecept run

References

Migrations:

  • Generate a single migration from the current state of the Entity Graph
    • bin/console doctrine:migrations:diff
  • Execute all current migrations
    • bin/console doctrine:migrations:migrate

Generate:

  • vendor/bin/codecept generate:suite api
  • vendor/bin/codecept generate:cept api CreateUser

References:

Alternatives:

Testing:

Issues:

Stats:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published