Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Test-driven development with PHPUnit
Search
Oliver Klee
July 15, 2017
Technology
1
490
Test-driven development with PHPUnit
Oliver Klee
July 15, 2017
Tweet
Share
More Decks by Oliver Klee
See All by Oliver Klee
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
65
Team-Management-Plattform
oliverklee
0
60
Vertrauen in Teams & Führung
oliverklee
0
230
Software-Qualität von TYPO3-Extensions automatisieren
oliverklee
0
34
Vertrauen in Teams & Führung
oliverklee
0
150
Testing von TYPO3-Extensions
oliverklee
0
64
Software-Qualität von Extensions automatisieren
oliverklee
1
47
Content-Synchronisierung
oliverklee
0
160
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
310
Other Decks in Technology
See All in Technology
『HOWはWHY WHATで判断せよ』 〜『ドメイン駆動設計をはじめよう』の読了報告と、本質への探求〜
panda728
PRO
5
2k
生成AI時代に若手エンジニアが最初に覚えるべき内容と、その学習法
starfish719
2
430
【Oracle Cloud ウェビナー】パスワードだけでは守れない時代~多要素認証で強化する企業セキュリティ~
oracle4engineer
PRO
2
100
ステートレスなLLMでステートフルなAI agentを作る - YAPC::Fukuoka 2025
gfx
8
1.3k
Post-AIコーディング時代のエンジニア生存戦略
shinoyu
0
290
ABEMAのCM配信を支えるスケーラブルな分散カウンタの実装
hono0130
3
800
Javaコミュニティの歩き方 ~参加から貢献まで、すべて教えます~
tabatad
0
130
マイクロリブート ~ACEマインドセットで実現するアジャイル~
sony
1
400
はじめての OSS コントリビューション 〜小さな PR が世界を変える〜
chiroito
4
340
LINEヤフー バックエンド組織・体制の紹介
lycorptech_jp
PRO
0
790
Axon Frameworkのイベントストアを独自拡張した話
zozotech
PRO
0
150
Capitole du Libre 2025 - Keynote - Cloud du Coeur
ju_hnny5
0
110
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
118
20k
Into the Great Unknown - MozCon
thekraken
40
2.2k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
The Language of Interfaces
destraynor
162
25k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
1.8k
Why You Should Never Use an ORM
jnunemaker
PRO
60
9.6k
Stop Working from a Prison Cell
hatefulcrawdad
272
21k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
970
The Invisible Side of Design
smashingmag
302
51k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
11
930
How to Ace a Technical Interview
jacobian
280
24k
Transcript
Test-driven Development with PHPUnit Oliver Klee, 2017-07 @oliklee
[email protected]
Unit Tests?
Manual testing is cumbersome
Automated testing is fast
Unit tests for the Realty Manager TYPO3 extension
>1600 tests
< 60 seconds
Verify that your code does what you expect
Make sure that your changes won‘t break anything
Keep others from breaking your code
Don’t break anything even in complex projects
Create a safety net for refactoring or for TYPO3 updates
Improve the structure of your code
Green feels good!
Let’s get some terms straight
Testsuite Testcase Test Assertion Test Test Testcase
Code test-first write test write code refactor
None