- 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.
What you need:
- php 7.2
- mysql 5.7
- composer
Possible OS X Installation: (Adapt to your OS)
- ( Install Brew: https://brew.sh )
- brew unlink [email protected] (if you already have php56)
- You can later undo this if you wish:
- brew unlink [email protected]
- brew link [email protected]
- You can later undo this if you wish:
- brew link [email protected]
- or brew install [email protected]
- brew install sqlite
- brew install [email protected]
- brew install composer
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
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:
- https://www.jetbrains.com/help/phpstorm/testing-with-codeception.html
- https://www.jetbrains.com/help/idea/testing-with-codeception.html
- https://laravel.com/docs/5.5/homestead#first-steps
- https://gist.github.com/diegonobre/341eb7b793fc841c0bba3f2b865b8d66
Alternatives:
Testing:
Issues:
Stats: