Skip to content

Instantly share code, notes, and snippets.

@joshfreemanIO
Created September 15, 2015 03:42
Show Gist options
  • Save joshfreemanIO/43fc86885a91448f7c7b to your computer and use it in GitHub Desktop.
Save joshfreemanIO/43fc86885a91448f7c7b to your computer and use it in GitHub Desktop.
TDD
1. What is TDD?
- Red, Green, Refactor
2. What about BDD?
3. CQRS
4. Incoming Queries (Fibonacci)
- Fibonacci
+ 0 => 0
+ 1 => 1
+ 7 => 13
+ 12 => 144
- Hello World
+ helloWorld()
+ hello($name)
+ hello()
5. Incoming Commands (Model State)
- Person::setName()
6. Messages to Self (Hello World)
- helloWorld()
7. Outgoing Queries
- Don't Test
8. Outgoing Commands
- Person and PersonObserver
- [The Magic Tricks of Testing by Sandi Metz](https://www.youtube.com/watch?v=URSWYvyc42M)
- [Test Driven Development by Bob Martin](https://www.youtube.com/watch?v=D9GQ9nBHhIc)
https://github.com/joshfreemanIO/test-driven-development-phpspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment